// JavaScript Document

//http://js.revsci.net/gateway/gw.js?csid=H07712

/*
 * Build version UW-11.1.0-94
 */
var rsi_k;
var rsi_now = new Date();
var rsi_csid = 'H07712';
if(typeof(csids)=="undefined"){var csids=[rsi_csid];}else{csids.push(rsi_csid);}var _rsiaa=0;var _rsiba=1;var _rsica=0;var _rsida=0;var _rsiea=0;var _rsifa=1;var _rsiga="0806180";var _rsiha="pix04.revsci.net";var _rsiia="js";var _rsija="b";var _rsika="3";var _rsila=3;var _rsima=new Array();var _rsina=0;var _rsioa;var _rsipa;var _rsiqa;var _rsira;var _rsisa;var _rsita;_rsiua();function DM_cat(Da){_rsioa=Da;}function DM_name(Ea){_rsipa=Ea;}function DM_keywords(st){_rsiqa=st;}function DM_event(Fa){_rsira=Fa;}function DM_addToLoc(n,v){_rsisa=_rsiva(_rsisa,n,v);}function DM_addEncToLoc(n,v){DM_addToLoc(_rsiwa(n),_rsiwa(v));}function DM_setLoc(u){_rsisa=u;}function DM_setCsid(Ga){rsi_csid=Ga;}function rsi_c(Ha){this._rsixa=Ha;}function rsi_ral(Ia){this._rsiaa=Ia;}function rsi_riu(Ja){this._rsiba=Ja;}function rsi_tiu(Ka){this._rsica=Ka;}function rsi_m(La){this._rsida=La;}function rsi_dw(Ma){this._rsiea=Ma;}function rsi_tu(Na){this._rsifa=docW;}function rsi_s(Oa){this._rsiha=Oa;}function rsi_t(Pa){this._rsiia=Pa;}function rsi_en(Qa){this._rsija=Qa;}function rsi_cn(Ra){this._rsika=Ra;}function rsi_us(Sa){this._rsila=Sa;}function DM_tag(){var Ta;if(_rsina==0||_rsida==1){if(typeof(DM_prep)=="function"){DM_prep(rsi_csid);}var Ua=_rsiya();if(_rsiia=="gif"){Ta=new Image(2,3);Ta.src=Ua;_rsima[_rsima.length]=Ta;}else if(_rsiia=="js"){if(_rsiea==1){document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\""+Ua+"\"><"+"/script>");}else{var Va=document.createElement("script");Va.language="JavaScript";Va.type="text/javascript";Va.src=Ua;if(document.body==null){document.getElementsByTagName("head")[0].appendChild(Va);}else{document.body.insertBefore(Va,document.body.firstChild);}Ta=Va;}}_rsina=1;}_rsiua();return Ta;}function _rsiya(){var Wa="";Wa="DM_LOC="+_rsiwa(_rsisa);if(_rsioa){Wa+="&DM_CAT="+_rsiwa(_rsioa);}if(_rsira){Wa+="&DM_EVT="+_rsiwa(_rsira);}if(_rsiqa){Wa+="&DM_KYW="+_rsiwa(_rsiqa);}if(_rsiba==1&&_rsita){Wa+="&DM_REF="+_rsiwa(_rsita);}if(_rsica==1){Wa+="&DM_TIT="+_rsiwa(document.title);}if(_rsipa){Wa+="&DM_NAM="+_rsiwa(_rsipa);}Wa+="&DM_EOM=1";var Xa=location.protocol+"//";var Ya="/"+rsi_csid+"/"+_rsija+_rsika+"/0/"+_rsila+"/"+_rsiga+"/";var Za=Math.floor(Math.random()*1000000000)+"."+_rsiia;var $a=Xa+_rsiha+Ya+Za+"?D="+_rsiwa(Wa)+"&C="+_rsiwa(csids);if(_rsifa){var ab=$a.length;if(ab>=2000){if($a.charAt(1998)=='%'){$a=$a.substr(0,1998);}else if($a.charAt(1999)=='%'){$a=$a.substr(0,1999);}else{$a=$a.substr(0,2000);}}}return $a;}function _rsiza(i){var bb=i.toString(16).toUpperCase();return bb.length<2?"0"+bb:bb;}function _rsiAa(c){var i=c.charCodeAt(0);if(isNaN(i))return "";if(i<128)return "%"+_rsiza(i);if(i<2048)return "%"+_rsiza(0xC0+(i>>6))+"%"+_rsiza(0x80+(i&0x3F));if(i<65536)return "%"+_rsiza(0xE0+(i>>12))+"%"+_rsiza(0x80+(i>>6&0x3F))+"%"+_rsiza(0x80+(i&0x3F));return "%"+_rsiza(0xF0+(i>>18))+"%"+_rsiza(0x80+(i>>12&0x3F))+"%"+_rsiza(0x80+(i>>6&0x3F))+"%"+_rsiza(0x80+(i&0x3F));}var _rsiwa;if(typeof(encodeURIComponent)=="function"){_rsiwa=encodeURIComponent;}else{var _rsiBa=new RegExp("[\x00-\x20]|[\x22-\x26]|[\x2B-\x2C]|\x2F|[\x3A-\x40]|[\x5B-\x5E]|\x60|[\x7B-\x7D]|[\x7F-\uFFFF]","g");_rsiwa=function(v){return v.toString().replace(_rsiBa,_rsiAa);}}function _rsiva(u,n,v){return u+(u.indexOf("?")==-1?"?":"&")+n+"="+v;}function _rsiCa(u){var i=u.indexOf('#');return(i>=0)?u.substr(0,i):u;}function _rsiua(){_rsita=_rsiCa(document.referrer.toString());_rsisa=(_rsiaa==1)?_rsita:_rsiCa(window.location.href);_rsioa=null;_rsipa=null;_rsiqa=null;}



