function setActivLayer(actlayer,notact1,notact2){
	document.all[notact2].style.visibility="hidden";
	document.all[notact1].style.visibility="hidden";
	document.all[actlayer].style.visibility="visible";
}
function setActivTd(tdact,tdpass1,tdpass2){
	document.all[tdact].className="activ";
	document.all[tdpass1].className="passiv";
	document.all[tdpass2].className="passiv";
}
function setPassivTd(td){
	document.all[td].className="passiv";
}
function vetkaActiv(tdact,tdpass1,tdpass2,actlayer,notact1,notact2){
	setActivTd(tdact,tdpass1,tdpass2)
	setActivLayer(actlayer,notact1,notact2);
	setActivTd(tdact,tdpass1,tdpass2);
}

document.write('<style type="text/css">');
document.write('a{');
document.write('	text-decoration : none;');
document.write('	font-size : 13px;');
document.write('	color : #ffcc33;');
document.write('}');
document.write('.passiv{');
document.write('	background-color : #660000;');
document.write('}');
document.write('.activ{');
document.write('	background-color : #990000;');
document.write('}');
document.write('</style>');


document.write('<table width="100%" cellpadding="0" cellspacing="0"><tr>');
document.write('<td width="10" rowspan="2" >&nbsp;</td>');
document.write('<td width="170" height="35">');
document.write('<img src="http://www.tanit.ru/_a1_imgs/tanit_logo_bordo.gif" height="32" alt="" border="0"></td>');
document.write('<td rowspan="2" >&nbsp;&nbsp;&nbsp;</td>');
document.write('<td align="right" width="270" valign="top" height="35">');
document.write('<font color="#990000" style="font-size : 11px;"><a href="http://www.tanit.ru/indexx.php?pk=r140"><font color="#990000" style="font-size : 11px;">как заказать</font></a>&nbsp;|&nbsp;<a href="http://www.tanit.ru/index.php"><font color="#990000" style="font-size : 11px;">главная</font></a>&nbsp;|&nbsp; <a href="http://www.tanit.ru/indexx.php?pk=r140"><font color="#990000" style="font-size : 11px;">контакты</font></a></font><br>');
document.write('<font color="#990000" style="font-size : 25px;"><em><strong>(495)775-3939</strong></em></font></td>');
document.write('<td width="10" rowspan="2" >&nbsp;</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><font color="#990000" style="font-size : 11px;">сантехника высокого класса</font></td>');
document.write('<td align="right" width="270" valign="top"><font color="#990000" style="font-size : 11px;">многоканальный телефон</font></td>');
document.write('</tr>');
document.write('</table>');
document.write('<table><tr><td height="30">');
document.write('&nbsp;');
document.write('</td></tr></table>');


document.write('<div align="center">');
document.write('<div align="center" style="position: absolute; width: 100%; z-index:1; left: 0px; top: 30px;  visibility: collapse;" >');
document.write('<table cellspacing="1" cellpadding="5">');
document.write('<tr>');
document.write('<td id="td1" class="activ" height="30" valign="middle"><a href="#"  onmouseover=javascript:vetkaActiv("td1","td2","td3","layer1","layer2","layer3") >&nbsp;Главная&nbsp;</a></td>');
document.write('<td  id="td2" class="passiv" ><a href="#" onmouseover=javascript:vetkaActiv("td2","td1","td3","layer2","layer1","layer3")>&nbsp;Клиентам&nbsp;</a></td>');
document.write('<td  id="td3" class="passiv" ><a href="#" onmouseover=javascript:vetkaActiv("td3","td2","td1","layer3","layer2","layer1")>&nbsp;Каталог&nbsp;</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');

document.write('<div align="center" id="layer1" style="position: absolute; width: 100%; z-index:1; left: 0px; top: 60px; background-color: White; visibility: collapse;" name="layer1">');
document.write('<table width="100%" class="activ" border="0"><tr><td valign="middle" height="30" align="center">');
document.write('&nbsp;&nbsp;</td>');
document.write('<td width="14%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r110">о фирме</a></td>');
document.write('<td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="14%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r120">новости</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="14%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r130">магазины</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="14%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r140">контакты</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="14%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r150">вакансии</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="28%"  align="center"><a href="http://www.tanit.ru/kupon.jpg" target="_blank">купон на скидку&nbsp;&nbsp;</a></td>');
document.write('</td></tr></table>');
document.write('</div>');


document.write('<div align="center" id="layer2" style="position: absolute; width: 100%; z-index:1; left: 0px; top: 60px; background-color: White; visibility: hidden;" name="layer2">');
document.write('<table width="100%" class="activ"><tr><td valign="middle" height="30" align="center">');
document.write('&nbsp;&nbsp;</td>');
document.write('<td width="11%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r210">Акции </a></td>');
document.write('<td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="11%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r220">Услуги</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="22%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r230">Комплектация объектов</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="11%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r240">Дилеры </a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="22%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r250">Дизайнерам и дилерам </a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');


document.write('<td width="22%"  align="center"><a href="http://www.tanit.ru/indexx.php?pk=r260">Подписаться на новости&nbsp;&nbsp;</a></td>');
document.write('</td></tr></table>');
document.write('</div>');


document.write('<div align="center" id="layer3" style="position: absolute; width: 100%; z-index:1; left: 0px; top: 60px; background-color: White; visibility: hidden;" name="layer3">');
document.write('<table width="100%" class="activ"><tr><td valign="middle" height="30" align="center">');
document.write('&nbsp;&nbsp;</td>');
document.write('<td width="11%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r300">Ванны</a></td>');
document.write('<td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="22%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r300">Гидромассажные кабины</a></td>');
document.write('<td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="11%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r300">Санфаянс </a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="22%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r300">Мебель для ванной</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="11%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r300">Смесители</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="11%" align="center"><a href="http://www.tanit.ru/indexx.php?pk=r300">Аксессуары</a></td><td>&nbsp;<font color="#FFCC33" style="font-size: 9px;">|</font>&nbsp;</td>');
document.write('<td width="11%"  align="center"><a href="http://www.tanit.ru/indexx.php?pk=r370">Статьи&nbsp;&nbsp;</a></td>');
document.write('</td></tr></table>');
document.write('</div>');