function launchVideoWindow(url) {
	features="status=yes,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no"
	winName="video";
	winUrl = "video/"+url ;
	w=360 ;
	h=395 ;
	if(screen.width){
 		var winl = (screen.width-w)/2;
	    var wint = (screen.height-h)/2;
 	}else {
		winl = 0;wint =0; 
	}
 	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
 		var settings = 'height=' + h + ',';
 		settings += 'width=' + w + ',';
 		settings += 'top=' + wint + ',';
 		settings += 'left=' + winl + ',';
 		settings += features;
	win = window.open(winUrl,winName,settings);
	if( !win ) { 
		alert("Please Turn Off Popup Blocker")
		return; 
	}	
	win.window.focus();
}


function launchImageWindow(url,width,height) {
	
	features="status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no"
	winName="video";
	winUrl = "photos/"+url+".html" ;
	w=width ;
	h=height ;
	if(screen.width){
 		var winl = (screen.width-w)/2;
	    var wint = (screen.height-h)/2;
 	}else {
		winl = 0;wint =0; 
	}
 	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
 		var settings = 'height=' + h + ',';
 		settings += 'width=' + w + ',';
 		settings += 'top=' + wint + ',';
 		settings += 'left=' + winl + ',';
 		settings += features;
	
	win = window.open(winUrl,winName,settings);
	win.resizeTo(w+40,h+70) ;
		
	if( !win ) { 
		alert("Please Turn Off Popup Blocker")
		return; 
	}	
	win.window.focus();
}


