var dom={};
if(typeof encodeURIComponent=="undefined"){
encodeURIComponent=function(_1){
return escape(_1);
};
decodeURIComponent=function(_2){
return unescape(_2);
};
}
if(typeof Function.apply!="function"){
Function.prototype.apply=function(_3,_4){
var r,x="____apply";
if(typeof _3!="object"&&typeof _3!="function"){
_3={};
}
_3[x]=this;
r=_3[x](_4[0],_4[1],_4[2],_4[3],_4[4],_4[5]);
return r;
};
}
Function.prototype.bindEventListener=function(_6){
var _7=this;
var _8=[];
for(var ii=1;ii<arguments.length;ii++){
_8.push(arguments[ii]);
}
return function(_10){
_10=_10||window.event;
var _11=[_10];
_11=_11.concat(_8);
return _7.apply(_6,_11);
};
};
Array.prototype.walk=function(_12,_13){
var _14=true;
var _15=typeof _13!="undefined";
for(var ii=0;ii<this.length;ii++){
if((_15?_12.apply(_13,[this[ii]]):_12(this[ii]))==false){
_14=false;
}
}
return _14;
};
String.prototype.containsClass=function(_16){
var _17=new RegExp("\\b"+_16+"\\b","g");
return _17.test(this);
};
String.prototype.addClass=function(_18){
if(!this.containsClass(_18)){
return this.length>0?this+" "+_18:_18;
}
};
String.prototype.swapClass=function(_19,_20){
return this.removeClass(_19).addClass(_20);
};
String.prototype.removeClass=function(_21){
if(typeof _21!="string"){
if(typeof _21=="object"&&_21.constructor==Array){
var s=this;
for(var ii=0;ii<_21.length;ii++){
s=s.removeClass(_21[ii]);
}
}
return s;
}
if(!this.containsClass(_21)){
return this;
}
var _23=new RegExp("\\s"+_21+"\\s");
if(_23.test(this)){
var _24=new RegExp("\\s"+_21);
}else{
var _24=new RegExp("\\s?"+_21+"\\s?");
}
return this.replace(_24,"");
};
var ImageLoader={img:new Image(1,1),loadImage:function(_25){
this.img.src=_25;
},loadImageArray:function(_26){
_26.walk(this.loadImage,this);
}};
function callOnWindowLoad(_27){
EventDispatcher.addEvent(window,"load",_27);
}
var EventDispatcher={elements:[],eventCounter:1,addEvent:function(_28,_29,_30){
EventDispatcher.callCounter++;
if(!_30.__eid){
_30.__eid=this.eventCounter++;
}
if(!_28.__events){
_28.__events={};
this.elements[this.elements.length]=_28;
}
var _31=_28.__events[_29];
if(!_31){
_31=_28.__events[_29]={};
if(_28["on"+_29]){
_31[0]=_28["on"+_29];
}
}
_28["on"+_29]=EventDispatcher.handleEvent;
_31[_30.__eid]=_30;
return _30.__eid;
},removeEvent:function(_32,_33,_34){
var eid=(typeof _34=="function")?_34.__eid:_34;
if(_32.__events&&_32.__events[_33]&&eid){
delete _32.__events[_33][eid];
return true;
}else{
return false;
}
},handleEvent:function(_36){
_36=_36||window.event;
var _37=true;
var _38=this.__events[_36.type];
for(var ii in _38){
if(_38[ii].apply(this,[_36])===false){
_37=false;
}
}
return _37;
},cleanupAll:function(){
for(var ii=0;ii<this.elements.length;ii++){
this.cleanupElement(this.elements[ii]);
delete this.elements[ii];
}
},cleanupElement:function(_39){
if(_39.__events){
for(type in _39.__events){
for(eid in _39.__events[type]){
delete _39.__events[type][eid];
}
_39["on"+type]=null;
}
}
}};
EventDispatcher.addEvent(window,"unload",EventDispatcher.cleanupAll.bindEventListener(EventDispatcher));
function domReady(){
if(arguments.callee.done){
return;
}
arguments.callee.done=true;
dom.onready&&dom.onready({type:"ready"});
dom.onafterready&&dom.onafterready({type:"afterready"});
}
if(document.addEventListener){
document.addEventListener("DOMContentLoaded",domReady,null);
}
function forceDomReady(){
if(!document.addEventListener&&!UserAgent.matches.iewin){
domReady();
}
}
EventDispatcher.addEvent(window,"load",domReady);
function CPValue(s){
return (typeof (CP$value)!="undefined"&&CP$value[s])?CP$value[s]:0;
}
function PopUpMessage(){
window.status="";
}
var doRatingsPopup="false";
var popupMovieId=null;
var inRatingRedirectTest="true";
var b_popup=(CPValue("*popup*")!=0);
var b_member=(CPValue("*member*")!=0);
var b_show800=true;
var s_titlecount="30,000";
var s_librange="2-8";
var s_maxlib="8";
var s_maxout=(CPValue("*maxout*")==0)?"3":(""+CPValue("*maxout*"));
var s_shippingtime="1-3";
var ratedMovies="";
var ratedRatings="";
function Timer(_40,_41){
this.timerName=_40;
this.startTime=_41||new Date();
}
Timer.prototype={stop:function(_42){
return (_42||(new Date()).valueOf()-this.startTime.valueOf());
},toString:function(){
return this.timerName+": "+this.stop()+" ms";
}};
var UserAgent={matches:{},supports:{},uaDefs:{mac:/(\bmac.os\b|\bmac_)/i,windows:/\b(win95|win98|win 9x|winnt|windows)\b/i,x11:/\bx11\b/i,nix:/\b(unix|linux|x11|bsd)\b/i,iewin:/msie (.*)?windows/i,iewinlt7:/msie [1-6](.*)?windows/i,iewin7:/msie 7(.*)?windows/i,iewin6:/msie 6(.*)?windows/i,iewin55:/msie 5\.5(.*)?windows/i,iewin5:/msie 5\.0(.*)?windows/i,iewinold:/msie [1-4](.*)?windows/i,iemac:/msie.5(.*)?mac/i,ns4:/netscape.4/i,safari:/(safari|applewebkit)/i,khtml:/(konqueror|khtml|safari)/i,opera:/opera/i,opera9:/opera.9/i},featureDefs:{pngAlpha:function(){
var m=UserAgent.matches;
return m.khtml||m.opera||m.gecko||m.iewin&&!(m.iewin5||m.iewinold);
},pngAlphaIEWin:function(){
var m=UserAgent.matches;
return m.iewin&&!(m.iewin5||m.iewinold);
},elementAlpha:function(){
var m=UserAgent.matches;
return m.khtml||m.opera9||m.gecko||(m.iewin&&!m.iewinold);
},elementAlphaIEWin:function(){
return UserAgent.supports.elementAlpha&&UserAgent.matches.iewin;
},fixedPosition:function(){
var m=UserAgent.matches;
return !m.iewin&&(m.gecko||m.khtml||m.opera);
}},init:function(){
var _44="";
var m=this.matches;
var _45=function(_46,_47){
m[_46]=_47;
_44+=_46+": "+m[_46]+"\n";
};
for(var _48 in this.uaDefs){
_45(_48,this.uaDefs[_48].test(navigator.userAgent));
}
_45("gecko",!m.khtml&&!m.opera&&/(firefox|camino|gecko)/i.test(navigator.userAgent));
for(var _49 in this.featureDefs){
this.supports[_49]=this.featureDefs[_49]();
_44+=_49+": "+this.supports[_49]+"\n";
}
Browser={MSIE:function(){
return UserAgent.matches.iewin;
}};
isMacIE=this.matches.iemac;
isSafari=this.matches.safari;
isOpera=this.matches.opera;
EventDispatcher.addEvent(window,"load",UserAgent.onDocumentLoad);
},addSupportedFeature:function(_50,_51){
this.supports[_50]=_51;
},onDocumentLoad:function(){
var _52=document.body.className;
var m=UserAgent.matches;
for(var _53 in m){
if(m[_53]){
_52=_52.addClass("ua-"+_53);
}
}
document.body.className=_52;
}};
var appVers=navigator.appVersion;
UserAgent.init();
var BoxShots={sizes:{TINY:"tiny",SMALL:"small",BIG3:"big3",LARGE:"large"},getUrl:function(_54,_55){
return Link.imgURL("boxshots/"+_55+"/"+_54+".jpg");
}};
var RENT_BUTTON_SMALL=0;
var RENT_BUTTON_MEDIUM=10;
var RENT_BUTTON_LARGE=20;
var RENT_BUTTON_JUMBO=30;
function stripUnits(_56){
return parseInt(_56);
}
function getCopyOfObject(obj){
var _58={};
for(var _59 in obj){
_58[_59]=_59.value;
}
return _58;
}
function ratingsPop(_60,_61){
if(doRatingsPopup=="true"){
showRatingsPop(_61);
}else{
window.location.href=_60;
}
}
function trackRating(_62,_63){
if(_63>=3){
ratedMovies=ratedMovies+_62+",";
ratedRatings=ratedRatings+_63+",";
}
}
function xferRating(_64){
_64.movies.value=ratedMovies;
_64.ratings.value=ratedRatings;
}
function openAWindow(){
window.open(PAGE_ROOT+"FirstRatingPopup?lnkctr=popRate&movieid="+popupMovieId,"ratepop","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=605,height=295");
}
function showRatingsPop(_65){
popupMovieId=_65;
if(window.location.pathname.indexOf("/RateMovies")==-1){
setTimeout("openAWindow()",500);
}
}
if((typeof IMAGE_ROOT)=="undefined"){
IMAGE_ROOT="img/";
}
var queuePopUpTargetName="nfQPop";
function rent(_66,_67){
checkForQueueAddCookie(0,_67);
return true;
}
String.prototype.setUrlQueryString=function(_68){
if(!_68){
return this;
}
var _69=this;
var ind=_69.indexOf(URLLib.QUERY_START);
if(ind!=-1){
_69=_69.substring(0,ind+1);
}else{
_69+=URLLib.QUERY_START;
}
var _71=true;
for(key in _68){
if(!_71){
_69+=URLLib.QUERY_DELIM;
}
_69+=key+URLLib.NVPAIR_DELIM+encodeURIComponent(_68[key]);
_71=false;
}
if(_71){
_69=this;
}
return _69;
};
String.prototype.getUrlAttribute=function(_72){
var ls;
var ind=this.indexOf(URLLib.QUERY_START);
if(ind!=-1){
ls=this.substring(ind);
}else{
return null;
}
if(ls.length>0&&ls.indexOf(_72)!=-1){
var _74=ls.substring(1).split(URLLib.QUERY_DELIM);
var _75=_72+URLLib.NVPAIR_DELIM;
for(var i=0;i<_74.length;i++){
if(_74[i].indexOf(_75)==0&&_74[i].length>_75.length){
return decodeURIComponent(_74[i].substring(_75.length));
}
}
}
return null;
};
String.prototype.setUrlAttribute=function(_77,_78){
var _79=this;
var _80=_79.getUrlAttribute(_77);
if(_80){
_79=_79.replace(_77+URLLib.NVPAIR_DELIM+_80,_77+URLLib.NVPAIR_DELIM+encodeURIComponent(_78));
}else{
_79+=((_79.indexOf(URLLib.QUERY_START)==-1)?URLLib.QUERY_START:URLLib.QUERY_DELIM)+_77+URLLib.NVPAIR_DELIM+encodeURIComponent(_78);
}
return _79;
};
var URLLib={QUERY_START:"?",QUERY_DELIM:"&",NVPAIR_DELIM:"="};
function checkForQueueAddCookie(_81,url){
var _83=parseFloat(appVers);
var _84="toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=1,width=585,height=650";
if(navigator.appName=="Netscape"&&_83>=4&&_83<5){
window.setTimeout("window.open('"+url+"', '"+queuePopUpTargetName+"', '"+_84+"');",150);
}else{
if(typeof _81=="undefined"||_81==null){
_81=0;
}
var _85=document.cookie;
var _86="lastQAddResult";
var _87=_85.indexOf(_86);
var _88=_87+_86.length+1;
var _89="";
if(_88<_85.length){
_89=_85.charAt(_88);
}
var _90=(_87!=-1&&(_89=="0"||_89=="1"||_89=="2"||_89=="3"||_89=="-"));
if(_90){
var _91=url.indexOf("movieid=")+8;
var end=url.indexOf("&",_91);
if(end==-1){
end=url.length;
}
var _93=url.substring(_91,end);
if(_85.indexOf(_93,_88)==-1){
_90=false;
}
}
if(_90){
window.open(url,queuePopUpTargetName,_84);
}else{
if(_81<60){
window.setTimeout("checkForQueueAddCookie("+(_81+1)+", '"+url+"');",50);
}
}
}
}
function privPop(_94){
window.open(_94,"nf_static_popup","toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=1,width=500,height=450,left=1,top=1");
}
function addressPop(_95){
window.open(_95,"address_popup2","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=1,width=350,height=410,left=1,top=1");
}
function cobrandPrivPop(_96){
window.open(_96,"poppage_cobrand_link","toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=1,width=600,height=450,left=400,top=1");
}
function stateAddress(_97){
window.open(_97,"memberaddressedit","toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=0,width=425,height=490");
}
function popupTermsandConditions(_98){
window.open(_98,"NF_Marquee_Terms_And_Conditions","height=470,width=400,menubar=no,location=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no");
}
function safePop(_99){
window.open(_99,"poppop","toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=0,width=367,height=450,left=1,top=1");
}
function lhcNavCheck(_100){
var _101=document.forms[_100].page.selectedIndex;
var _102=document.forms[_100].page.options[_101].value;
if(_102==0){
if(_101==(document.forms[_100].page.length-1)){
document.forms[_100].page.selectedIndex=0;
}else{
document.forms[_100].page.selectedIndex=0;
}
}else{
if((_102=="Recs")&&(doRatingsPopup=="true")){
showRatingsPop();
}else{
if(_101==0){
document.forms[_100].submit();
}else{
document.forms[_100].submit();
}
}
}
}
function searchCheck(_103){
var _104=document.forms[_103].searchTxt.value;
if(_104==""){
document.location="";
}else{
document.forms[_103].submit();
}
}
var dontFocus="";
function focusAddressFormField(){
if(document.login_form&&(dontFocus=="")){
document.login_form.email.focus();
}else{
if(document.register_form&&(dontFocus=="")){
document.register_form.email.focus();
}else{
if(document.addressEntry&&(dontFocus=="")){
document.addressEntry.fname.focus();
}
}
}
}
function load_main(_105){
if(!b_popup){
window.location.href=_105;
}else{
if(window.opener){
window.opener.top.location.href=_105;
window.opener.focus();
self.close();
}else{
window.open(_105,"_nfk");
}
}
}
function focusNClearInput(_106){
var _107=_106.getAttribute("hasBeenFocused");
var _108=(_107==""||_107==null);
if(_108){
_106.setAttribute("hasBeenFocused","true");
_106.style.color="#000000";
_106.value="";
var _109=_106.form;
for(ii=0;ii<_109.elements.length;ii++){
if(_109.elements[ii].type=="submit"){
_109.elements[ii].disabled=false;
}
}
}
}
function swapImage(_110,_111){
document.images[_110].src=_111;
}
function NF_preloadImages(){
var d=document;
if(d.images){
if(!d.NF_p){
d.NF_p=new Array();
}
var i,j=d.NF_p.length,a=NF_preloadImages.arguments;
for(i=0;i<a.length;i++){
if(a[i].indexOf("#")!=0){
d.NF_p[j]=new Image;
d.NF_p[j++].src=a[i];
}
}
}
}
function changeWindowTitle(_113){
if(CP$value["*member*"]){
var t="Netflix: "+_113;
document.title=t;
}
}
function oopPop(){
window.open("/Popup?id=5170","oopPop","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=350,height=250");
}
function ooppop(){
oopPop();
}
button1=new Image();
button1.src=IMAGE_ROOT+"buttons/one_moment_please.gif";
button2=new Image();
button2.src=IMAGE_ROOT+"buttons/one_moment_please_small.gif";
var theForm;
var requestSubmitted=false;
function disableButton(btn,form,_117){
if(!requestSubmitted){
if(_117!=null){
var _118=_117;
btn.src=_118.src;
}else{
var _119="  Please Wait...  ";
btn.value=_119;
}
theForm=form;
btn.disabled=true;
requestSubmitted=true;
setTimeout("submitIt()",250);
}else{
return false;
}
}
function submitIt(){
theForm.submit();
return false;
}
function checkandsubmit(_120){
if(requestSubmitted==true){
return false;
}else{
requestSubmitted=true;
_120.submit();
return false;
}
}
function goToOnce(url){
if(requestSubmitted==true){
return false;
}else{
requestSubmitted=true;
window.location.href=url;
return false;
}
}
function popupTimer(){
setTimeout("self.close()",120000);
}
var answers=new Array();
var seeMoreLinks=new Array();
var shownAnswer=-1;
function showAnswer(_121,_122,_123,_124){
showInlineAnswer(_121,_122,_123,_124,"ShowHelpAnswer");
}
function showSelfHelpAnswer(_125,_126,_127,_128){
showInlineAnswer(_125,_126,_127,_128,"ShowSelfHelpAnswer");
}
function showInlineAnswer(_129,_130,_131,_132,url){
if(window.isPVDVD){
var _133="#c0d9f2";
var _134="#E6F0FA";
}else{
if(window.isQueue){
var _133="#F8F7DE";
var _134="White";
}else{
var _133="#FEFEC0";
var _134="#FFFFEE";
}
}
if(shownAnswer!=-1){
var _135=document.getElementById("faq"+shownAnswer+"q");
var _136=document.getElementById("faq"+shownAnswer+"a");
_135.style.backgroundColor=_134;
_135.style.fontWeight="normal";
_136.style.backgroundColor=_134;
_136.innerHTML=seeMoreLinks[shownAnswer];
}
var _137=document.getElementById("faq"+_129+"q");
var _138=document.getElementById("faq"+_129+"a");
_137.style.backgroundColor=_133;
_137.style.fontWeight="bold";
_138.style.backgroundColor=_133;
_138.innerHTML=answers[_129];
var base=document.getElementById("dynhelpsbbase");
if(base&&typeof base!="unknown"){
if(_129+1==_130){
base.style.backgroundColor=_133;
}else{
base.style.backgroundColor=_134;
}
}
shownAnswer=_129;

if(0 && !UserAgent.matches.khtml){
window.location.href="http://"+window.location.hostname+"/"+url+"?dpid="+_131+"&qid="+_132+"&faqPos="+(_129+1)+"&faqTotal="+_130+"&ncok=y";
}
}
var openMenu=null;
var canMenuBeClosed=true;
var menuTop=null;
var menuBottom=null;
var menuLeft=null;
var menuRight=null;
var wWidth=null;
function showMenu(id,_141){
if(document.getElementById){
document.onmousemove=null;
setElementProperty("profiles","display","none");
openMenu=id;
canMenuBeClosed=false;
var x=0;
var y=0;
x=getElementLeft(_141);
y=getElementBottom(_141);
wWidth=document.body.offsetWidth;
document.onmousemove=getMousePosition;
setElementProperty(id,"display","block");
setElementProperty(id,"left",x+"px");
setElementProperty(id,"top",y+"px");
}
}
function hideMenu(id){
setElementProperty(id,"display","none");
document.onmousemove=null;
window.status="";
openMenu=null;
menuTop=null;
menuBottom=null;
menuLeft=null;
menuRight=null;
wWidth=null;
}
function getMousePosition(_144){
var x,y;
if(window.event){
x=window.event.clientX;
y=window.event.clientY;
if(document.documentElement&&document.documentElement.scrollTop){
y+=document.documentElement.scrollTop;
}else{
if(self.pageYOffset){
}else{
y+=document.body.scrollTop;
}
}
}else{
x=_144.pageX;
y=_144.pageY;
}
if(openMenu!=null){
var _145=isInside(x,y,openMenu);
if((wWidth!=document.body.offsetWidth)||(!_145&&canMenuBeClosed==true)){
hideMenu(openMenu);
}
if(_145){
canMenuBeClosed=true;
}
}
}
function isInside(_146,_147,id){
menuLeft=menuLeft==null?getElementLeft(id):menuLeft;
menuRight=menuRight==null?getElementRight(id):menuRight;
menuTop=menuTop==null?getElementTop(id):menuTop;
menuBottom=menuBottom==null?getElementBottom(id):menuBottom;
if((id!=null)&&(_146>=menuLeft-30)&&(_146<=menuRight+30)&&(_147>=menuTop-30)&&(_147<=menuBottom+30)){
return true;
}else{
return false;
}
}
function getElementLeft(id){
var x=0;
var _148=typeElement(id);
while(_148!=null){
x+=_148.offsetLeft;
_148=_148.offsetParent;
}
return parseInt(x);
}
function getElementWidth(id){
var _149=typeElement(id);
return parseInt(_149.offsetWidth);
}
function getElementRight(id){
return getElementLeft(id)+getElementWidth(id);
}
function getElementTop(id){
var y=0;
var _150=typeElement(id);
while(_150!=null){
y+=_150.offsetTop;
_150=_150.offsetParent;
}
return parseInt(y);
}
function getElementHeight(id){
var _151=typeElement(id);
return parseInt(_151.offsetHeight);
}
function getElementBottom(id){
return getElementTop(id)+getElementHeight(id);
}
function setElementProperty(id,_152,_153){
var _154=typeElement(id);
if((_154!=null)&&(_154.style!=null)){
_154=_154.style;
_154[_152]=_153;
}
}
function typeElement(id){
var type=null;
if(typeof (id)=="object"){
type=id;
}else{
type=document.getElementById(id);
}
return (type);
}
var DOMWalker={subs:{},subscribe:function(tag,_157){
tag=tag.toUpperCase();
if(this.subs[tag]){
this.subs[tag].push(_157);
}else{
this.subs[tag]=[_157];
}
},run:function(){
for(tag in this.subs){
var _158=document.getElementsByTagName(tag);
var cbs=this.subs[tag];
var le=_158.length;
var lc=cbs.length;
for(var ii=0;ii<le;ii++){
for(var jj=0;jj<lc;jj++){
cbs[jj](_158[ii],tag);
}
}
}
this.clearSubs();
},clearSubs:function(){
for(tag in this.subs){
delete this.subs[tag];
}
}};
EventDispatcher.addEvent(dom,"afterready",DOMWalker.run.bindEventListener(DOMWalker));
function textAreaLimiter(_163,_164){
if(_163.value.length>_164){
_163.value=_163.value.substring(0,_164);
}
}
var Effects={DUR_DEFAULT:250,FPS_DEFAULT:30,trackers:{},types:{FADE:1,SIZE_X:2,SIZE_Y:3,MOVE_X:4,MOVE_Y:5},doEffect:function(id,type,_165){
switch(type){
case Effects.types.FADE:
return UserAgent.supports.elementAlpha?this.addEffect(new FadeEffect(id,_165)):null;
case Effects.types.SIZE_X:
var _166="x";
case Effects.types.SIZE_Y:
_165.direction=_166||"y";
if(!_165.rate){
_165.rate=0.4;
}
return this.addEffect(new SizeEffect(id,_165));
case Effects.types.MOVE_X:
case Effects.types.MOVE_Y:
return this.addEffect(new MoveEffect(id,_165));
default:
throw "Unknown effect type specified: "+type;
}
},getEffect:function(id,type){
if(this.trackers[id]){
return this.trackers[id].getEffect(type);
}
return null;
},addEffect:function(_167){
var id=_167.getId();
(this.trackers[id]||(this.trackers[id]=new EffectTracker())).addEffect(_167);
return _167;
},clear:function(id){
var _168=this.trackers[id];
if(_168){
for(type in _168.effects){
_168.removeEffect(type);
}
delete this.trackers[id];
}
},cancelEffect:function(id,type){
var _169=this.trackers[id];
if(!_169){
return;
}
var _170=_169.getEffect(type);
if(!_170){
return;
}
this.removeEffect(_170);
if(_170.onAbortFn){
_170.onAbortFn(_170.onAbortParams);
}
},removeEffect:function(_171){
var id=_171.getId();
var _172=this.trackers[id];
_172.removeEffect(_171.getType());
if(_172.length==0){
delete this.trackers[id];
}
}};
function EffectTracker(){
this.length=0;
this.effects={};
}
EffectTracker.prototype={getEffect:function(type){
return this.effects[type];
},addEffect:function(_173){
this.length++;
Effects.cancelEffect(_173.getId(),_173.getType());
this.effects[_173.getType()]=_173;
_173.doStep();
},removeEffect:function(type){
this.effects[type].clearTimeout();
delete this.effects[type];
this.length--;
}};
function Effect(){
}
Effect.prototype={getId:function(){
return this.id;
},getEl:function(){
return $(this.id);
},getType:function(){
return this.type;
},stdInit:function(_174){
this.onFinishFn=_174.onFinishFn;
this.onFinishParams=_174.onFinishParams;
this.onStepFn=_174.onStepFn;
this.onStepParams=_174.onStepParams;
this.onAbortFn=_174.onAbortFn;
this.onAbortParams=_174.onAbortParams;
this.value=this.startValue;
this.dur=_174.duration||Effects.DUR_DEFAULT;
this.interval=1000/(_174.fps||Effects.FPS_DEFAULT);
this.increment=(this.finalValue-this.startValue)/(this.dur/this.interval);
},clearTimeout:function(){
window.clearTimeout(this.timeoutId);
},getStartValue:function(){
return this.startValue;
},getFinalValue:function(){
return this.finalValue;
},getValue:function(){
return this.value;
},setValue:null,getIncrement:function(){
return this.increment;
},isDone:function(){
return Effects.getEffect(this.getId(),this.getType())!=this;
},doStep:function(){
if(!this.getEl()){
Effects.clear(this.getId());
return;
}
if(this.onStepFn){
this.onStepFn(this.onStepParams);
}
if(this.setValue(this.getValue()+this.getIncrement())){
this.finish(false);
}else{
this.timeoutId=window.setTimeout("Effects.getEffect('"+this.getId()+"','"+this.getType()+"').doStep()",this.interval);
}
},finish:function(_175){
this.endAt(_175?this.getFinalValue():null);
if(this.subFinishFn){
this.subFinishFn();
}
if(this.onFinishFn){
this.onFinishFn(this.onFinishParams);
}
},undo:function(_176){
this.endAt(_176?this.getStartValue():null);
},endAt:function(val){
this.clearTimeout();
if(val){
this.setValue(val);
}
Effects.removeEffect(this);
}};
function FadeEffect(id,_178){
this.id=id;
this.type=Effects.types.FADE;
this.startValue=Math.max(Math.min(_178.startOpacity,100),0);
this.finalValue=Math.max(Math.min(_178.endOpacity,100),0);
this.stdInit(_178);
}
FadeEffect.prototype=new Effect();
FadeEffect.prototype.setValue=function(n){
var _180=Math.min(this.startValue,this.finalValue);
var _181=Math.max(this.startValue,this.finalValue);
n=Math.max(Math.min(n,_181),_180);
var s=this.getEl().style;
if(UserAgent.supports.elementAlphaIEWin){
s.filter="alpha(opacity="+Math.round(n)+")";
}else{
s.opacity=n/100;
}
this.value=Math.round(n);
return n==this.finalValue;
};
function SizeEffect(id,_182){
this.id=id;
var _183=_182.direction=="x";
this.type=Effects.types[_183?"SIZE_X":"SIZE_Y"];
this.direction=_182.direction;
this.finalSize=_182.finalSize;
var el=this.getEl();
this.origOverflow=grabComputedStyle(el,"overflow")||"visible";
el.style.overflow="hidden";
this.minSize=_182.minSize?parseInt(_182.minSize):0;
var _185=_182.fullSize;
if(!_185){
_185=grabComputedStyle(el,_183?"width":"height");
if(UserAgent.matches.iewin&&_185.indexOf("px")==-1){
_185=el[_183?"offsetWidth":"offsetHeight"];
}else{
_185=parseInt(_185);
}
}
this.fullSize=parseInt(_185);
this.startValue=_182.grow?this.minSize:this.fullSize;
this.finalValue=_182.grow?this.fullSize:this.minSize;
this.grow=_182.grow;
this.stdInit(_182);
this.increment=_182.rate;
}
SizeEffect.prototype=new Effect();
SizeEffect.prototype.getIncrement=function(){
if(this.increment<1){
var val=(this.getFinalValue()-this.getValue())*this.increment;
return val>0?Math.max(val,1):Math.min(val,-1);
}else{
return this.increment*(this.positive?1:-1);
}
};
SizeEffect.prototype.setValue=function(n){
this.value=Math.max(Math.min(n,this.fullSize),this.minSize);
n=Math.round(this.value);
var done=this.grow?n>=this.finalValue:n<=this.finalValue;
var n=(done&&(this.finalSize||this.finalSize===0))?this.finalSize:n+"px";
this.getEl().style[this.direction=="x"?"width":"height"]=n;
return done;
};
SizeEffect.prototype.subFinishFn=function(){
this.getEl().style.overflow=this.origOverflow;
};
function MoveEffect(id,_187){
this.id=id;
this.startValue=_187.startPosition;
this.finalValue=_187.endPosition;
this.side=_187.side;
this.type=(_187.side=="top"||_187.side=="bottom")?Effects.types.MOVE_Y:Effects.types.MOVE_X;
this.stdInit(_187);
this.increment=_187.rate;
this.minIncrement=_187.minRate||1;
this.positive=this.finalValue>this.startValue;
}
MoveEffect.prototype=new Effect();
MoveEffect.prototype.getIncrement=function(){
if(Math.abs(this.increment)<1){
var val=(this.getFinalValue()-this.getValue())*this.increment;
return this.positive?Math.max(val,this.minIncrement):Math.min(val,-this.minIncrement);
}else{
return this.increment*(this.positive?1:-1);
}
};
MoveEffect.prototype.setValue=function(n){
var _188=this.positive?this.finalValue:this.startValue;
var _189=this.positive?this.startValue:this.finalValue;
this.value=Math.max(Math.min(n,_188),_189);
n=Math.ceil(n);
this.getEl().style[this.side]=n;
if(this.positive){
return n>=this.finalValue;
}else{
return n<=this.finalValue;
}
};
var GlassManager={SHOW:"show",HIDE:"hide",ANIMATION_STEPS:4,START_OPACITY:0,END_OPACITY:60,MS_SPEED:50,glassReady:false,isVisible:false,GLASS_SHOWN_CLASS:"glassShown",presentGlass:function(){
this.glass=$("smokeglass");
this.updateDimensions();
this.handleBrowserChanges();
this.showGlass();
if(UserAgent.matches.iewin){
document.body.className=document.body.className.addClass(this.GLASS_SHOWN_CLASS);
}
},showGlass:function(){
this.glass.style.display="block";
if(UserAgent.matches.windows){
Effects.doEffect(this.glass.id,Effects.types.FADE,{startOpacity:this.START_OPACITY,endOpacity:this.END_OPACITY,fps:15});
}else{
var gs=GlassManager.glass.style;
gs.opacity=this.END_OPACITY/100;
gs.filter="alpha(opacity="+this.END_OPACITY+")";
}
this.isVisible=true;
this.glassReady=true;
},removeGlass:function(){
var _191=Effects.getEffect(this.glass.id,Effects.types.FADE);
if(_191){
_191.finish();
}
this.glass.style.display="none";
EventDispatcher.removeEvent(window,"resize",GlassManager.updateDimensions);
this.isVisible=false;
this.glass=null;
if(UserAgent.matches.iewin){
document.body.className=document.body.className.removeClass(this.GLASS_SHOWN_CLASS);
}
},updateDimensions:function(){
var _192=GlassManager.glass;
if(_192){
_192.style.height=document.body.scrollHeight+"px";
_192.style.width=(document.body.clientWidth||document.body.offsetWidth)+"px";
}
},handleBrowserChanges:function(){
EventDispatcher.addEvent(window,"resize",GlassManager.updateDimensions.bindEventListener(GlassManager,null));
},isActive:function(){
return this.isVisible;
}};
var DialogBox={createContainer:function(_193){
if(!this.initialized){
this.buildShell(_193);
}
this.initialized=true;
},buildShell:function(_194){
_194.innerHTML=["<div id='dlgcap'><img id='dlgcapimg' class='transp' ","src='"+Link.imgURL("pages/dialog/cap.png")+"'"," alt=''></div>","<div id='dlgbody' class='transp' style='background-image: url(",Link.imgURL("pages/dialog/body.png"),");'>","<div id=\"dlgcontent\"><div id='dlgmessage'></div><img src='",Link.imgURL("/pages/dialog/animation.gif"),"' height='34' width='34'>","</div>","</div>\n","<div id='dlgbase'><img id='dlgbaseimg' class='transp' ","src='"+Link.imgURL("pages/dialog/base.png")+"'"," alt=\"\"></div>"].join("");
}};
var DialogManager={show:function(_195){
this.dialog=$("globaldialog");
this.position();
$("dlgmessage").innerHTML=_195;
this.dialog.style.visibility="visible";
EventDispatcher.addEvent(window,"scroll",DialogManager.position.bindEventListener(DialogManager));
},hide:function(){
$("globaldialog").style.visibility="hidden";
if(this.dialog){
this.dialog.style.position="absolute";
}
EventDispatcher.removeEvent(window,"scroll",DialogManager.position);
},position:function(){
this.dialog.style.top=(getDocumentScrollAmount()+(parseInt(getWindowHeight())/2)-100)+"px";
}};
var Analytics={PAGES:{QUACL:{name:"QueueAddConfirmationLayer",viewCount:1}},SPROP_MIN:1,SPROP_MAX:15,SPROP_DELIM:"-",resetViewCount:function(page){
page.viewCount=1;
},recordPageView:function(page){
if(typeof s_gs=="undefined"){
return;
}
var _197=null;
for(var i=this.SPROP_MIN;i<=this.SPROP_MAX;i++){
var _198="s_prop"+i;
if(window[_198]){
if(!_197){
_197=page.name+this.SPROP_DELIM+(page.viewCount++);
}
window[_198]=_197;
}
}
s_pageName="/"+page.name;
this.sendAnalyticsEvent();
},sendAnalyticsEvent:function(_199){
s_gs(_199||s_account);
},sendLinkEvent:function(_200,_201,type){
s_linkType=type||"o";
s_lnk=true;
s_linkName=_201||s_linkName||"Unnamed Flash/Ajax link event";
s_gs(_200||s_account);
}};
function invite(){
	window.open("InviteFriends.aspx", "_blank", "directories=no, height=600px, left=100px, " +
				"location=no, menubar=no, resizable=yes, scrollbars=no, " +
				"status=yes, titlebar=no, toolbar=no, top=200px, width=500px");
}
function service(){
	window.open("Service.aspx", "_blank", "directories=no, height=336px, left=100px, " +
				"location=no, menubar=no, resizable=yes, scrollbars=yes, " +
				"status=yes, titlebar=no, toolbar=no, top=200px, width=550px");
}
function win(){
	window.open("HowToWin.aspx", "_blank", "directories=no, height=279px, left=100px, " +
				"location=no, menubar=no, resizable=yes, scrollbars=yes, " +
				"status=yes, titlebar=no, toolbar=no, top=200px, width=520px");
}