var holdItem=0;var holdMenu=0;var timerId=null;
function showPic(homeroot,vPic,w,h){w=w+8;h=h+30;var xPos=(screen.width-w)/2;var yPos=(screen.height-h)/2;wPic=window.open('http://'+homeroot+'/pic.asp?pic=img/'+vPic,'wPic','scrollbars=no,width='+w+',height='+h+',left='+xPos+',top='+yPos);wPic.focus();}
function showCatalog(catID){this.fGotoCat.catalog.value=catID;this.fGotoCat.submit()}
function showMenu(menuId){document.getElementById("menu"+menuId).style.visibility="visible"}
function hideMenu(menuId){document.getElementById("menu"+menuId).style.visibility="hidden"}
function showItem(itemId){document.getElementById("item"+itemId).style.borderColor="#ff0000"}
function hideItem(itemId){document.getElementById("item"+itemId).style.borderColor="#ffffcc"}
function hideSubMenu(menuId){if ((menuId>0)&&(menuId!=holdMenu)) hideMenu(menuId)}
function hideSubMenu1(parentId){if (parentId!=holdMenu){hideItem(parentId); hideMenu(parentId)}}
function mainIn(itemId,menuId){holdMenu=menuId;if (menuId==0){document.getElementById("item"+itemId).style.cursor="hand"}showItem(itemId);if (menuId>0){showMenu(menuId)}}
function mainOut(itemId,menuId){holdMenu=0;hideItem(itemId);timerId=setTimeout("hideSubMenu("+menuId+")",100)}
function subIn(parentId,itemId){holdMenu=parentId;document.getElementById("item"+itemId).style.cursor="hand";showItem(parentId);showItem(itemId);holdMenu=parentId}
function subOut(parentId,itemId){holdMenu=0;hideItem(itemId);timerId=setTimeout("hideSubMenu1("+parentId+")",100)}
