ns4=(navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? 1 : 0;
ie4=(document.all && !document.getElementById)? 1 : 0;
ie5=(document.getElementById && document.all)? 1 : 0;
ns6=(document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? 1: 0;
w3c=(document.getElementById)? 1 : 0;

wid=(ie4||ie5)?window.document.body.clientWidth-20:window.innerWidth-36

//was top:-5; left:2;
if(ns4){document.write ('<layer name="lim"></layer>')}else{document.write ('<div id="lim"></div>')}

outd=""

if(w3c)div1=document.getElementById('lim')
if(ie4)div1=document.all['lim']
if(ns4)div1=document.layers['lim']

if(w3c)pidiv=document.getElementById('product_image')
if(ie4)pidiv=document.all['product_image']
if(ns4)pidiv=document.layers['product_image']


function move_div(x,y){
	if (isNaN(x+y))return
	//if(ns4){div1.moveTo(x,y)}else{div1.style.left=x+'px';div1.style.top=y+'px';}
}

function write_div(text){
	div1.style.visibility='visible';
	if(ns4){
		div1.document.open();
		div1.document.write(text);
		div1.document.close();
	}
	else {div1.innerHTML=text;}
}
 
function largeIM(n){
ondiv=n
		write_div("<table cellpadding='0' cellspacing='0' border='0'><tr><td align='left' bgcolor='#000000'><div style='margin-top : 2px; margin-left : 2px; margin-bottom : 2px; '><b class='MediumWhite'>&nbsp;Click image to close</b></div></td></tr><tr><td><a href=javascript:void(0) onmousedown='show(\"ppForm\");largeIM_hide()' onmouseover='ondiv=1'><img border=1 name=ib src="+n+" width=250></a></td></tr></table>");
		move_div(x,y)
}

function largeIM2(n)
{
	//pidiv.style.visibility='hidden';
	//pidiv.style.height='0';
	ondiv=n;
	write_div("<b>Click image to close</b><br /><a href=javascript:void(0) onmousedown='largeIM_hide()' onmouseover='ondiv=1'><img name=ib src="+n+"></a>");
	//move_div(x,y);
}

function largeIM2(n)
{
	// for product_info additional images
	ondiv=n;
	write_div("<b>Click image to close</b><br /><a href=javascript:void(0) onmousedown='largeIM_hide()' onmouseover='ondiv=1'><img name=ib src="+n+"></a>");
}

function largeIM_hide(){
	ondiv=0;
	t3=window.setTimeout('largeIM_hide2()',100);
}

function largeIM_hide2(){
	if (ondiv==0)
	{
		write_div("");
		div1.style.visibility='hidden';
		move_div(-1000,-1000);
	}
	//pidiv.style.visibility='visible';
}

function thumbIM(n){
ondiv=n
		write_div("<a href=javascript:void(0) onmouseout='thumbIM_hide()' onmouseover='ondiv=1'><img border=0 name=ib src="+n+" width=250></a>");
		move_div(x,y)
}

function thumbIM_hide(){
	ondiv=0;
	t3=window.setTimeout('thumbIM_hide2()',100)
}

function thumbIM_hide2(){
if (ondiv==0){
	write_div("");
	move_div(-1000,-1000)}
}



y=x=0
//function dragIt(evt){if(ie4||ie5){x=window.event.clientX+document.body.scrollLeft; y=window.event.clientY+document.body.scrollTop}else {x=evt.pageX ; y=evt.pageY }}

//document.onmousemove = dragIt
//if(ns4){document.captureEvents( Event.MOUSEMOVE )}