//arImageSrc = new Array ("loading.gif","loaded.gif");
//arImageList = new Array ();
//for (counter in arImageSrc) {
//arImageList[counter] = new Image();
//arImageList[counter].src = arImageSrc[counter];
//}
var height = screen.height;
var width = screen.width;
var leftpos = (width - 600) / 2;
var toppos = (height - 600) / 2;
function encode(str){ // Netscape fix thanks to Cyanide_7
return escape(str.replace(/ /g,'+'));
}
function print_zoom(what,w,h) {
var url = 'viewer.html?pic='+encode(what)+'&w='+w+'&h='+h;
window.open(url,'WIN','scrollbars=no,status=no,toolbar=no,resizable=0,location=no,menu=no,width='+ w +',height='+ h +',left=' + leftpos + ',top=' + toppos);
}
function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
   }
}
return params;
}
params = getParams();
/*function resize() {
if (eval(pic).height) {

		var name = navigator.appName
		
		if (name == "Microsoft Internet Explorer") {
			//if(eval(pic).width < 600){
			myHeight = eval(pic).height + 40;
			myWidth = eval(pic).width + 12;
			//} else {
			//myHeight = 600 + 40;
			//myWidth = 600 + 12;
			//}
		} else {
		myHeight = eval(pic).height + 9;
		myWidth = eval(pic).width;
		}
		
		clearTimeout();
		var height = screen.height;
		var width = screen.width;
		var leftpos = (width - 600) / 2;
		var toppos = (height - 600) / 2; 
		//self.moveTo(toppos, leftpos);
		self.resizeTo(myWidth, myHeight);
		//document.il.src = 'loaded.gif';
}
else setTimeOut(resize(), 100);
}*/