var xt;
var isP;
isP=""
function ShowMenu(obj,menuid,xobj)
{
if(isP=="c"){closeObj.style.height="0px";isP="";clearTimeout(stayx);clearTimeout(closeAnim);}
if(isP!=""){return;}
submenux=document.getElementById("submenu_"+menuid)
xobj=document.getElementById(xobj)
xobj.innerHTML=submenux.innerHTML;
xAnimateOpen(xobj,1,submenux.offsetHeight)
}
var openAnim;
var openStart;
var openEnd;
var openObj;
var opentw;
opentw=50
var closetw;
closetw=50;
function xAnimateOpen(obj,start,end)
{
if(isP=="c"){closeObj.style.height="0px";}
isP="o";
obj.style.position="relative";
obj.style.overflow="hidden";
obj.style.height=start+"px";
openStart=start;
openEnd=end;
openObj=obj;
opentw=60;
_xAnimateOpen();
}
function _xAnimateOpen()
{
openObj.style.height=openStart+"px";
opentw=opentw-5
if(openStart >= openEnd)
 {
 clearTimeout(openAnim);
 isP="";
 return;
 }
openStart=openStart+10;
openAnim=setTimeout(_xAnimateOpen,opentw)
}
var closeAnim;
var closeStart;
var closeEnd;
var closeObj;
function xAnimateClose(obj)
{
isP="c";
closeStart=obj.offsetHeight;
closeEnd=0;
closeObj=obj;
closetw=55;
stayx=setTimeout(_xAnimateClose,"500")
}
var stayx;
function _xAnimateClose()
{
if(closeStart <= closeEnd)
 {
 clearTimeout(closeAnim);
 closeObj.style.height="0px";
 closeObj.innerHTML="";
 isP="";
 return;
 }else{
 
 closeObj.style.height=closeStart+"px";
 }
closeStart=closeStart-10;
closetw=closetw-5;
if(closetw <=10){closetw=10;}
closeAnim=setTimeout(_xAnimateClose,closetw)
}
var isH;
isH="no"
function StayMenu(xobj)
{
isH="yes";
clearTimeout(stayx)
}
function CloseMenu(xobj)
{
isH="no";
xAnimateClose(xobj);
}
function HideMenu(xobj)
{
xobj=document.getElementById(xobj)
xAnimateClose(xobj);
}
var las_obj;
las_obj=""
function Submenu_Over(Obj)
{
if(las_obj){las_obj.className="menusublinks";}
Obj.className="menusublinks_over"
las_obj=Obj
}
function Menu_Click(lnk,tar)
{
if(tar=="")
 {
 window.location=lnk;
 }else{
 window.open(lnk,tar)
 }
}
function pSearch()
{
str=document.frmMain.str.value
window.location="Product.asp?id="+str;
}

function shopalert() {
	alert("COMING SOON");
}

