theTv3Rotator=function(){jQuery("ul.image_reel li").each(function(d){jQuery("div.paging").append("<a class='' style='display:none;' href='#' rel='"+(d+1)+"'>"+(d+1)+"</a>")});jQuery("div.paging").prepend("<a id='btnPrev' href='#' rel='-1'></a>");jQuery("div.paging").append("<a id='btnNext' href='#' rel='-1'></a>");jQuery(".paging a:first").next().addClass("active");var a=jQuery(".image_reel").width();var b=jQuery(".image_reel img").size();var c=a*b;jQuery(".image_reel").css({width:c});rotate=function(){var e=jQueryactive.attr("rel")-1;var d=e*a;jQuery(".paging a.active").removeClass("active");jQueryactive.addClass("active");jQuery(".image_reel").fadeOut("100",function(){jQuery(".image_reel li").fadeOut(50)});jQuery(".image_reel").animate({left:-d},300);jQuery(".image_reel").fadeIn("50",function(){jQuery(".image_reel li").fadeIn(30)})};rotateSwitch=function(){play=setInterval(function(){jQueryactive=jQuery(".paging a.active").next().attr("rel")=="-1"?jQuery(".paging a:first").next():jQuery(".paging a.active").next();if(jQueryactive.length===0){jQueryactive=jQuery(".paging a:first")}rotate()},6000)};rotateSwitch();jQuery(".image_reel a").hover(function(){clearInterval(play)},function(){rotateSwitch()});jQuery("#btnPrev").click(function(){jQueryactive=jQuery(".paging a.active").attr("rel")=="1"?jQuery(".paging a:last").prev():jQuery(".paging a.active").prev();clearInterval(play);rotate();rotateSwitch();return false});jQuery("#btnNext").click(function(){jQueryactive=jQuery(".paging a.active").attr("rel")==(jQuery(".paging a").length-2)?jQuery(".paging a:first").next():jQuery(".paging a.active").next();clearInterval(play);rotate();rotateSwitch();return false})};theFourRotator=function(){$(".rtr_obj_holder_four li").each(function(d){$("div.paging_four").append("<a class='rtrTabs_four' href='#' rel='"+(d+1)+"'>"+(d+1)+"</a>")});$(".paging_four").prepend("<a id='rtr_btnPrev_four' href='#' rel='-1'></a>");$(".paging_four").append("<a id='rtr_btnNext_four' href='#' rel='-1'></a>");$(".paging_four a:first").next().addClass("active");var b=$(".rtr_obj_holder_four").width();var c=$(".rtr_obj_holder_four li").size();var a=b*c;$(".rtr_obj_holder_four").css({width:a});rotateFour=function(){var d=fourRtrActive.attr("rel")-1;var e=d*b;$(".paging_four a.active").removeClass("active");fourRtrActive.addClass("active");$(".rtr_obj_holder_four").fadeOut("100",function(){$(".rtr_obj_holder_four li").fadeOut(30)});$(".rtr_obj_holder_four").animate({left:-e},60);$(".rtr_obj_holder_four").fadeIn("50",function(){$(".rtr_obj_holder_four li").fadeIn(30)})};rotateSwitchFour=function(){play=setInterval(function(){fourRtrActive=$(".paging_four a.active").next().attr("rel")=="-1"?$(".paging_four a:first").next():$(".paging_four a.active").next();if(fourRtrActive.length===0){fourRtrActive=$(".paging_four a:first")}rotateFour()},6000)};rotateSwitchFour();$(".rtr_obj_holder_four a").hover(function(){clearInterval(play)},function(){rotateSwitchFour()});$("a.rtrTabs_four").click(function(){fourRtrActive=$(this);clearInterval(play);rotateFour();rotateSwitchFour();return false});$("#rtr_btnPrev_four").click(function(){fourRtrActive=$(".paging_four a.active").attr("rel")=="1"?$(".paging_four a:last").prev():$(".paging_four a.active").prev();clearInterval(play);rotateFour();rotateSwitchFour();return false});$("#rtr_btnNext_four").click(function(){fourRtrActive=$(".paging_four a.active").attr("rel")==($(".paging_four a").length-2)?$(".paging_four a:first").next():$(".paging_four a.active").next();clearInterval(play);rotateFour();rotateSwitchFour();return false})};theFourKidsRotator=function(){$(".rtr_obj_holder_four_kids li").each(function(d){$("div.paging_four_kids").append("<a class='rtrTabs_four_kids' href='#' rel='"+(d+1)+"'>"+(d+1)+"</a>")});$(".paging_four_kids").prepend("<a id='rtr_btnPrev_four_kids' href='#' rel='-1'></a>");$(".paging_four_kids").append("<a id='rtr_btnNext_four_kids' href='#' rel='-1'></a>");$(".paging_four_kids a:first").next().addClass("active");var b=$(".rtr_obj_holder_four_kids").width();var a=$(".rtr_obj_holder_four_kids li").size();var c=b*a;$(".rtr_obj_holder_four_kids").css({width:c});rotateFourKids=function(){var e=fourKidsRtrActive.attr("rel")-1;var d=e*b;$(".paging_four_kids a.active").removeClass("active");fourKidsRtrActive.addClass("active");$(".rtr_obj_holder_four_kids").fadeOut("100",function(){$(".rtr_obj_holder_four_kids li").fadeOut(30)});$(".rtr_obj_holder_four_kids").animate({left:-d},60);$(".rtr_obj_holder_four_kids").fadeIn("50",function(){$(".rtr_obj_holder_four_kids li").fadeIn(30)})};rotateSwitchFourKids=function(){play=setInterval(function(){fourKidsRtrActive=$(".paging_four_kids a.active").next().attr("rel")=="-1"?$(".paging_four_kids a:first").next():$(".paging_four_kids a.active").next();if(fourKidsRtrActive.length===0){fourKidsRtrActive=$(".paging_four_kids a:first")}rotateFourKids()},6000)};rotateSwitchFourKids();$(".rtr_obj_holder_four_kids a").hover(function(){clearInterval(play)},function(){rotateSwitchFourKids()});$("a.rtrTabs_four_kids").click(function(){fourKidsRtrActive=$(this);clearInterval(play);rotateFourKids();rotateSwitchFourKids();return false});$("#rtr_btnPrev_four_kids").click(function(){fourKidsRtrActive=$(".paging_four_kids a.active").attr("rel")=="1"?$(".paging_four_kids a:last").prev():$(".paging_four_kids a.active").prev();clearInterval(play);rotateFourKids();rotateSwitchFourKids();return false});$("#rtr_btnNext_four_kids").click(function(){fourKidsRtrActive=$(".paging_four_kids a.active").attr("rel")==($(".paging_four_kids a").length-2)?$(".paging_four_kids a:first").next():$(".paging_four_kids a.active").next();clearInterval(play);rotateFourKids();rotateSwitchFourKids();return false})};enlargeThumbnails=function(){jQuery(".thumbList").hover(function(){jQuery(this).css({"z-index":"10"});jQuery(this).find("img").addClass("hover").stop().animate({marginTop:"-70px",marginLeft:"-45px",top:"50%",left:"50%",width:"96px",height:"135px"},400)},function(){jQuery(this).css({"z-index":"0"});jQuery(this).find("img").removeClass("hover").stop().animate({marginTop:"0",marginLeft:"0",top:"0",left:"0",width:"75px",height:"105px"},400)})};function theKidsTeaseRandomiser(){$(".tsr_kids_180").each(function(){var a=Math.floor(Math.random()*3);var a=a+1;$(this).css({backgroundImage:"url(/Portals/0/skins/FOUR/i/art_templates/bg_kids_art_0"+a+"a.png)"});$(this).hover(function(){$(this).css({backgroundPosition:"0px 0px"})},function(){$(this).css({backgroundPosition:"-180px 0px"})})})}$(document).ready(function(){if($(".rtr_wrapper").length){theTv3Rotator()}if($(".rtr_wrapper_four").length){theFourRotator()}if($(".rtr_wrapper_four_kids").length){theFourKidsRotator()}if($(".tsr_kids_180").length){theKidsTeaseRandomiser()}jQuery("#q").focus(function(){if(jQuery(this).val()==$(this).attr("title")){jQuery(this).val("")}}).blur(function(){if(jQuery(this).val()==""){jQuery(this).val($(this).attr("title"))}})});function hasClass(b){var a=false;if(b.getAttributeNode("class")!=null){a=b.getAttributeNode("class").value}return a}function stripe(c){var f=false;var b=arguments[1]?arguments[1]:"#fff";var a=arguments[2]?arguments[2]:"#eee";var n=document.getElementById(c);if(!n){return}var o=n.getElementsByTagName("tbody");for(var l=0;l<o.length;l++){var m=o[l].getElementsByTagName("tr");for(var k=0;k<m.length;k++){if(!hasClass(m[k])&&!m[k].style.backgroundColor){var g=m[k].getElementsByTagName("td");for(var e=0;e<g.length;e++){var d=g[e];if(!hasClass(d)&&!d.style.backgroundColor){d.style.backgroundColor=f?b:a}}}f=!f}}}function postBackHiddenField(c,b){var a=$get(c);if(a){__doPostBack(c,b)}}function stopRKey(a){var a=(a)?a:((event)?event:null);var b=(a.target)?a.target:((a.srcElement)?a.srcElement:null);if((a.keyCode==13)&&(b.type=="text")){return false}}document.onkeypress=stopRKey;var Search={init:function(){var e=document.getElementById("cse-search-box");if(e){var d=document.getElementById("q");var g=navigator;var c=location;if(g.platform=="Win32"){}var a=function(){if(d.value==""){}};var e=function(){};d.onfocus=e;d.onblur=a;if(!/[&?]q=[^&]/.test(c.search)){a()}}jQuery(".srch_box").keydown(function(b){Search.searchkeydown(b)});jQuery(".srch_btn").click(function(b){b.preventDefault();Search.googlesearch()})},searchkeydown:function(a){if(window.event){key=window.event.keyCode}else{key=a.which}if(key==13){Search.googlesearch()}},googlesearch:function(){window.location="/Home/SearchResults/tabid/431/Default.aspx?q="+escape(document.getElementById("q").value)+"&ie=UTF-8&cof="+escape("FORID:10")+"&cx=partner-pub-014519039365600221706:mgzvs6kmzcq"}};function googlesearch2(){window.location="/Home/SearchResults/tabid/431/Default.aspx?q="+escape(document.getElementById("q").value)+"&ie=UTF-8&cof="+escape("FORID:10")+"&cx=partner-pub-014519039365600221706:mgzvs6kmzcq"}function googlesearchFOUR(){window.location="/TV/Home/SearchResults.aspx?q="+escape(document.getElementById("q").value)+"&ie=UTF-8&cof="+escape("FORID:10")+"&cx=partner-pub-014519039365600221706:mgzvs6kmzcq"}function showC4(){jQuery("#tvguide_c4").css("display","block").css("visibility","visible");jQuery("#tvguide_tv3").css("display","none").css("visibility","hidden")}function showTv3(){jQuery("#tvguide_tv3").css("display","block").css("visibility","visible");jQuery("#tvguide_c4").css("display","none").css("visibility","hidden")}if(typeof com=="undefined"){var com=new Object()}if(typeof com.deconcept=="undefined"){com.deconcept=new Object()}if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object()}if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object()}com.deconcept.FlashObject=function(v,x,h,t,r,p,q,c,z,w){this.DETECT_KEY=w?w:"detectflash";this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(v){this.setAttribute("swf",v)}if(x){this.setAttribute("id",x)}if(h){this.setAttribute("width",h)}if(t){this.setAttribute("height",t)}if(r){this.setAttribute("version",new com.deconcept.PlayerVersion(r.toString().split(".")))}if(p){this.addParam("bgcolor",p)}var y=c?c:"high";this.addParam("quality",y);this.setAttribute("redirectUrl","");if(z){this.setAttribute("redirectUrl",z)}if(q){var u=new com.deconcept.PlayerVersion([6,0,65]);var s=com.deconcept.FlashObjectUtil.getPlayerVersion();if(s.versionIsValid(u)&&!s.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true)}}else{this.setAttribute("doExpressInstall",false)}};com.deconcept.FlashObject.prototype.setAttribute=function(d,c){this.attributes[d]=c};com.deconcept.FlashObject.prototype.getAttribute=function(b){return this.attributes[b]};com.deconcept.FlashObject.prototype.getAttributes=function(){return this.attributes};com.deconcept.FlashObject.prototype.addParam=function(d,c){this.params[d]=c};com.deconcept.FlashObject.prototype.getParams=function(){return this.params};com.deconcept.FlashObject.prototype.getParam=function(b){return this.params[b]};com.deconcept.FlashObject.prototype.addVariable=function(d,c){this.variables[d]=c};com.deconcept.FlashObject.prototype.getVariable=function(b){return this.variables[b]};com.deconcept.FlashObject.prototype.getVariables=function(){return this.variables};com.deconcept.FlashObject.prototype.getParamTags=function(){var d="";var e;var f=this.getParams();for(e in f){d+='<param name="'+e+'" value="'+f[e]+'" />'}return d};com.deconcept.FlashObject.prototype.getVariablePairs=function(){var e=new Array();var d;var f=this.getVariables();for(d in f){e.push(d+"="+f[d])}return e};com.deconcept.FlashObject.prototype.getHTML=function(){var g="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}g+='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'"';var h=this.getParams();for(var j in h){g+=" "+j+'="'+h[j]+'"'}i=this.getVariablePairs().join("&");if(i.length>0){g+=' flashvars="'+i+'"'}g+="></embed>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}g+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" id="'+this.getAttribute("id")+'">';g+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var f=this.getParamTags();if(f.length>0){g+=f}var i=this.getVariablePairs().join("&");if(i.length>0){g+='<param name="flashvars" value="'+i+'" />'}g+="</object>"}return g};com.deconcept.FlashObject.prototype.write=function(b){if(this.skipDetect||this.getAttribute("doExpressInstall")||com.deconcept.FlashObjectUtil.getPlayerVersion().versionIsValid(this.getAttribute("version"))){if(document.getElementById){if(this.getAttribute("doExpressInstall")){this.addVariable("MMredirectURL",escape(window.location));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}document.getElementById(b).innerHTML=this.getHTML()}}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}};com.deconcept.FlashObjectUtil.getPlayerVersion=function(){var e=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var f=navigator.plugins["Shockwave Flash"];if(f&&f.description){e=new com.deconcept.PlayerVersion(f.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(window.ActiveXObject){try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");e=new com.deconcept.PlayerVersion(h.GetVariable("$version").split(" ")[1].split(","))}catch(g){}}}return e};com.deconcept.PlayerVersion=function(b){this.major=parseInt(b[0])||0;this.minor=parseInt(b[1])||0;this.rev=parseInt(b[2])||0};com.deconcept.PlayerVersion.prototype.versionIsValid=function(b){if(this.major<b.major){return false}if(this.major>b.major){return true}if(this.minor<b.minor){return false}if(this.minor>b.minor){return true}if(this.rev<b.rev){return false}return true};com.deconcept.util.getRequestParameter=function(g){var e=document.location.search||document.location.href.hash;if(e){var h=e.indexOf(g+"=");var f=(e.indexOf("&",h)>-1)?e.indexOf("&",h):e.length;if(e.length>1&&h>-1){return e.substring(e.indexOf("=",h)+1,f)}}return""};if(Array.prototype.push==null){Array.prototype.push=function(b){this[this.length]=b;return this.length}}var getQueryParamValue=com.deconcept.util.getRequestParameter;var FlashObject=com.deconcept.FlashObject;
