// functions for video

function seriesVideo(formX) {
	var num = eval("document." + formX + ".menudo.selectedIndex");
	var infostring = eval("document." + formX + ".menudo.options[num].value");
	if (infostring == "blank") {
		alert("Choose a clip first from the pulldown menu, then click your player to view!") ;
		return;
	}
	var vplayWin = window.open('/scripts/video/vidplayer.html?movie=' + infostring,'vplay','width=700,height=515,status=yes');
}

// function for kostas flash objects


var extWin;

function openWin(url,w,h){
	var x = (screen.width - w)/2;
	var y = (screen.height - h)/3;
	if(typeof(extWin)=="undefined" || extWin.closed==true){
		extWin = window.open(url,"external","width="+w+",height="+h+",left="+x+",top="+y+",toolbar=no,location=no,menubar=no,status=no,scrollbars=no,resizable=no");
		if(extWin.opener == null) extWin.opener = window;
		extWin.w = w;
		extWin.h = h;
	} else {
		if(w != extWin.w || h != extWin.h){
			extWin.resizeTo(w,h);
			extWin.moveTo(x,y);
			extWin.w = w;
			extWin.h = h;
		}
		if(extWin.location != url) extWin.location = url;
		extWin.focus();
	}
}

var videoIcon = "<img src=\"\/sopranos\/img\/template\/video_icon.gif\" alt=\"VIDEO\" title=\"VIDEO\" width=\"47\" height=\"13\" border=\"0\" \/>";



function winOpen(url,width,height)
{
	window.open(
	url,
	"HBOwinpop",
	"screenX=10,screenY=10,left=10,top=10,toolbar=no,location=no,resizable=no,scrollbars=no,status=no,height=" + height + ",width=" + width);
}