/* Drop down top menu */ var firstimetopmenu=0;function at_show_aux(parent,child)
{var p=document.getElementById(parent);var c=document.getElementById(child);var top=(c["at_position"]=="y")?p.offsetHeight:0;var left=(c["at_position"]=="x")?p.offsetWidth+2:-15;for(;p;p=p.offsetParent)
{top+=p.offsetTop;left+=p.offsetLeft;}
c.style.position="absolute";c.style.top=top+'px';c.style.left=left-10+'px';c.style.visibility="visible";}
function at_show()
{var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);at_show_aux(p.id,c.id);clearTimeout(c["at_timeout"]);}
function at_show1()
{var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);at_show_aux(p.id,c.id);clearTimeout(c["at_timeout"]);firstimetopmenu=1;}
function at_hide()
{var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);c["at_timeout"]=setTimeout("document.getElementById('"+c.id+"').style.visibility = 'hidden'",329);}
function at_click()
{var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);if(c.style.visibility!="visible")at_show_aux(p.id,c.id);else c.style.visibility="hidden";return false;}
function at_attach(parent,child,showtype,position,cursor)
{var p=document.getElementById(parent);var c=document.getElementById(child);p["at_parent"]=p.id;c["at_parent"]=p.id;p["at_child"]=c.id;c["at_child"]=c.id;p["at_position"]=position;c["at_position"]=position;c.style.position="absolute";c.style.visibility="hidden";if(cursor!=undefined)p.style.cursor=cursor;switch(showtype)
{case"click":p.onclick=at_click;p.onmouseout=at_hide;c.onmouseover=at_show;c.onmouseout=at_hide;break;case"hover":p.onmouseover=at_show1;p.onmouseout=at_hide;c.onmouseover=at_show;c.onmouseout=at_hide;break;}}
function deliverActiveX(content)
{document.write(content);} 
/* Side menu drop side */ function col(id,c,c2){document.getElementById("subcat"+id).style.display='';}
function coloff(id,c,c2){document.getElementById("subcat"+id).style.display='none';} function colp(id,c,c2){document.getElementById("subcatp"+id).style.display='';}
function coloffp(id,c,c2){document.getElementById("subcatp"+id).style.display='none';} 
/* Product Popups */
function openpop(id){
	sw = screen.width/2
	sh = screen.height/2
	sww = screen.width/2 +120
	shh = screen.height/2 +90
	newwin = window.open('autoPop.asp',null,'height='+shh+',width='+sww+',scrollbars=yes,resizable=yes,left=10,top=10')
} function openpic(id,pro_id){
	sww = 623
	shh = 610
	newwin = window.open('Pop.asp?pro_id='+pro_id+'&ID='+id,null,'height='+shh+',width='+sww+',scrollbars=yes,resizable=yes,left=10,top=10')
} function openpic3(id,pro_id){
	sww = 623
	shh = 610
	newwin = window.open('pop3.asp?pro_id='+pro_id+'&ID='+id,null,'height='+shh+',width='+sww+',scrollbars=yes,resizable=yes,left=10,top=10')
} /* Global popup */
function popit(it,wid,hegt,L,T)
{
if (wid == null)
wid = 530;
if (hegt == null)
hegt = 390;
if (L == null)
L = 1;
if (T == null)
T = 1;
var sttW = 'width=' + wid;
var sttH = 'height=' + hegt;
var sl = 'left=' + L;
var st = 'top=' + T;
window.open(it, "Preview", 'toolbar=no, ' + sl + ',' + st + ' , scrollbars=yes, resizable=yes,' + sttW + ',' + sttH);
} function clearText(thefield){if (thefield.defaultValue==thefield.value){thefield.value = ""}} function butdown(thefield){thefield.value = "Go"} 
function butup(thefield){ thefield.value = "Search"} /* this is used for the image flickering bug in IE6 */
try {document.execCommand('BackgroundImageCache', false, true);}
catch(e) {} function col2(id,c,c2){}
function coloff2(id,c,c2){}
function Onlycol(id,c,c2){}

