
document.title = "BELIMO "+ document.title
document.body.rightMargin = "0"
document.body.leftMargin = "0"
document.body.topMargin = "0"

var menuqty=6 //Ana menu sayisi
var MenuUstHucre=new Array(); var MenuUstHucreAra=new Array(); var MenuAltHucre=new Array();
var gTimer=null; var gTimer2=null;
var i

var whichImage = Math.round(Math.random()*(10-1));

self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight)

var head = document.getElementsByTagName('head').item(0);

var mystyle = document.createElement('link');
  mystyle.setAttribute('rel', 'stylesheet');  mystyle.setAttribute('href', '../stylesheet.css'); mystyle.setAttribute('type', 'text/css');
  head.appendChild(mystyle);

  mystyle = document.createElement('link');
  mystyle.setAttribute('rel', 'shortcut icon'); mystyle.setAttribute('href', '../favicon.ico');
  head.appendChild(mystyle);

document.write('<TABLE cellspacing="0" cellpadding="0" width="100%" border="0">')
 document.write('<tr valign="center"><td width="15"></td><td width=110><a href="../anasayfa/index.html"><img src="../logo.gif" width="102" height="41" border="0" align="left" alt="Ana Sayfa"></a></td> \
  <td>&nbsp;</td> \
  <td width="205" align="right"><img src="../images/SagUst/pic' + whichImage + '.gif" width="205" height="58" border="0" align="right" alt="Ana Sayfa"></td> \
  </tr>')
document.write('<tr height="3"><td></td></tr></TABLE>')

document.write('<TABLE cellspacing="0" cellpadding="0" width="100%" border="0">')

 document.write('<tr height="15" bgcolor="#ff6600"><td colspan="3" align="right"> \
  <a href="../anasayfa/index.html" STYLE="color:#ffffff;text-decoration:none;font-size:8pt;">Ana Sayfa</A>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; \
  <a href="../anasayfa/siteharitasi.html" STYLE="color:#ffffff;text-decoration:none;font-size:8pt;">Site Haritası</A>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; \
  <a href="http://www.belimo.ch/ch/en/" STYLE="color:#ffffff;text-decoration:none;font-size:8pt;" target="_blank">International</A>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; \
  <a href="mailto:info@belimo.com.tr" STYLE="color:#ffffff;text-decoration:none;font-size:8pt;">info@belimo.com.tr</A>&nbsp;&nbsp;&nbsp;</td></tr>')

 document.write('<tr bgcolor="White" height="1"><td></td></tr>')

 document.write('<tr valign="middle" bgcolor="#336699"><FORM NAME="Search" METHOD="GET" ACTION="http://www.belimo.ch/CH/EN/Cart/SearchResults.cfm"><td width="15"></td><td height="27" id="MenuUst"></td> \
 </td><td align="left"> \
 <input type="Text" name="SearchTerm" value="Parça numarası ile arama" align="MIDDLE" size="27" STYLE="font-size: 10px; color: #336699"  onClick="ClearSearchBox();"><img src="/images/spacer.gif" height="1" width="4" border=0 alt=""><a href="javascript:Search.submit();"><img src="../images/ara.gif" border=0 alt="Ara" width=35 height=18 align="middle"></a> \
 </td></FORM> \
 </tr>')
		
 document.write('<tr height="1" bgcolor="#000000"><td colspan="3"></td></tr>')
 document.write('<tr valign="middle" bgcolor="#cccccc"><td width="15"></td><td height="22" id="MenuAlt" colspan="2"></td></tr>')
 document.write('<tr height="1" bgcolor="#999999"><td colspan="3"></td></tr>')
document.write('</TABLE>')

UstMenuBaslat()
if(menu!=""){Kur(menu.substring(0,1))}

function Kur(x){
var secenek=x*2/2
   
if(menu!=""){document.getElementById(menu.substring(0,1)).setAttribute("style","color:#ffcc33; font-size: 13px;")}

for(i=1; i < Tablo[secenek].Children + 1; i++){
	if(i==1){MenuAlt.innerHTML=" "}
	   else{MenuAlt.innerHTML = MenuAlt.innerHTML + "&nbsp;&nbsp;|&nbsp;&nbsp;"}
	if(i == menu.substring(1,2) && menu.substring(0,1)==secenek)
	  {MenuAlt.innerHTML=MenuAlt.innerHTML + "<a href='"+Tablo[""+secenek+i].Link+"' class='menu' STYLE='color:#ff6600;'>"+Tablo[""+secenek+i].Name+"</a>";}
	  else{MenuAlt.innerHTML=MenuAlt.innerHTML + "<a href='"+Tablo[""+secenek+i].Link+"' class='menu' STYLE='color:#336699;'>"+Tablo[""+secenek+i].Name+"</a>";}
}
}

function UstMenuBaslat(){
MenuUst.innerHTML = ""
for(i=1; i<=menuqty; i++){
MenuUst.innerHTML = MenuUst.innerHTML + "<a id='"+i+"' onmouseover='Ac(this.id)' onmouseout=Kapa() href='"+Tablo[i].Link+"' style='color: White; font-size: 13px;'>"+Tablo[i].Name+"</a>" + "&nbsp;&nbsp;|&nbsp;&nbsp;";
}
}

function Ac(iRank) {
	clearTimeout(gTimer2);
	gTimer=setTimeout('Kur('+iRank+')',50);
}
function Kapa() {
	clearTimeout(gTimer);
	if(menu!=""){gTimer2=setTimeout('Kur('+menu.substring(0,1)+')',5000)};
}

function ClearSearchBox() {
	if (document.Search.SearchTerm.value == "Parça numarası ile arama"){document.Search.SearchTerm.value = ""; return true;}
}
