if(EtherStudios==undefined){var EtherStudios={};}EtherStudios.ESV_Video=function(){if(typeof(SWFObject)=="undefined"){document.write(unescape("%3Cscript type='text/javascript' src='http://video.etherstudios.com/Media/Scripts/SwfObject.js'%3E%3C/script%3E"));
}document.write(unescape("%3Cscript type='text/javascript' src='http://video.etherstudios.com/Media/Scripts/jQuery.js'%3E%3C/script%3E"));
document.write(unescape("%3Cscript type='text/javascript' src='http://video.etherstudios.com/Media/Scripts/jQuery.Touch.js'%3E%3C/script%3E"));
document.write(unescape("%3Cscript type='text/javascript' src='http://video.etherstudios.com/Media/Scripts/jQuery.Dimensions.js'%3E%3C/script%3E"));
document.write(unescape("%3Cscript type='text/javascript' src='http://video.etherstudios.com/Media/Scripts/jQuery.StepCarousel.js'%3E%3C/script%3E"));
if(typeof(xml2json)=="undefined"){document.write(unescape("%3Cscript type='text/javascript' src='http://video.etherstudios.com/Media/Scripts/xml2json.js'%3E%3C/script%3E"));
}};EtherStudios.ESV_Video.prototype={HasFlash:function(){result=false;if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]){result=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
}else{if(document.all&&(navigator.appVersion.indexOf("Mac")==-1)){eval('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj) result = true; xObj = null; } catch (e) {}');
}}return result;}};EtherStudios.ESV_Bandwidth=function(){document.write('<div id="EV_Detect"></div>');
};EtherStudios.ESV_Bandwidth.prototype={totalTransferTime:0,totalFileSize:0,index:0,detectInterval:setInterval("EtherStudios.Video.Bandwidth.Start()",2000),Detected:0,Detect:function(C){var D=new Date().getTime();
var B=(D-C)/1000;this.totalTransferTime+=B;this.totalFileSize+=266;var A=(this.totalFileSize/this.index)/(this.totalTransferTime/this.index);
this.Detected=Math.round(A);if(this.Detected>0){this.Stop();}},Start:function(){this.index++;
var A=new Date().getTime();document.getElementById("EV_Detect").innerHTML=('<img src="http://etherstudios.com/Mockup/Detect/Detect.gif?'+(A)+'" width="0" height="0" onload="EtherStudios.Video.Bandwidth.Detect('+A+');" />');
},Stop:function(){clearInterval(EtherStudios.Video.Bandwidth.detectInterval);}};EtherStudios.ESV_Player=function(){};
EtherStudios.ESV_Player.prototype={Mode:null,Host:"",HostAPI:"",HostMedia:"",HostStream:"",PlayerID:"686de796-189f-4690-9397-5690ac1bcaad",Width:"653",Height:"368",LightboxEnabled:false,PushPositionEnabled:false,PushPositionContainerID:"",VideoPosterUrl:"",Container:null,SiteID:2,ShowID:0,VideoID:0,VideoInfoEnabled:false,BrowseEnabled:true,BrowseOnInitEnabled:false,CommentsEnabled:false,ShareEnabled:true,ShareCaptchaEnabled:true,ShareEmbedEnabled:false,EmailCollectEnabled:false,EmailCollectToolTip:"",EmailCollectPanelHeader:"",EmailCollectPanelDescription:"",AutoPlayEnabled:true,LogoEnabled:false,HDEnabled:false,VideoControllerTimeout:3000,LogoUrl:"http://video.etherstudios.com/Media/Uploads/Players/686de796-189f-4690-9397-5690ac1bcaad/686de796-189f-4690-9397-5690ac1bcaad.ImageBackgroundUrl.png",BufferAnimationBegin:"",BufferAnimationLoop:"http://video.etherstudios.com/Media/Uploads/Players/686de796-189f-4690-9397-5690ac1bcaad/686de796-189f-4690-9397-5690ac1bcaad.BufferAnimationLoop.swf",BufferAnimationFinish:"",LightboxContentTop:null,LightboxContentBottom:null,previousVolume:75,currentTime:0,isFullscreen:false,hdButtonClicked:false,hdChanged:false,player:null,video:null,ppButton:null,videoOverlay:null,videoController:null,videoControllerTimeout:null,videoChanged:false,videoLoadAttempt:0,backgroundCenter:null,volumeButton:null,volumeSlider:null,volumeScrubbing:false,volumeScrubber:null,volumeLevel:null,hdButton:null,fullscreenButton:null,playheadScrubbing:false,playheadScrubbed:false,playheadScrubber:null,playheadBuffer:null,playheadTime:null,waiting:false,pauseIcon:null,titleTextField:null,statusTextField:null,paused:false,timer:null,t:null,currentRotation:null,buffer:null,bufferCanvas:null,bufferRotation:0,bufferRotationInterval:null,isSharing:false,shareButton:null,sharePanel:null,siteData:null,videoData:null,socialNetworks:null,email:null,emailCollectButtonOverlay:null,emailCollectButton:null,emailCollectPanel:null,emailAddress:null,zipCode:null,embed:null,tabSocialNetworks:null,tabEmail:null,tabEmbed:null,send:null,captcha:null,captchaImage:null,embedCode:null,ck:null,isEmailCollecting:false,isFlashReady:false,lightbox:null,lightbox_Content:null,Init:function(){if(this.LightboxEnabled){var B="";
B+="div.ESV_Lightbox {font-size:12px;font-family:'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;display:none;z-index:999999;position:fixed;top:0px;left:0px;width:100%;height:100%;vertical-align:middle;}";
B+="div.ESV_Lightbox div.ESV_Lightbox_Overlay {z-index:1;width:100%;height:100%;position:absolute;left:0px;background-color:#000;opacity:0.7;filter:alpha(opacity=70)}";
B+="div.ESV_Lightbox div.ESV_Lightbox_Content {z-index:2;display:block;width:"+this.Width+";position:relative;margin:0 auto;padding:20px;background-color:#000;}";
B+="div.ESV_Lightbox div.ESV_Lightbox_Content_Top {display:block;color:#fff;padding-bottom:20px;clear:both;}";
B+="div.ESV_Lightbox div.ESV_Lightbox_Content_Bottom {display:block;color:#fff;padding-top:20px;clear:both;}";
B+="div.ESV_Lightbox a.ESV_Lightbox_Close {text-decoration: none;background-color:#000;display:block;float:right;margin:-50px -20px 20px 0;padding:10px 20px;color:#fff;font-weight:bold;}";
var H=document.createElement("style");H.setAttribute("type","text/css");if(H.styleSheet){H.styleSheet.cssText=B;
}else{var A=document.createTextNode(B);H.appendChild(A);}document.getElementsByTagName("head")[0].appendChild(H);
var I="";I+='<div class="ESV_Lightbox_Overlay" id="ESV_Lightbox_686de796_189f_4690_9397_5690ac1bcaad_Overlay"></div>';
I+='<div class="ESV_Lightbox_Content" id="ESV_Lightbox_686de796_189f_4690_9397_5690ac1bcaad_Content">';
I+='   <a class="ESV_Lightbox_Close" href="javascript:EtherStudios.Video.Player.lightbox_Close()">[x] Close</a>';
if(this.LightboxContentTop!=null&&this.LightboxContentTop!=""){I+='   <div class="ESV_Lightbox_Content_Top">'+this.LightboxContentTop+"</div>";
}I+='   <div class="ESV_Player" id="divPlayer_686de796_189f_4690_9397_5690ac1bcaad"></div>';
if(this.LightboxContentBottom!=null&&this.LightboxContentBottom!=""){I+='   <div class="ESV_Lightbox_Content_Bottom">'+this.LightboxContentBottom+"</div>";
}I+="</div>";var E=document.createElement("div");document.getElementsByTagName("body")[0].appendChild(E);
E.setAttribute("id","ESV_Lightbox_686de796_189f_4690_9397_5690ac1bcaad");E.setAttribute("class","ESV_Lightbox");
E.innerHTML=I;E.className="ESV_Lightbox";this.lightbox=document.getElementById("ESV_Lightbox_686de796_189f_4690_9397_5690ac1bcaad");
this.lightbox_Content=document.getElementById("ESV_Lightbox_686de796_189f_4690_9397_5690ac1bcaad_Content");
}else{if(this.Container!=null&&this.Container!=""){if(document.getElementById(this.Container)!=null){document.getElementById(this.Container).innerHTML='<div class="ESV_Player" id="divPlayer_686de796_189f_4690_9397_5690ac1bcaad"></div>';
}else{document.write('<div class="ESV_Player" id="divPlayer_686de796_189f_4690_9397_5690ac1bcaad"></div>');
}}else{document.write('<div class="ESV_Player" id="divPlayer_686de796_189f_4690_9397_5690ac1bcaad"></div>');
}}if(this.Mode==null){if(EtherStudios.Video.HasFlash()){this.Mode="FLASH";}else{this.Mode="HTML5";
}}if(this.Mode=="FLASH"){var G=new SWFObject("http://video.etherstudios.com/Media/Swfs/EtherStudios.Video.Player.swf?CB=35","player_686de796_189f_4690_9397_5690ac1bcaad",this.Width,this.Height,"10");
if(this.Host!=""&&this.Host!=null){G.addVariable("Host",this.Host);}if(this.HostAPI!=""&&this.HostAPI!=null){G.addVariable("HostAPI",this.HostAPI);
}if(this.HostMedia!=""&&this.HostMedia!=null){G.addVariable("HostMedia",this.HostMedia);
}if(this.HostStream!=""&&this.HostStream!=null){G.addVariable("HostStream",this.HostStream);
}if(this.PlayerID!=""&&this.PlayerID!=null){G.addVariable("PlayerID",this.PlayerID);
}if(this.SiteID!=0){G.addVariable("SiteID",this.SiteID);}if(this.ShowID!=0){G.addVariable("ShowID",this.ShowID);
}if(this.VideoID!=0){G.addVariable("VideoID",this.VideoID);}if(this.EmailCollectToolTip!=null&&this.EmailCollectToolTip!=""){G.addVariable("EmailCollectToolTip",this.EmailCollectToolTip);
}if(this.EmailCollectPanelHeader!=null&&this.EmailCollectPanelHeader!=""){G.addVariable("EmailCollectPanelHeader",this.EmailCollectPanelHeader);
}if(this.EmailCollectPanelDescription!=null&&this.EmailCollectPanelDescription!=""){G.addVariable("EmailCollectPanelDescription",this.EmailCollectPanelDescription);
}if(this.PushPositionEnabled){G.addVariable("PushPositionEnabled",this.PushPositionEnabled);
if(this.PushPositionContainerID!=""){G.addVariable("PushPositionContainer",this.PushPositionContainerID);
}}G.addVariable("VideoInfoEnabled",this.VideoInfoEnabled);G.addVariable("BrowseEnabled",this.BrowseEnabled);
G.addVariable("BrowseOnInitEnabled",this.BrowseOnInitEnabled);G.addVariable("CommentsEnabled",this.CommentsEnabled);
G.addVariable("ShareEnabled",this.ShareEnabled);G.addVariable("ShareEmbedEnabled",this.ShareEmbedEnabled);
G.addVariable("AutoPlayEnabled",this.AutoPlayEnabled);G.addVariable("LogoEnabled",this.LogoEnabled);
G.addVariable("HDEnabled",this.HDEnabled);G.addVariable("EmailCollectEnabled",this.EmailCollectEnabled);
if(this.VideoControllerTimeout!=10000){G.addVariable("VideoControllerTimeout",this.VideoControllerTimeout);
}if(this.VideoPosterUrl!=""){G.addVariable("VideoPosterUrl",this.VideoPosterUrl);
}if(this.LogoUrl!=""){G.addVariable("LogoUrl",this.LogoUrl);}if(this.BufferAnimationBegin!=""){G.addVariable("BufferAnimationBegin",this.BufferAnimationBegin);
}if(this.BufferAnimationLoop!=""){G.addVariable("BufferAnimationLoop",this.BufferAnimationLoop);
}if(this.BufferAnimationFinish!=""){G.addVariable("BufferAnimationFinish",this.BufferAnimationFinish);
}G.addParam("allowscriptaccess","always");G.addParam("quality","best");G.addParam("allowFullScreen","true");
G.addParam("wmode","transparent");G.addParam("salign","t");if(this.LightboxEnabled){var B="";
B+=".ESV_Player_Flash_Lightbox { z-index:1000000;position:absolute;width:1px;height:1px;overflow:hidden;}";
B+=".ESV_Player { width:"+this.Width+"px;height:"+this.Height+"px;position:relative;background-color:#000;}";
var H=document.createElement("style");H.setAttribute("type","text/css");if(H.styleSheet){H.styleSheet.cssText=B;
}else{var A=document.createTextNode(B);H.appendChild(A);}document.getElementsByTagName("head")[0].appendChild(H);
var C=document.createElement("div");C.setAttribute("class","ESV_Player_Flash_Lightbox");
C.className="ESV_Player_Flash_Lightbox";C.setAttribute("id","divPlayer_686de796_189f_4690_9397_5690ac1bcaad_Flash_Lightbox");
document.getElementsByTagName("body")[0].appendChild(C);G.write("divPlayer_686de796_189f_4690_9397_5690ac1bcaad_Flash_Lightbox");
this.player=document.getElementById("divPlayer_686de796_189f_4690_9397_5690ac1bcaad_Flash_Lightbox");
}else{G.write("divPlayer_686de796_189f_4690_9397_5690ac1bcaad");this.player=document.getElementById("divPlayer_686de796_189f_4690_9397_5690ac1bcaad");
}}else{if(this.Mode=="HTML5"){window.addEventListener("message",EtherStudios.Video.API.receiveMessage,false);
var D=0;var B="";B+=".ESV_Player { width:"+this.Width+"px;height:"+this.Height+"px;position:relative;background-color:#000;}";
B+=".ESV_PlayerHTML5 { font-size:12px;font-family:Arial;font-weight:bold;text-shadow: #000 -1px -1px;z-index:1000000;width:"+this.Width+"px;height:"+this.Height+"px;position:absolute;background-color:#000;}";
B+=".ESV_Player ul.ESV_Tabs { position:relative;display:block;margin:0px;padding:0px;width:300px;overflow:hidden;margin-bottom:5px; }";
B+=".ESV_Player ul.ESV_Tabs li {display:list-item;margin:0px;padding:0px;float:left; }";
B+=".ESV_Player ul.ESV_Tabs li a.ESV_Tab{ text-decoration:none;text-align:center;position:relative;font-size:12px;font-family:Arial;font-weight:bold;display:inline-block;padding:7px 30px;border-left:solid 1px #404040;color:#fff; }";
B+=".ESV_Player ul.ESV_Tabs li:first-child a.ESV_Tab { border-left:0px; }";B+=".ESV_Player ul.ESV_Tabs li a.ESV_Tab .ESV_Background { z-index:1;background-color:#000;opacity:.50;filter:alpha(opacity=50);width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden; }";
B+=".ESV_Player ul.ESV_Tabs li a.ESV_Tab .ESV_Title { z-index:2;position:relative; }";
if(navigator.platform!="iPad"){B+=".ESV_Player ul.ESV_Tabs li a.ESV_Tab:hover .ESV_Background { background-color:#ffffff;opacity:.175;filter:alpha(opacity=17); }";
}B+=".ESV_Player ul.ESV_Tabs li a.ESV_Selected .ESV_Background { background-color: transparent; }";
B+=".ESV_Player .ESV_TextBox { font:12px Arial!important;background-color:#fff;color:000;outline:none;margin-bottom:4px;padding:1px;border:solid 1px #000; }";
B+=".ESV_Player .ESV_Button { border-left:solid 1px #404040;cursor:pointer;position:absolute;bottom:22px; }";
B+=".ESV_Player .ESV_Button .ESV_Background { width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden; }";
B+=".ESV_Player .ESV_Button .ESV_Icon { display:block;opacity:0.8;filter:alpha(opacity=80);width:100%;height:100%;top:0px;left:0px; }";
if(navigator.platform!="iPad"){B+=".ESV_Player .ESV_Button:hover .ESV_Background { background-color:#ffffff;opacity:.175;filter:alpha(opacity=17); }";
B+=".ESV_Player .ESV_Button:hover .ESV_Icon { opacity:1.0;filter:alpha(opacity=100); }";
}B+=".ESV_Player .ESV_VideoController { width:"+this.Width+"px;height:324px;color:#fff;font:15px Arial;font-weight:800;/*-webkit-text-stroke: 1px #000;*/position:absolute;bottom:0px;overflow:hidden; }";
B+=".ESV_Player .ESV_VideoController ul { padding:0px;margin:0px; }";B+=".ESV_Player .ESV_VideoController ul li { font-weight:bold;display:inline-block; }";
B+=".ESV_Player .ESV_VideoController .ESV_PlayButton { position:absolute;bottom:20px;left:0px;width:75px;height:75px;text-indent:-300px; }";
B+=".ESV_Player .ESV_VideoController .ESV_PlayButton .ESV_Icon { background: url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -318px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_PlayButton .ESV_Title { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_PauseButton { position:absolute;bottom:20px;left:0px;width:75px;height:75px;text-indent:-300px; }";
B+=".ESV_Player .ESV_VideoController .ESV_PauseButton .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -243px 0px no-repeat;width:75px;height:75px; }";
B+=".ESV_Player .ESV_VideoController .ESV_PauseButton .ESV_Title { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_FullscreenButton { position:absolute;bottom:20px;right:"+D+"px;width:45px;height:35px;text-indent:-300px; }";
B+=".ESV_Player .ESV_VideoController .ESV_FullscreenButton .ESV_Title { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_FullscreenOff .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) 0px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_FullscreenOn  .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) 0px -35px no-repeat; }";
D+=45;if(navigator.platform=="iPad"){B+=".ESV_Player .ESV_VideoController .ESV_VolumeButton { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeSlider { display:none; }";}else{B+=".ESV_Player .ESV_VideoController .ESV_VolumeButton { position:absolute;bottom:20px;right:"+D+"px;width:51px;height:35px;text-indent:-300px; }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeButton .ESV_Title { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeLevel0 .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -141px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeLevel1 .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -141px -35px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeLevel2 .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -192px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeLevel3 .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -192px -35px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeSlider { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -1006px 0px no-repeat;position:absolute;right:"+D+"px;bottom:-191px;width:51px;height:191px;opacity:0.0;filter:alpha(opacity=0); }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeSlider .ESV_VolumeLevel { background-color:#5995cd;position:absolute;left:25px;bottom:8px;width:2px;height:172px; }";
B+=".ESV_Player .ESV_VideoController .ESV_VolumeSlider .ESV_VolumeScrubber { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -553px -35px no-repeat;position:absolute;left:17px;top:4px;width:18px;height:28px;cursor:pointer; }";
D+=51;}if(this.ShareEnabled){B+=".ESV_Player .ESV_VideoController .ESV_ShareButton { position:absolute;bottom:20px;right:"+D+"px;width:45px;height:35px;text-indent:-300px; }";
B+=".ESV_Player .ESV_VideoController .ESV_ShareButton .ESV_Title { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_ShareOff .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -96px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_ShareOn  .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -96px -35px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -706px 0px no-repeat;position:absolute;right:"+D+"px;bottom:-270px;width:300px;height:270px;opacity:0.0;filter:alpha(opacity=0); }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks {  }";B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon { display:block;width:32px;height:32px;margin:5px auto; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon_Delicious { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -393px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon_Digg { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -393px -35px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon_Facebook { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -425px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon_Google { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -425px -35px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon_Myspace { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -457px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon_Netvibes { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -457px -35px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon_Reddit { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -489px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks .ESV_Icon_Twitter { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -489px -35px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks a.ESV_SocialNetwork { display:block;width:65px;text-align:center;float:left;padding:5px;color:#fff;font-size:12px;text-decoration:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_SocialNetworks a.ESV_SocialNetwork img { display:block;clear:both;width:32px;margin:5px auto;}";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email { display:none;padding:15px;width:270px;position:relative; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_TextBox { width:265px; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_ButtonGroup { display:block; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_Button { float:right;text-decoration:none;text-align:center;position:relative;font-size:11px;font-family:Arial;font-weight:bold;display:inline-block;padding:7px 15px;border:solid 1px #404040;color:#fff;background-image:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) 0px -355px;margin:30px 0px 0px 10px; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_Button .ESV_Background { z-index:1;background-color:#000;opacity:.50;filter:alpha(opacity=50);width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_Button .ESV_Title { z-index:2;position:relative; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_Button:hover .ESV_Background { background-color:#ffffff;opacity:.175;filter:alpha(opacity=17); }";
if(this.ShareCaptchaEnabled){B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_Captcha { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -1143px 0px no-repeat;display:block;overflow:hidden;width:267px;border:solid 1px #000;background-color:#fff;color:000;margin-bottom:5px; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_Captcha img { float:left; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_Captcha a.Icon { float:right;background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -1421px 0px no-repeat;overflow:hidden;width:16px;height:16px;text-indent:-300px;padding:5px; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Email .ESV_Captcha .ESV_TextBox { width:70px;float:right;border:0px;border-collapse:collapse;border:solid 1px #000;margin:5px;font-size:15px!important;text-align:center;font-weight:bold!important; }";
}B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Embed {display:none;padding:15px;width:270px;position:relative;}";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Embed .ESV_Code { overflow:auto;display:block;width:265px;height:160px;font:12px Arial!important;background-color:#fff;color:#000;outline:none;margin-top:0px;margin-bottom:4px;padding:1px;border:solid 1px #000;white-space:nowrap;text-shadow:0 0; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Embed .ESV_Label {font-size:12px;}";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_ButtonGroup { display:block; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Button { float:right;text-decoration:none;text-align:center;position:relative;font-size:11px;font-family:Arial;font-weight:bold;display:inline-block;padding:7px 15px;border:solid 1px #404040;color:#fff;background-image:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) 0px -355px;margin:30px 0px 0px 10px; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Button .ESV_Background { z-index:1;background-color:#000;opacity:.50;filter:alpha(opacity=50);width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Button .ESV_Title { z-index:2;position:relative; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel .ESV_Button:hover .ESV_Background { background-color:#ffffff;opacity:.175;filter:alpha(opacity=17); }";
D+=45;}else{B+=".ESV_Player .ESV_VideoController .ESV_ShareButton { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_SharePanel { display:none; }";}if(this.EmailCollectEnabled){B+=".ESV_Player .ESV_EmailCollectButtonOverlay { z-index:1;opacity:0.8;filter:alpha(opacity=80);cursor:pointer;color:#fff;padding:0px!important;font-size:14px;background:url(http://video.etherstudios.com/Media/Images/Player/Sprite_EmailCollect.png) 0px -120px no-repeat;position:absolute;top:10px;right:10px;height:60px;width:151px;text-indent:0px;overflow:hidden; }";
B+=".ESV_Player .ESV_EmailCollectButtonOverlay .ESV_Title { white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis;position:relative;width:131px;text-align:center;top:5px;left:10px; }";
if(navigator.platform!="iPad"){B+=".ESV_Player .ESV_EmailCollectButtonOverlay:hover { opacity:1;filter:alpha(opacity=100);color:#5995cd;background-position: -171px -120px; }";
}B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectButton { position:absolute;bottom:20px;right:"+D+"px;width:50px;height:35px;text-indent:-300px; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectButton .ESV_Title { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectOff .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite_EmailCollect.png) 0px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectOn  .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite_EmailCollect.png) 0px -35px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectPanel { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite_EmailCollect.png) -50px 0px no-repeat;position:absolute;right:"+D+"px;bottom:-120px;width:242px;height:90px;padding:15px;opacity:0.0;filter:alpha(opacity=0); }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectPanel .ESV_TextBox { width:240px; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectPanel .ESV_ButtonGroup { display:block;width:100px;right:15px;bottom:-5px;position:absolute; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectPanel .ESV_Button { float:right;text-decoration:none;text-align:center;position:relative;font-size:11px;font-family:Arial;font-weight:bold;display:inline-block;padding:7px 15px;border:solid 1px #404040;color:#fff;background-image:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) 0px -355px;margin:30px 0px 0px 10px; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectPanel .ESV_Button .ESV_Background { z-index:1;background-color:#000;opacity:.50;filter:alpha(opacity=50);width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectPanel .ESV_Button .ESV_Title { z-index:2;position:relative; }";
B+=".ESV_Player .ESV_VideoController .ESV_EmailCollectPanel .ESV_Button:hover .ESV_Background { background-color:#ffffff;opacity:.175;filter:alpha(opacity=17); }";
D+=50;}B+=".ESV_Player .ESV_VideoController .ESV_HDButton { display:none;position:absolute;bottom:20px;right:"+D+"px;width:51px;height:35px;text-indent:-300px; }";
B+=".ESV_Player .ESV_VideoController .ESV_HDButton .ESV_Title { display:none; }";
B+=".ESV_Player .ESV_VideoController .ESV_HDOff .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -45px 0px no-repeat; }";
B+=".ESV_Player .ESV_VideoController .ESV_HDOn  .ESV_Icon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -45px -35px no-repeat; }";
D+=51;B+=".ESV_Player .ESV_VideoController .ESV_BackgroundLeft { width:77px;height:95px;background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -1057px 0px no-repeat;position:absolute;bottom:0px;left:0px; }";
B+=".ESV_Player .ESV_VideoController .ESV_BackgroundCenter { width:"+(this.Width-84)+"px;height:95px;background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) 0px -270px;position:absolute;bottom:0px;left:77px; }";
B+=".ESV_Player .ESV_VideoController .ESV_BackgroundRight { width:7px;height:95px;background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -1135px 0px;position:absolute;bottom:0px;right:0px; }";
B+=".ESV_Player .ESV_VideoController .ESV_TextField { height:16px;padding:8px 15px;position:absolute; }";
B+=".ESV_Player .ESV_VideoController #titleTextField { left:75px;bottom:22px; }";
B+=".ESV_Player .ESV_VideoController #statusTextField { right:"+D+";bottom:22px; }";
B+=".ESV_Player .ESV_VideoController .ESV_PlayheadTime { background-color:#5995cd;width:0px;height:4px;position:absolute;bottom:8px;left:8px;cursor:pointer; }";
B+=".ESV_Player .ESV_VideoController .ESV_PlayheadBuffer { background-color:#5995cd;width:0px;height:4px;position:absolute;bottom:8px;left:8px;opacity:.60;filter:alpha(opacity=60);cursor:pointer; }";
B+=".ESV_Player .ESV_VideoController .ESV_PlayheadScrubber { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -17px -142px no-repeat;width:84px;height:54px;position:absolute;bottom:-17px;left:-32px;cursor:pointer; }";
B+=".ESV_Player .ESV_VideoOverlay { vertical-align:middle;position:absolute;top:0px;left:0px;width:100%;height:100%; }";
B+=".ESV_Player .ESV_VideoOverlay .ESV_PauseIcon { background:url(http://video.etherstudios.com/Media/Images/Player/Sprite.png) -581px 0px no-repeat;display:block;width:125px;height:126px;margin:0px auto;display:none;position:relative; }";
B+=".ESV_Player .ESV_VideoOverlay .ESV_Buffer { margin:0px auto;visibility:hidden;position:absolute;width:150px; }";
var H=document.createElement("style");H.setAttribute("type","text/css");if(H.styleSheet){H.styleSheet.cssText=B;
}else{var A=document.createTextNode(B);H.appendChild(A);}document.getElementsByTagName("head")[0].appendChild(H);
var I="";if(this.VideoID!=0&&navigator.platform=="iPad"){if(this.HDEnabled){I+='<video id="video" preload="none" poster="'+this.VideoPosterUrl+'" src="http://media.video.etherstudios.com/Videos/'+this.VideoID+"/"+this.VideoID+'.1280x720.mp4" width="'+this.Width+'" height="'+this.Height+'">';
}else{I+='<video id="video" preload="none" poster="'+this.VideoPosterUrl+'" src="http://media.video.etherstudios.com/Videos/'+this.VideoID+"/"+this.VideoID+'.852x480.mp4" width="'+this.Width+'" height="'+this.Height+'">';
}}else{if(this.VideoID!=0&&(navigator.platform=="iPhone"||navigator.platform=="iPod")){I+='<video id="video" preload="none" poster="'+this.VideoPosterUrl+'" src="http://media.video.etherstudios.com/Videos/'+this.VideoID+"/"+this.VideoID+'.640x360.mp4" width="'+this.Width+'" height="'+this.Height+'">';
}else{I+='<video id="video" preload="none" poster="'+this.VideoPosterUrl+'" width="'+this.Width+'" height="'+this.Height+'">';
}}I+="    your browser does not support the video tag";I+="</video>";I+='<div class="ESV_VideoOverlay" id="videoOverlay">';
I+='   <span class="ESV_Buffer" id="buffer">';I+='       <canvas id="bufferCanvas"></canvas>';
I+="   </span>";I+='\t<span class="ESV_Icon ESV_PauseIcon" id="pauseIcon"></span>';
I+="</div>";if(this.EmailCollectEnabled){I+='   <span class="ESV_EmailCollectButtonOverlay" id="emailCollectButtonOverlay">';
I+='       <span class="ESV_Title">'+((this.EmailCollectToolTip!=null&&this.EmailCollectToolTip!="")?this.EmailCollectToolTip:"Sign-up for updates")+"</span>";
I+="   </span>";}I+='<div class="ESV_VideoController" id="videoController">';I+='   <span class="ESV_BackgroundLeft" id="backgroundLeft"></span>';
I+='   <span class="ESV_BackgroundCenter" id="backgroundCenter"></span>';I+='   <span class="ESV_BackgroundRight" id="backgroundRight"></span>';
if(this.EmailCollectEnabled){I+='   <span class="ESV_EmailCollectPanel" id="emailCollectPanel">';
I+='       <span class="ESV_Label" style="display:block;font-size:13px;">'+((this.EmailCollectPanelHeader!=null&&this.EmailCollectPanelHeader!="")?this.EmailCollectPanelHeader:"Sign-up for updates")+"</span>";
I+='       <span class="ESV_Label" style="display:block;font-size:11px;">'+this.EmailCollectPanelDescription+"</span>";
I+='       <input type="text" class="ESV_TextBox" id="ESV_Player_EmailCollectPanel_emailAddress" onfocus="if(this.value==\'Email Address\') this.value = \'\'" onblur="if (this.value==\'\') this.value=\'Email Address\'" value="Email Address" />';
I+='       <input type="text" class="ESV_TextBox" id="ESV_Player_EmailCollectPanel_zipCode" onfocus="if(this.value==\'ZIP Code\') this.value = \'\'" onblur="if (this.value==\'\') this.value=\'ZIP Code\'" value="ZIP Code" style="width:155px;" />';
I+='       <span class="ESV_ButtonGroup">';I+='           <a class="ESV_Button" href="javascript:EtherStudios.Video.Player.signUp_Click()" id="ESV_Player_EmailCollectPanel_signUp">';
I+='               <span class="ESV_Background"></span>';I+='               <span class="ESV_Title">Sign up</span></a>';
I+="       </span>";I+="   </span>";}I+='   <span class="ESV_SharePanel" id="sharePanel">';
I+='       <ul class="ESV_Tabs">';I+='           <li><a class="ESV_Tab ESV_Selected" style="width:39px" href="javascript:EtherStudios.Video.Player.socialNetworks_Click()" id="ESV_Player_SharePanel_tabSocialNetworks">';
I+='               <span class="ESV_Background"></span>';I+='               <span class="ESV_Title">Social</span></a></li>';
I+='           <li><a class="ESV_Tab" style="width:39px" href="javascript:EtherStudios.Video.Player.email_Click()" id="ESV_Player_SharePanel_tabEmail">';
I+='               <span class="ESV_Background"></span>';I+='               <span class="ESV_Title">Email</a></li>';
I+='           <li><a class="ESV_Tab" style="width:39px" href="javascript:EtherStudios.Video.Player.embed_Click()" id="ESV_Player_SharePanel_tabEmbed">';
I+='               <span class="ESV_Background"></span>';I+='               <span class="ESV_Title">Embed</a></li>';
I+="       </ul>";I+='       <span class="ESV_SocialNetworks" id="ESV_Player_SharePanel_socialNetworks">';
I+='           <a class="ESV_SocialNetwork" href="javascript:EtherStudios.Video.Player.socialNetwork_Click(\'delicious\')">';
I+='               <span class="ESV_Icon ESV_Icon_Delicious"></span>';I+='               <span class="ESV_Label">Delicious</span>';
I+="           </a>";I+='           <a class="ESV_SocialNetwork" href="javascript:EtherStudios.Video.Player.socialNetwork_Click(\'digg\')">';
I+='               <span class="ESV_Icon ESV_Icon_Digg"></span>';I+='               <span class="ESV_Label">Digg</span>';
I+="           </a>";I+='           <a class="ESV_SocialNetwork" href="javascript:EtherStudios.Video.Player.socialNetwork_Click(\'facebook\')">';
I+='               <span class="ESV_Icon ESV_Icon_Facebook"></span>';I+='               <span class="ESV_Label">Facebook</span>';
I+="           </a>";I+='           <a class="ESV_SocialNetwork" href="javascript:EtherStudios.Video.Player.socialNetwork_Click(\'google\')">';
I+='               <span class="ESV_Icon ESV_Icon_Google"></span>';I+='               <span class="ESV_Label">Google</span>';
I+="           </a>";I+='           <a class="ESV_SocialNetwork" href="javascript:EtherStudios.Video.Player.socialNetwork_Click(\'myspace\')">';
I+='               <span class="ESV_Icon ESV_Icon_Myspace"></span>';I+='               <span class="ESV_Label">Myspace</span>';
I+="           </a>";I+='           <a class="ESV_SocialNetwork" href="javascript:EtherStudios.Video.Player.socialNetwork_Click(\'netvibes\')">';
I+='               <span class="ESV_Icon ESV_Icon_Netvibes"></span>';I+='               <span class="ESV_Label">Netvibes</span>';
I+="           </a>";I+='           <a class="ESV_SocialNetwork" href="javascript:EtherStudios.Video.Player.socialNetwork_Click(\'reddit\')">';
I+='               <span class="ESV_Icon ESV_Icon_Reddit"></span>';I+='               <span class="ESV_Label">Reddit</span>';
I+="           </a>";I+='           <a class="ESV_SocialNetwork" href="javascript:EtherStudios.Video.Player.socialNetwork_Click(\'twitter\')">';
I+='               <span class="ESV_Icon ESV_Icon_Twitter"></span>';I+='               <span class="ESV_Label">Twitter</span>';
I+="           </a>";I+="       </span>";I+='       <span class="ESV_Email" id="ESV_Player_SharePanel_email">';
I+='           <input type="text" class="ESV_TextBox" id="ESV_Player_SharePanel_fromName" onfocus="if(this.value==\'Your Name\') this.value = \'\'" onblur="if (this.value==\'\') this.value=\'Your Name\'" value="Your Name" />';
I+='           <input type="text" class="ESV_TextBox" id="ESV_Player_SharePanel_fromAddress" onfocus="if(this.value==\'Your Email Address\') this.value = \'\'" onblur="if (this.value==\'\') this.value=\'Your Email Address\'" value="Your Email Address" />';
I+='           <input type="text" class="ESV_TextBox" id="ESV_Player_SharePanel_toName" onfocus="if(this.value==\'Recipient&#146;s Name\') this.value = \'\'" onblur="if (this.value==\'\') this.value=\'Recipient&#146;s Name\'" value="Recipient&#146;s Name" />';
I+='           <input type="text" class="ESV_TextBox" id="ESV_Player_SharePanel_toAddress" onfocus="if(this.value==\'Recipient&#146;s Email Address\') this.value = \'\'" onblur="if (this.value==\'\') this.value=\'Recipient&#146;s Email Address\'" value="Recipient&#146;s Email Address" />';
I+='           <textarea style="height:30px;" class="ESV_TextBox" id="ESV_Player_SharePanel_message" onfocus="if(this.value==\'Message\') this.value = \'\'" onblur="if (this.value==\'\') this.value=\'Message\'">Message</textarea>';
if(this.ShareCaptchaEnabled){I+='           <span class="ESV_Captcha" id="ESV_Player_SharePanel_Captcha">';
I+="               <span>";I+='                   <img src="" id="ESV_Player_SharePanel_CaptchaImage" alt="ESV_Player_SharePanel_CaptchaImage" />';
I+='                   <a class="Icon" href="javascript:javascript:EtherStudios.Video.Player.refreshCaptcha_Click()">Refresh CAPTCHA</a>';
I+="               </span>";I+='               <input type="text" class="ESV_TextBox" maxlength="6" id="ESV_Player_SharePanel_CaptchaText" onfocus="EtherStudios.Video.Player.captcha.style.border = \'1px #000000 solid\'" />';
I+="           </span>";}I+='           <span class="ESV_ButtonGroup">';I+='               <a class="ESV_Button" href="javascript:EtherStudios.Video.Player.shareButton_Click()" id="ESV_Player_SharePanel_cancel">';
I+='                   <span class="ESV_Background"></span>';I+='                   <span class="ESV_Title">Cancel</span></a>';
I+='               <a class="ESV_Button" href="javascript:EtherStudios.Video.Player.send_Click" id="ESV_Player_SharePanel_send">';
I+='                   <span class="ESV_Background"></span>';I+='                   <span class="ESV_Title">Send to a Friend</span></a>';
I+="           </span>";I+="       </span>";I+='       <span class="ESV_Embed" id="ESV_Player_SharePanel_embed">';
I+='           <span class="ESV_Label">Copy the code below and paste it into your website.</span>';
I+='           <pre class="ESV_Code">';I+='               <code id="ESV_Player_SharePanel_embedCode">';
I+="               </code>";I+="           </pre>";I+="       </span>";I+="   </span>";
I+='   <span class="ESV_VolumeSlider" id="volumeSlider">';I+='       <span class="ESV_VolumeLevel" id="volumeLevel">';
I+="       </span>";I+='       <span class="ESV_VolumeScrubber" id="volumeScrubber">';
I+="       </span>";I+="   </span>";I+='   <span class="ESV_Button ESV_PlayButton" id="ppButton">';
I+='       <span class="ESV_Background"></span>';I+='       <span class="ESV_Icon"></span>';
I+='       <span class="ESV_Title">Play</span>';I+="   </span>";I+='   <span class="ESV_TextField" id="titleTextField"></span>';
I+='   <span class="ESV_TextField" id="statusTextField"></span>';I+='   <span class="ESV_Button ESV_VolumeButton ESV_VolumeLevel3" id="volumeButton">';
I+='       <span class="ESV_Background"></span>';I+='       <span class="ESV_Icon"></span>';
I+='       <span class="ESV_Title">Volume</span>';I+="   </span>";if(this.EmailCollectEnabled){I+='   <span class="ESV_Button ESV_EmailCollectButton ESV_EmailCollectOff" id="emailCollectButton">';
I+='       <span class="ESV_Background"></span>';I+='       <span class="ESV_Icon"></span>';
I+='       <span class="ESV_Title">'+((this.EmailCollectToolTip!=null&&this.EmailCollectToolTip!="")?this.EmailCollectToolTip:"Sign-up for updates")+"</span>";
I+="   </span>";}if(this.HDEnabled){I+='   <span class="ESV_Button ESV_HDButton ESV_HDOn" id="hdButton">';
}else{I+='   <span class="ESV_Button ESV_HDButton ESV_HDOff" id="hdButton">';}I+='       <span class="ESV_Background"></span>';
I+='       <span class="ESV_Icon"></span>';I+='       <span class="ESV_Title">HD</span>';
I+="   </span>";I+='   <span class="ESV_Button ESV_ShareButton ESV_ShareOff" id="shareButton">';
I+='       <span class="ESV_Background"></span>';I+='       <span class="ESV_Icon"></span>';
I+='       <span class="ESV_Title">Share</span>';I+="   </span>";I+='   <span class="ESV_Button ESV_FullscreenButton ESV_FullscreenOff" id="fullscreenButton">';
I+='       <span class="ESV_Background"></span>';I+='       <span class="ESV_Icon"></span>';
I+='       <span class="ESV_Title">Volume</span>';I+="   </span>";I+='   <span class="ESV_PlayheadBuffer" id="playheadBuffer">';
I+="   </span>";I+='   <span class="ESV_PlayheadTime" id="playheadTime">';I+="   </span>";
I+='   <span class="ESV_PlayheadScrubber" id="playheadScrubber">';I+="   </span>";
I+="</div>";var F=document.createElement("div");F.setAttribute("class","ESV_Player ESV_PlayerHTML5");
F.setAttribute("id","divPlayer_686de796_189f_4690_9397_5690ac1bcaad_HTML5");if(this.LightboxEnabled){F.setAttribute("style","display:none;");
}document.getElementsByTagName("body")[0].appendChild(F);this.player=document.getElementById("divPlayer_686de796_189f_4690_9397_5690ac1bcaad_HTML5");
this.player.innerHTML=I;this.player.style.left=this.GetPlayerPosition().x+"px";this.player.style.top=this.GetPlayerPosition().y+"px";
window.addEventListener("resize",function(){EtherStudios.Video.Player.orientPlayer();
},false);this.pauseIcon=document.getElementById("pauseIcon");this.titleTextField=document.getElementById("titleTextField");
this.statusTextField=document.getElementById("statusTextField");this.videoController=document.getElementById("videoController");
if(navigator.platform!="iPad"){this.videoController.onmouseout=function(J){EtherStudios.Video.Player.videoController_MouseOut(J);
};this.videoController.onmousemove=function(J){EtherStudios.Video.Player.videoController_MouseMove(J);
};this.videoController.onmouseup=function(J){EtherStudios.Video.Player.videoController_MouseUp(J);
};}this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.playheadScrubbing && !EtherStudios.Video.Player.isSharing) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
this.backgroundCenter=document.getElementById("backgroundCenter");this.timer=document.getElementById("timer");
this.video=document.getElementById("video");this.video.addEventListener("canplaythrough",function(){EtherStudios.Video.Player.video_CanPlayThrough();
},false);this.video.addEventListener("waiting",function(){EtherStudios.Video.Player.video_Waiting();
},false);this.video.addEventListener("timeupdate",function(){EtherStudios.Video.Player.video_TimeUpdate();
},false);this.video.addEventListener("seeking",function(){EtherStudios.Video.Player.video_Seeking();
},false);this.video.addEventListener("progress",function(){EtherStudios.Video.Player.video_Progress();
},false);this.video.addEventListener("ended",function(){EtherStudios.Video.Player.video_Ended();
},false);this.video.addEventListener("abort",function(){EtherStudios.Video.Player.video_Abort();
},false);this.video.addEventListener("emptied",function(){EtherStudios.Video.Player.video_Emptied();
},false);this.video.addEventListener("play",function(){EtherStudios.Video.Player.video_Play();
},false);this.ppButton=document.getElementById("ppButton");this.ppButton.onclick=function(){EtherStudios.Video.Player.ppButton_Click();
};this.videoOverlay=document.getElementById("videoOverlay");this.videoOverlay.onclick=function(){EtherStudios.Video.Player.videoOverlay_Click();
};this.videoOverlay.onmousemove=function(J){EtherStudios.Video.Player.videoOverlay_MouseMove(J);
};this.videoOverlay.onmouseup=function(J){EtherStudios.Video.Player.videoOverlay_MouseUp(J);
};this.volumeButton=document.getElementById("volumeButton");this.volumeButton.onclick=function(){EtherStudios.Video.Player.volumeButton_Click();
};this.volumeButton.onmouseover=function(){EtherStudios.Video.Player.volumeButton_MouseOver();
};this.volumeButton.onmouseout=function(){EtherStudios.Video.Player.volumeButton_MouseOut();
};this.volumeSlider=document.getElementById("volumeSlider");this.volumeSlider.onmousemove=function(J){EtherStudios.Video.Player.volumeSlider_MouseMove(J);
};this.volumeSlider.onmouseup=function(J){EtherStudios.Video.Player.volumeSlider_MouseUp(J);
};this.volumeSlider.onmouseout=function(J){EtherStudios.Video.Player.volumeSlider_MouseOut(J);
};this.volumeScrubber=document.getElementById("volumeScrubber");if(navigator.platform!="iPad"){this.volumeScrubber.onmousedown=function(J){EtherStudios.Video.Player.volumeScrubber_MouseDown(J);
};this.volumeScrubber.onmouseup=function(J){EtherStudios.Video.Player.volumeScrubber_MouseUp(J);
};}this.volumeLevel=document.getElementById("volumeLevel");if(navigator.platform!="iPad"){this.volumeLevel.onmousemove=function(J){EtherStudios.Video.Player.volumeLevel_MouseMove(J);
};this.volumeLevel.onmouseup=function(J){EtherStudios.Video.Player.volumeLevel_MouseUp(J);
};}this.hdButton=document.getElementById("hdButton");this.hdButton.onclick=function(){EtherStudios.Video.Player.hdButton_Click();
};this.fullscreenButton=document.getElementById("fullscreenButton");this.fullscreenButton.onclick=function(){EtherStudios.Video.Player.fullscreenButton_Click();
};if(this.ShareEnabled){this.shareButton=document.getElementById("shareButton");this.shareButton.onclick=function(){EtherStudios.Video.Player.shareButton_Click();
};this.sharePanel=document.getElementById("sharePanel");this.socialNetworks=document.getElementById("ESV_Player_SharePanel_socialNetworks");
this.tabEmbed=document.getElementById("ESV_Player_SharePanel_tabEmbed");this.tabSocialNetworks=document.getElementById("ESV_Player_SharePanel_tabSocialNetworks");
this.tabEmail=document.getElementById("ESV_Player_SharePanel_tabEmail");this.email=document.getElementById("ESV_Player_SharePanel_email");
this.send=document.getElementById("ESV_Player_SharePanel_send");this.send.onclick=function(){EtherStudios.Video.Player.send_Click();
};if(this.ShareCaptchaEnabled){this.captcha=document.getElementById("ESV_Player_SharePanel_Captcha");
this.captchaImage=document.getElementById("ESV_Player_SharePanel_CaptchaImage");}this.embed=document.getElementById("ESV_Player_SharePanel_embed");
this.embedCode=document.getElementById("ESV_Player_SharePanel_embedCode");this.updateEmbed();
}if(this.EmailCollectEnabled){this.emailCollectButtonOverlay=document.getElementById("emailCollectButtonOverlay");
this.emailCollectButtonOverlay.onclick=function(){EtherStudios.Video.Player.emailCollectButton_Click();
};this.emailCollectButton=document.getElementById("emailCollectButton");this.emailCollectButton.onclick=function(){EtherStudios.Video.Player.emailCollectButton_Click();
};this.emailCollectPanel=document.getElementById("emailCollectPanel");this.emailAddress=document.getElementById("ESV_Player_EmailCollectPanel_emailAddress");
this.zipCode=document.getElementById("ESV_Player_EmailCollectPanel_zipCode");}this.playheadScrubber=document.getElementById("playheadScrubber");
if(navigator.platform=="iPad"){jQuery("#playheadScrubber").touch({animate:false,sticky:false,dragx:true,dragy:false,rotate:false,resort:false,scale:false,touchStart:function(J){EtherStudios.Video.Player.playheadScrubber_TouchStart(J);
},touchMove:function(J){EtherStudios.Video.Player.playheadScrubber_TouchMove(J);},touchEnd:function(J){EtherStudios.Video.Player.playheadScrubber_TouchEnd(J);
}});}else{this.playheadScrubber.onmousedown=function(J){EtherStudios.Video.Player.playheadScrubber_MouseDown(J);
};this.playheadScrubber.onmouseup=function(J){EtherStudios.Video.Player.playheadScrubber_MouseUp(J);
};}this.playheadBuffer=document.getElementById("playheadBuffer");this.playheadBuffer.onclick=function(J){EtherStudios.Video.Player.playheadBuffer_Click(J);
};this.playheadTime=document.getElementById("playheadTime");this.playheadTime.onclick=function(J){EtherStudios.Video.Player.playheadTime_Click(J);
};setInterval(function(){EtherStudios.Video.Player.checkOrientAndLocation();},500);
this.buffer=document.getElementById("buffer");this.buffer.style.top=((this.buffer.parentNode.offsetHeight/2)-(this.buffer.offsetHeight/2))+"px";
this.buffer.style.left=((this.buffer.parentNode.offsetWidth/2)-(this.buffer.offsetWidth/2))+"px";
this.bufferCanvas=document.getElementById("bufferCanvas");setInterval(function(){EtherStudios.Video.Player.drawBuffer();
},65);if(this.SiteID!=0){if(navigator.platform=="iPad"){setTimeout('EtherStudios.Video.API.SiteService.Get(EtherStudios.Video.Player.SiteID, "EtherStudios.Video.Player.siteWebService_GetResult(result)")',2000);
}else{EtherStudios.Video.API.SiteService.Get(this.SiteID,"EtherStudios.Video.Player.siteWebService_GetResult(result)");
}}if(this.VideoID!=0){if(navigator.platform=="iPad"){setTimeout('EtherStudios.Video.API.VideoService.Get(EtherStudios.Video.Player.VideoID, "EtherStudios.Video.Player.videoWebService_GetResult(result)")',2000);
}else{EtherStudios.Video.API.VideoService.Get(this.VideoID,"EtherStudios.Video.Player.videoWebService_GetResult(result)");
}}}}},lightbox_Open:function(){this.lightbox.style.display="block";var A=0;if(this.lightbox_Content.offsetHeight>jQuery(window).height()){A=40;
}else{A=((jQuery(window).height()/2)-(this.lightbox_Content.offsetHeight/2));}this.lightbox_Content.style.top=A+"px";
if(this.Mode=="FLASH"){this.lightbox_Content.style.width=this.Width+"px";this.player.style.width=this.Width+"px";
this.player.style.height=this.Height+"px";this.orientPlayer();}else{if(this.Mode=="HTML5"){this.lightbox_Content.style.width=this.Width+"px";
this.lightbox_Content.style.height=this.Height+"px";this.player.style.display="block";
this.orientPlayer();}}},lightbox_Close:function(){this.lightbox.style.display="none";
if(this.Mode=="FLASH"){var A=navigator.appName.indexOf("Microsoft")!=-1;if(A){window["player_686de796_189f_4690_9397_5690ac1bcaad"].stopVideo();
}else{document["player_686de796_189f_4690_9397_5690ac1bcaad"].stopVideo();}this.player.style.width="0px";
this.player.style.height="0px";this.orientPlayer();}else{if(this.Mode=="HTML5"){this.video.pause();
this.player.style.display="none";this.orientPlayer();}}},drawBuffer:function(){try{var A=this.bufferCanvas.getContext("2d");
this.bufferCanvas.width=this.bufferCanvas.width;var F=12;var E=360/F;var G=50;while(F--){var H=((E*F)+(30*this.bufferRotation))*Math.PI/180;
var D=Math.max(0.2,1-(0.1*F));var C=(Math.round(Math.sin(H)*G)+75);var I=(Math.round(Math.cos(H)*G)+75);
A.strokeStyle="rgba(0,0,0,"+D+")";A.fillStyle="rgba(255,255,255,"+D+")";A.beginPath();
A.arc(I,C,10,0,Math.PI*2,true);A.closePath();A.stroke();A.fill();}if(this.bufferRotation==12){this.bufferRotation=0;
}else{this.bufferRotation++;}}catch(B){alert(B.message);}},playheadScrubber_TouchStart:function(A){this.playheadScrubbing=true;
if(this.videoControllerTimeout!=undefined){clearTimeout(this.videoControllerTimeout);
}},playheadScrubber_TouchMove:function(B){var A=parseInt(jQuery("#playheadScrubber").css("left"))+42;
if(this.playheadScrubbing){this.playheadTime.style.width=A+"px";}},playheadScrubber_TouchEnd:function(A){this.playheadScrubbing=false;
this.playheadScrubbed=true;this.buffer.style.visibility="visible";this.statusTextField.innerHTML="Buffering";
this.video.currentTime=((this.playheadScrubber.offsetLeft+42)*(this.video.duration/(this.videoController.offsetWidth-15)));
if(this.videoControllerTimeout!=undefined){this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
}},playheadScrubber_MouseDown:function(A){this.playheadScrubbing=true;},playheadScrubber_MouseUp:function(A){this.playheadScrubbing=false;
this.playheadScrubbed=true;this.buffer.style.visibility="visible";this.video.currentTime=(((A.x-this.GetPlayerPosition().x)-4)*(this.video.duration/(this.videoController.offsetWidth-15)));
},playheadBuffer_Click:function(A){this.playheadScrubbed=true;this.video.currentTime=(((A.x-this.GetPlayerPosition().x)-4)*(this.video.duration/(this.videoController.offsetWidth-15)));
this.updateVideoController();},playheadTime_Click:function(A){this.playheadScrubbed=true;
this.video.currentTime=(((A.x-this.GetPlayerPosition().x)-4)*(this.video.duration/(this.videoController.offsetWidth-15)));
this.updateVideoController();},video_Waiting:function(){this.statusTextField.innerHTML="Buffering";
this.buffer.style.visibility="visible";},video_Progress:function(){this.updateVideoController();
},video_TimeUpdate:function(){this.updateVideoController();this.buffer.style.visibility="hidden";
this.statusTextField.innerHTML=this.FormatTimeCode(Math.round(EtherStudios.Video.Player.video.currentTime+1))+" | "+this.FormatTimeCode(Math.round(this.video.duration)-Math.round(this.video.currentTime+1));
},video_CanPlayThrough:function(){if(navigator.platform=="iPad"){this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
}if(!this.playheadScrubbed){if(this.hdChanged){this.hdChanged=false;this.video.currentTime=this.currentTime;
if(!this.paused||!this.video.paused){this.video.play();}}if(this.videoChanged){if(!this.paused||!this.video.paused){this.video.play();
}this.pauseIcon.style.display="none";this.videoChanged=false;}}else{this.playheadScrubbed=false;
}},video_Abort:function(){EtherStudios.Video.Player.ppButton.className="ESV_Button ESV_PlayButton";
this.playheadBuffer.style.width="0px";this.playheadTime.style.width="0px";this.playheadScrubber.style.left="-32px";
},video_Emptied:function(){if(navigator.platform=="iPad"){if(this.video.currentSrc==this.video.src&&this.videoLoadAttempt<2){this.videoLoadAttempt+=1;
this.videoChanged=true;this.video.load();this.video.play();}}},video_Play:function(){EtherStudios.Video.Player.ppButton.className="ESV_Button ESV_PauseButton";
this.buffer.style.visibility="hidden";},video_Ended:function(){EtherStudios.Video.Player.ppButton.className="ESV_Button ESV_PlayButton";
if(this.EmailCollectEnabled&&!this.isEmailCollecting&&!this.hdChanged){this.videoController.style.visibility="visible";
jQuery("#videoController").animate({opacity:1},500,function(){});this.updateVideoController();
clearTimeout(this.videoControllerTimeout);this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing && !EtherStudios.Video.Player.isEmailCollecting) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
this.emailCollectButton_Click();}},videoOverlay_Click:function(){this.ppButton_Click();
},videoOverlay_MouseUp:function(A){if(this.playheadScrubbing){this.playheadScrubber_MouseUp(A);
}if(this.volumeScrubbing){this.volumeScrubber_MouseUp(A);}},videoOverlay_MouseMove:function(A){this.videoController.style.visibility="visible";
jQuery("#videoController").animate({opacity:1},500,function(){});this.updateVideoController();
clearTimeout(this.videoControllerTimeout);this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing && !EtherStudios.Video.Player.isEmailCollecting) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
if(this.playheadScrubbing){this.videoController_MouseMove(A);}if(this.volumeScrubbing){this.volumeScrubber_MouseMove(A);
}},videoController_MouseOut:function(A){this.videoController.style.visibility="visible";
jQuery("#videoController").animate({opacity:1},500,function(){});this.updateVideoController();
clearTimeout(this.videoControllerTimeout);this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.playheadScrubbing && !EtherStudios.Video.Player.isSharing) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
},videoController_MouseMove:function(A){if(this.playheadScrubbing){if(this.isFullscreen){this.playheadScrubber.style.left=(A.x-32)+"px";
this.playheadTime.style.width=A.x+"px";}else{this.playheadScrubber.style.left=((A.x-this.GetPlayerPosition().x)-32)+"px";
this.playheadTime.style.width=((A.x-this.GetPlayerPosition().x))+"px";}}if(this.volumeScrubbing){this.volumeSlider_MouseMove(A);
}},videoController_MouseUp:function(A){if(this.playheadScrubbing){this.playheadScrubber_MouseUp(A);
}if(this.volumeScrubbing){this.volumeScrubber_MouseUp(A);}},volumeButton_Click:function(){if(this.video.volume==0){this.video.volume=this.previousVolume;
this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel3";if(this.video.volume==1){this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel3";
}else{if(this.video.volume<1&&this.video.volume>0.5){this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel2";
}else{if(this.video.volume<0.5&&this.video.volume>0){this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel1";
}else{this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel0";
}}}this.volumeScrubber.style.top=(160-Math.round(160*this.video.volume))+"px";this.volumeLevel.style.height=(172-this.volumeScrubber.offsetTop)+"px";
}else{this.previousVolume=this.video.volume;this.video.volume=0;this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel0";
this.volumeScrubber.style.top="160px";this.volumeLevel.style.height=(172-this.volumeScrubber.offsetTop)+"px";
}},volumeButton_MouseOver:function(){if(this.volumeSlider.style.bottom==""||this.volumeSlider.style.bottom=="-191px"){jQuery("#volumeSlider").animate({bottom:55,opacity:1},500,function(){});
}else{jQuery("#volumeSlider").stop(true);this.volumeSlider.style.bottom="55px";this.volumeSlider.style.opacity="1";
}},volumeButton_MouseOut:function(){if(this.volumeSlider.style.bottom=="55px"){jQuery("#volumeSlider").animate({bottom:-191,opacity:0},500,function(){});
}},volumeScrubber_MouseDown:function(A){this.volumeScrubbing=true;},volumeScrubber_MouseUp:function(A){this.volumeScrubbing=false;
},volumeSlider_MouseMove:function(A){jQuery("#volumeSlider").stop(true);this.volumeSlider.style.bottom="55px";
this.volumeSlider.style.opacity="1";if(this.volumeScrubbing){if((A.y-this.GetPlayerPosition().y-this.videoController.offsetTop)>=17&&(A.y-this.GetPlayerPosition().y-this.videoController.offsetTop)<=174){this.volumeScrubber.style.top=((A.y-this.GetPlayerPosition().y-this.videoController.offsetTop)-14)+"px";
this.volumeLevel.style.height=(172-this.volumeScrubber.offsetTop)+"px";this.video.volume=((this.volumeLevel.offsetHeight-12)/157);
if(this.video.volume==1){this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel3";
}else{if(this.video.volume<1&&this.video.volume>0.5){this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel2";
}else{if(this.video.volume<0.5&&this.video.volume>0){this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel1";
}else{this.volumeButton.className="ESV_Button ESV_VolumeButton ESV_VolumeLevel0";
}}}}}},volumeSlider_MouseUp:function(A){if(this.volumeScrubbing){this.volumeScrubber_MouseUp(A);
}},volumeSlider_MouseOut:function(A){if(this.volumeSlider.style.bottom=="55px"){jQuery("#volumeSlider").animate({bottom:-191,opacity:0},500,function(){});
}},volumeLevel_MouseMove:function(A){if(this.volumeScrubbing){this.volumeSlider_MouseMove(A);
}},volumeLevel_MouseUp:function(A){if(this.volumeScrubbing){this.volumeSlider_MouseUp(A);
}},hdButton_Click:function(){this.currentTime=this.video.currentTime;this.paused=this.video.paused;
this.buffer.style.top=((this.buffer.parentNode.offsetHeight/2)-(this.buffer.offsetHeight/2))+"px";
this.buffer.style.left=((this.buffer.parentNode.offsetWidth/2)-(this.buffer.offsetWidth/2))+"px";
this.buffer.style.visibility="visible";if(navigator.platform=="iPad"){clearTimeout(this.videoControllerTimeout);
this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
}if(this.HDEnabled){this.HDEnabled=false;this.statusTextField.innerHTML="Buffering";
this.hdButton.className="ESV_Button ESV_HDButton ESV_HDOff";this.hdChanged=true;this.video.src="http://media.video.etherstudios.com/Videos/"+this.VideoID+"/"+this.VideoID+".852x480.mp4";
this.video.load();}else{this.HDEnabled=true;this.statusTextField.innerHTML="Buffering";
this.hdButton.className="ESV_Button ESV_HDButton ESV_HDOn";this.hdChanged=true;this.video.src="http://media.video.etherstudios.com/Videos/"+this.VideoID+"/"+this.VideoID+".1280x720.mp4";
this.video.load();}if(navigator.platform=="iPad"){setTimeout("EtherStudios.Video.Player.video.play()",3000);
}},fullscreenButton_Click:function(){if(navigator.platform=="iPad"){clearTimeout(this.videoControllerTimeout);
this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
}if(this.isFullscreen){this.isFullscreen=false;this.fullscreenButton.className="ESV_Button ESV_FullscreenButton ESV_FullscreenOff";
}else{this.isFullscreen=true;this.fullscreenButton.className="ESV_Button ESV_FullscreenButton ESV_FullscreenOn";
}this.orientPlayer();this.updateVideoController();},shareButton_Click:function(){if(navigator.platform=="iPad"){clearTimeout(this.videoControllerTimeout);
this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
}if(this.isSharing){this.isSharing=false;this.shareButton.className="ESV_Button ESV_ShareButton ESV_ShareOff";
}else{this.isSharing=true;this.shareButton.className="ESV_Button ESV_ShareButton ESV_ShareOn";
if(this.ShareCaptchaEnabled){this.refreshCaptcha_Click();}}if(this.emailCollectPanel!=null){if(this.emailCollectPanel.style.bottom=="55px"){this.emailCollectButton_Click();
}}if(this.sharePanel.style.bottom==""||this.sharePanel.style.bottom=="-270px"){jQuery("#sharePanel").animate({bottom:55,opacity:1},500,function(){});
}else{if(this.sharePanel.style.bottom=="55px"){jQuery("#sharePanel").animate({bottom:-270,opacity:0},500,function(){});
}else{jQuery("#sharePanel").stop(true);this.sharePanel.style.bottom="55px";this.sharePanel.style.opacity="1";
}}},signUp_Click:function(){if(this.validateEmailAddress(this.emailAddress.value,"Email address isn't valid.")){EtherStudios.Video.API.createFrame("signUp_Click","http://email.etherstudios.com/?Action=Save&PageTitle="+this.emailAddress.value+"&ZipCode="+this.zipCode.value+"&SiteID="+this.SiteID+"&PlayerID="+this.PlayerID+"&VideoID="+this.VideoID);
this.emailCollectButton_Click();}},emailCollectButton_Click:function(){if(this.isEmailCollecting){this.isEmailCollecting=false;
this.emailCollectButton.className="ESV_Button ESV_EmailCollectButton ESV_EmailCollectOff";
}else{this.isEmailCollecting=true;this.emailCollectButton.className="ESV_Button ESV_EmailCollectButton ESV_EmailCollectOn";
this.videoController.style.visibility="visible";jQuery("#videoController").animate({opacity:1},500,function(){});
this.updateVideoController();clearTimeout(this.videoControllerTimeout);this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing && !EtherStudios.Video.Player.isEmailCollecting) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
}if(this.sharePanel!=null){if(this.sharePanel.style.bottom=="55px"){this.shareButton_Click();
}}if(this.emailCollectPanel.style.bottom==""||this.emailCollectPanel.style.bottom=="-120px"){jQuery("#emailCollectPanel").animate({bottom:55,opacity:1},500,function(){});
}else{if(this.emailCollectPanel.style.bottom=="55px"){jQuery("#emailCollectPanel").animate({bottom:-120,opacity:0},500,function(){});
}else{jQuery("#emailCollectPanel").stop(true);this.emailCollectPanel.style.bottom="55px";
this.emailCollectPanel.style.opacity="1";}}},refreshCaptcha_Click:function(){EtherStudios.Video.API.ShareService.GetCK("EtherStudios.Video.Player.shareWebService_GetCKResult(result)");
},send_Click:function(){var D=document.getElementById("ESV_Player_SharePanel_fromAddress").value;
var C=escape(document.getElementById("ESV_Player_SharePanel_fromName").value);var B=document.getElementById("ESV_Player_SharePanel_toAddress").value;
var E=escape(document.getElementById("ESV_Player_SharePanel_toName").value);var F=escape(document.getElementById("ESV_Player_SharePanel_message").value);
if(this.validateEmailAddress(D,"Your email address isn't valid.")&&this.validateEmailAddress(B,"Recipient's email address isn't valid.")){var A="";
if(this.ShareCaptchaEnabled){A=document.getElementById("ESV_Player_SharePanel_CaptchaText").value;
}EtherStudios.Video.API.ShareService.Mail(B,E,D,C,F,this.videoData.videoid,this.PlayerID,A,this.ck,"EtherStudios.Video.Player.shareWebService_MailResult(result)");
this.shareButton_Click();}},email_Click:function(){this.socialNetworks.style.display="none";
this.tabSocialNetworks.className="ESV_Tab";this.email.style.display="block";this.tabEmail.className="ESV_Tab ESV_Selected";
this.embed.style.display="none";this.tabEmbed.className="ESV_Tab";if(this.ShareCaptchaEnabled){this.refreshCaptcha_Click();
}},socialNetworks_Click:function(){this.socialNetworks.style.display="block";this.tabSocialNetworks.className="ESV_Tab ESV_Selected";
this.email.style.display="none";this.tabEmail.className="ESV_Tab";this.embed.style.display="none";
this.tabEmbed.className="ESV_Tab";},socialNetwork_Click:function(G){var B;var C=(this.videoData.description.toString()!="[object Object]")?escape(EtherStudios.Encoder.htmlDecode(this.videoData.description)):"";
var D;var A=escape(this.HostMedia+"Videos/"+this.videoData.videoid+"/"+this.videoData.Videoid+".thumbnail.jpg");
if(this.siteData!=null&&this.siteData!=undefined){if(this.siteData.sitedomain.toString()!="[object Object]"){B=escape(EtherStudios.Encoder.htmlDecode(this.videoData.name+" | "+this.siteData.sitename));
if(this.videoData.alternateshareurl!=null&&this.videoData.alternateshareurl!=""){D=escape(this.videoData.alternateshareurl);
}else{if(this.videoData.path!=null&&this.videoData.path!=""){D=escape("http://"+this.siteData.sitedomain+"/Watch/"+this.videoData.path);
}else{D=escape("http://"+this.siteData.sitedomain+"/?VideoID="+this.videoData.videoid);
}}}else{B=escape(EtherStudios.Encoder.htmlDecode(this.videoData.name));if(this.videoData.alternateshareurl!=null&&this.videoData.alternateshareurl!=""){D=escape(this.videoData.alternateshareurl);
}else{if(this.videoData.path!=null&&this.videoData.path!=""){D=escape("http://video.etherstudios.com/Watch/"+this.videoData.path);
}else{D=escape("http://video.etherstudios.com/Default.aspx?VideoID="+this.videoData.videoid);
}}}}else{B=escape(EtherStudios.Encoder.htmlDecode(this.videoData.name));if(this.videoData.alternateshareurl!=null&&this.videoData.alternateshareurl!=""){D=escape(this.videoData.alternateshareurl);
}else{if(this.videoData.path!=null&&this.videoData.path!=""){D=escape("http://video.etherstudios.com/Watch/"+this.videoData.path);
}else{D=escape("http://video.etherstudios.com/Default.aspx?VideoID="+this.videoData.videoid);
}}}var E;switch(G){case"delicious":E="http://delicious.com/save?v=5&noui&url="+D+"&title="+B+"&notes="+C;
break;case"digg":E="http://digg.com/submit?url="+D+"&title="+B+"&bodytext="+C;break;
case"facebook":E="http://www.facebook.com/sharer.php?u="+D+"&t="+B;break;case"google":E="https://www.google.com/bookmarks/mark?op=add&bkmk="+D+"&title="+B+"&annotation="+C;
break;case"myspace":E="http://www.myspace.com/Modules/PostTo/Pages/default.aspx?u="+D+"&t="+B+"&c="+C+"&i="+A;
break;case"netvibes":E="http://www.netvibes.com/share?title="+B+"&url="+D;break;case"reddit":E="http://www.reddit.com/submit?url="+D+"&title="+B;
break;case"twitter":var F=B+escape(": ")+D;E="http://twitter.com/?status="+F;break;
case"yahoobuzz":E="http://buzz.yahoo.com/submit/?submitUrl="+D+"&submitHeadline="+B+"&submitSummary="+C+"&submitAssetType=video";
break;}window.open(E,"_blank");this.shareButton_Click();},embed_Click:function(){this.socialNetworks.style.display="none";
this.tabSocialNetworks.className="ESV_Tab";this.email.style.display="none";this.tabEmail.className="ESV_Tab";
this.embed.style.display="block";this.tabEmbed.className="ESV_Tab ESV_Selected";},updateEmbed:function(){if(this.PlayerID!=""&&this.PlayerID!=null&&this.ShareEmbedEnabled){this.tabSocialNetworks.style.width="38px";
this.tabEmail.style.width="38px";this.tabEmbed.style.display="block";var A='<script type="text/javascript" src="'+this.Host+"Handlers/Player.ashx?ID="+this.PlayerID+'"></script>';
A+='\n<script type="text/javascript">';A+="\nEtherStudios.Video.Player.Width = "+this.Width+";";
A+="\nEtherStudios.Video.Player.Height = "+this.Height+";";if(this.VideoID!=null&&this.VideoID!=0){A+="\nEtherStudios.Video.Player.VideoID = "+this.VideoID+";";
}A+="\nEtherStudios.Video.Player.Init();";A+="\n</script>";this.embedCode.innerText=A;
}else{this.tabSocialNetworks.style.width="89px";this.tabEmail.style.width="89px";
this.tabEmbed.style.display="none";}},validateEmailAddress:function(E,D){var G="@";
var B=".";var F=E.indexOf(G);var C=E.length;var A=E.indexOf(B);if(E.indexOf(G)==-1){alert(D);
return false;}if(E.indexOf(G)==-1||E.indexOf(G)==0||E.indexOf(G)==C){alert(D);return false;
}if(E.indexOf(B)==-1||E.indexOf(B)==0||E.indexOf(B)==C){alert(D);return false;}if(E.indexOf(G,(F+1))!=-1){alert(D);
return false;}if(E.substring(F-1,F)==B||E.substring(F+1,F+2)==B){alert(D);return false;
}if(E.indexOf(B,(F+2))==-1){alert(D);return false;}if(E.indexOf(" ")!=-1){alert(D);
return false;}return true;},orientPlayer:function(){if(this.isFullscreen){document.getElementsByTagName("body")[0].style.overflow="hidden";
window.scrollTo(0,0);this.player.style.position="fixed";this.player.style.top="0px";
this.player.style.left="0px";this.player.style.width=window.innerWidth+"px";this.player.style.height=window.innerHeight+"px";
this.videoController.style.width=window.innerWidth+"px";this.backgroundCenter.style.width=(window.innerWidth-84)+"px";
this.video.style.width=window.innerWidth+"px";this.video.style.height=window.innerHeight+"px";
}else{if(this.LightboxEnabled&&this.lightbox!=null){if(this.lightbox.style.display=="block"){document.getElementsByTagName("body")[0].style.overflow="hidden";
window.scrollTo(0,0);this.player.style.position="fixed";this.lightbox.style.width="100%";
this.lightbox.style.height="100%";}else{this.player.style.position="absolute";document.getElementsByTagName("body")[0].style.overflow="auto";
}this.player.style.left=this.GetPlayerPosition().x+"px";this.player.style.top=this.GetPlayerPosition().y+"px";
if(this.Mode=="HTML5"){this.player.style.width=this.Width+"px";this.player.style.height=this.Height+"px";
this.videoController.style.width=this.Width+"px";this.backgroundCenter.style.width=(this.Width-84)+"px";
this.video.style.width=this.Width+"px";this.video.style.height=this.Height+"px";}}else{document.getElementsByTagName("body")[0].style.overflow="auto";
this.player.style.position="absolute";this.player.style.left=this.GetPlayerPosition().x+"px";
this.player.style.top=this.GetPlayerPosition().y+"px";this.player.style.width=this.Width+"px";
this.player.style.height=this.Height+"px";this.videoController.style.width=this.Width+"px";
this.backgroundCenter.style.width=(this.Width-84)+"px";this.video.style.width=this.Width+"px";
this.video.style.height=this.Height+"px";}}if(this.Mode=="HTML5"){this.updateVideoController();
this.pauseIcon.style.top=(((this.pauseIcon.parentNode.offsetHeight/2)-(this.pauseIcon.offsetHeight/2))-20)+"px";
this.buffer.style.top=((this.buffer.parentNode.offsetHeight/2)-(this.buffer.offsetHeight/2))+"px";
this.buffer.style.left=((this.buffer.parentNode.offsetWidth/2)-(this.buffer.offsetWidth/2))+"px";
}},updateVideoController:function(){try{this.playheadBuffer.style.width=Math.round((this.video.buffered.end()/this.video.duration)*(this.videoController.offsetWidth-15))+"px";
if(!this.playheadScrubbing){this.playheadTime.style.width=Math.round((this.video.currentTime/EtherStudios.Video.Player.video.duration)*(this.videoController.offsetWidth-15))+"px";
this.playheadScrubber.style.left=Math.round((this.video.currentTime/EtherStudios.Video.Player.video.duration)*(this.videoController.offsetWidth-15)-40)+"px";
}}catch(A){}},ppButton_Click:function(){if(navigator.platform=="iPad"){clearTimeout(this.videoControllerTimeout);
this.videoControllerTimeout=setTimeout('if (!EtherStudios.Video.Player.video.paused && !EtherStudios.Video.Player.isSharing) {jQuery("#videoController").animate({ opacity: 0 }, 500, function () { EtherStudios.Video.Player.videoController.style.visibility = "hidden"; });}',3000);
}if(!this.video.paused&&!this.video.ended){this.video.pause();this.ppButton.className="ESV_Button ESV_PlayButton";
this.pauseIcon.style.display="block";this.pauseIcon.style.top=(((this.pauseIcon.parentNode.offsetHeight/2)-(this.pauseIcon.offsetHeight/2))-20)+"px";
}else{if(navigator.platform!="iPad"&&navigator.platform!="iPhone"&&navigator.platform!="iPod"){if(this.video.src==""&&this.videoID!=0){if(EtherStudios.Video.Bandwidth.Detected>=256){if(this.HDEnabled){this.video.src="http://media.video.etherstudios.com/Videos/"+this.VideoID+"/"+this.VideoID+".1280x720.mp4";
}else{this.video.src="http://media.video.etherstudios.com/Videos/"+this.VideoID+"/"+this.VideoID+".852x480.mp4";
}}else{if(EtherStudios.Video.Bandwidth.Detected<256){this.video.src="http://media.video.etherstudios.com/Videos/"+this.VideoID+"/"+this.VideoID+".640x360.mp4";
}}}}video.play();this.ppButton.className="ESV_Button ESV_PauseButton";this.pauseIcon.style.display="none";
}},FormatTimeCode:function(C){if(isNaN(C)){C=0;}var G=Math.floor(C/3600);var D=Math.floor((C/60)-(G*60));
var A=Math.floor(C%60);if(A==60){D++;A=0;}if(D==60){G++;D=0;}var E;if(G<10){E="0"+G.toString();
}else{E=G.toString();}var F;if(D<10){F="0"+D.toString();}else{F=D.toString();}var H;
if(A<10){H="0"+A.toString();}else{H=A.toString();}var B="";if(video.duration>=3600){B+=E+":";
}B+=(F+":"+H);return B;},videoWebService_GetResult:function(A){this.videoData=A.getresult;
this.titleTextField.innerHTML=this.videoData.name;},siteWebService_GetResult:function(A){this.siteData=A.getresult;
},shareWebService_MailResult:function(A){if(A.mailresult.code=="1033"||A.mailresult.code=="1034"||A.mailresult.code=="1035"||A.mailresult.code=="1036"){this.captcha.style.border="1px #ff0000 solid";
this.shareButton_Click();}},shareWebService_GetCKResult:function(A){this.ck=A.getckresult;
var B=new Array();if(this.ck!=null&&this.ck!=""){B.push("CK="+this.ck);}else{B.push("CB="+parseInt(Math.random()*99999999));
if(this.PlayerID!=""){B.push("PlayerID="+this.PlayerID);}if(this.VideoID!=0){B.push("VideoID="+this.VideoID);
}}this.captchaImage.src="http://api.video.etherstudios.com/Handlers/Captcha.ashx?"+B.join("&");
document.getElementById("ESV_Player_SharePanel_CaptchaText").value;},player_Init:function(){this.isFlashReady=true;
},Play_Delayed:function(A){if(this.isFlashReady){var B=navigator.appName.indexOf("Microsoft")!=-1;
if(B){window["player_686de796_189f_4690_9397_5690ac1bcaad"].playVideo(A);}else{document["player_686de796_189f_4690_9397_5690ac1bcaad"].playVideo(A);
}}else{setTimeout("EtherStudios.Video.Player.Play_Delayed("+A+")",3000);}},Play:function(B){if(this.player==null){this.Init();
}if(this.LightboxEnabled&&this.lightbox!=null){if(this.lightbox.style.display=="none"||this.lightbox.style.display==""){this.lightbox_Open();
}}if(this.Mode==null){if(EtherStudios.Video.HasFlash()){this.Mode="FLASH";}else{this.Mode="HTML5";
}}if(this.Mode=="FLASH"){var D=navigator.appName.indexOf("Microsoft")!=-1;if(!this.LightboxEnabled){if(D){window["player_686de796_189f_4690_9397_5690ac1bcaad"].playVideo(B);
}else{document["player_686de796_189f_4690_9397_5690ac1bcaad"].playVideo(B);}}else{try{if(D){window["player_686de796_189f_4690_9397_5690ac1bcaad"].playVideo(B);
}else{setTimeout("EtherStudios.Video.Player.Play_Delayed("+B+")",3000);}}catch(A){setTimeout("EtherStudios.Video.Player.Play_Delayed("+B+")",3000);
}}}else{if(this.Mode=="HTML5"){EtherStudios.Video.API.VideoService.Get(B,"EtherStudios.Video.Player.videoWebService_GetResult(result)");
this.VideoID=B;this.videoChanged=true;this.currentTime=0;this.paused=false;this.statusTextField.innerHTML="Buffering";
this.buffer.style.top=((this.buffer.parentNode.offsetHeight/2)-(this.buffer.offsetHeight/2))+"px";
this.buffer.style.left=((this.buffer.parentNode.offsetWidth/2)-(this.buffer.offsetWidth/2))+"px";
this.buffer.style.visibility="visible";this.videoController.style.visibility="visible";
jQuery("#videoController").animate({opacity:1},500,function(){});if(this.ShareEnabled){this.updateEmbed();
}this.ppButton.className="ESV_Button ESV_PauseButton";this.pauseIcon.style.display="none";
this.videoLoadAttempt=0;if(EtherStudios.Video.Bandwidth.Detected>=256&&navigator.platform!="iPhone"&&navigator.platform!="iPod"){if(this.HDEnabled){this.video.src="http://media.video.etherstudios.com/Videos/"+this.VideoID+"/"+this.VideoID+".1280x720.mp4";
this.video.load();}else{this.video.src="http://media.video.etherstudios.com/Videos/"+this.VideoID+"/"+this.VideoID+".852x480.mp4";
this.video.load();}}else{if(EtherStudios.Video.Bandwidth.Detected<256||(navigator.platform=="iPhone"||navigator.platform=="iPod")){this.video.src="http://media.video.etherstudios.com/Videos/"+this.VideoID+"/"+this.VideoID+".640x360.mp4";
this.video.load();}}this.playheadBuffer.style.width="0px";this.playheadTime.style.width="0px";
this.playheadScrubber.style.left="-40px";if(navigator.platform=="iPad"){setTimeout("EtherStudios.Video.Player.video.play()",3000);
}}}if(this.LightboxEnabled&&this.lightbox!=null){window.scrollTo(0,0);}else{var C=this.GetPlayerPosition();
window.scrollTo(C.x,C.y);}},GetPlayerPosition:function(){var C=navigator.appVersion.match(/MSIE/);
var G=navigator.userAgent;var B=G.match(/firefox/i);var I=B&&(G.match(/firefox\/2./i)||G.match(/firefox\/1./i));
var K=B&&!I;var A=document.getElementById("divPlayer_686de796_189f_4690_9397_5690ac1bcaad");
var J=new Object();J.x=0;J.y=0;if(A!==null){J.x=A.offsetLeft;J.y=A.offsetTop;var F=A.offsetParent;
var E=A.parentNode;var D=null;while(F!=null){J.x+=F.offsetLeft;J.y+=F.offsetTop;var H=F.tagName.toLowerCase();
if((C&&H!="table")||(K&&H=="td")){D=this.getBorderWidth(F);J.x+=D.left;J.y+=D.top;
}if(F!=document.body&&F!=document.documentElement){J.x-=F.scrollLeft;J.y-=F.scrollTop;
}if(!C){while(F!=E&&E!==null){J.x-=E.scrollLeft;J.y-=E.scrollTop;if(I){D=this.getBorderWidth(E);
J.x+=D.left;J.y+=D.top;}E=E.parentNode;}}E=F.parentNode;F=F.offsetParent;}}return J;
},parseBorderWidth:function(C){var B=0;if(typeof(C)=="string"&&C!=null&&C!=""){var A=C.indexOf("px");
if(A>=0){B=parseInt(C.substring(0,A));}else{B=1;}}return B;},getBorderWidth:function(C){var B=new Object();
B.left=0;B.top=0;B.right=0;B.bottom=0;if(window.getComputedStyle){var A=window.getComputedStyle(C,null);
B.left=parseInt(A.borderLeftWidth.slice(0,-2));B.top=parseInt(A.borderTopWidth.slice(0,-2));
B.right=parseInt(A.borderRightWidth.slice(0,-2));B.bottom=parseInt(A.borderBottomWidth.slice(0,-2));
}else{B.left=this.parseBorderWidth(C.style.borderLeftWidth);B.top=this.parseBorderWidth(C.style.borderTopWidth);
B.right=this.parseBorderWidth(C.style.borderRightWidth);B.bottom=this.parseBorderWidth(C.style.borderBottomWidth);
}return B;},checkOrientAndLocation:function(){if(navigator.platform=="iPad"){this.titleTextField.innerHTML=this.videoData.name;
}if(this.currentRotation!=window.orientation){this.setOrientation();}var A=0;if(this.ShareEnabled){A+=45;
}if(this.EmailCollectEnabled){A+=50;}if(EtherStudios.Video.Bandwidth.Detected>=256&&navigator.platform!="iPhone"&&navigator.platform!="iPod"){this.hdButton.style.display="block";
if(navigator.platform=="iPad"){this.hdButton.style.right=(45+A)+"px";this.statusTextField.style.right=(96+A)+"px";
}else{this.hdButton.style.right=(96+A)+"px";this.statusTextField.style.right=(147+A)+"px";
}}else{if(EtherStudios.Video.Bandwidth.Detected<256||(navigator.platform=="iPhone"||navigator.platform=="iPod")){this.hdButton.style.display="none";
if(navigator.platform=="iPad"){this.statusTextField.style.right=(45+A)+"px";}else{this.statusTextField.style.right=(96+A)+"px";
}}}},setOrientation:function(){switch(window.orientation){case 0:orient="portrait";
break;case 90:orient="landscape";break;case -90:orient="landscape";break;}this.orientPlayer();
this.currentRotation=window.orientation;document.body.setAttribute("orient",orient);
}};EtherStudios.ESV_API=function(){};EtherStudios.ESV_API.prototype={postMessage:function(A){},receiveMessage:function(event){if(event.origin!=="http://api.video.etherstudios.com"){return;
}eval(unescape(event.data));var xml=unescape(response.XML);xml=xml.replace('<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><'+response.method+'Response xmlns="http://www.alltheboxes.com/">',"");
xml=xml.replace("</"+response.method+"Response></soap:Body></soap:Envelope>","");
xml=xml.replace(/xsi:nil=\"true\"/g,"");var result=xml2json.parser(xml);if(response.callback!=true&&response.callback!=""){eval(response.callback);
}},createFrame:function(C,B){var A=document.createElement("iframe");A.setAttribute("id",C);
A.setAttribute("src",B);A.setAttribute("style","display:none;");document.getElementsByTagName("body")[0].appendChild(A);
}};EtherStudios.ESV_VideoService=function(){};EtherStudios.ESV_VideoService.prototype={GetList:function(A){},GetList_ByUserID:function(B,A){},GetList_ByShowID:function(B,A){},GetList_ByChannelID:function(B,A){},GetList_ByGenreID:function(B,A){},GetList_ByAdvertisementID:function(B,A){},GetFeaturedList:function(A){},GetFeaturedList_BySiteID:function(B,A){},GetFeaturedList_ByNetworkID:function(B,A){},Get:function(B,A){var C=new String();
C=window.location.host;if(C.indexOf(":")>-1){C=C.substring(C.indexOf(":")+1);if(C!=null&&C!=""){C=":"+C;
}}else{C="";}EtherStudios.Video.API.createFrame("ESV_VideoService_Get_"+B,"http://api.video.etherstudios.com/Proxy.htm?Service=Video&Method=Get&videoID="+B+"&Origin="+escape("http://"+document.domain+C+"/")+"&Callback="+A+"&CB="+parseInt(Math.random()*99999999));
},Get_ByPath:function(B,A){},GetCommentList:function(B,A){},SaveComment:function(C,B,A,D){}};
EtherStudios.ESV_SiteService=function(){};EtherStudios.ESV_SiteService.prototype={Get:function(B,A){var C=new String();
C=window.location.host;if(C.indexOf(":")>-1){C=C.substring(C.indexOf(":")+1);if(C!=null&&C!=""){C=":"+C;
}}else{C="";}EtherStudios.Video.API.createFrame("ESV_SiteService_Get_"+B,"http://api.video.etherstudios.com/Proxy.htm?Service=Site&Method=Get&siteID="+B+"&Origin="+escape("http://"+document.domain+C+"/")+"&Callback="+A+"&CB="+parseInt(Math.random()*99999999));
}};EtherStudios.ESV_ShareService=function(){};EtherStudios.ESV_ShareService.prototype={Mail:function(I,H,K,B,L,G,D,J,F,C){var E=new String();
E=window.location.host;if(E.indexOf(":")>-1){E=E.substring(E.indexOf(":")+1);if(E!=null&&E!=""){E=":"+E;
}}else{E="";}var A=new Array();A.push("Service=Share");A.push("Method=Mail");A.push("toAddress="+escape(I));
A.push("toName="+escape(H));A.push("fromAddress="+escape(K));A.push("fromName="+escape(B));
A.push("message="+escape(L));A.push("videoID="+G);if(D!=""&&D!=undefined){A.push("playerID="+D);
}if(J!=""&&J!=undefined){A.push("captchaText="+J);}if(F!=""&&F!=undefined){A.push("ck="+F);
}A.push("Origin="+escape("http://"+document.domain+E+"/"));A.push("Callback="+C);
A.push("CB="+parseInt(Math.random()*99999999));EtherStudios.Video.API.createFrame("ESV_ShareService_Mail_"+G,"http://api.video.etherstudios.com/Proxy.htm?"+A.join("&"));
},GetCK:function(A){var C=new String();C=window.location.host;if(C.indexOf(":")>-1){C=C.substring(C.indexOf(":")+1);
if(C!=null&&C!=""){C=":"+C;}}else{C="";}var B=new Array();B.push("Service=Share");
B.push("Method=GetCK");B.push("Origin="+escape("http://"+document.domain+C+"/"));
B.push("Callback="+A);B.push("CB="+parseInt(Math.random()*99999999));EtherStudios.Video.API.createFrame("ESV_ShareService_GetCK","http://api.video.etherstudios.com/Proxy.htm?"+B.join("&"));
}};EtherStudios.ESV_LogService=function(){};EtherStudios.ESV_LogService.prototype={};
if(EtherStudios.Video==undefined){EtherStudios.Video=new EtherStudios.ESV_Video();
}if(EtherStudios.Video.API==undefined){EtherStudios.Video.API=new EtherStudios.ESV_API();
}if(EtherStudios.Video.API.VideoService==undefined){EtherStudios.Video.API.VideoService=new EtherStudios.ESV_VideoService();
}if(EtherStudios.Video.API.ShareService==undefined){EtherStudios.Video.API.ShareService=new EtherStudios.ESV_ShareService();
}if(EtherStudios.Video.API.SiteService==undefined){EtherStudios.Video.API.SiteService=new EtherStudios.ESV_SiteService();
}if(EtherStudios.Video.API.LogService==undefined){EtherStudios.Video.API.LogService=new EtherStudios.ESV_LogService();
}if(EtherStudios.Video.Bandwidth==undefined){EtherStudios.Video.Bandwidth=new EtherStudios.ESV_Bandwidth();
}if(EtherStudios.Video.Player==undefined){EtherStudios.Video.Player=new EtherStudios.ESV_Player();
}EtherStudios.Encoder={EncodeType:"entity",isEmpty:function(A){if(A){return((A===null)||A.length==0||/^\s+$/.test(A));
}else{return true;}},HTML2Numerical:function(A){var B=new Array("&nbsp;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&shy;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&agrave;","&aacute;","&acirc;","&atilde;","&Auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&Ouml;","&times;","&oslash;","&ugrave;","&uacute;","&ucirc;","&Uuml;","&yacute;","&thorn;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&Oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&quot;","&amp;","&lt;","&gt;","&oelig;","&oelig;","&scaron;","&scaron;","&yuml;","&circ;","&tilde;","&ensp;","&emsp;","&thinsp;","&zwnj;","&zwj;","&lrm;","&rlm;","&ndash;","&mdash;","&lsquo;","&rsquo;","&sbquo;","&ldquo;","&rdquo;","&bdquo;","&dagger;","&dagger;","&permil;","&lsaquo;","&rsaquo;","&euro;","&fnof;","&alpha;","&beta;","&gamma;","&delta;","&epsilon;","&zeta;","&eta;","&theta;","&iota;","&kappa;","&lambda;","&mu;","&nu;","&xi;","&omicron;","&pi;","&rho;","&sigma;","&tau;","&upsilon;","&phi;","&chi;","&psi;","&omega;","&alpha;","&beta;","&gamma;","&delta;","&epsilon;","&zeta;","&eta;","&theta;","&iota;","&kappa;","&lambda;","&mu;","&nu;","&xi;","&omicron;","&pi;","&rho;","&sigmaf;","&sigma;","&tau;","&upsilon;","&phi;","&chi;","&psi;","&omega;","&thetasym;","&upsih;","&piv;","&bull;","&hellip;","&prime;","&prime;","&oline;","&frasl;","&weierp;","&image;","&real;","&trade;","&alefsym;","&larr;","&uarr;","&rarr;","&darr;","&harr;","&crarr;","&larr;","&uarr;","&rarr;","&darr;","&harr;","&forall;","&part;","&exist;","&empty;","&nabla;","&isin;","&notin;","&ni;","&prod;","&sum;","&minus;","&lowast;","&radic;","&prop;","&infin;","&ang;","&and;","&or;","&cap;","&cup;","&int;","&there4;","&sim;","&cong;","&asymp;","&ne;","&equiv;","&le;","&ge;","&sub;","&sup;","&nsub;","&sube;","&supe;","&oplus;","&otimes;","&perp;","&sdot;","&lceil;","&rceil;","&lfloor;","&rfloor;","&lang;","&rang;","&loz;","&spades;","&clubs;","&hearts;","&diams;");
var C=new Array("&#160;","&#161;","&#162;","&#163;","&#164;","&#165;","&#166;","&#167;","&#168;","&#169;","&#170;","&#171;","&#172;","&#173;","&#174;","&#175;","&#176;","&#177;","&#178;","&#179;","&#180;","&#181;","&#182;","&#183;","&#184;","&#185;","&#186;","&#187;","&#188;","&#189;","&#190;","&#191;","&#192;","&#193;","&#194;","&#195;","&#196;","&#197;","&#198;","&#199;","&#200;","&#201;","&#202;","&#203;","&#204;","&#205;","&#206;","&#207;","&#208;","&#209;","&#210;","&#211;","&#212;","&#213;","&#214;","&#215;","&#216;","&#217;","&#218;","&#219;","&#220;","&#221;","&#222;","&#223;","&#224;","&#225;","&#226;","&#227;","&#228;","&#229;","&#230;","&#231;","&#232;","&#233;","&#234;","&#235;","&#236;","&#237;","&#238;","&#239;","&#240;","&#241;","&#242;","&#243;","&#244;","&#245;","&#246;","&#247;","&#248;","&#249;","&#250;","&#251;","&#252;","&#253;","&#254;","&#255;","&#34;","&#38;","&#60;","&#62;","&#338;","&#339;","&#352;","&#353;","&#376;","&#710;","&#732;","&#8194;","&#8195;","&#8201;","&#8204;","&#8205;","&#8206;","&#8207;","&#8211;","&#8212;","&#8216;","&#8217;","&#8218;","&#8220;","&#8221;","&#8222;","&#8224;","&#8225;","&#8240;","&#8249;","&#8250;","&#8364;","&#402;","&#913;","&#914;","&#915;","&#916;","&#917;","&#918;","&#919;","&#920;","&#921;","&#922;","&#923;","&#924;","&#925;","&#926;","&#927;","&#928;","&#929;","&#931;","&#932;","&#933;","&#934;","&#935;","&#936;","&#937;","&#945;","&#946;","&#947;","&#948;","&#949;","&#950;","&#951;","&#952;","&#953;","&#954;","&#955;","&#956;","&#957;","&#958;","&#959;","&#960;","&#961;","&#962;","&#963;","&#964;","&#965;","&#966;","&#967;","&#968;","&#969;","&#977;","&#978;","&#982;","&#8226;","&#8230;","&#8242;","&#8243;","&#8254;","&#8260;","&#8472;","&#8465;","&#8476;","&#8482;","&#8501;","&#8592;","&#8593;","&#8594;","&#8595;","&#8596;","&#8629;","&#8656;","&#8657;","&#8658;","&#8659;","&#8660;","&#8704;","&#8706;","&#8707;","&#8709;","&#8711;","&#8712;","&#8713;","&#8715;","&#8719;","&#8721;","&#8722;","&#8727;","&#8730;","&#8733;","&#8734;","&#8736;","&#8743;","&#8744;","&#8745;","&#8746;","&#8747;","&#8756;","&#8764;","&#8773;","&#8776;","&#8800;","&#8801;","&#8804;","&#8805;","&#8834;","&#8835;","&#8836;","&#8838;","&#8839;","&#8853;","&#8855;","&#8869;","&#8901;","&#8968;","&#8969;","&#8970;","&#8971;","&#9001;","&#9002;","&#9674;","&#9824;","&#9827;","&#9829;","&#9830;");
return this.swapArrayVals(A,B,C);},NumericalToHTML:function(A){var B=new Array("&#160;","&#161;","&#162;","&#163;","&#164;","&#165;","&#166;","&#167;","&#168;","&#169;","&#170;","&#171;","&#172;","&#173;","&#174;","&#175;","&#176;","&#177;","&#178;","&#179;","&#180;","&#181;","&#182;","&#183;","&#184;","&#185;","&#186;","&#187;","&#188;","&#189;","&#190;","&#191;","&#192;","&#193;","&#194;","&#195;","&#196;","&#197;","&#198;","&#199;","&#200;","&#201;","&#202;","&#203;","&#204;","&#205;","&#206;","&#207;","&#208;","&#209;","&#210;","&#211;","&#212;","&#213;","&#214;","&#215;","&#216;","&#217;","&#218;","&#219;","&#220;","&#221;","&#222;","&#223;","&#224;","&#225;","&#226;","&#227;","&#228;","&#229;","&#230;","&#231;","&#232;","&#233;","&#234;","&#235;","&#236;","&#237;","&#238;","&#239;","&#240;","&#241;","&#242;","&#243;","&#244;","&#245;","&#246;","&#247;","&#248;","&#249;","&#250;","&#251;","&#252;","&#253;","&#254;","&#255;","&#34;","&#38;","&#60;","&#62;","&#338;","&#339;","&#352;","&#353;","&#376;","&#710;","&#732;","&#8194;","&#8195;","&#8201;","&#8204;","&#8205;","&#8206;","&#8207;","&#8211;","&#8212;","&#8216;","&#8217;","&#8218;","&#8220;","&#8221;","&#8222;","&#8224;","&#8225;","&#8240;","&#8249;","&#8250;","&#8364;","&#402;","&#913;","&#914;","&#915;","&#916;","&#917;","&#918;","&#919;","&#920;","&#921;","&#922;","&#923;","&#924;","&#925;","&#926;","&#927;","&#928;","&#929;","&#931;","&#932;","&#933;","&#934;","&#935;","&#936;","&#937;","&#945;","&#946;","&#947;","&#948;","&#949;","&#950;","&#951;","&#952;","&#953;","&#954;","&#955;","&#956;","&#957;","&#958;","&#959;","&#960;","&#961;","&#962;","&#963;","&#964;","&#965;","&#966;","&#967;","&#968;","&#969;","&#977;","&#978;","&#982;","&#8226;","&#8230;","&#8242;","&#8243;","&#8254;","&#8260;","&#8472;","&#8465;","&#8476;","&#8482;","&#8501;","&#8592;","&#8593;","&#8594;","&#8595;","&#8596;","&#8629;","&#8656;","&#8657;","&#8658;","&#8659;","&#8660;","&#8704;","&#8706;","&#8707;","&#8709;","&#8711;","&#8712;","&#8713;","&#8715;","&#8719;","&#8721;","&#8722;","&#8727;","&#8730;","&#8733;","&#8734;","&#8736;","&#8743;","&#8744;","&#8745;","&#8746;","&#8747;","&#8756;","&#8764;","&#8773;","&#8776;","&#8800;","&#8801;","&#8804;","&#8805;","&#8834;","&#8835;","&#8836;","&#8838;","&#8839;","&#8853;","&#8855;","&#8869;","&#8901;","&#8968;","&#8969;","&#8970;","&#8971;","&#9001;","&#9002;","&#9674;","&#9824;","&#9827;","&#9829;","&#9830;");
var C=new Array("&nbsp;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&shy;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&agrave;","&aacute;","&acirc;","&atilde;","&Auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&Ouml;","&times;","&oslash;","&ugrave;","&uacute;","&ucirc;","&Uuml;","&yacute;","&thorn;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&Oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&quot;","&amp;","&lt;","&gt;","&oelig;","&oelig;","&scaron;","&scaron;","&yuml;","&circ;","&tilde;","&ensp;","&emsp;","&thinsp;","&zwnj;","&zwj;","&lrm;","&rlm;","&ndash;","&mdash;","&lsquo;","&rsquo;","&sbquo;","&ldquo;","&rdquo;","&bdquo;","&dagger;","&dagger;","&permil;","&lsaquo;","&rsaquo;","&euro;","&fnof;","&alpha;","&beta;","&gamma;","&delta;","&epsilon;","&zeta;","&eta;","&theta;","&iota;","&kappa;","&lambda;","&mu;","&nu;","&xi;","&omicron;","&pi;","&rho;","&sigma;","&tau;","&upsilon;","&phi;","&chi;","&psi;","&omega;","&alpha;","&beta;","&gamma;","&delta;","&epsilon;","&zeta;","&eta;","&theta;","&iota;","&kappa;","&lambda;","&mu;","&nu;","&xi;","&omicron;","&pi;","&rho;","&sigmaf;","&sigma;","&tau;","&upsilon;","&phi;","&chi;","&psi;","&omega;","&thetasym;","&upsih;","&piv;","&bull;","&hellip;","&prime;","&prime;","&oline;","&frasl;","&weierp;","&image;","&real;","&trade;","&alefsym;","&larr;","&uarr;","&rarr;","&darr;","&harr;","&crarr;","&larr;","&uarr;","&rarr;","&darr;","&harr;","&forall;","&part;","&exist;","&empty;","&nabla;","&isin;","&notin;","&ni;","&prod;","&sum;","&minus;","&lowast;","&radic;","&prop;","&infin;","&ang;","&and;","&or;","&cap;","&cup;","&int;","&there4;","&sim;","&cong;","&asymp;","&ne;","&equiv;","&le;","&ge;","&sub;","&sup;","&nsub;","&sube;","&supe;","&oplus;","&otimes;","&perp;","&sdot;","&lceil;","&rceil;","&lfloor;","&rfloor;","&lang;","&rang;","&loz;","&spades;","&clubs;","&hearts;","&diams;");
return this.swapArrayVals(A,B,C);},numEncode:function(B){if(this.isEmpty(B)){return"";
}var C="";for(var A=0;A<B.length;A++){var D=B.charAt(A);if(D<" "||D>"~"){D="&#"+D.charCodeAt()+";";
}C+=D;}return C;},htmlDecode:function(B){var E,C,A=B;if(this.isEmpty(A)){return"";
}A=this.HTML2Numerical(A);arr=A.match(/&#[0-9]{1,5};/g);if(arr!=null){for(var D=0;
D<arr.length;D++){C=arr[D];E=C.substring(2,C.length-1);if(E>=-32768&&E<=65535){A=A.replace(C,String.fromCharCode(E));
}else{A=A.replace(C,"");}}}return A;},htmlEncode:function(A,B){if(this.isEmpty(A)){return"";
}B=B|false;if(B){if(this.EncodeType=="numerical"){A=A.replace(/&/g,"&#38;");}else{A=A.replace(/&/g,"&amp;");
}}A=this.XSSEncode(A,false);if(this.EncodeType=="numerical"||!B){A=this.HTML2Numerical(A);
}A=this.numEncode(A);if(!B){A=A.replace(/&#/g,"##AMPHASH##");if(this.EncodeType=="numerical"){A=A.replace(/&/g,"&#38;");
}else{A=A.replace(/&/g,"&amp;");}A=A.replace(/##AMPHASH##/g,"&#");}A=A.replace(/&#\d*([^\d;]|$)/g,"$1");
if(!B){A=this.correctEncoding(A);}if(this.EncodeType=="entity"){A=this.NumericalToHTML(A);
}return A;},XSSEncode:function(A,B){if(!this.isEmpty(A)){B=B||true;if(B){A=A.replace(/\'/g,"&#39;");
A=A.replace(/\"/g,"&quot;");A=A.replace(/</g,"&lt;");A=A.replace(/>/g,"&gt;");}else{A=A.replace(/\'/g,"&#39;");
A=A.replace(/\"/g,"&#34;");A=A.replace(/</g,"&#60;");A=A.replace(/>/g,"&#62;");}return A;
}else{return"";}},hasEncoded:function(A){if(/&#[0-9]{1,5};/g.test(A)){return true;
}else{if(/&[A-Z]{2,6};/gi.test(A)){return true;}else{return false;}}},stripUnicode:function(A){return A.replace(/[^\x20-\x7E]/g,"");
},correctEncoding:function(A){return A.replace(/(&amp;)(amp;)+/,"$1");},swapArrayVals:function(B,D,F){if(this.isEmpty(B)){return"";
}var A;if(D&&F){if(D.length==F.length){for(var E=0,C=D.length;E<C;E++){A=new RegExp(D[E],"g");
B=B.replace(A,F[E]);}}}return B;},inArray:function(B,D){for(var A=0,C=D.length;A<C;
A++){if(D[A]===B){return A;}}return -1;}};function pushPlayerPosition(A,B){var C=document.getElementById(A);
C.value=B;}