var mainMenuSource = "" +

<!--begin of catalog PDF-->
"<center><br><br><a target=pdf href=\"http://www.fabergeeggs.ru/katalog.pdf\">ñêà÷àòü êàòàëîã 2011 â ôîðìàòå PDF (12 Ìá)</a></center>" +
<!--end of catalog PDF -->

<!--begin of Top100-->
"<center><a href=\"http://top100.rambler.ru/top100/\"><img src=\"http://counter.rambler.ru/top100.cnt?593717\" alt=\"Rambler's Top100\" width=1 height=1 border=0></a></center><br>" +
<!--end of Top100 code-->

<!--ÁÀÍÅÐ SWEB-->
" <center><a href=\"http://www.sweb.ru/cgi-bin/pg.cgi?pin=1759\"><img width=\"88\" height=\"31\"src=\"../img/sweb.gif\" alt=\"Õîñòèíã! ÐÅÊÎÌÅÍÄÓÅÌ\" border=0></a></center><br>" +
<!--END-->

<!--Rating@Mail.ru COUNTER-->
"<center><a target=_top href=\"http://top.mail.ru/jump?from=736188\"><img src=\"http://top.list.ru/counter?id=736188;t=109\" border=0 height=18 width=88 alt=\"Ðåéòèíã@Mail.ru\"/></a></center><br>" +
<!--/COUNTER-->

