var timerId;
function roll(imgName,gifName)
{
 document[imgName].src = gifName;
}

function openBigImage(imgName,width,height)
{
 url = "images/" + imgName;
 //url = "smallwindow.html?"+imgName
// handle=window.open(url,'sanen','height=540,width=790,resizable=no,scrollbars=no,menubar=no,status=no,toolbar=no,locationbar=no,statusbar=no, left=0, top=0');
	if(width=='' || width == undefined || width == null)
	{
		 handle=window.open(url,'sanen','resizable=no,scrollbars=no,menubar=no,status=no,toolbar=no,locationbar=no,statusbar=no, left=0, top=0');
	}
	else
	{
		tmpwidth = parseInt(width) + 15;
		tmpheight = parseInt(height) + 20;
		var n = eval("window.open(url,'sanen1','width="+tmpwidth+",height="+tmpheight+",resizable=no')");
		n.focus();
		n.moveTo(0,0);
	}

}

/*function loadImg()
{
	//alert("called");
	var tmp = (window.location.href).split("?");
	var imgName = tmp[1];
	var imgPath = "images/" + imgName;
	roll('bigImg',imgPath);
	widthW = document['bigImg'].width + 20;
	heightW = document['bigImg'].height + 20;
	url1 = "smallWindow2.html?"+imgPath
	var n = eval("window.open(url1,'sanen1','width="+widthW+",height="+heightW+",resizable=no')");
	n.focus();
	n.moveTo(0,0);
	this.close();
}


function showImg()
{
	var tmp = (window.location.href).split("?");
	var imgName = tmp[1];
	roll('bigImage',imgName);
}*/
