var optWin = 'scrollbars=no,width=340,height=445,left=100,top=100';
function popVid() {
	vidWin = window.open('about:blank','',optWin);
	with (vidWin.document) {
		writeln('<html><head><title>Loading...</title><style>body{margin:0;padding:10px;background:#000000;}</style></head>');
		writeln('<body bgcolor="#000000" onload="self.focus()">');
		//writeln('<div id="videgoPlayer_d638zn1y">'+vidURL+'</div>');
		writeln('<div id="videgoPlayer_d638zn1y"></div>');
		writeln('<sc'+'ript type="text/javascript" src="http://vidego.multicastmedia.com/templates/js/swfobject.js"></sc'+'ript>');
		writeln('<sc'+'ript language="javascript" type="text/javascript">');
		writeln('function get_url_parse(name){name =');
		writeln('name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"); var regex = new');
		writeln('RegExp("[\?&]"+name+"=([^&#]*)"); var results =');
		writeln('regex.exec(window.location.href); return results == null ? "" : results[1];}');
		writeln('var vidego_video_uuid = get_url_parse(\'vidego_video_uuid\');');
		writeln('var playerDiv = document.getElementById("videgoPlayer_d638zn1y").style;');
		writeln('playerDiv.display = "inline";');
		writeln('var so = new SWFObject("http://vidego.multicastmedia.com/templates/V9-320chromeless.swf",');
		writeln('"live_player", "320", "425", "9", "#000000");');
		writeln('so.addVariable("ts", "1238094748");');
		writeln('so.addVariable("projectid", "37010");');
		writeln('so.addVariable("projectuuid", "d638zn1y");');
		writeln('so.addVariable("programid", vidego_video_uuid);');
		writeln('so.addVariable("programuuid", vidego_video_uuid);');
		writeln('so.addVariable("loadingdomain", "http://vidego.multicastmedia.com");');
		writeln('so.addVariable("serviceURL", "http://vidego.multicastmedia.com/services/index.php");');
		writeln('so.addVariable("doResize", "false");');
		writeln('so.addParam("allowFullScreen", "true");');
		writeln('so.addParam("allowScriptAccess", "always");');
		writeln('so.addVariable("typePlayer", "vod");');
		writeln('so.write("videgoPlayer_d638zn1y");');
		writeln('</sc'+'ript>');
		writeln('</body></html>');
		close();
	}
	if(window.focus) { vidWin.focus(); }
	return false;
}
function popVidOLD(vidURL) {
	vidWin = window.open(vidURL,'',optWin);
	with (vidWin.document) {
		writeln('<html><head><title>Loading...</title><style>body{margin:0;padding:10px;background:#000000;}</style></head>');
		writeln('<body bgcolor="#000000" onload="self.focus()">');
		//writeln('<div id="videgoPlayer_d638zn1y">'+vidURL+'</div>');
		writeln('<div id="videgoPlayer_d638zn1y"></div>');
		writeln('<sc'+'ript type="text/javascript" src="http://vidego.multicastmedia.com/templates/js/swfobject.js"></sc'+'ript>');
		writeln('<sc'+'ript language="javascript" type="text/javascript">');
		writeln('function get_url_parse(name){name =');
		writeln('name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"); var regex = new');
		writeln('RegExp("[\?&]"+name+"=([^&#]*)"); var results =');
		writeln('regex.exec(window.location.href); return results == null ? "" : results[1];}');
		writeln('var vidego_video_uuid = get_url_parse(\'vidego_video_uuid\');');
		writeln('var playerDiv = document.getElementById("videgoPlayer_d638zn1y").style;');
		writeln('playerDiv.display = "inline";');
		writeln('var so = new SWFObject("http://vidego.multicastmedia.com/templates/V9-320chromeless.swf",');
		writeln('"live_player", "320", "425", "9", "#000000");');
		writeln('so.addVariable("ts", "1238094748");');
		writeln('so.addVariable("projectid", "37010");');
		writeln('so.addVariable("projectuuid", "d638zn1y");');
		writeln('so.addVariable("programid", vidego_video_uuid);');
		writeln('so.addVariable("programuuid", vidego_video_uuid);');
		writeln('so.addVariable("loadingdomain", "http://vidego.multicastmedia.com");');
		writeln('so.addVariable("serviceURL", "http://vidego.multicastmedia.com/services/index.php");');
		writeln('so.addVariable("doResize", "false");');
		writeln('so.addParam("allowFullScreen", "true");');
		writeln('so.addParam("allowScriptAccess", "always");');
		writeln('so.addVariable("typePlayer", "vod");');
		writeln('so.write("videgoPlayer_d638zn1y");');
		writeln('</sc'+'ript>');
		writeln('</body></html>');
		close();
	}
	if(window.focus) { vidWin.focus(); }
	return false;
}
function addslashes(str) {
	str=str.replace(/\'/g,'\\\'');
	str=str.replace(/\"/g,'\\"');
	str=str.replace(/\\/g,'\\\\');
	str=str.replace(/\0/g,'\\0');
	return str;
}
function stripslashes(str) {
	str=str.replace(/\\'/g,'\'');
	str=str.replace(/\\"/g,'"');
	str=str.replace(/\\\\/g,'\\');
	str=str.replace(/\\0/g,'\0');
	return str;
}

