//<!--


//Function for generating "Video/Photos" pop-open windows:


function openPopWin(url) { 


	/*var browserW = document.body.scrollWidth;
	var browserH = document.body.scrollHeight;
	
	alert (browserW);
	alert (browserH);*/
	

	var winWidth = 425; //SO it falls right on top of main window pagearea
	var winHeight = 580;
	
	var x = (640 - winWidth)/2, y = (480 - winHeight)/2;
	if (document.body) {
		y = (document.body.scrollHeight - winHeight)/2;
		x = ((document.body.scrollWidth - winWidth)/2) ;  // 5px adjust for shadow area on page+ 5
	}
	if (document.body.scrollWidth > 1800) {
		x = ((document.body.scrollWidth/2) - winWidth)/2;
	}
	detailWin = window.open(url, "popWin", "width=" + winWidth + ",height=" + winHeight + ",status=0,scrollbars=no,toolbar=no,resizable=yes,screenX=" + x + ",screenY=" + y + ",top=" + y + ",left=" + x);
		//if (!is_safari) { window.self.name = 'MAIN'; }
		
		//detailWin.focus();


	
/*	var winWidth = 770;
	var winHeight = 600;
	
	var x = (640 - winWidth)/2, y = (480 - winHeight)/2;
	if (screen) {
		y = (screen.availHeight - winHeight)/2;
		x = (screen.availWidth - winWidth)/2;
	}
	if (screen.availWidth > 1800) {
		x = ((screen.availWidth/2) - winWidth)/2;
	}
	window.open(url, "detailWin", "width=" + winWidth + ",height=" + winHeight + ",screenX=" + x + ",screenY=" + y + ",top=" + y + ",left=" + x);
		if (!is_safari) { window.self.name = 'MAIN'; }
		*/
}




	//popupWin = window.open(url, 'detailWin', 'width=626,height=385,status=0,scrollbars=no,toolbar=no,resizable=yes');




//-->