
function toggle_visible(el){var img=$(el);if(!img)return;img.style.visibility="visible";}
function toggle_invisible(el){var img=$(el);if(!img)return;img.style.visibility="hidden";}
function image_toggle_over(el){var img=$(el);if(!img)return;var extension_rx=/(\.[^.]+)$/;if(!img.src.match(/-disabled/)&&img.src.match(extension_rx)){var extension=RegExp.$1;if(!img.src.match(/-hover/))
img.src=img.src.replace(extension_rx,'-hover'+extension);else
img.src=img.src.replace(extension_rx,extension);if(img.src.match(/spottypes/))
img.style.cursor="default";else
img.style.cursor="pointer";}else{img.style.cursor="default";img.alt="";}}
function image_toggle_out(el){var img=$(el);if(!img)return;var extension_rx=/(\.[^.]+)$/;if(!img.src.match(/-disabled/)&&img.src.match(extension_rx)){if(img.src.match(/-hover/))
img.src=img.src.replace(/-hover/,'');}}
var CarouselBase=Class.create();Object.extend(CarouselBase.prototype,{initialize:function(el){var options=arguments[1]||{};this.el=$(el);if(options.itemsLoaded)this.itemsLoaded=options.itemsLoaded.bind(this);if(options.initDone)this.initDone=options.initDone.bind(this);options=Object.extend({buttonStateHandler:this.toggleEnabledness.bind(this),animParameters:{duration:0.5},nextElementID:this.button("next").id,prevElementID:this.button("prev").id,numVisible:5,scrollInc:5,ajaxHandler:this.ajaxHandler.bind(this),initDoneHandler:this.initDoneHandler.bind(this)},options);this.carousel=new Carousel(this.el.id,options);},initDoneHandler:function(carousel){this.carousel=carousel;if(this.initDone)this.initDone(this);},button:function(direction){return $(this.el.id+"-"+direction+"-arrow");},toggleEnabledness:function(button,enabled){if(enabled)$(button).removeClassName("disabled");else $(button).addClassName("disabled");},scrollTo:function(offset){with(this.carousel){if((offset-options.size)>0){var n=offset-options.size+offset%options.numVisible;scrollTo(options.size-1,false);_request(options.size,n);}
else{scrollTo(Math.min(offset,options.size-options.numVisible));}}},ajaxHandler:function(carousel,status){if(status=="before"){$(this.el.id+'-loading').show();}
else{$(this.el.id+'-loading').hide();if(Behaviors){if(Behaviors.toggleCurrentSeason&&carousel.options.selectedSeason){Behaviors.toggleCurrentSeason(carousel.options.selectedSeason);}}}
if(this.itemsLoaded)this.itemsLoaded(carousel,status);},appendOffsets:function(){$$('#'+this.el.id+' li').each(function(el,i){el.getElementsBySelector('a').each(function(a){a.href=a.href.replace(/#c\d+/,'')+'#c'+(i+1);});});}});var setLoggedIn,setLoggedOut;var Menu=Class.create();Object.extend(Menu,{setup:function(anchor,el,x,y){this.knownMenus=this.knownMenus||{};this.knownMenus[el.id]={};var pos=Position.cumulativeOffset(anchor);var left=pos[0]+anchor.offsetWidth-el.getWidth();var top=pos[1]+anchor.offsetHeight;el.style.left=left+x+"px";el.style.top=top+y+"px";},toggle:function(anchor,el,x,y,after){if(this.animating)return;el=$(el);anchor=$(anchor)
var dir='top-right';if(el.id=="browse")dir='top-middle';if(!el.isDown){this.setup(anchor,el,x,y);this.hideAll();this.animating=true;new Effect.Grow(el,{direction:dir,duration:0.4,afterFinish:function(){if(typeof(after)=="function")after();this.animating=false;}.bind(this)});el.isDown=true;}
else{this.animating=true;new Effect.Shrink(el,{direction:dir,duration:0.4,afterFinish:function(){this.animating=false;}.bind(this)});el.isDown=false;}},hideAll:function(){for(var p in this.knownMenus){Element.hide(p);$(p).isDown=false;}}});var Behaviors=Class.create();Object.extend(Behaviors,{toggleFirstDescendant:function(cssRule){$$(cssRule).each(function(el){var target=el.firstDescendant();Event.observe(el,"mouseover",toggle_visible.bind(target,target.firstDescendant()));Event.observe(el,"mouseout",toggle_invisible.bind(target,target.firstDescendant()));});},toggleMouseOverMenu:function(handler,content,closebutton,x,y,arrow,arrow_closed,arrow_opened){if(!(handler=$(handler)))return;if(!(content=$(content)))return;if(arrow!=null)arrow=$(arrow);if(closebutton!=null)closebutton=$(closebutton);content.handler_id=handler.id;handler.content_id=content.id;handler.content_x=x;handler.content_y=y;if(arrow!=null){handler.arrow_id=arrow.id;arrow.closed_src=arrow_closed;arrow.opened_src=arrow_opened;}else{handler.arrow_id=null;}
if(closebutton!=null){closebutton.handler_id=handler.id;closebutton.content_id=content.id;closebutton.onclick=function(){if(!(handler=$(this.handler_id)))return;if(!(content=$(this.content_id)))return;content.isMouseOver=false;handler.oncheck();};}
handler.oncheck=function(){if(!(content=$(this.content_id)))return;if(content.isDown&&(!content.isMouseOver)){var current_frame=$("popup_frame");Element.hide(current_frame);Menu.toggle(this.id,this.content_id,this.content_x,this.content_y);if(this.arrow_id!=null)
if(arrow=$(this.arrow_id))
arrow.src=arrow.closed_src;}};if(handler.onmouseover)handler.onmouseover_old=handler.onmouseover;handler.onmouseover=function(){if(!(content=$(this.content_id)))return;if(!content.isDown){if(this.content_id=='playlist')
if(Behaviors.playlistInvalid){Behaviors.refreshPlaylist();return;}
Menu.current_handler_id=this.id;Menu.toggle(this.id,this.content_id,this.content_x,this.content_y,function(){if(Menu.current_handler_id)var current_handler=$(Menu.current_handler_id);var current_content=$(current_handler.content_id);var current_frame=$("popup_frame");current_frame.className=current_content.className;current_frame.style.left=current_content.style.left;current_frame.style.top=current_content.style.top;current_frame.style.width=current_content.clientWidth;current_frame.style.height=current_content.clientHeight;Element.show(current_frame);setTimeout("$('"+Menu.current_handler_id+"').oncheck()",100);});if(this.arrow_id!=null)
if(arrow=$(this.arrow_id))
arrow.src=arrow.opened_src;}
content.isMouseOver=true;if(this.onmouseover_old)
this.onmouseover_old();};if(handler.onmouseout)handler.onmouseout_old=handler.onmouseout;handler.onmouseout=function(){if(!(content=$(this.content_id)))return;content.isMouseOver=false;if(content.isDown)setTimeout("$('"+this.id+"').oncheck()",300);if(this.onmouseout_old)this.onmouseout_old();};content.onmouseover=function(){this.isMouseOver=true;};content.onmouseout=function(){this.isMouseOver=false;if(this.isDown)setTimeout("$('"+this.handler_id+"').oncheck()",300);};content.isDown=false;content.isMouseOver=false;},toggleCurrentSeason:function(currentSeason){var cssRule=".popular-filter-nav li.season-list";var currentElementId="season-"+currentSeason;$$(cssRule).each(function(el){if(el.id==currentElementId){Element.addClassName(el,"current");}else{Element.removeClassName(el,"current");}});},applySifr:function(){this.siff({sSelector:"h2.home",sColor:"#B2B2B2"});this.siff({sSelector:"h2.filter-label",sColor:"#A7A7A7"});this.siff({sSelector:"h2",sColor:"#444444"});this.siff({sSelector:"h3.reviews",sColor:"#bdbdbd"});this.siff({sSelector:"h5",sColor:"#444444"});},siff:function(attrs){if(typeof(sIFR)=="function"){sIFR.replaceElement(named(Object.extend({sFlashSrc:"/javascripts/futura.swf",sColor:"#AEAEAE",sLinkColor:"#bdbdbd",sBgColor:"#FFFFFF",sHoverColor:"#4d4d4d",sWmode:"transparent",nPaddingTop:0,nPaddingBottom:0,sFlashVars:"textalign=left&offsetTop=0"},attrs)));}},setUsername:function(){if(/_hulu_uname=([^;]+)/.test(document.cookie)&&$('welcome-username')){var uname=String(RegExp.$1).substring(0,11);if(uname!="null"&&uname!="undefined")
Element.update("welcome-username","welcome "+uname);}},setLoggedIn:function(){if(/_hulu_session_id=[^;]+/.test(document.cookie)){if(setLoggedIn)setLoggedIn();this.toggleMouseOverMenu("playlistnav","playlist","closeplaylist",-2,0,null,null,null);this.setUsername();Behaviors.loggedIn=true;}
else{window.location="/beta_login";}},setLoggedOut:function(){if(setLoggedOut)setLoggedOut();Behaviors.loggedIn=false;},afterLogin:function(){Element.hide($("popup_frame"));Menu.toggle('topnav','signin',-2,0);this.toggleMouseOverMenu("playlistnav","playlist","closeplaylist",-2,0,null,null,null);this.setLoggedIn();this.resetPlaylistLinks();},afterLogout:function(){Menu.hideAll();Element.hide($("popup_frame"));this.toggleMouseOverMenu("loginnav","signin","closesignin",-2,0,null,null,null);this.setLoggedOut();this.resetPlaylistLinks();},refreshPlaylist:function(){if(this.refreshingPlaylist)return;Menu.hideAll();this.refreshingPlaylist=true;Element.hide($("popup_frame"));Menu.toggle('playlistnav','playlist',-2,0);Element.update("playlist-inner","");$('playlist-loading-image').show();new Ajax.Updater("playlist-inner",'/users/update_playlist',{onSuccess:function(){$('playlist-loading-image').hide();Behaviors.playlistInvalid=false;Behaviors.refreshingPlaylist=false;}});},loggedIn:false,onLoad:function(){this.toggleMouseOverMenu("nav-link-titles","browse","closebrowse",300,-16,null,null,null);this.toggleMouseOverMenu("loginnav","signin","closesignin",-2,0,null,null,null);this.applySifr();},playlistInvalid:true,refreshingPlaylist:false,addToPlaylistComplete:function(target_element,response){if(/Added/.test(response)){Menu.hideAll();Behaviors.playlistInvalid=true;}
Element.update(target_element+'-text',response);Element.hide(target_element);Element.show(target_element+'-text');},resetPlaylistLinks:function(){$$('.playlist-link').each(function(el){if(/-text$/.test(el.id)){el.hide();}
else{el.show();}})}});function openSignin(){Menu.toggle('loginnav','signin',-2,0,function(){var current_frame=$("popup_frame");var current_content=$("signin");current_frame.className=current_content.className;current_frame.style.left=parseInt(current_content.style.left);current_frame.style.top=parseInt(current_content.style.top);current_frame.style.width=current_content.clientWidth;current_frame.style.height=current_content.clientHeight;Element.show(current_frame);});if($('openTitles'))$('openTitles').src="/images/dropdown_arrow_closed.gif";}
Event.observe(window,'load',function(){if($('feedback-form-container'))
Element.update('feedback-form-container','\
      <div id="beta-blurb">\
        <a href="#" onclick="_feedback_toggle(); return false;" style="text-decoration:underline;"></a>\
      </div>\
      <div id="beta-sending" style="display:none;"></div>\
      <form id="beta-form" method="post" onsubmit="_submit(this);return false;" style="display:none;">\
        <span style="float:left;padding-left:8px;color:#444;">Tell us what you\'re thinking:</span><br/>\
        <textarea name="comment" id="comment" rows="2" cols="30"></textarea>\
        <div style="text-align:center;padding-top:3px;">\
        <input type="image" id="commit-feedback" value="Send" src="/images/btn-submit.gif" onmouseover="image_toggle_over(\'commit-feedback\')" onmouseout="image_toggle_out(\'commit-feedback\')" style="cursor: pointer;">\
        <img id="cancel-feedback" src="/images/btn-cancel.gif" onclick="_feedback_toggle()" value="Cancel" onmouseover="image_toggle_over(\'cancel-feedback\')" onmouseout="image_toggle_out(\'cancel-feedback\')" style="cursor: pointer;" ></div>\
      </form>');});function _feedback_toggle(){Element.toggle('beta-form');Element.toggle('beta-blurb');_opacity_toggle();}
function _sending_toggle(){Element.toggle('beta-sending');Element.toggle('beta-blurb');_opacity_toggle();}
function _opacity_toggle(){$A(['container']).each(function(el){el=$(el);var opacity=Element.getStyle(el,'opacity');if(opacity==null)
opacity='';Element.setStyle(el,{opacity:opacity==''?'0.3':'',filter:opacity==''?'alpha(opacity=30)':''});});}
function _submit(form){Element.update('beta-sending','Sending...');if($("comment"))$("comment").value="";Element.toggle('beta-sending');Element.toggle('beta-form');new Ajax.Request('/feedback/submit',{parameters:Form.serialize(form),onSuccess:function(request){Element.update('beta-blurb','[ Feedback sent. Got more to say? <a href="#" onclick="_feedback_toggle(); return false;">Click here.</a> ]');_sending_toggle();},onFailure:function(request){Element.update('beta-sending',"There was a problem sending this form. "+"Please contact us at <a href=\"mailto:support@hulu.com\">support@hulu.com</a>."+'<div style="text-align:center;"><input type="button" name="cancel" onclick="_sending_toggle();" value="Close" class="button"></div>');}});}
var hasFlash=function(){var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+'))) \n</script\> \n');if(window.hasFlash!=null)return window.hasFlash}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.charAt(b.indexOf(".")-1))>=a}return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var i=0,a=this.length,b=arguments.length;while(i<b){this[a++]=arguments[i++]}return this.length}}if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[];var d,e;if(!a)a=window;if(!b)b=[];for(var i=0;i<b.length;i++){c[i]="b["+i+"]"}e="a.__applyTemp__("+c.join(",")+");";a.__applyTemp__=this;d=eval(e);a.__applyTemp__=null;return d}}function named(a){return new named.Arguments(a)}named.Arguments=function(a){this.oArgs=a};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(a,b){var c,d;var i=a.length;while(i--){d=a[i];if(d!=null&&d.constructor!=null&&d.constructor==named.Arguments){c=a[i].oArgs;break}}if(c==null)return;for(e in c)if(b[e]!=null)b[e](c[e]);return};var parseSelector=function(){var a=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function r(s,t){var u=s.split(/\s*\,\s*/);var v=[];for(var i=0;i<u.length;i++)v=v.concat(b(u[i],t));return v}function b(c,d,e){c=c.normalize().replace(" ","`");var f=c.match(a);var g,h,i,j,k,n;var l=[];if(f==null)f=[c,c];if(f[1]=="")f[1]="*";if(e==null)e="`";if(d==null)d=document;switch(f[2]){case"#":k=f[3].match(a);if(k==null)k=[null,f[3]];g=document.getElementById(k[1]);if(g==null||(f[1]!="*"&&!o(g,f[1])))return l;if(k.length==2){l.push(g);return l}return b(k[3],g,k[2]);case".":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;k=f[3].match(a);if(k!=null){if(g.className==null||g.className.match("(\\s|^)"+k[1]+"(\\s|$)")==null)continue;j=b(k[3],g,k[2]);l=l.concat(j)}else if(g.className!=null&&g.className.match("(\\s|^)"+f[3]+"(\\s|$)")!=null)l.push(g)}return l;case">":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;j=b(f[3],g,">");l=l.concat(j)}return l;case"`":h=m(d,f[1]);for(i=0,n=h.length;i<n;i++){g=h[i];j=b(f[3],g,"`");l=l.concat(j)}return l;default:if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;l.push(g)}return l}}function m(d,o){if(o=="*"&&d.all!=null)return d.all;return d.getElementsByTagName(o)}function o(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:","")==q.toLowerCase()}return r}();var sIFR=function(){var a="http://www.w3.org/1999/xhtml";var b=false;var c=false;var d;var ah=[];var al=document;var ak=al.documentElement;var am=window;var au=al.addEventListener;var av=am.addEventListener;var f=function(){var g=navigator.userAgent.toLowerCase();var f={a:g.indexOf("applewebkit")>-1,b:g.indexOf("safari")>-1,c:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,d:g.indexOf("opera")>-1,e:al.contentType!=null&&al.contentType.indexOf("xml")>-1,f:true,g:true,h:null,i:null,j:null,k:null};f.l=f.a||f.c;f.m=!f.a&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(f.m&&g.match(/.*gecko\/(\d{8}).*/))f.j=new Number(g.match(/.*gecko\/(\d{8}).*/)[1]);f.n=g.indexOf("msie")>-1&&!f.d&&!f.l&&!f.m;f.o=f.n&&g.match(/.*mac.*/)!=null;if(f.d&&g.match(/.*opera(\s|\/)(\d+\.\d+)/))f.i=new Number(g.match(/.*opera(\s|\/)(\d+\.\d+)/)[2]);if(f.n||(f.d&&f.i<7.6))f.g=false;if(f.a&&g.match(/.*applewebkit\/(\d+).*/))f.k=new Number(g.match(/.*applewebkit\/(\d+).*/)[1]);if(am.hasFlash&&(!f.n||f.o)){var aj=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;f.h=parseInt(aj.charAt(aj.indexOf(".")-1))}if(g.match(/.*(windows|mac).*/)==null||f.o||f.c||(f.d&&(g.match(/.*mac.*/)!=null||f.i<7.6))||(f.b&&f.h<7)||(!f.b&&f.a&&f.k<312)||(f.m&&f.j<20020523))f.f=false;if(!f.o&&!f.m&&al.createElementNS)try{al.createElementNS(a,"i").innerHTML=""}catch(e){f.e=true}f.p=f.c||(f.a&&f.k<312);return f}();function at(){return{bIsWebKit:f.a,bIsSafari:f.b,bIsKonq:f.c,bIsOpera:f.d,bIsXML:f.e,bHasTransparencySupport:f.f,bUseDOM:f.g,nFlashVersion:f.h,nOperaVersion:f.i,nGeckoBuildDate:f.j,nWebKitVersion:f.k,bIsKHTML:f.l,bIsGecko:f.m,bIsIE:f.n,bIsIEMac:f.o,bUseInnerHTMLHack:f.p}}if(am.hasFlash==false||!al.getElementsByTagName||!al.getElementById||(f.e&&(f.p||f.n)))return{UA:at()};function af(e){if((!k.bAutoInit&&(am.event||e)!=null)||!l(e))return;b=true;for(var i=0,h=ah.length;i<h;i++)j.apply(null,ah[i]);ah=[]}var k=af;function l(e){if(c==false||k.bIsDisabled==true||((f.e&&f.m||f.l)&&e==null&&b==false)||(al.body==null||al.getElementsByTagName("body").length==0))return false;return true}function m(n){if(f.n)return n.replace(new RegExp("%\d{0}","g"),"%25");return n.replace(new RegExp("%(?!\d)","g"),"%25")}function as(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:","")==q.toLowerCase()}function o(p,q,r,s,t){var u="";var v=p.firstChild;var w,x,y,z;if(s==null)s=0;if(t==null)t="";while(v){if(v.nodeType==3){z=v.nodeValue.replace("<","&lt;");switch(r){case"lower":u+=z.toLowerCase();break;case"upper":u+=z.toUpperCase();break;default:u+=z}}else if(v.nodeType==1){if(as(v,"a")&&!v.getAttribute("href")==false){if(v.getAttribute("target"))t+="&sifr_url_"+s+"_target="+v.getAttribute("target");t+="&sifr_url_"+s+"="+m(v.getAttribute("href")).replace(/&/g,"%26");u+='<a href="asfunction:_root.launchURL,'+s+'">';s++}else if(as(v,"br"))u+="<br/>";if(v.hasChildNodes()){y=o(v,null,r,s,t);u+=y.u;s=y.s;t=y.t}if(as(v,"a"))u+="</a>"}w=v;v=v.nextSibling;if(q!=null){x=w.parentNode.removeChild(w);q.appendChild(x)}}return{"u":u,"s":s,"t":t}}function A(B){if(al.createElementNS&&f.g)return al.createElementNS(a,B);return al.createElement(B)}function C(D,E,z){var p=A("param");p.setAttribute("name",E);p.setAttribute("value",z);D.appendChild(p)}function F(p,G){var H=p.className;if(H==null)H=G;else H=H.normalize()+(H==""?"":" ")+G;p.className=H}function aq(ar){var a=ak;if(k.bHideBrowserText==false)a=al.getElementsByTagName("body")[0];if((k.bHideBrowserText==false||ar)&&a)if(a.className==null||a.className.match(/\bsIFR\-hasFlash\b/)==null)F(a,"sIFR-hasFlash")}function j(I,J,K,L,M,N,O,P,Q,R,S,r,T){if(!l())return ah.push(arguments);aq();named.extract(arguments,{sSelector:function(ap){I=ap},sFlashSrc:function(ap){J=ap},sColor:function(ap){K=ap},sLinkColor:function(ap){L=ap},sHoverColor:function(ap){M=ap},sBgColor:function(ap){N=ap},nPaddingTop:function(ap){O=ap},nPaddingRight:function(ap){P=ap},nPaddingBottom:function(ap){Q=ap},nPaddingLeft:function(ap){R=ap},sFlashVars:function(ap){S=ap},sCase:function(ap){r=ap},sWmode:function(ap){T=ap}});var U=parseSelector(I);if(U.length==0)return false;if(S!=null)S="&"+S.normalize();else S="";if(K!=null)S+="&textcolor="+K;if(M!=null)S+="&hovercolor="+M;if(M!=null||L!=null)S+="&linkcolor="+(L||K);if(O==null)O=0;if(P==null)P=0;if(Q==null)Q=0;if(R==null)R=0;if(N==null)N="#FFFFFF";if(T=="transparent")if(!f.f)T="opaque";else N="transparent";if(T==null)T="";var p,V,W,X,Y,Z,aa,ab,ac;var ad=null;for(var i=0,h=U.length;i<h;i++){p=U[i];if(p.className!=null&&p.className.match(/\bsIFR\-replaced\b/)!=null)continue;V=p.offsetWidth-R-P;W=p.offsetHeight-O-Q;aa=A("span");aa.className="sIFR-alternate";ac=o(p,aa,r);Z="txt="+m(ac.u).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+S+"&w="+V+"&h="+W+ac.t;F(p,"sIFR-replaced");if(ad==null||!f.g){if(!f.g){if(!f.n)p.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',J,'" quality="best" wmode="',T,'" bgcolor="',N,'" flashvars="',Z,'" width="',V,'" height="',W,'" sifr="true"></embed>'].join("");else p.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',V,'" height="',W,'" class="sIFR-flash"><param name="movie" value="',J,"?",Z,'"></param><param name="quality" value="best"></param><param name="wmode" value="',T,'"></param><param name="bgcolor" value="',N,'"></param> </object>'].join('')}else{if(f.d){ab=A("object");ab.setAttribute("data",J);C(ab,"quality","best");C(ab,"wmode",T);C(ab,"bgcolor",N)}else{ab=A("embed");ab.setAttribute("src",J);ab.setAttribute("quality","best");ab.setAttribute("flashvars",Z);ab.setAttribute("wmode",T);ab.setAttribute("bgcolor",N)}ab.setAttribute("sifr","true");ab.setAttribute("type","application/x-shockwave-flash");ab.className="sIFR-flash";if(!f.l||!f.e)ad=ab.cloneNode(true)}}else ab=ad.cloneNode(true);if(f.g){if(f.d)C(ab,"flashvars",Z);else ab.setAttribute("flashvars",Z);ab.setAttribute("width",V);ab.setAttribute("height",W);ab.style.width=V+"px";ab.style.height=W+"px";p.appendChild(ab)}p.appendChild(aa);if(f.p)p.innerHTML+=""}if(f.n&&k.bFixFragIdBug)setTimeout(function(){al.title=d},0)}function ai(){d=al.title}function ae(){if(k.bIsDisabled==true)return;c=true;if(k.bHideBrowserText)aq(true);if(am.attachEvent)am.attachEvent("onload",af);else if(!f.c&&(al.addEventListener||am.addEventListener)){if(f.a&&f.k>=132&&am.addEventListener)am.addEventListener("load",function(){setTimeout("sIFR({})",1)},false);else{if(al.addEventListener)al.addEventListener("load",af,false);if(am.addEventListener)am.addEventListener("load",af,false)}}else if(typeof am.onload=="function"){var ag=am.onload;am.onload=function(){ag();af()}}else am.onload=af;if(!f.n||am.location.hash=="")k.bFixFragIdBug=false;else ai()}k.UA=at();k.bAutoInit=true;k.bFixFragIdBug=true;k.replaceElement=j;k.updateDocumentTitle=ai;k.appendToClassName=F;k.setup=ae;k.debug=function(){aq(true)};k.debug.replaceNow=function(){ae();k()};k.bIsDisabled=false;k.bHideBrowserText=true;return k}();if(typeof sIFR=="function"&&!sIFR.UA.bIsIEMac){sIFR.setup();};if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;Event.observe(window,'unload',Event.unloadCache,false);var LightBox=Class.create();LightBox.prototype={yPos:0,xPos:0,initialize:function(){},activate:function(){$("overlay-top").style.display="block";if(Prototype.Browser.IE){$("overlay-bottom").style.height=document.documentElement.clientHeight+"px";this.hideSelects('hidden');}
else
$("overlay-bottom").style.height=window.innerHeight+"px";$("overlay-bottom").style.display="block";},hideSelects:function(visibility){selects=document.getElementsByTagName('select');for(i=0;i<selects.length;i++){selects[i].style.visibility=visibility;}},actions:function(){var lbActions=document.getElementsByClassName('lbAction');for(i=0;i<lbActions.length;i++){Event.observe(lbActions[i],'click',this[lbActions[i].rel].bindAsEventListener(this),false);lbActions[i].onclick=function(){return false;};}},deactivate:function(){if(Prototype.Browser.IE){this.hideSelects("visible");}
$('overlay-top').style.display="none";$("overlay-bottom").style.display="none";}}
var lghtbx=new LightBox();var TitleHack={originalDocumentTitle:document.title,fixOnFocus:function(el){Event.observe(el,"focus",function(){if(document.title!=TitleHack.originalDocumentTitle)
document.title=TitleHack.originalDocumentTitle;});}};