// Browser / OS Detection
var IE = (document.all) ? 1 : 0;
var DOM = (document.getElementById) ? 1 : 0;
var NS4 = (document.layers) ? 1 : 0;
var MAC = ((navigator.appVersion.indexOf("PPC") >0) || (navigator.appVersion.indexOf("Mac") >0)) ? 1 : 0;

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus();}
window.location = "http://www.rsvpthemovie.com/updates.htm";
 
}

function NewWindowb(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}

function openWin(url,name,width,height) {
	popupWin = window.open(url, name, 'menubar=1,toolbar=1,location=1,directories=0,status=1,scrollbars=1,resizable=1,width=' +width +',height=' +height +',left=5,top=5');
}

function showCaption(caption,visibility){
	if (visibility == 1){state="visible";}
	else {state="hidden";}

	if (DOM){
		document.getElementById('castphoto'+caption).style.visibility = state;
		document.getElementById('castphoto'+caption+'a').style.visibility = state;
		//alert(caption);
		return;
	}
	if (IE){//for IE4
		document.all['castphoto'+caption].visibility = state;
		document.all['castphoto'+caption+'a'].style.visibility = state;
		//alert(caption);
		return;
	}
}