window.status='> Компания Ликон';
function cht(highlightcolor){
        source=event.srcElement;
        if (source.tagName=="TABLE") return;
        while(source.tagName!="TR") source=source.parentElement;
        if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore") source.style.backgroundColor=highlightcolor;
}
function chb(oldcolor){
        if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore") return;
        if (event.toElement!=source){if (source.tagName!="TR"){
                while(source.tagName!="TR") source=source.parentElement;
                }source.style.backgroundColor=oldcolor;}
}
function purchase(quant,ost,uid,rurl){
         chk=quant;
         if(isNaN(chk)){
         alert("Вы должны ввести количество от 0 до 99999. Это должно быть число!");
         return false;
         }
         if(chk<0||chk>99999){
	 alert("Вы должны ввести количество от 0 до 99999. Это должно быть число!");
         return false;
         }
         ost=parseInt(ost);
	 if(chk>ost){
		if(confirm("Запрашиваемое Вами количество товара\nпревышает остаток на складе.\nЗаказать в любом случае?")==false) return false;
         }	
         link="/?action=addtocart&&uid="+uid+"&quant="+quant+"&return_url="+rurl;
         window.location.href=link;
}
function checkitem(num){
	if(document.uid.elements["add"+num].checked==true){
	ost=document.uid.elements["ost"+num].value;
	ost=parseInt(ost);
	chk=document.uid.elements["quant"+num].value;
	if(isNaN(chk)){
         alert("Вы должны ввести количество от 0 до 99999. Это должно быть число!");
         document.uid.elements["add"+num].checked='';
        }
        if(chk<0||chk>99999){
	 alert("Вы должны ввести количество от 0 до 99999. Это должно быть число!");
         document.uid.elements["add"+num].checked='';
        }
        if(chk>ost){
		if(confirm("Запрашиваемое Вами количество товара\nпревышает остаток на складе.\nЗаказать в любом случае?")==false) document.uid.elements["add"+num].checked='';
        }	
        } 	
}
function conf(src){
	if(confirm("Вы действительно хотите совершить выбранное действие?")!=false) window.location.href="/"+src;
}
function nw(src,newwin){
	if(newwin==1){
		window.open('nw.php'+src,'Licon','toolbar=0,border=0,location=0,status=no,menubar=0,scrollbars=1,resizable=1,width=winwidth,height=400');
	}
	else{
                window.location.href="/"+src;
	}
}
//lpos=250;
lpos=270;
tpos=128;
element_tpos=160;
dropwidth=250;
menunum=0;
menus=new Array();
_d=document;
function addmenu(){
menunum++;
menus[menunum]=menu;
}
function dumpmenus(){
mt="<script language=javascript>";
for(a=1;a<menus.length;a++){
mt+=" menu"+a+"=menus["+a+"];"
}
mt+="<\/script>";
_d.write(mt)
}
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
        effect = "Fade(duration=0.2);Alpha(style=0,opacity=95);Shadow(color='#5573B8', Direction=135, Strength=2)"
}
else
{
        effect = "Shadow(color='#5573B8', Direction=135, Strength=0)" // Stop IE5.5 bug when using more than one filter
}
timegap=500                        // The time delay for menus to remain visible
followspeed=5                        // Follow Scrolling speed
followrate=40                        // Follow Scrolling Rate
suboffset_top=8;                // Sub menu offset Top position
suboffset_left=2;                // Sub menu offset Left position
header=[                                // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"5D5D5D",                                // Mouse Off Font Color
"",                                        // Mouse Off Background Color
"FFFFFF",                                // Mouse On Font Color
"0692C6",                                // Mouse On Background Color
"",                                // Menu Border Color
10,                                                // Font Size in pixels
"normal",                                // Font Style (italic or normal)
"normal",                                        // Font Weight (bold or normal)
"Verdana",                // Font Name
0,                                                // Menu Item Padding
"",                                                // Sub Menu Image (Leave this blank if not needed)
,                                                // 3D Border & Separator bar
"",                                // 3D High Color
"",                                // 3D Low Color
"",                                // Current Page Item Font Color (leave this blank to disable)
"",                                        // Current Page Item Background Color (leave this blank to disable)
"",                        // Top Bar image (Leave this blank to disable)
"",                                // Menu Header Font Color (Leave blank if headers are not needed)
"",                                // Menu Header Background Color (Leave blank if headers are not needed)
]
drop=[                                // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"FFFFFF",                                // Mouse Off Font Color
"0692C6",                                // Mouse Off Background Color
"5D5D5D",                                // Mouse On Font Color
"E7E7E7",                                // Mouse On Background Color
"005F78",                                // Menu Border Color
10,                                                // Font Size in pixels
"normal",                                // Font Style (italic or normal)
"normal",                                        // Font Weight (bold or normal)
"Verdana",                // Font Name
0,                                                // Menu Item Padding
"",                                                // Sub Menu Image (Leave this blank if not needed)
,                                                // 3D Border & Separator bar
"66ffff",                                // 3D High Color
"003366",                                // 3D Low Color
"",                                // Current Page Item Font Color (leave this blank to disable)
"",                                        // Current Page Item Background Color (leave this blank to disable)
"",                        // Top Bar image (Leave this blank to disable)
"FFFFFF",                                // Menu Header Font Color (Leave blank if headers are not needed)
"EFA14D",                                // Menu Header Background Color (Leave blank if headers are not needed)
]
addmenu(menu=[                // This is the array that contains your menu properties and details
"mainmenu",                        // Menu Name - This is needed in order for the menu to be called
tpos,                                        // Menu Top - The Top position of the menu in pixels
lpos,                                        // Menu Left - The Left position of the menu in pixels
,                                        // Menu Width - Menus width in pixels
0,                                        // Menu Border Width
,                                        // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
header,                                // Properties Array - this is set higher up, as above
1,                                        // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"center",                                // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,                                // Filter - Text variable for setting transitional effects on menu activation - see above for more info
,                                        // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1,                                         // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,                                        // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,                                        // Position of TOP sub image left:center:right
,                                        // Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,                                        // Right To Left - Used in Hebrew for example. (1=on/0=off)
,                                        // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,                                        // ID of the div you want to hide on MouseOver (useful for hiding form elements)
,                                        // Reserved for future use
,                                        // Reserved for future use
,                                        // Reserved for future use
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=0','0')>&nbsp;новости&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=news",,"",1
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=1','0')>&nbsp;каталог&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=cat",,"",1
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=2&in=1','0')>&nbsp;о компании&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=00002",,"",1
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=3&in=1','0')>&nbsp;авторизация&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=00003",,"авторизация",1
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=4&in=1','0')>&nbsp;гостевая книга&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=00004",,"Гостевая книга",1
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
//,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=5&in=1','0')>&nbsp;чат&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=00005",,"Чат",1
//,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=6&in=1','0')>&nbsp;наша продукция&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=00006",,"Наша продукция",1
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=8&in=1','0')>&nbsp;вакансии&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=00008",,"Вакансии",1
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
,"<img src=images/1x1.gif border=0 height=10 border=0><br><div style=cursor:hand onClick=nw('?p=9&in=1','0')>&nbsp;рекомендации&nbsp;</div><img src=images/1x1.gif border=0 height=10 border=0><br>","show-menu=00009",,"Рекомендации",1
,"<img src=\"images/nav_divider.gif\" width=\"5\" height=\"32\">","",,"",1
])
addmenu(menu=["news",160,,dropwidth,1,"",drop,,"left",effect,,,,,,,,,,,,
        ,"&nbsp;&nbsp;Последние новости","/?p=0&sub=0",,"Последние новости",0
        ,"&nbsp;&nbsp;Подписка на новости","/?p=0&sub=2",,"Подписка на новости",0
        ,"&nbsp;&nbsp;Архив новостей","/?p=0&sub=1",,"Архив новостей",0

])