// JavaScript Document



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

if(ns4){document.write ('<layer name="di1"></layer>')}else{document.write ('<div id="di1" style="position:absolute;z-index:100" ></div>')}

outd=""

if(w3c)div1=document.getElementById('di1')
if(ie4)div1=document.all['di1']
if(ns4)div1=document.layers['di1']

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){
	if(ns4){
		div1.document.open();
		div1.document.write(text);
		div1.document.close();
	}
	else {div1.innerHTML=text;}
}
 
function big(n){
ondiv=n
var x, obj;

var rdm=Math.floor(Math.random()*11);

	write_div("<div style='width:100px;height:100px'><div id='loading' name='loading' style='padding:2px;width:300px;height:16px;background:#9FC2F7;font-size:14px;color:white;font-family:Arial'><center>Please Wait!&nbsp;&nbsp;&nbsp;&nbsp;Loading Image...</center></div><Iframe border=0 frameborder=0 cellpadding=0 marginwidth=0 marginheight=0 src='http://www.ultimatewasher.com/imgpop.php?url="+ n +"&nc="+rdm+"' name='printframe' id='printframe' style='z-index:400;width:300px;height:300px;border-width:0'></Iframe></div>");
	
	
//document.getElementById('printframe').innerHTML = "<a href=javascript:void(0) onmousedown='big_hide()' onmouseover='ondiv=1'><img border=0 name=ib src="+n+"></a>";
	//if(document.body.scrollTop > screen.availHeight)
	//{}
	

	     move_div("174",y-100);
		
		if(screen.availHeight < 700)
		{setTimeout('window.scroll(0,y-screen.availHeight / 4 + 34)',100)}
		else if(screen.availHeight > 700 && screen.availHeight < 900)
		{setTimeout('window.scroll(0,y-screen.availHeight / 4 + 70)',100)}
		else
		{setTimeout('window.scroll(0,y-screen.availHeight / 4)',100)}
	
	if(document.getElementById("bottomspace"))
	{
	document.getElementById('bottomspace').style.visibility = 'visible';
	document.getElementById("bottomspace").style.height='400px';
}	



//document.getElementById('printdiv').style.visibility = 'visible';
//document.getElementById('printdiv').width = '800px';
//document.getElementById('printdiv').height = '800px';
//document.getElementById('printframe').width = '800px';
//document.getElementById('printframe').height = '800px';


//frames['printframe'].location.href = n;
}

function big_hide(){
	ondiv=0;
	t3=window.setTimeout('big_hide2();document.getElementById("bottomspace").style.height="0";document.getElementById("bottomspace").style.visibility = "hidden";',100);
	
	//document.getElementById('printframe').width = '0';
	//document.getElementById('printframe').height = '0';	
	//document.getElementById('printframe').style.visibility = 'hidden'; 
	//document.getElementById('printdiv').width = '0';
	//document.getElementById('printdiv').height = '0';	
	//document.getElementById('printdiv').style.visibility = 'hidden'; 
}

function big_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 )}
