function hlight (obj,a) {
	if (a==0)
		obj.style.backgroundColor = "#DDE2E6";
	else
		obj.style.backgroundColor = "#ffffff";
}

function rhlight (obj,a) {
	if (a==0)
		obj.style.backgroundColor = "";
	else
		obj.style.backgroundColor = "#ffffff";
}

function createMenu(index) {
var mas=new Array('','','','','','','','','');
var st=new Array('onMouseOver="hlight(this,1)" onMouseOut="hlight(this,0)"','onMouseOver="hlight(this,1)" onMouseOut="hlight(this,0)"','onMouseOver="hlight(this,1)" onMouseOut="hlight(this,0)"','onMouseOver="hlight(this,1)" onMouseOut="hlight(this,0)"','onMouseOver="hlight(this,1)" onMouseOut="hlight(this,0)"','onMouseOver="hlight(this,1)" onMouseOut="hlight(this,0)"','onMouseOver="hlight(this,1)" onMouseOut="hlight(this,0)"','onMouseOver="hlight(this,1)" onMouseOut="hlight(this,0)"');
var links=new Array("/","/about.html","/constructor.html","/dostavka.html","/view_product.html","/price_s.html","/contacts.html","/order.html");
mas[index-1]='<img src="i/arrow.gif" width="14" height="11" class="arrow"/>';
st[index-1]='bgcolor=#ffffff';

document.write(' <td  '+st[0]+'  ><div align="center">'+mas[0]+'<a href="'+links[0]+'" class="mnlnk">Главная&nbsp;страница</a></div></td><td width="5px"></td><td  '+st[1]+'  ><div align="center">'+mas[1]+'<a href="'+links[1]+'" class="mnlnk">О&nbsp;Компании</a></div></td>	<td width="5px"></td><td  '+st[2]+'  ><div align="center">'+mas[2]+'<a href="'+links[2]+'" class="mnlnk">Каталог&nbsp;продукции</a></div></td>  <td  '+st[3]+'  ><div align="center">'+mas[3]+'<a href="'+links[3]+'" class="mnlnk">Доставка&nbsp;тент укрытий</a></div></td>  <td width="5px"></td><td   '+st[4]+'  ><div align="center">'+mas[4]+'<a href="'+links[5]+'" class="mnlnk">Прайс&nbsp;-&nbsp;лист</a></div></td><td width="5px"></td><td  '+st[5]+'  ><div align="center">'+mas[5]+'<a href="'+links[6]+'" class="mnlnk">Контакты</a></div></td><td width="5px"></td><td  '+st[6]+'  ><div align="center">'+mas[6]+'<a href="'+links[7]+'" class="mnlnk">On&nbsp;-&nbsp;line&nbsp;заказ</a></div></td>');	
}


function openfoto(string,w,h)
 {
  param='width='+w+',height='+h;
  foto=window.open(string,'foto',param); return true;
 }


