var shareWidget={_popupUrl:"http://www.plaxo.com/share?",_sccUrl:"http://www.plaxo.com/scc?action=pulse_share_widget&",_appendSrcString:"cid=plaxo_share",_newWindowWidth:500,_newWindowHeight:475,openPopup:function(D){var F=(window.screen.width/2)-(shareWidget._newWindowWidth/2+10);
var E=(window.screen.height/2)-(shareWidget._newWindowHeight/2+50);
var C=D?shareWidget._sccUrl:shareWidget._popupUrl;
if(window.location){var H=new String(window.location);
if(H.split("?").length>1){H+="&"+shareWidget._appendSrcString
}else{H+="?"+shareWidget._appendSrcString
}C+="url="+escape(H)+"&"
}C+="popup=1";
var B="name";
var A="width="+shareWidget._newWindowWidth+", height="+shareWidget._newWindowHeight+", left="+F+", top="+E+", toolbar=0, status=0, scrollbars=yes, resizable=yes";
var G=window.open(C,B,A);
if(window.focus){G.focus()
}return false
}};
var version=deconcept.SWFObjectUtil.getPlayerVersion(),fancastContainer,JSFANCASTCONTAINER,JSFANPLAYER,JSPDKPLAYER,launchPlaxo=shareWidget.openPopup;
if(document.location.href.indexOf("/install/flash")==-1&&version.major<8){if(document.location.href.indexOf("/embed")==-1){document.location.href="/install/flash?version="+version.major
}}function thisMovie(A){if(navigator.appName.indexOf("Microsoft")!=-1){return window[A]
}else{return document[A]
}}function traceToConsole(){if(window.console){if(window.console.firebug){var B="";
for(var A=0;
A<arguments.length;
A++){B+=arguments[A]+" | "
}console.log(B)
}}}function resolveProtectedUserError(A){if(A){if(!user.hasProvider(video.providerCode)){return"User is not entitled"
}if(user.rst==true){return"User restricted secondary"
}if(user.ab==true){return"User flagged for abuse"
}}else{return"User is not a beta user"
}return"undefined"
}function registerUserAge(A){createCookie("userAgeConfirmation",A,0)
}function getC3Window(){return video.adsC3WindowMinutes
}function getVideoRating(){if(typeof (user.profileId)!="undefined"){if(hasCookie("rat_v")){var A="&v="+readCookie("rat_v");
new Ajax.Request("/userData/ratings?p="+user.profileId+A,{method:"get",onSuccess:function(C){var B=C.responseText.evalJSON();
if(typeof (B.ratings[video.id])!="undefined"){video.userRating=B.ratings[video.id]
}updateRating(video.userRating);
if(fancastContainer){fancastContainer.ratingsUpdate(video.userRating)
}}})
}}}function getHuluRecommendations(){new Ajax.Request("/getRecommendations.widget",{method:"get",parameters:{globalUid:video.entityId,videoGlobalUid:video.id},onSuccess:function(E){var B=E.responseText.evalJSON(),D,A,C;
if(B.status=="success"){D="right";
$A(B.items).each(function(F){if(typeof F.entityYear=="undefined"){F.entityYear=""
}$("results").insert({top:"<li class='"+D+"'><a href='"+F.url+"' title='Watch "+F.videoName+" video' class='wthumb'><i></i><img src='"+F.thumbSrc+"' alt='"+F.videoName+"' onContextMenu='return false;' /></a><div class='entity_info'> 					<h3><a href='"+F.url+"' title='Watch "+F.videoName+" video'>"+F.videoName+" "+F.entityYear+"</a></h3> 					<span class='meta'>("+F.entityName+")</span></div></li>"});
D=""
});
if(B.items.length==1){A=$$("#results li");
for(C=0;
C<A.length;
C++){if(C%2==1){A[C].className="right"
}else{A[C].className=""
}}}}}})
}function launchExternalPartner(){if(typeof (win)=="undefined"||win.closed){if(video.source_partner=="EXTERNAL"){window.open(video.PRIMARY_VIDEO_URL,"win")
}else{if(video.source_partner=="ABC"){ABCFEP.openFEP(video.guid);
var C=screen.availWidth,E=screen.availHeight,B=1000,D=675,A,F;
A=(C-B)/2;
F=(E-D)/2;
win.moveTo(A,F)
}}}win.focus()
}function getFlashJsObject(A){if(navigator.appName.indexOf("Microsoft")!=-1){return window[A]
}else{if(document[A].length!=undefined){return document[A][1]
}return document[A]
}}function getArgs(){var B=new Object(),F,E,C,H,A,D;
try{F=document.location.search.substring(1)
}catch(G){F=""
}E=F.split("&");
for(C=0;
C<E.length;
C++){H=E[C].indexOf("=");
if(H==-1){continue
}A=E[C].substring(0,H);
D=E[C].substring(H+1);
B[A]=unescape(D)
}return B
}function getParam(C){var A=getArgs(),B;
B=A[C];
if(typeof B=="undefined"){B=""
}return B
}function rolloverFor(A){return $("rollover"+A.id)
}function showRollover(A){if(Element.descendantOf(this,currentRollover)){return false
}currentRollover=Event.findElement(A,"li");
currentRollover.addClassName("over");
currentRolloverDiv=rolloverFor(currentRollover);
currentRolloverDiv.show()
}function hideRollover(A){if(this!=currentRollover&&Event.findElement(A,"li")==currentRollover){return false
}currentRollover.removeClassName("over");
currentRolloverDiv.hide();
currentRollover=false
}setVideoObject=function(B,E,A,D,C){if(!video){video=new Object()
}video.client=B;
video.rid=E;
video.w=A;
video.h=D;
video.aspectRatio=C
};
function resolveVideoContainerDimensions(K,G,F,C){var E=new Object();
var I;
var B;
var L;
var D;
var A;
var J=K/G;
if(J>0&&J<1.55){L=1.33
}else{if(J>=1.55&&J<2.06){L=1.78
}else{L=2.35
}}switch(F){case"embed":I=420;
B=315;
D=I;
A=B+27;
break;
case"lytebox":I=608;
B=Math.round(I/L);
D=932;
A=B+27;
break;
case"standard":default:var H;
I=916;
D=960;
if(C=="expired"){B=516;
H=38
}else{if(L==2.35){B=Math.round(I/L);
H=140
}else{B=Math.round(I/1.78);
H=140
}}A=B+H
}E.width=I;
E.height=B;
E.aspectRatio=L;
E.overallFlashWidth=D;
E.overallFlashHeight=A;
return E
}function embedFancastContainer(){var A="#FFFFFF";
video.ended=false;
if(video.sizeType=="embed"){video.autoPlay=false;
A="#000000"
}else{if(video.sizeType=="lytebox"){A="#000000"
}else{$("playerHolder").style.height=(video.overallFlashHeight)+"px";
body=$$("body")[0];
body.insert({top:'<div class="player" id="playerDiv"></div>'});
var B=10;
Element.clonePosition("playerDiv","playerHolder",{offsetTop:B,setLeft:false,setWidth:false})
}}so=new SWFObject(settings.staticFile+"/swf/FCVidContainerInit.swf","fancastVideoContainer",video.overallFlashWidth,video.overallFlashHeight,"9.0.115.0",A);
if(video.sizeType!="embed"&&video.sizeType!="lytebox"){so.addVariable("ageOver",readCookie("userAgeConfirmation"));
so.addParam("wmode","opaque")
}so.addParam("allowScriptAccess","always");
so.addParam("quality","high");
so.addParam("allowFullScreen","true");
so.addVariable("rid",video.PRIMARY_VIDEO_URL);
so.addVariable("video_id",video.fullEntityID);
so.addVariable("omnitureId",settings.s_account);
so.addVariable("vidWidth",video.width);
so.addVariable("vidHeight",video.height);
so.addVariable("aspectRatio",video.aspectRatio);
so.addVariable("sizeType",video.sizeType);
so.addVariable("client",video.client);
so.addVariable("isExternalPartner",video.isExternalPartner);
so.addVariable("errorType",video.error);
so.addVariable("autoPlay",video.autoPlay);
so.addVariable("staticPrefix",settings.staticFile);
so.addVariable("dynamicDataUrl","/playerVideoDynamic.widget");
so.addVariable("baseUrl","/");
so.addVariable("userRating",video.userRating||"undefined");
so.addVariable("feedbackUrl","/rating.widget");
so.addVariable("ratingId",video.id);
so.addVariable("providerCode",video.providerCode);
so.addVariable("secureLoginPrefix",video.secureLoginPrefix);
so.addVariable("xedata",encodeURIComponent(video.xedata));
so.addVariable("providerSign",encodeURIComponent(video.ProviderSign));
so.addVariable("edata",video.edata);
so.addVariable("playerData",encodeURIComponent(video.playerData));
so.addVariable("signIn",video.signIn);
so.addVariable("offNetwork",video.offNetwork);
if(video.skipTo!=""){so.addVariable("skipTo",video.skipTo)
}so.useExpressInstall(settings.staticFile+"/swf/expressinstall.swf");
so.write("playerDiv");
if(video.client=="MOVE"&&video.error=="undefined"){jQuery("<div id='moveDiv' style='position: absolute; top:77px; visible:hidden'><iframe id='moveInstallIFrame' scrolling='no' frameborder='0' style='width:"+video.width+"px; height:"+video.height+"px;'></iframe></div>").insertAfter("#fancastVideoContainer")
}}function restartVideo(){var A=window.location.href;
if(A.indexOf("?")>0){window.location=A.split("?")[0]
}else{window.location.reload()
}}function resumeVideoPlay(){JSFANCASTCONTAINER.resumingVideo()
}function continueVideo(){JSFANCASTCONTAINER.playVid()
}function pauseVideo(){JSFANCASTCONTAINER.pauseVid()
}function watchAgain(){video.ended=false
}function videoStarted(){video.ended=false
}function videoEnded(){video.ended=true
}function onContainerReady(){if(video.userRating){fancastContainer.ratingsUpdate(video.userRating)
}}var fancastContainer;
function containerReady(){fancastContainer=new getJSFANCASTCONTAINER("fancastVideoContainer");
onContainerReady()
}JSFANCASTCONTAINER=new Object();
function getJSFANCASTCONTAINER(A){JSFANCASTCONTAINER.fancastContainer=getFlashJsObject(A);
return JSFANCASTCONTAINER
}JSFANCASTCONTAINER.loadVideoContent=function(B,A){this.fancastContainer.loadVideoContent(B,A)
};
JSFANCASTCONTAINER.restartVideo=function(){this.fancastContainer.restartVideo()
};
JSFANCASTCONTAINER.jsonObjectReady=function(){this.fancastContainer.jsonObjectReady()
};
JSFANCASTCONTAINER.playerReady=function(){this.fancastContainer.playerReady()
};
JSFANCASTCONTAINER.videoError=function(){this.fancastContainer.videoError()
};
JSFANCASTCONTAINER.stateChange=function(A){this.fancastContainer.stateChange(A)
};
JSFANCASTCONTAINER.playHeadUpdate=function(A){this.fancastContainer.playHeadUpdate(A)
};
JSFANCASTCONTAINER.adStart=function(A){this.fancastContainer.adStart(A)
};
JSFANCASTCONTAINER.adEnd=function(){this.fancastContainer.adEnd()
};
JSFANCASTCONTAINER.videoStart=function(A){this.fancastContainer.videoStart(A)
};
JSFANCASTCONTAINER.volumeChange=function(A){this.fancastContainer.volumeChange(A)
};
JSFANCASTCONTAINER.videoMileStone=function(){this.fancastContainer.videoMileStone()
};
JSFANCASTCONTAINER.videoEnd=function(){this.fancastContainer.videoEnd()
};
JSFANCASTCONTAINER.playlistComplete=function(){this.fancastContainer.playlistComplete()
};
JSFANCASTCONTAINER.pauseVid=function(){this.fancastContainer.pauseVid()
};
JSFANCASTCONTAINER.playVid=function(){this.fancastContainer.playVid()
};
JSFANCASTCONTAINER.seekTo=function(){this.fancastContainer.seekTo()
};
JSFANCASTCONTAINER.getEmailTime=function(){return this.fancastContainer.getEmailTime()
};
JSFANCASTCONTAINER.pigOpen=function(){this.fancastContainer.pigOpen()
};
JSFANCASTCONTAINER.pigClose=function(){this.fancastContainer.pigClose()
};
JSFANCASTCONTAINER.resumingVideo=function(){return this.fancastContainer.resumingVideo()
};
JSFANCASTCONTAINER.fullScreenRelease=function(){this.fancastContainer.fullScreenRelease()
};
JSFANCASTCONTAINER.ratingsUpdate=function(A){this.fancastContainer.onUserRatingUpdate(A)
};
function getHuluScript(){var B=document.createElement("script");
B.type="text/javascript";
B.id="NS_GUID_JS";
B.src=video.NewSiteUrl;
B.onload=onNS_RegisterEvents;
B.onreadystatechange=onNS_RegisterEvents;
var C=document.getElementsByTagName("head");
var A=C.item(0);
A.appendChild(B)
}function onNS_RegisterEvents(){if(typeof (NewSite)=="undefined"){return 
}NewSite.DEBUG=false;
NewSite.LOGGER=$("debug2");
ns_once=false;
var A=new Object();
fancastContainer.jsonObjectReady();
NewSite.loadComponents2=NewSite.loadComponents;
NewSite.loadComponents=function(B){B.components.logoComponent.wmode="window";
B.components.logoComponent.width=70;
B.components.logoComponent.height=22;
NewSite.loadComponents2(B)
};
A.newsiteReady=function(){fancastContainer.playerReady()
};
A.newsiteError=function(B){if(B.code=="NS_PL_006"||B.code=="NS_PL_007"||B.code=="NS_PL_008"||B.code=="NS_PL_009"||B.code=="NS_PL_010"||B.code=="NS_PL_011"||B.code=="NS_PL_012"){fancastContainer.videoError()
}};
A.vidStart=function(B){if(!ns_once){ns_once=true;
fancastContainer.videoStart()
}};
A.overlayAdBegin=function(B){fancastContainer.adStart(B);
setTimeout(function(){fancastContainer.adEnd()
},2000)
};
A.adStart=function(B){fancastContainer.adStart(B)
};
A.adEnd=function(B){fancastContainer.adEnd()
};
A.videoStateChange=function(B){fancastContainer.stateChange(B)
};
A.videoPlayheadUpdate=function(B){fancastContainer.playHeadUpdate(B)
};
A.videoVolumeChange=function(B){fancastContainer.volumeChange(B)
};
A.theEnd=function(){fancastContainer.playlistComplete();
ns_once=false
};
NewSite.addListener("newsiteReady",A,"newsiteReady");
NewSite.addListener("newsiteError",A,"newsiteError");
NewSite.addListener("videoStart",A,"vidStart");
NewSite.addListener("videoAdBegin",A,"adStart");
NewSite.addListener("videoAdEnd",A,"adEnd");
NewSite.addListener("videoStateChange",A,"videoStateChange");
NewSite.addListener("videoPlayheadUpdate",A,"videoPlayheadUpdate");
NewSite.addListener("videoVolumeChange",A,"videoVolumeChange");
NewSite.addListener("theEnd",A,"theEnd");
NewSite.cleanupSwfs=function(){}
}var includeCount=0;
var includeLoaded=0;
var moveScriptTimeOut;
var MNReady=false;
var MN;
getMoveScript=function(){window.MN_LoadLibIntoDOM=true;
var C=video.movePlayerJavascriptUrl;
var B=document.getElementsByTagName("head")[0];
var A=document.createElement("script");
A.type="text/javascript";
A.src=C;
A.id="MOVE_JS";
A.setAttribute("SL","no");
A.onload=onMoveScriptLoad;
A.onreadystatechange=onMoveScriptLoad;
B.appendChild(A)
};
onMoveScriptLoad=function(){if(moveScriptTimeOut){clearTimeout(moveScriptTimeOut)
}if(MN==null){moveScriptTimeOut=setTimeout("onMoveScriptLoad()",300)
}else{if(MN.Class==null){moveScriptTimeOut=setTimeout("onMoveScriptLoad()",300)
}else{if(moveScriptTimeOut){clearTimeout(moveScriptTimeOut)
}if(MN.QMPInstall.CanPlay()){includeMoveJS(settings.staticFile+"/js/move/player.js",null)
}else{initMoveInstall()
}}}};
initMoveInstall=function(){var A=document.getElementById("moveInstallIFrame");
var B=document.getElementById("fancastVideoContainer");
MN.CSS.AddClass(A,"active");
MN.CSS.AddClass(B,"inactive");
A.src="/floInstall";
installComplete=function(){A.src="";
MN.CSS.RemoveClass(A,"active");
MN.CSS.RemoveClass(B,"inactive");
MN.QMPInstall.alreadyProbed=false;
includeMoveJS(settings.staticFile+"/js/move/player.js",null)
}
};
includeMoveJS=function(A,D){includeCount++;
var C=document.getElementsByTagName("head")[0];
var B=document.createElement("script");
B.type="text/javascript";
B.src=A;
if(D!=null){B.onload=D;
B.onreadystatechange=D
}C.appendChild(B)
};
loadMoveControls=function(){if(!MNReady){MNReady=true;
includeCount=0;
includeMoveJS(settings.staticFile+"/js/move/controls/styles.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/controls.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/pig.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/pigPPC.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/fullScreen.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/button.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/playPause.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/textFields.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/timelineSlider.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/slider.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/volumeSlider.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/preview.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/toggleButton.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/toolTip.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/tween.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/exitFullScreenAlert.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/qualityOverlay.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/spinner.js",onMoveControlLoaded);
includeMoveJS(settings.staticFile+"/js/move/controls/hdToolTipController.js",onMoveControlLoaded)
}};
onMoveControlLoaded=function(){includeLoaded++;
if(includeCount==includeLoaded){fancastContainer.jsonObjectReady()
}};