// JavaScript
//<--animation-->
function StartEffect(){

}
//<--end fnc-->

//<--random image under menu-->
function goRand() {
var num = 4;  // количество картинок
myImages = new Array();
myImages[0] = "sideImg/sd1.jpg";
myImages[1] = "sideImg/sd2.jpg";
myImages[2] = "sideImg/sd3.jpg";
myImages[3] = "sideImg/sd4.jpg";

rand = Math.floor(Math.random() * num);
current_image = myImages[rand];
}

//<--menu script-->
document.write('<STYLE type="text/css">');
document.write('#menuspan40 { position:absolute; width:155px; }');
document.write('#menutable40 { border-width: 1; border-color: #808080; border-style:solid}');
document.write('td.menucell40 { padding:2; padding-left:4; padding-right:4; background:#C0C0C0; border:0 solid #000000; text-align:LEFT; }');
document.write('#submenutable40 { background: #000000; border-width: 1; border-color: #808080; border-style:solid}');
document.write('td.topcell40 {text-decoration:none; color:#000000; font-weight: 700; font-family: Verdana; font-size: 16px; font-style:normal; text-align:LEFT; }');
document.write('a.topitem40 {text-decoration:none; color:#000000; font-weight: 700; font-family: Verdana; font-size: 16px; font-style:normal; } ');
document.write('a.topitem40:hover {text-decoration:none; color:#FFFFFF; }');
document.write('a.subitem40 {text-decoration:none; color:#000000; font-weight: 700; font-family: Verdana; font-size: 16px; font-style:normal; } ');
document.write('a.subitem40:hover {text-decoration:none; color:#FFFFFF; }');
document.write('P.MN40 {color:#000000; font-weight: 700; font-family: Verdana; font-size:16px; font-style:normal;  }');
document.write('P.SMN40 {text-decoration:none; color:#000000; font-weight: 700; font-family: Verdana; font-size:16px; font-style:normal;  }');
document.write('#submenu40_0 { position:absolute; left:139px; top:24px; visibility:hidden; }');
document.write('#submenu40_1 { position:absolute; left:139px; top:68px; visibility:hidden; }');
document.write('</style>');
var thisbrowser40
var hidetimer40 = null;
if(document.layers){ thisbrowser40='NN4'; }
if(document.all){ thisbrowser40='IE'; }
if(!document.all && document.getElementById){ thisbrowser40='NN6'; }
function showmenu40(menuname)
{
if(thisbrowser40=='NN4') document.layers[menuname].visibility = 'visible';
if(thisbrowser40=='IE') document.all[menuname].style.visibility = 'visible';
if(thisbrowser40=='NN6') document.getElementById(menuname).style.visibility = 'visible';
if(hidetimer40) clearTimeout(hidetimer40);}
function timermenu40()
{
if(hidetimer40) clearTimeout(hidetimer40);hidetimer40 = setTimeout("hideall40();",500);
}
function hidemenu40(menuname)
{
if(thisbrowser40=='NN4') document.layers[menuname].visibility = 'hidden';
if(thisbrowser40=='IE') document.all[menuname].style.visibility = 'hidden';
if(thisbrowser40=='NN6') document.getElementById(menuname).style.visibility = 'hidden';
}
function hilite40(menuitem) 
{
if(typeof(currentpage40)!='undefined' && menuitem==currentpage40) return;
if(thisbrowser40=='IE') document.all[menuitem].style.backgroundColor = '#606060';
if(thisbrowser40=='NN6') document.getElementById(menuitem).style.backgroundColor = '#606060';
if(hidetimer40) clearTimeout(hidetimer40);}
function unhilite40(menuitem) 
{
if(typeof(currentpage40)!='undefined' && menuitem==currentpage40) return;
if(thisbrowser40=='IE') document.all[menuitem].style.backgroundColor = '#C0C0C0';
if(thisbrowser40=='NN6') document.getElementById(menuitem).style. backgroundColor = '#C0C0C0';
if(hidetimer40) clearTimeout(hidetimer40);hidetimer40 = setTimeout("hideall40();",500);
}
function hideall40()
{
hidemenu40('submenu40_0');
hidemenu40('submenu40_1');
}
function openmenu40(menuname)
{
showmenu40(menuname);
if(menuname!='submenu40_0') hidemenu40('submenu40_0');
if(menuname!='submenu40_1') hidemenu40('submenu40_1');
}
document.write('<table width=155 cellspacing=0 border=0 cellpadding=0>');
document.write('<tr><td align=left valign=top>');
document.write('<span id="menuspan40">');
document.write('<table width=155 id="menutable40" cellspacing=0 cellpadding=2 >');
document.write('<tr>');
document.write('<td class="topcell40" align=LEFT width=155 height=20 bgcolor=#C0C0C0>')
document.write('<a href="index.html" target="_self" title="Главная страница сайта" class="topitem40" onMouseOver="hideall40()">Главная</a>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td class="topcell40" align=LEFT width=155 height=20 bgcolor=#C0C0C0>')
document.write('<a href="cat.html" target="_self" title="Наша продукция" class="topitem40" onMouseOver="openmenu40(\'submenu40_0\')" onMouseOut="timermenu40();">Каталог</a>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td class="topcell40" align=LEFT width=155 height=20 bgcolor=#C0C0C0>')
document.write('<a href="gallery.html" target="_self" title="Применение нашей продукции" class="topitem40" onMouseOver="hideall40()">Галерея</a>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td class="topcell40" align=LEFT width=155 height=20 bgcolor=#C0C0C0>')
document.write('<a href="BrestStal.doc" target="_blank" title="" class="topitem40" onMouseOver="hideall40()" onMouseOut="timermenu40();">Прайс-лист</a>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td class="topcell40" align=LEFT width=155 height=20 bgcolor=#C0C0C0>')
document.write('<a href="mailto:breststal@mail.ru" target="_self" title="" class="topitem40" onMouseOver="hideall40()">Написать e-mail</a>');
document.write('</td>');
document.write('</tr>');
document.write('</table><p>');
document.write('<div id="submenu40_0">');
document.write('<table id="submenutable40" width=150 cellspacing=0>');
document.write('<tr>');
document.write('<td align=LEFT class="menucell40" height=20 id="s40_0_0" onMouseOver="hilite40(\'s40_0_0\')" onMouseOut="unhilite40(\'s40_0_0\')">');
document.write('<a href="mch.html" target="_self" title="" class="subitem40" >Металлочерепица</a>')
;document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align=LEFT class="menucell40" height=20 id="s40_0_1" onMouseOver="hilite40(\'s40_0_1\')" onMouseOut="unhilite40(\'s40_0_1\')">');
document.write('<a href="pn.html" target="_self" title="" class="subitem40" >Профнастил</a>')
;document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align=LEFT class="menucell40" height=20 id="s40_0_2" onMouseOver="hilite40(\'s40_0_2\')" onMouseOut="unhilite40(\'s40_0_2\')">');
document.write('<a href="oek.html" target="_self" title="" class="subitem40" >Отделочные элементы</a>')
;document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align=LEFT class="menucell40" height=20 id="s40_0_3" onMouseOver="hilite40(\'s40_0_3\')" onMouseOut="unhilite40(\'s40_0_3\')">');
document.write('<a href="vs.html" target="_self" title="" class="subitem40" >Водосточная система</a>')
;document.write('</td>');
document.write('</tr>');
document.write('</table></div>');
document.write('</span></td></tr></table>');