//http://www.channel4.com/media/scripts/oasconfig/oas-config.js


OAS_url ='http://realmedia.channel4.com/RealMedia/ads/';
OAS_listpos = 'Top';
var OAS_query = '?';
var OAS_sitepage = '' // basic config;
//end of configuration
OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
function OAS_NORMAL(pos) {
document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" TARGET=_top>');
document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" BORDER=0 ALT="Click!"></A>');
}

// OAS AD version
function OAS_AD(pos) {
if (OAS_version >= 11 && typeof(OAS_RICH)!='undefined')
 return OAS_RICH(pos);
else
 return OAS_NORMAL(pos);
}

// function to amend list position
function appendListPos(pos) {
	if(document.getElementById("c4ad-"+pos)) {
		(OAS_listpos!="")?OAS_listpos+=","+pos:OAS_listpos+=pos;
	}
}
// returns AD content to visible area
function showAdvertOld(pos) {
	if(document.getElementById("c4ad-"+pos) && document.getElementById("c4ad-"+pos+"-parent")) {
		document.getElementById("c4ad-"+pos).innerHTML = document.getElementById("c4ad-"+pos+"-parent").innerHTML;
	}
}


function showAdvert(pos) {
	if(document.getElementById("c4ad-"+pos) && document.getElementById("c4ad-"+pos+"-parent")) {
	var ad_div = document.getElementById("c4ad-"+pos+"-parent");
	var target_div = document.getElementById("c4ad-"+pos);
	target_div.style.display='block';
	var ele_array = new Array();
	for (i=0;i<ad_div.childNodes.length;i++){
	    if(ad_div.childNodes[i].tagName != '!' && ad_div.childNodes[i].tagName != 'SCRIPT'){
		ele_array[ele_array.length] = ad_div.childNodes[i];
	    }
	}
	for (i=0;i<ele_array.length;i++){
	    target_div.appendChild(ele_array[i]);
	}
    }
}

var OAS_query="";
//returns PIPED query and removes further Query Parameters

