window.onload = function() {	
	/*viewers  = document.getElementsByClassName("photoViewer");
	
	for(i=0;i<viewers.length;i++){
		obj = viewers[i];		
		obj.onclick = function() { showViewer(this); }
	}*/
}

function openWin2(url,name,w,h,features)
{	
	var scrW = screen.width;
	var scrH = screen.height;	
	
	var top  = ((scrH - h)/2);
	var left = ((scrW - w)/2);

	features2 = "width=" + w + ",";
	features2+= "height=" + h + ",";
	features2+= "top=" + top + ",";
	features2+= "left=" + left + ",";
	features2+= features;
	
	try {
		handle = window.open(url,name,features2);
		handle.focus();			
	}
	catch(e) {
		alert("It seems that you have a pop-up blocker enabled\n" + 
			  "Please make sure you allow pop-ups from this site.\n" + 
			  "Otherwise you won't be able to view the demonstration!");
	}
}

function openWin(url,name,features)
{	
	handle = window.open(url,name,features);
	handle.focus();	
}