<!--begin of Top100 logo-->
"<center><a href=\"http://top100.rambler.ru/top100/\"><img src=\"http://top100-images.rambler.ru/top100/banner-88x31-rambler-gray2.gif\" alt=\"Rambler's Top100\" width=88 height=31 border=0></a></center>";
<!--end of Top100 logo -->



		var openedMenu = "";
        var openedSubMenu = "";
		var timeOutId;

		function ShowMenu(menuId) {
			document.all[menuId].style.visibility = "visible";
            if(menuId.indexOf('_') > 0)
       			openedSubMenu = menuId;
            else
                openedMenu = menuId;
		}
		
		function HideMenu(menuId) {
            if(menuId != "")    
                window.document.all[menuId].style.visibility = "hidden";
		}

		function ShowMen(menuId) {
            if(menuId != "")    
                window.document.all[menuId].style.visibility = "Visible";
		}

		function Hide(src) {
            if(! src.contains(event.toElement) ){
                src.style.visibility = "hidden";
                if(openedSubMenu != "")
                    window.document.all[openedSubMenu].style.visibility = "hidden";
            }
		}

		function ChangeBgColor(popMenuId, color) {
			window.document.all[popMenuId].style.background = color;
		}
        
        
        function WriteHtmlCode(){
            document.write(mainMenuSource);
        }


        function WriteHtmlMenu4(){
              document.write("<table width=217 height=316 background=\"../img1/menu_part_1.jpg\"  cellSpacing=0 cellPadding=0>     <tr>      <td width=23>      </td>      <td width=191>       <table cellSpacing=0 cellPadding=0 border=0><tr> <td width=191 height=16\"> </td></tr><tr> <td width=191 height=37 background=\"../img1/new_b_eng.gif\">  <a href=\"../cgi-bin/shownews_e.cgi\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m1','m1_off')\" onmouseover=\"Ch('m1','m1_on')\" border=0 name=\"m1\"></a> </td></tr><tr> <td width=191 height=37 background=\"../img1/kat_b_eng.gif\">  <a href=\"../cgi-bin/showkatalog_e.cgi\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m2','m2_off')\" onmouseover=\"Ch('m2','m2_on')\" border=0 name=\"m2\"></a> </td></tr><tr> <td width=191 height=32 background=\"../img1/his_b_eng.gif\">  <a href=\"../html/history_e.html\"><img src=\"../img1/menu_empty1.gif\" onmouseout=\"Ch('m3','m3_off')\" onmouseover=\"Ch('m3','m3_on')\" border=0 name=\"m3\"></a> </td></tr><tr> <td width=191 height=37 background=\"../img1/kon_b_eng.gif\">  <a href=\"../html/kontacts_e.html\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m4','m4_off')\" onmouseover=\"Ch('m4','m4_on')\" border=0 name=\"m4\"></a> </td></tr><tr> <td width=191 height=58 background=\"../img1/buy_b_eng.gif\"></td></tr><tr> <td width=191 height=39 background=\"../img1/cos_b_eng.gif\">  <a href=\"../cgi-bin/showcost_e.cgi\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m6','m6_off')\" onmouseover=\"Ch('m6','m6_on')\" border=0 name=\"m6\"></a> </td></tr><tr> <td width=191 height=60> </td></tr>       </table>      </td>      <td width=3>      </td>     </tr>    </table>");   

        }

        function WriteHtmlMenu3(){             
              document.write("<table width=169 height=248 background=\"../img2/menu_part_1.jpg\"  cellSpacing=0 cellPadding=0>     <tr>      <td width=18>      </td>      <td width=149>       <table cellSpacing=0 cellPadding=0 border=0><tr> <td width=149 height=14\"> </td></tr><tr> <td width=149 height=29 background=\"../img2/new_b_eng.gif\">  <a href=\"../cgi-bin/shownews_e.cgi\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m1','m1_off')\" onmouseover=\"Ch('m1','m1_on')\" border=0 name=\"m1\"></a> </td></tr><tr> <td width=1491 height=29 background=\"../img2/kat_b_eng.gif\">  <a href=\"../cgi-bin/showkatalog_e.cgi\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m2','m2_off')\" onmouseover=\"Ch('m2','m2_on')\" border=0 name=\"m2\"></a> </td></tr><tr> <td width=149 height=25 background=\"../img2/his_b_eng.gif\">  <a href=\"../html/history_e.html\"><img src=\"../img2/menu_empty1.gif\" onmouseout=\"Ch('m3','m3_off')\" onmouseover=\"Ch('m3','m3_on')\" border=0 name=\"m3\"></a> </td></tr><tr> <td width=149 height=29 background=\"../img2/kon_b_eng.gif\">  <a href=\"../html/kontacts_e.html\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m4','m4_off')\" onmouseover=\"Ch('m4','m4_on')\" border=0 name=\"m4\"></a> </td></tr><tr> <td width=149 height=45 background=\"../img2/buy_b_eng.gif\"></td></tr><tr> <td width=149 height=30 background=\"../img2/cos_b_eng.gif\">  <a href=\"../cgi-bin/showcost_e.cgi\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m6','m6_off')\" onmouseover=\"Ch('m6','m6_on')\" border=0 name=\"m6\"></a> </td></tr><tr> <td width=149 height=47> </td></tr>       </table>      </td>      <td width=2>      </td>     </tr>    </table>");

        }


        function WriteHtmlMenu2(){
              document.write("<table width=217 height=316 background=\"../img1/menu_part_1.jpg\"  cellSpacing=0 cellPadding=0>     <tr>      <td width=23>      </td>      <td width=191>       <table cellSpacing=0 cellPadding=0 border=0><tr> <td width=191 height=16\"> </td></tr><tr> <td width=191 height=40 background=\"../img1/new_b_rus.gif\">  <a href=\"../cgi-bin/shownews_r.cgi\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m1','m1_off')\" onmouseover=\"Ch('m1','m1_on')\" border=0 name=\"m1\"></a> </td></tr><tr> <td width=191 height=40 background=\"../img1/kat_b_rus.gif\">  <a href=\"../cgi-bin/showkatalog_r.cgi\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m2','m2_off')\" onmouseover=\"Ch('m2','m2_on')\" border=0 name=\"m2\"></a> </td></tr><tr> <td width=191 height=41 background=\"../img1/his_b_rus.gif\">  <a href=\"../html/history_r.html\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m3','m3_off')\" onmouseover=\"Ch('m3','m3_on')\" border=0 name=\"m3\"></a> </td></tr><tr> <td width=191 height=39 background=\"../img1/kon_b_rus.gif\">  <a href=\"../html/kontacts_r.html\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m4','m4_off')\" onmouseover=\"Ch('m4','m4_on')\" border=0 name=\"m4\"></a> </td></tr><tr> <td width=191 height=44 background=\"../img1/buy_b_rus.gif\"></td></tr><tr> <td width=191 height=38 background=\"../img1/cos_b_rus.gif\">  <a href=\"../cgi-bin/showcost_r.cgi\"><img src=\"../img1/menu_empty.gif\" onmouseout=\"Ch('m6','m6_off')\" onmouseover=\"Ch('m6','m6_on')\" border=0 name=\"m6\"></a> </td></tr><tr> <td width=191 height=58> </td></tr>       </table>      </td>      <td width=3>      </td>     </tr>    </table>");

        }

        function WriteHtmlMenu1(){             
              document.write("<table width=169 height=248 background=\"../img2/menu_part_1.jpg\"  cellSpacing=0 cellPadding=0>     <tr>      <td width=18>      </td>      <td width=149>       <table cellSpacing=0 cellPadding=0 border=0><tr> <td width=149 height=14\"> </td></tr><tr> <td width=149 height=30 background=\"../img2/new_b_rus.gif\">  <a href=\"../cgi-bin/shownews_r.cgi\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m1','m1_off')\" onmouseover=\"Ch('m1','m1_on')\" border=0 name=\"m1\"></a> </td></tr><tr> <td width=1491 height=30 background=\"../img2/kat_b_rus.gif\">  <a href=\"../cgi-bin/showkatalog_r.cgi\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m2','m2_off')\" onmouseover=\"Ch('m2','m2_on')\" border=0 name=\"m2\"></a> </td></tr><tr> <td width=149 height=32 background=\"../img2/his_b_rus.gif\">  <a href=\"../html/history_r.html\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m3','m3_off')\" onmouseover=\"Ch('m3','m3_on')\" border=0 name=\"m3\"></a> </td></tr><tr> <td width=149 height=30 background=\"../img2/kon_b_rus.gif\">  <a href=\"../html/kontacts_r.html\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m4','m4_off')\" onmouseover=\"Ch('m4','m4_on')\" border=0 name=\"m4\"></a> </td></tr><tr> <td width=149 height=34 background=\"../img2/buy_b_rus.gif\"></td></tr><tr> <td width=149 height=30 background=\"../img2/cos_b_rus.gif\">  <a href=\"../cgi-bin/showcost_r.cgi\"><img src=\"../img2/menu_empty.gif\" onmouseout=\"Ch('m6','m6_off')\" onmouseover=\"Ch('m6','m6_on')\" border=0 name=\"m6\"></a> </td></tr><tr> <td width=149 height=48> </td></tr>       </table>      </td>      <td width=2>      </td>     </tr>    </table>");

        }


        function chlogo(q,w){
            document.images[q].src=eval(w+".src");
        }