var OAS_AccountTarget = function(url) {
var OAS_sitepage=url;
var OAS_init = function (url) { 
//remove protocol
OAS_sitepage = url.replace(/^\w+:\/\//,"");
OAS_sitepage = (OAS_sitepage.indexOf("?")!=-1)?OAS_sitepage.substring(0,OAS_sitepage.indexOf("?")):OAS_sitepage;
OAS_sitepage = OAS_rewriteRules(OAS_sitepage);
};
var C4sites= function () {
var C4siteSections = ["4car","4homes","4laughs","4od","4producers","bigbrother","community","culture","documentaries","entertainment","film","food","fourdocs","germ","health","history","interact","learning","life","lifestyle","money","more4","music","news","science","simulcast","sport","tv","video","watch_online","thetvshow"];
return 	C4siteSections.toString();
};
pipeFirstParam = function (t) {
if(t.indexOf("?")!=-1 && t.indexOf("=")!=-1) {
	s = t.substring(t.indexOf("?")+1,t.indexOf("=")+1)
		if(t.indexOf("&")!=-1) {
			//requires middle
			m = t.substring(t.indexOf("=")+1,t.split("&")[0].length)
			//e = t.substring(t.indexOf("&"),t.length);
			return "?"+(s+"|"+m+"|");
		} else {
			e = t.substring(t.indexOf("=")+1,t.length)
			return "?"+(s+"|"+e+"|");
		}
	}
return "?";
};
var params = function (t) {
	if(t.indexOf("?")!=-1) {
		OAS_query = pipeFirstParam(t);
	} else {
		OAS_query="?";
	}
	
};
params(url);
var lastDir = function(t) {
//Find Last Directory in target
var endDir = false;
var test = t.match(/\/([\w-_]+$)/);
	if(test!=null || t.indexOf("/")==-1) {
		endDir=true;
	}
return endDir;
};
var removeQuery = function (t) {
//Strip Query : t == target;
	if(t.indexOf("?")!=-1) {
		t=t.split("?")[0]
	}
	return t;
};
var addIndex = function (t) {
if(t.charAt(t.length-1)=="/") {
	//end of URL contains slash add index.html
	t+="index.html"
} else {
	//none or many slashes, either an end directory, file or query
	if(lastDir(t)) {
	t+="/index.html";
	} 
}
return t;
};
var OAS_rewriteRules = function (t) {
	
	t=addIndex(t);
	t=removeQuery(t);	
	var fDir = t.match(/\/([\w-_]+)/);
	if(fDir!=null) {
		//fName = fDir[0].replace(/\//g,"");
		if((","+C4sites()).match(","+fDir[1])) {
			t = t.replace(fDir[0],""); 
			t = t.replace(".channel4.","."+fDir[1]+".channel4.");
		} 
	}
//allows ads to be delivered from test accounts for all non prod accounts
t = t.replace(/int\.|dev\.|test\.|uat\.|stage\./,"test.")
return t;
};
OAS_init(url);
if(OAS_sitepage.match(/^(channel4)/)) {
	OAS_sitepage="www."+OAS_sitepage;
}
return OAS_sitepage;
};
OAS_sitepage=OAS_AccountTarget(document.location.href);


//http://www.channel4.com/media/scripts/oasconfig/admanager-v3.js


// create dynamic positions
if (screen.width>1000 && screen.width<1152)
{
OAS_listpos+=",x07";
}
if (screen.width>=1152)
{
OAS_listpos+=",x08";
}


// Overlay Ad Manager V2.0 to run with OAS tags
// keep cookie alive for 1 month not required
var nextmonth = new Date()
nextmonth.setMonth(nextmonth.getMonth()+1);
var allcookies = document.cookie;
if(!allcookies) {
	document.cookie="c4ADcontrol=0; expires=" + nextmonth.toGMTString() + "; path=/; ";
} else {
	c4ADcookie = allcookies.indexOf("c4ADcontrol=");
	if(c4ADcookie==-1){
		document.cookie="c4ADcontrol=0; expires=" + nextmonth.toGMTString() + "; path=/; ";;
	}
	if(c4ADcookie!=-1){
	c4AdstringStart = c4ADcookie + 12;
	e = allcookies.indexOf(";", c4AdstringStart);
	c4ADcookie = allcookies.substring(c4AdstringStart,((e!=-1)?e:allcookies.length));
	
	increments  = Number(c4ADcookie);
	if(c4ADcookie!=1 || c4ADcookie!=0 || c4ADcookie!=3 ) {
	c4ADcookie=0;
	}
	if(increments==0) {
		//set position
		if(OAS_listpos!="") {
		OAS_listpos+=",Middle";
		} else {
		OAS_listpos+="Middle";
		}
		increments=2;
	} else if(increments!=0) {
		increments--;
	}
	document.cookie="c4ADcontrol="+increments+"; expires=" + nextmonth.toGMTString() + "; path=/; ";
	}
	//alert(document.cookie)
}

//AD Control centre
appendListPos("Bottom");
appendListPos("Middle1");
appendListPos("Left");
appendListPos("Left1");
appendListPos("Left2");
appendListPos("Left3");
appendListPos("Right");
appendListPos("x01");
appendListPos("x02");
appendListPos("x03");
appendListPos("x04");
appendListPos("x05");
appendListPos("x06");
appendListPos("x09");
//appendListPos("x10");
appendListPos("x11");
appendListPos("x14");
appendListPos("x15");
OAS_listpos+=",x10"



//http://www.channel4.com/media/scripts/revsci/revsci.js
if(typeof rsinetsegs != "undefined") {
	var segQS = rsinetsegs.length > 0 ? "s=" + rsinetsegs[0] : "";
	for (var i = 1; i < rsinetsegs.length; i++) {
		segQS += ("&s" + "=" + rsinetsegs[i]);
	}
	if(OAS_query=="") {
		OAS_query = "?"+segQS;
	}	
	
	if(OAS_query.indexOf("?")!=-1) {
		if(OAS_query.length==1) {
			OAS_query += segQS;
		} else {
		OAS_query += "&"+segQS;	
		}
		
	}
		
}

//http://www.channel4.com/media/scripts/oasconfig/oas-version.js

OAS_version = 11;
if (navigator.userAgent.indexOf('Mozilla/3') != -1)
OAS_version = 10;
if (OAS_version >= 11)
document.write('<SC'+'RIPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + OAS_query + '"><\/SCRIPT>');

//siteads.js
showAdvert("Bottom");
showAdvert("Left");
showAdvert("Left1");
showAdvert("Left2");
showAdvert("Left3");
showAdvert("Right");
showAdvert("Middle1");
showAdvert("x01");
showAdvert("x02");
showAdvert("x03");
showAdvert("x04");
showAdvert("x05");
showAdvert("x06");
// 07 and 08 are skys
//showAdvert("x10");
showAdvert("x09");
showAdvert("x11");
showAdvert("x14");
showAdvert("x15");


//document.write("OAS_listpos: " + OAS_listpos +"\nOAS_sitepage: "+OAS_sitepage );

if(OAS_listpos.indexOf("Middle")!=-1) OAS_AD('Middle');

//Added for NC
function return_OASRequester(as,p) {
    u = OAS_url;
	a = 'adstream_'+as+'.ads/';
	t = OAS_sitepage;
	p = (p!=null)?p:OAS_listpos;
	s = OAS_rns;
	q = OAS_query;
	OAS_Requester = u + a + t + '/1' + s + '@' + p + q;
//	alert("done");
	return OAS_Requester;
}
//alert(return_OASRequester("sx","positions")) positions is optional;


function testing(param1, param2) {
 
	//alert("Getting Ads");

}


//swfobject.js

/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

//Perform functions
function popUp(t,clipId,videoIndex) {
var URL = "http://www.4sport.premiumtv.co.uk/page/Popup/0,,12658,00.html?clipId=" + clipId + "&startSecs=" + t + "&videoIndex=" + videoIndex;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=625,height=373,left = 0,top = 0');");
}


function getEmbedCode(videoId) {
  var embedCode = "<script type=\"text/javascript\" src=\"http://www.4sport.premiumtv.co.uk/ptvFlash/channel4/merged/generic.js\"></script><div id=\"flashElement\">You need to install the latest Flash plugin to view this content</div><script type=\"text/javascript\"> var so = new SWFObject(\"http://www.4sport.premiumtv.co.uk/ptvFlash/channel4/merged/generic.swf\", \"generic\", \"625\", \"373\", \"9\", \"#000000\"); so.addParam(\"allowScriptAccess\", \"always\"); so.addParam(\"base\", \"http://www.4sport.premiumtv.co.uk/\");  so.addParam(\"allowFullScreen\", \"true\"); so.addVariable(\"configPath\", \"nameValue/nameValueXML/0,,12658~633,00.xml\");so.addVariable(\"clipId\", \"";
  embedCode += videoId;
  embedCode += "\"); so.write(\"flashElement\");</script>";
  return embedCode;
}
