function zoom(url)
{
t=url;
var CWIN=window.open("","wpictures","top=250,left=450,width=550,height=250,titlebar=0,toolbars=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,border=0")
mhtml="<HEAD><SCRIPT LANGUAGE=\"JavaScript\">";
mhtml+="function resy(){";
mhtml+="w=document.images['myimg1'].width+8;";
mhtml+="h=document.images['myimg1'].height+32;";
mhtml+="window.resizeTo(w,h);";
mhtml+="}";
mhtml+="</SCRIPT></HEAD>";
mhtml+="<body bgcolor='#ffffff' topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 border=0 onblur='window.close();' onload='resy();'>";
mhtml+="<a href='javascript:window.close()'><img name='myimg1' id='myimg1' src='"+t+"' border=0 alt='Close window'></a></body>";
CWIN.document.open()
CWIN.document.write(mhtml)
var myimg=new Image();
myimg.src=t;
CWIN.document['myimg1'].src=myimg.src;
CWIN.document['myimg1'].src=myimg.src;


//w=CWIN.document['myimg1'].width+8;
//h=CWIN.document['myimg1'].height+32;

//if ((w==108)||(h==0))
//{
//alert("zero happend");
//}
//alert("w="+w+"   h="+h);

//CWIN.resizeTo(w,h);
CWIN.document.title="Photo"
CWIN.document.close()
CWIN.focus()
/*
for (ii=50;ii>0;ii--)
{
	CWIN.moveTo(ii*5,ii*5)
}
*/
}// function zoom();

function zoomIn(o)
{
	url=o.src;
	
	zoom(url.replace("thumbnails","big"));
}
