var TITLETYPE_TITLE=1;var TITLETYPE_COLLECTION=2;var TRACKINGACTION_IGNORE=-2
var TRACKINGACTION_RATE=1;var TRACKINGACTION_ZIP=2;var TRACKINGACTION_UNZIP=3;var TRACKINGACTION_FIRSTVISIT=4;var TRACKINGPANEL_GLOBAL=30;var TRACKINGPANEL_LOBBYYOULIKED=79;var TRACKINGPANEL_LOBBYYOURENTED=80;var TITLEACTION_ZIP=1;var TITLEACTION_UNZIP=2;var TITLEACTION_RATE=3;var TITLEACTION_GHI=4;var TITLEACTION_CANCELGHI=5;var DISPLAY_DEFAULT=0;var DISPLAY_SIMPLE=1
var DISPLAY_LISTDETAIL=2;var COOKIES_JAVASCRIPT="zipVars";function hover(objLink){linkElements=objLink.getElementsByTagName("img");if(linkElements.length>0){objImg=linkElements.item(0);pos=objImg.src.lastIndexOf('/');imgName=objImg.src.substring(pos+1,objImg.src.length);path=objImg.src.substring(0,pos)+"/";sSearch=imgName.lastIndexOf('-over');if(sSearch<0){arrImgName=imgName.split('.');objImg.src=path+arrImgName[0]+"-over."+arrImgName[1];}else{arrImgName=imgName.split('-over.');objImg.src=path+arrImgName[0]+"."+arrImgName[1];}}};function getPathOfImage(objImg){if(objImg!=undefined){pos=objImg.src.lastIndexOf('/');imgName=objImg.src.substring(pos+1,objImg.src.length);path=objImg.src.substring(0,pos)+"/";return path;}else{return'';}};function getImageID(score,objPanel){pos=objPanel.id.lastIndexOf("_");base=objPanel.id.slice(0,pos);if(score==0){return base+"_imgNA";}else{return base+"_img"+score;}};var speed=12000;var Pic=new Array();var Link=new Array();var preLoad=new Array();var timer;var cnt=0;var p=0;function runBGSlideShow(){window.clearTimeout(timer);if(document.images){oFeature=document.getElementById("Features_ctlKeyholeFeatures");if(oFeature==undefined)oFeature=document.getElementById("tiffFeatures_ctlKeyholetiffFeatures");oFeature.style.backgroundImage='url('+Pic[cnt]+')';window.status='';cnt=cnt+1;if(cnt>(p-1))cnt=0;timer=setTimeout('runBGSlideShow()',speed);}};function visitFeature(){window.location.href=(cnt==0)?Link[p-1]:Link[cnt-1];};function drawLabel(control,div,text){oDiv=document.getElementById(div);if(oDiv!=undefined){oDiv.style.display='block';}
oAddr=document.getElementById(text);if(oAddr!=undefined){if(control!=''){control+='_';}
oFName=document.getElementById(control+'txtFirstName');oLName=document.getElementById(control+'txtLastName');oSuffix=document.getElementById(control+'ddlSuffix');oStreetNum=document.getElementById(control+'txtStreetNumber');oStreet=document.getElementById(control+'txtStreet');oApt=document.getElementById(control+'txtApartment');oShipMode=document.getElementById(control+'ddlShippingMode');oShipNumber=document.getElementById(control+'txtShippingMode');oCity=document.getElementById(control+'txtCity');oProv=document.getElementById(control+'ddlProvince');oPCode=document.getElementById(control+'txtPostCode');oDeliveryInfo=document.getElementById(control+'txtStation');if(oDeliveryInfo==undefined){oDeliveryInfo=document.getElementById(control+'txtCompany');}
oAddr.innerHTML=oFName.value+' '+oLName.value+'<br>';if(oShipMode.value=='PO'){oAddr.innerHTML+='PO BOX #'+oShipNumber.value+'<br>';}
if(oDeliveryInfo!=undefined){if(oDeliveryInfo.value!=''){oAddr.innerHTML+=oDeliveryInfo.value+'<br>';}}
if(oApt.value!=''){oAddr.innerHTML+=oApt.value+'-';}
if(oStreetNum.value!=''){if(oSuffix.value!=''){var strSuffix;if(oSuffix.value=='1/2'||oSuffix.value=='1/4'||oSuffix.value=='3/4'){strSuffix='<span style=\'padding-left:3px;\'>'+oSuffix.value+'</span>';}else{strSuffix=oSuffix.value;}
oAddr.innerHTML+=oStreetNum.value+strSuffix+' '+oStreet.value+'<br>';}else{oAddr.innerHTML+=oStreetNum.value+' '+oStreet.value+'<br>';}}
if(oShipMode.value=='RR'){oAddr.innerHTML+='RR #'+oShipNumber.value+'<br>';}
oAddr.innerHTML+=oCity.value+' '+oProv.value+'  '+oPCode.value;}};function checkStep2(){var bRural;var bApt;var oFName,oLName,oStreetNum,oStreet,oApt,oUnit,oRR,oPoBox,oCity,oProv,oPCode,oPhone,oExt;oFName=document.getElementById('ctlSignUp_txtFirstName');oLName=document.getElementById('ctlSignUp_txtLastName');oStreetNum=document.getElementById('ctlSignUp_txtStreetNumber');oStreet=document.getElementById('ctlSignUp_txtStreet');oApt=document.getElementById('ctlSignUp_txtApartment');oShipMode=document.getElementById('ctlSignUp_ddlShippingMode');oShipNumber=document.getElementById('ctlSignUp_txtShippingMode');oCity=document.getElementById('ctlSignUp_txtCity');oProv=document.getElementById('ctlSignUp_ddlProvince');oPCode=document.getElementById('ctlSignUp_txtPostCode');oPhone=document.getElementById('ctlSignUp_txtPhone');oExt=document.getElementById('ctlSignUp_txtPhoneExt');if(oFName.value!=''&&oLName.value!=''){if(oShipMode.value!='-1'){bRural=true;}
if(bRural){if(oFName.value!=''&&oLName.value!=''&&oCity.value!=''&&oPCode.value!=''&&checkShipMode(oShipNumber,'msgStep2')){loadMessage('msgStep2',0);if(!bStep2Done){open3();}
bStep2Done=true;return true;}}else{if(oFName.value!=''&&oLName.value!=''&&oCity.value!=''&&oPCode.value!=''&&oStreet.value!=''&&oStreetNum.value!=''){loadMessage('msgStep2',0);if(!bStep2Done){open3();}
bStep2Done=true;return true;}}
loadMessage('msgStep2',6);return false;}else{loadMessage('msgStep2',6);return false;}}
function openDiv(id){var obj,objImg,path;obj=document.getElementById('sub_'+id);objImg=document.getElementById('i'+id);path=getPathOfImage(objImg);if(obj!=undefined){if(obj.style.display=='block'){obj.style.display='none';objImg.src=path+"pls.gif";}else{obj.style.display='block';objImg.src=path+"min.gif";}}}
function openLDiv(id){var obj,objImg,path;obj=document.getElementById('sub_l'+id);objImg=document.getElementById('il'+id);path=getPathOfImage(objImg);if(obj!=undefined){if(obj.style.display=='block'){obj.style.display='none';objImg.src=path+"pls.gif";}else{obj.style.display='block';objImg.src=path+"min.gif";}}}
function setOpen(id){var objImg,path;objImg=document.getElementById('i'+id);path=getPathOfImage(objImg);if(objImg!=undefined){objImg.src=path+"min.gif";}}
function openPopWindow(url,target,width,height){window.open(url,target,"height="+height+",width="+width+",toolbar=no,locationbar=no,resizable=yes,menubar=no,scrollbars=yes");}
function getShowtimes(URL){var pcObj=document.getElementById('Showtimes_lblPostalCode');if(pcObj==undefined){postalcode=document.getElementById('Showtimes_txtLocation').value;}else{postalcode=document.getElementById('Showtimes_lblPostalCode').innerText;}
var redirectURL='http://www.rottentomatoes.com/showtimes/theaters.php?zipcode='+postalcode;openPopWindow(URL+'?~'+redirectURL,'_blank','700','600');}
function oldOpenInfo(id,tc1,tc2,tc3,tc4,Img){var obj,objtc1,objtc2,objtc3,objtc4,objImg,path;obj=document.getElementById(id);objtc1=document.getElementById(tc1);objtc2=document.getElementById(tc2);objtc3=document.getElementById(tc3);objtc4=document.getElementById(tc4);objImg=document.getElementById(Img);if(obj!=undefined&&objtc1!=undefined&&objtc2!=undefined&&objtc3!=undefined&&objtc4!=undefined&&objImg!=undefined){path=getPathOfImage(objImg);if(obj.style.display=='none'){objtc1.style.borderLeft="solid 1px black";objtc1.style.borderTop="solid 1px black";objtc1.style.borderBottom="solid 1px black";objtc2.style.borderLeft="none";objtc2.style.borderTop="solid 1px black";objtc2.style.borderBottom="solid 1px black";objtc3.style.borderRight="none";objtc3.style.borderTop="solid 1px black";objtc3.style.borderBottom="solid 1px black";objtc4.style.borderRight="solid 1px black";objtc4.style.borderTop="solid 1px black";objtc4.style.borderBottom="solid 1px black";objtc4.style.paddingRight="0px";objtc1.style.backgroundColor="white";objtc2.style.backgroundColor="white";objtc3.style.backgroundColor="white";objtc4.style.backgroundColor="white";objImg.src=path+'btn_x.gif';obj.style.display='block';}else{obj.style.display='none';objtc1.style.borderLeft="none";objtc1.style.borderTop="none";objtc1.style.borderBottom="none";objtc2.style.borderLeft="solid 1px #890302";objtc2.style.borderTop="none";objtc2.style.borderBottom="none";objtc3.style.borderRight="solid 1px #890302";objtc3.style.borderTop="none";objtc3.style.borderBottom="none";objtc4.style.borderRight="none";objtc4.style.borderTop="none";objtc4.style.borderBottom="none";objtc1.style.backgroundColor="white";objtc2.style.backgroundColor="#F2F2F2";objtc3.style.backgroundColor="#F2F2F2";objtc4.style.backgroundColor="white";objImg.src=path+'btn_i.gif';}}};function openInfo(divId,tc1,tc2,tc5,tc3,tc4,tId,Txt){var obj,objtc1,objtc2,objtc3,objtc4,objtc5,objTxt;obj=document.getElementById(divId);objtc1=document.getElementById(tc1);objtc2=document.getElementById(tc2);objtc3=document.getElementById(tc3);objtc4=document.getElementById(tc4);objtc5=document.getElementById(tc5);objTxt=document.getElementById(Txt);if(obj!=undefined&&objtc1!=undefined&&objtc2!=undefined&&objtc3!=undefined&&objtc4!=undefined&&objtc5!=undefined&&objTxt!=undefined){if(obj.style.display=='none'){objtc1.style.borderLeft="solid 1px black";objtc1.style.borderTop="solid 1px black";objtc1.style.borderBottom="solid 1px black";objtc2.style.borderLeft="none";objtc2.style.borderTop="solid 1px black";objtc2.style.borderBottom="solid 1px black";objtc3.style.borderRight="none";objtc3.style.borderTop="solid 1px black";objtc3.style.borderBottom="solid 1px black";objtc4.style.borderRight="solid 1px black";objtc4.style.borderTop="solid 1px black";objtc4.style.borderBottom="solid 1px black";objtc4.style.paddingRight="0px";objtc5.style.borderRight="none";objtc5.style.borderTop="solid 1px black";objtc5.style.borderBottom="solid 1px black";objtc1.style.backgroundColor="white";objtc2.style.backgroundColor="white";objtc3.style.backgroundColor="white";objtc4.style.backgroundColor="white";objtc5.style.backgroundColor="white";if(objTxt.innerHTML=='More...')
{objTxt.innerHTML='Hide...';}
else if(objTxt.innerHTML=='Plus...')
{objTxt.innerHTML='Masquer...';}
else
objTxt.innerHTML='Hide...';PagedBoxTitleInfo(tId,divId);obj.style.display='block';}else{obj.style.display='none';objtc1.style.borderLeft="none";objtc1.style.borderTop="none";objtc1.style.borderBottom="none";objtc2.style.borderLeft="solid 1px #890302";objtc2.style.borderTop="none";objtc2.style.borderBottom="none";objtc3.style.borderRight="solid 1px #890302";objtc3.style.borderTop="none";objtc3.style.borderBottom="none";objtc4.style.borderRight="none";objtc4.style.borderTop="none";objtc4.style.borderBottom="none";objtc5.style.borderRight="none";objtc5.style.borderTop="none";objtc5.style.borderBottom="none";objtc1.style.backgroundColor="white";objtc2.style.backgroundColor="#F2F2F2";objtc3.style.backgroundColor="#F2F2F2";objtc4.style.backgroundColor="white";objtc5.style.backgroundColor="#F2F2F2";if(objTxt.innerHTML=='Hide...')
{objTxt.innerHTML='More...';}
else if(objTxt.innerHTML=='Masquer...')
{objTxt.innerHTML='Plus...';}
else
objTxt.innerHTML='More...';}}};var dh=0;var an=0;var al=0;var ai=0;if(document.getElementById){ai=1;dh=1;}else{if(document.all){al=1;dh=1;}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){an=1;dh=1;}}}
function fd(oi,ws){if(ws==1){if(ai){return(document.getElementById(oi).style);}else{if(al){return(document.all[oi].style);}else{if(an){return(document.layers[oi]);}}}}else{if(ai){return(document.getElementById(oi));}else{if(al){return(document.all[oi]);}else{if(an){return(document.layers[oi]);}}}}};function pw(){if(window.innerWidth!=null)
return window.innerWidth;if(document.body.clientWidth!=null)
return document.body.clientWidth;return(null);};function popUp(evt,oi,moveToBody){var top=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;var left=document.documentElement.scrollLeft>document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;var obj=$("#"+oi).get(0);if(moveToBody==null){moveToBody=true;}
if(obj.style.visibility=="visible"||obj.style.visibility=="show"){$(obj).css("visibility","hidden").hide();}
else{$(obj).css("visibility","visible").show();if(typeof evt.clientY!="undefined"&&evt.clientY&&evt.clientX){tv=top+evt.clientY+5;lv=left+evt.clientX-50;}
else{offset=getOffset(obj);tv=offset.y+5;lv=offset.x;}
$(obj).css("left",lv+'px').css("top",tv+'px');if(moveToBody){if($("#popUps").length<1){$(document.body).append("<div id='popUps'></div>");}
$("#popUps").append($(obj));}}};function popRentUp(evt,oi){var callbackParams=[];var obj;var imgSrc;var toolTip;var actionObj=TitleActionTemplate();if(dh){dm=fd(oi,0);if(dm!=null){var wp=pw();ds=fd(oi,1);st=ds.visibility;ds.width="260px";if(dm.offsetWidth!=undefined)
ew=dm.offsetWidth;else
if(dm.clip.width)
ew=dm.clip.width;if(st=="visible"||st=="show"){ds.visibility="hidden";ds.display="none";}
else{if(evt.y||evt.pageY){if(evt.pageY){tv=evt.pageY-5;lv=evt.pageX-7;}else{tv=evt.y-5+document.body.scrollTop;lv=evt.x-7+document.body.scrollLeft;}
if(!an){lv+='px';tv+='px';}
ds.left=lv;ds.top=tv;}
if(popRentUp.arguments.length>2)
{if(ai)
{obj=document.getElementById(popRentUp.arguments[2]);}
else
{if(al)
{obj=document.all[popRentUp.arguments[2]];}
else
{if(an){obj=document.layers[popRentUp.arguments[2]];}}}
if(obj!=null&&obj.src!=popRentUp.arguments[3]&&popRentUp.arguments[6]=="Yes")
{ds.visibility="visible";ds.display="";}
else
{ds.visibility="hidden"
ds.display="none";}}}}
if(popRentUp.arguments.length>2){if(ai){obj=document.getElementById(popRentUp.arguments[2]);}else{if(al){obj=document.all[popRentUp.arguments[2]];}else{if(an){obj=document.layers[popRentUp.arguments[2]];}}}
if(popRentUp.arguments[6]=="No"||obj.src==popRentUp.arguments[3]){switch(popRentUp.arguments[4]){case'title':case't':actionObj.TitleTypeID=TITLETYPE_TITLE;break;case'collection':case'c':actionObj.TitleTypeID=TITLETYPE_COLLECTION;if(obj.src!=popRentUp.arguments[3])
updateChildRentButton(popRentUp.arguments[5],popRentUp.arguments[13]);else
updateChildRentButton(popRentUp.arguments[5],popRentUp.arguments[12]);break;}
if(obj.src!=popRentUp.arguments[3]){actionObj.ActionID=TITLEACTION_ZIP;imgSrc=popRentUp.arguments[3];toolTip=popRentUp.arguments[9];}
else{actionObj.ActionID=TITLEACTION_UNZIP;imgSrc=popRentUp.arguments[10];toolTip=popRentUp.arguments[8];}
actionObj.TitleID=popRentUp.arguments[5];if(ai){document.getElementById('content').innerHTML="";}else{if(al){document.all['content'].innerHTML="";}else{if(an){document.layers['content'].innerHTML="";}}}
obj.src=imgSrc;obj.title=toolTip;if(popRentUp.arguments[7]!=null&&popRentUp.arguments[7]!="")
{obj=document.getElementById(popRentUp.arguments[7])
if(obj!=null&&obj.style.display!="none"){obj.style.display='none';numParkTokens--;if(typeof maxResults!="undefined"){callbackParams['DecrementNumResults']=true;}}}
TitleActionRequest(actionObj,PopRentUp_Success,PopRentUp_Failure,callbackParams);}}
if(popRentUp.arguments[11]!=null){var trackingObject=popRentUp.arguments[11];if(popRentUp.arguments[3]==imgSrc){trackingObject.Action=TRACKINGACTION_ZIP;}
else if(popRentUp.arguments[10]==imgSrc){trackingObject.Action=TRACKINGACTION_UNZIP;}
else{trackingObject.Action=TRACKINGACTION_IGNORE;}
switch(popRentUp.arguments[4]){case'title':case't':trackingObject.TitleType=TITLETYPE_TITLE;trackingObject.TitleID=popRentUp.arguments[5];break;case'collection':case'c':trackingObject.TitleType=TITLETYPE_COLLECTION;trackingObject.TitleID=popRentUp.arguments[5];break;}
ZipTrack(trackingObject);}
return false;}};function PopRentUp_Success(response,params){if(SafeRead(response.Success)){log("Zip/Unzip Success");if(SafeBool(params.DecrementNumResults)){PagedBoxDecreaseResults();}
if(SafeRead(response.Refresh)){ParentRefresh();}}
else{warn("Zip/Unzip Failure");PopRentUp_Failure(params);}};function PopRentUp_Failure(params){};function updateChildRentButton(collectid,img){if(typeof img==undefined||img==null)
return false;var elems=document.getElementsByTagName('input');var allChildRentButtons=[];for(var i=0;i<elems.length;i++){var att=elems[i].getAttribute('name');if(att!=null&&att.indexOf(collectid+'child')>=0)
allChildRentButtons.push(elems[i]);}
for(i=0;i<allChildRentButtons.length;i++)
allChildRentButtons[i].src=img;};function popUpLoginBox(evt,oi){popUp(evt,oi,false);};var ghiObj;function popGottaHaveItCancelUp(evt,oi,id,msg,obj){if(dh){var wp=pw();ds=fd(oi,1);dm=fd(oi,0);st=ds.visibility;if(dm.offsetWidth!=undefined)
ew=dm.offsetWidth;else
if(dm.clip.width)
ew=dm.clip.width;if(st=="visible"||st=="show"){ds.visibility="hidden";ds.display="none";}else{if(evt.y||evt.pageY){if(evt.pageY){tv=evt.pageY-5;lv=evt.pageX-67;}else{var top=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;var left=document.documentElement.scrollLeft>document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;tv=evt.y-5+top;lv=evt.x-67+left;}
if(!an){lv+='px';tv+='px';}
ds.left=lv;ds.top=tv;}
ds.visibility="visible";ds.display="";}
titleid=id;ghiObj=obj;if(ai){document.getElementById('content').innerHTML=msg;}else{if(al){document.all['content'].innerHTML=msg;}else{if(an){document.layers['content'].innerHTML=msg;}}}
return false;}};function popGottaHaveItUp(evt,oi,id,param,serverpath,loadingmsg,obj){if(dh){var wp=pw();ds=fd(oi,1);dm=fd(oi,0);st=ds.visibility;if(dm.offsetWidth!=undefined)
ew=dm.offsetWidth;else
if(dm.clip.width)
ew=dm.clip.width;if(st=="visible"||st=="show"){ds.visibility="hidden";ds.display="none";}else{if(evt.y||evt.pageY){if(evt.pageY){tv=evt.pageY-5;lv=evt.pageX-100;}else{var top=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;var left=document.documentElement.scrollLeft>document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;tv=evt.y-5+top;lv=evt.x-100+left;}
if(!an){lv+='px';tv+='px';}
ds.left=lv;ds.top=tv;}
ds.visibility="visible";ds.display="";}
titleid=id;ghiObj=obj;document.getElementById('content').innerHTML=loadingmsg;getGHICreditAvailability(param,serverpath,'',2)
return false;}};function popReferTitleUp(evt,oi,msg){if(dh){var wp=pw();ds=fd(oi,1);dm=fd(oi,0);st=ds.visibility;ds.width="370px";if(dm.offsetWidth!=undefined)
ew=dm.offsetWidth;else
if(dm.clip.width)
ew=dm.clip.width;if(st=="visible"||st=="show"){ds.visibility="hidden";}else{if(evt.y||evt.pageY){if(evt.pageY){tv=evt.pageY-5;lv=evt.pageX-7;}else{tv=evt.y-5+document.body.scrollTop;lv=evt.x-7+document.body.scrollLeft;}
if(!an){lv+='px';tv+='px';}
ds.left=lv;ds.top=tv;}
ds.visibility="visible";}
if(ai){document.getElementById('content').innerHTML=msg;}else{if(al){document.all['content'].innerHTML=msg;}else{if(an){document.layers['content'].innerHTML=msg;}}}
if(document.getElementById('imgShareSubmit')!=null)
{setTimeout("document.getElementById('imgShareSubmit').src = \""+document.getElementById('imgShareSubmit').src+"\"",500);}
return false;}};function popRemoveFromQueueCheck(evt,id,msg){if(dh){var wp=pw();ds=fd('divRQ',1);dm=fd('divRQ',0);st=ds.visibility;if(dm.offsetWidth!=undefined)
ew=dm.offsetWidth;else
if(dm.clip.width)
ew=dm.clip.width;if(st=="visible"||st=="show"){ds.visibility="hidden";}else{if(evt.y||evt.pageY){var eO;var inChanges=document.getElementById('ctlWantQueue_hdRankChanges');if(inChanges!=undefined&&inChanges.value!=''){eO=30;}else{eO=0;}
if(evt.pageY){tv=evt.pageY-48-eO;lv=evt.pageX-156;}else{var top=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;var left=document.documentElement.scrollLeft>document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;tv=evt.y-48+top-eO;lv=evt.x-156+left;}
if(!an){lv+='px';tv+='px';}
ds.left=lv;ds.top=tv;}
ds.visibility="visible";}
titleid=id;if(ai){document.getElementById('rqTitle').innerHTML=msg;}else{if(al){document.all['rqTitle'].innerHTML=msg;}else{if(an){document.layers['rqTitle'].innerHTML=msg;}}}
return false;}};function gottaHaveIt(){ds.visibility="hidden";ShowButtonLoading(ghiObj);var obj=new AJAXRequest(zipGlobal.ServerPath,'webservices/ziplist/wsziplistfeatures.asmx/ChangeGHI?titleID='+titleid+'&changeGUIType=add','updateGHIHandler');obj.sendRequest();};function gottaHaveIt_cncl(){ds.visibility="hidden";ShowButtonLoading(ghiObj);var obj=new AJAXRequest(zipGlobal.ServerPath,'webservices/ziplist/wsziplistfeatures.asmx/ChangeGHI?titleID='+titleid+'&changeGUIType=cancel','updateGHIHandler');obj.sendRequest();};function updateGHIHandler()
{if(xhttp.readyState==4){if(document.getElementById('aspnetForm')!=undefined){document.getElementById('aspnetForm').submit();}
else
window.location.href=window.location.href;}};function pollAnswer(hidden,value){var objHidden;objHidden=document.getElementById(hidden);objHidden.value=value;alert(objHidden.value);document.f1.submit();};function executeWC(baseURL,objID,wcBase,sType,iType,searchType){var obj=document.getElementById(objID);if(obj!=undefined){var re=new RegExp("[a-zA-Z1-9_]");if(re.test(obj.value)){var type=document.getElementById(searchType);if(type!=null){if(type.value==2){window.location.href=baseURL+'browse/iptv/searchvideos.aspx?param='+obj.value;;return false;}}window.location.href=baseURL+'browse/search.aspx?f='+wcBase+'('+obj.value+')~'+sType+'('+iType+')&j=1';return false;}}return true;};function loadBox(evt,msg,boxtype){if(dh){var wp=pw();ds=fd('divRQ',1);dm=fd('divRQ',0);st=ds.visibility;if(dm.offsetWidth!=undefined)
ew=dm.offsetWidth;else
if(dm.clip.width)
ew=dm.clip.width;if(st=="visible"||st=="show"){ds.visibility="hidden";}else{if(evt.y||evt.pageY){var eO;var inChanges=document.getElementById('ctlWantQueue_hdRankChanges');if(inChanges!=undefined&&inChanges.value!=''){eO=30;}else{eO=0;}
if(evt.pageY){tv=evt.pageY-48-eO;lv=evt.pageX-156;}else{var top=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;var left=document.documentElement.scrollLeft>document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;tv=evt.y-48+top-eO;lv=evt.x-156+left;}
if(!an){lv+='px';tv+='px';}
ds.left=lv;ds.top=tv;}
ds.visibility="visible";}
return false;}};function controlTextBoxLength(control,length,displayControl,countMessage)
{oControl=document.getElementById(control);oDisplayControl=document.getElementById(displayControl);if(oControl.value.length>length){oControl.value=oControl.value.substring(0,length);}
if(oDisplayControl!=null){oDisplayControl.innerHTML=length-oControl.value.length+' '+countMessage;}};function focIn(lblValue,oText)
{var obj=document.getElementById(oText);if(obj.value==lblValue)
{obj.value='';obj.style.color='black';}};function focOut(lblValue,oText)
{var obj=document.getElementById(oText);if(obj.value==lblValue||obj.value=='')
{if(obj.style.color!=undefined)
{obj.style.color='gray';}
obj.value=lblValue;}};function getGHICreditAvailability(params,serverPath,preMessage,popUpType){var obj=new AJAXRequest(serverPath,'webservices/ziplist/wsziplistfeatures.asmx/GHICheckForUnusedCredits?params='+params+'&sPreMessage='+escape(preMessage)+'&popUpType='+popUpType,'getGHICreditAvailabilityHandler');obj.sendRequest();};function getGHICreditAvailabilityHandler(){if(xhttp.readyState==4)
{var nodes=xhttp.responseXML.getElementsByTagName("returnvalue");var rowId;var borderRowId;var pageName;if(nodes.length>0){if(nodes[0].firstChild.nodeValue!=''&&nodes[0].firstChild.nodeValue!='-1')
{document.getElementById('content').innerHTML=nodes[0].firstChild.nodeValue;}
else
{}}else{}}};function checkEmail(txt){re=new RegExp("[^@]@[-A-Za-z0-9.]+\.[-A-Za-z0-9]+");if(!re.test(txt)){return false;}else{return true;}};function checkPhone(control){myText=document.getElementById(control.id);re=new RegExp('^[0-9\(\) -]+$');if(!re.test(myText.value)){myText.value=myText.value.substring(0,myText.value.length-1);if(myText.value.length>0){checkPhone(control)}}};function charactersRemaining(control,textArea,text,maxValue){if(control!=''){oControl=document.getElementById(control+'_'+textArea);}
else{oControl=document.getElementById(textArea);}
if(oControl.value.length>maxValue){oControl.value=oControl.value.substring(0,maxValue);oControl.scrollTop=oControl.scrollHeight;}
var characters=maxValue-oControl.value.length;document.getElementById(text).innerHTML=characters;};function submitTitleRating(ratingScore,ratingTitleId)
{var actionObject=TitleActionTemplate();actionObject.ActionID=TITLEACTION_RATE;actionObject.TitleID=ratingTitleId;actionObject.Value=ratingScore;TitleActionRequest(actionObject);};function dcsPassVersion(stepName,stepNumber){document.cookie="signupName="+stepName;document.cookie="signupStep="+stepNumber;};function get_cookie(cookieName,variableName){var search=cookieName+"="
var returnvalue="";if(typeof variableName=="undefined")variableName=null;if(document.cookie.length>0){offset=document.cookie.indexOf(search)
if(offset!=-1){offset+=search.length
end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;returnvalue=document.cookie.substring(offset,end);if(variableName==null)return unescape(returnvalue);}}
if(variableName!=null){var cookiePieces=returnvalue.split("&");for(varNum=0;varNum<cookiePieces.length;varNum++){currentVar=cookiePieces[varNum].split("=");if(currentVar[0]==variableName){return unescape(currentVar[1]);}}
return"";}
return returnvalue;};function set_cookie(cookieName,varName,varVal){var cookieFull='';var cookiePieces=get_cookie(cookieName).split("&");var updated=0;var ignored=0;if(varName==null){document.cookie=cookieName+"="+varVal+"; expires=Tue, 1 Jan 2030 01:00:00 UTC; path=/;";return;}
for(i=0;i<cookiePieces.length;i++){currentVar=cookiePieces[i].split("=");if(currentVar.length!=2){continue;}
if(currentVar[0]==varName){updated++;cookieFull+=varName+"="+varVal;}
else{ignored++;cookieFull+=currentVar[0]+"="+currentVar[1];}
if(i<cookiePieces.length-1){cookieFull+="&";}}
if(updated<=0){if(ignored>0){cookieFull+="&";}
cookieFull+=varName+"="+varVal;}
document.cookie=cookieName+"="+cookieFull+"; expires=Tue, 1 Jan 2030 01:00:00 UTC; path=/;";};function redirect(){window.location.href='/join_step1.aspx?message=true';};var globalHandler;function AJAXRequest(requestServer,requestURL,requestHandler){this.m_URL=requestURL;this.m_handler=requestHandler;globalHandler=this.m_handler;this.m_server=requestServer;this.m_nodes=-1;this.sendRequest=AJAXSendRequest;this.handler=AJAXHandler;this.results=getResults;function AJAXSendRequest(){if(window.XMLHttpRequest){xhttp=new XMLHttpRequest();if(xhttp.overrideMimeType){xhttp.overrideMimeType("text/xml");}}
else if(eval('window.'+'A'+'c'+'t'+'i'+'v'+'e'+'X'+'O'+'b'+'j'+'e'+'c'+'t')){xhttp=eval('new '+'A'+'c'+'t'+'i'+'v'+'e'+'X'+'O'+'b'+'j'+'e'+'c'+'t("Microsoft.XMLHTTP")');}
xhttp.onreadystatechange=this.handler;xhttp.open("GET",this.m_server+this.m_URL,true);if(window.XMLHttpRequest){xhttp.send(null);}else if(eval('window.'+'A'+'c'+'t'+'i'+'v'+'e'+'X'+'O'+'b'+'j'+'e'+'c'+'t')){xhttp.send();}};function AJAXHandler(){if(xhttp.readyState==4)
{try
{this.nodes=xhttp.responseXML.getElementsByTagName("returnvalue");}
catch(e)
{}
if(globalHandler.indexOf(')')>0){eval(globalHandler);}else{eval(globalHandler+'()');}}};function getResults(){return m_nodes;};};var m_oi,m_sSuccess;function referTitle(params){var serverPath,oi,iUserID,iTitleID,sEmail,tbEmail,sFailed,tbComment,iTemplate;args=params.split("|");if(args.length<5){return false;}
serverPath=args[0];oi=args[1];iUserID=args[2];iTitleID=args[3];tbEmail=args[4];tbComment=args[5];sFailed=args[6];sProcess=args[7];m_sSuccess=args[8];if(args[9])
iTemplate=args[9];if(!iTemplate||iTemplate=="")
iTemplate="-1";if(document.getElementById(tbEmail)==undefined||document.getElementById(tbEmail).value==''){if(document.getElementById){document.getElementById('content').innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}else{if(document.all){document.all['content'].innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['content'].innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}}}
return;}
sEmail=document.getElementById(tbEmail).value;sComment=document.getElementById(tbComment).value;m_oi=oi;var obj=new AJAXRequest(serverPath,'webservices/Community/wsCommunity.asmx/ReferTitleCustom?iUserid='+iUserID+'&iTitleid='+iTitleID+'&sReferedEmail='+sEmail+'&sComment='+sComment+'&iTemplate='+iTemplate,'referTitleHandler');obj.sendRequest();if(document.getElementById){document.getElementById('content').innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}else{if(document.all){document.all['content'].innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['content'].innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}}}};function referTitleHandler(){if(document.getElementById){document.getElementById('content').innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}else{if(document.all){document.all['content'].innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['content'].innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}}}};function addTitleToQueue(params){var serverPath,authentication,iUserID,iTitleID,args;args=params.split("|");if(args.length<3){return false;}
authentication=args[0];serverPath=args[1];iTitleID=args[2];var obj=new AJAXRequest(serverPath,'webservices/ZipList/wsZipListFeatures.asmx/titleAddToQueue?authentication='+authentication+'&titleid='+iTitleID,'addTitleToQueueHandler');obj.sendRequest();};function addTitleToQueueHandler(){if(xhttp.readyState==4)
{var nodes=xhttp.responseXML.getElementsByTagName("returnvalue");var rowId;var borderRowId;var pageName;if(nodes.length>0){if(nodes[0].firstChild.nodeValue=='Success')
{var e=document.getElementById('addToFavorites');var e2=document.getElementById('alreadyInFavorites');e.style.display='none';e2.style.display='block';}
else
{alert('Failed to add item to favorites.');}}}};function removeTitleFromIPTVQueue(params){var serverPath,authentication,iUserID,iTitleID,args;args=params.split("|");if(args.length<3){return false;}
authentication=args[0];serverPath=args[1];iTitleID=args[2];var obj=new AJAXRequest(serverPath,'webservices/ZipList/wsZipListFeatures.asmx/titleAddToQueue?authentication='+authentication+'&titleid='+iTitleID,'addTitleToQueueHandler');obj.sendRequest();};function removeTitleFromIPTVQueueHandler(){if(xhttp.readyState==4)
{var nodes=xhttp.responseXML.getElementsByTagName("returnvalue");var rowId;var borderRowId;var pageName;if(nodes.length>0){if(nodes[0].firstChild.nodeValue=='Success')
{var e=document.getElementById('addToFavorites');if(e!=null)
{var o=e.childNodes[0];while(o.childNodes.length>0){o=o.childNodes[0];}
o.nodeValue='Added Successfully...';}}
else
{alert('Failed to add item to favorites.');}}}};function referIPTVTitle(params){var serverPath,oi,iUserID,iTitleID,sEmail,tbEmail,sComment,tbComment,sFailed;args=params.split("|");if(args.length<5){return false;}
serverPath=args[0];oi=args[1];iUserID=args[2];iTitleID=args[3];tbEmail=args[4];tbComment=args[5];sFailed=args[6];sProcess=args[7];m_sSuccess=args[8];sEmail=document.getElementById(tbEmail).value;sComment=document.getElementById(tbComment).value;if(document.getElementById(tbEmail)==undefined||document.getElementById(tbEmail).value==''||checkEmail(sEmail)==false){if(document.getElementById){document.getElementById('content').innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}else{if(document.all){document.all['content'].innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['content'].innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}}}
return;}
m_oi=oi;var obj=new AJAXRequest(serverPath,'webservices/IPTV/IPTVResources.asmx/ReferTitle?iUserid='+iUserID+'&iTitleid='+iTitleID+'&sComment='+sComment+'&sReferedEmail='+sEmail,'referIPTVTitleHandler');obj.sendRequest();if(document.getElementById){document.getElementById('content').innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}else{if(document.all){document.all['content'].innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['content'].innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}}}};function referIPTVTitleHandler(){if(document.getElementById){document.getElementById('content').innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}else{if(document.all){document.all['content'].innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['content'].innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}}}};function getNewSubmitForm()
{var submitForm=document.createElement("FORM");document.body.appendChild(submitForm);submitForm.method="POST";return submitForm;}
function createNewFormElement(inputForm,elementName,elementValue)
{var newElement;try
{newElement=document.createElement("<input name='"+elementName+"' type='hidden'>");inputForm.appendChild(newElement);}
catch(e)
{newElement=document.createElement("INPUT");inputForm.appendChild(newElement);newElement.type="hidden";newElement.name=elementName;}
newElement.value=elementValue;return newElement;}
function FormatSelection(ajaxPurchasePage,encTitleId,encIsCollection,trackObject)
{var purchaseForm=getNewSubmitForm();ZipTrack(trackObject);createNewFormElement(purchaseForm,"encTitleId",encTitleId);createNewFormElement(purchaseForm,"encIsCollection",encIsCollection);purchaseForm.action=ajaxPurchasePage;purchaseForm.submit();return false;}
function mmLoadMenus(menuRootUrl)
{if(window.mm_menu_0801112001_0)return;window.mm_menu_0801112001_0=new Menu("root1",152,23,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#BB0000","#990000","left","middle",6,0,500,-5,7,true,false,true,0,true,true);mm_menu_0801112001_0.addMenuItem("Action&nbsp;&amp;&nbsp;Adventure","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(1)'");mm_menu_0801112001_0.addMenuItem("Animation","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(165)'");mm_menu_0801112001_0.addMenuItem("Anime","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(19)'");mm_menu_0801112001_0.addMenuItem("Blu-ray","location='"+menuRootUrl+"Browse/Bluray.aspx'");mm_menu_0801112001_0.addMenuItem("Bollywood","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(252)'");mm_menu_0801112001_0.addMenuItem("Canadian","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(223)'");mm_menu_0801112001_0.addMenuItem("Children&nbsp;&amp;&nbsp;Family","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(36)'");mm_menu_0801112001_0.addMenuItem("Classics","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(222)'");mm_menu_0801112001_0.addMenuItem("Comedy","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(2)'");mm_menu_0801112001_0.addMenuItem("Criterion","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(246)'");mm_menu_0801112001_0.addMenuItem("Documentary","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(76)'");mm_menu_0801112001_0.addMenuItem("Drama","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(8)'");mm_menu_0801112001_0.addMenuItem("Foreign&nbsp;Language&nbsp;&amp;&nbsp;Intl","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(9)'");mm_menu_0801112001_0.addMenuItem("French","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(241)'");mm_menu_0801112001_0.addMenuItem("Gay&nbsp;&amp;&nbsp;Lesbian","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(84)'");mm_menu_0801112001_0.addMenuItem("HD&nbsp;DVD","location='"+menuRootUrl+"Browse/HDDVD.aspx'");mm_menu_0801112001_0.addMenuItem("Horror","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(143)'");mm_menu_0801112001_0.addMenuItem("Independent","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(161)'");mm_menu_0801112001_0.addMenuItem("Music&nbsp;&amp;&nbsp;Musicals","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(122)'");mm_menu_0801112001_0.addMenuItem("Romance","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(156)'");mm_menu_0801112001_0.addMenuItem("Sci-Fi&nbsp;&amp;&nbsp;Fantasy","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(176)'");mm_menu_0801112001_0.addMenuItem("Special Interest","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(163)'");mm_menu_0801112001_0.addMenuItem("Sports","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(196)'");mm_menu_0801112001_0.addMenuItem("Television","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(208)'");mm_menu_0801112001_0.addMenuItem("Thrillers","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(184)'");mm_menu_0801112001_0.hideOnMouseOut=true;mm_menu_0801112001_0.childMenuIcon="";mm_menu_0801112001_0.bgColor='#555555';mm_menu_0801112001_0.menuBorder=1;mm_menu_0801112001_0.menuLiteBgColor='#FFFFFF';mm_menu_0801112001_0.menuBorderBgColor='#777777';if(window.mm_menu_0801112001_2)return;window.mm_menu_0801112001_2=new Menu("root1",190,23,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#BB0000","#990000","left","middle",6,0,500,-5,7,true,false,true,0,true,true);mm_menu_0801112001_2.addMenuItem("Action&nbsp;et&nbsp;aventure","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(1)'");mm_menu_0801112001_2.addMenuItem("Animation","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(165)'");mm_menu_0801112001_2.addMenuItem("Animation&nbsp;japonaise","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(19)'");mm_menu_0801112001_2.addMenuItem("Blu-ray","location='"+menuRootUrl+"Browse/Bluray.aspx'");mm_menu_0801112001_2.addMenuItem("Bollywood","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(252)'");mm_menu_0801112001_2.addMenuItem("Film&nbsp;canadien","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(223)'");mm_menu_0801112001_2.addMenuItem("Enfants&nbsp;et&nbsp;famille","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(36)'");mm_menu_0801112001_2.addMenuItem("Classique","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(222)'");mm_menu_0801112001_2.addMenuItem("Com&#233;die","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(2)'");mm_menu_0801112001_2.addMenuItem("Criterion","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(246)'");mm_menu_0801112001_2.addMenuItem("Documentaire","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(76)'");mm_menu_0801112001_2.addMenuItem("Drame","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(8)'");mm_menu_0801112001_2.addMenuItem("Film&nbsp;&#233;tranger&nbsp;et&nbsp;international","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(9)'");mm_menu_0801112001_2.addMenuItem("Film&nbsp;de&nbsp;langue&nbsp;fran&#231;aise","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(241)'");mm_menu_0801112001_2.addMenuItem("Gai&nbsp;et&nbsp;lesbienne","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(84)'");mm_menu_0801112001_2.addMenuItem("HD&nbsp;DVD","location='"+menuRootUrl+"Browse/HDDVD.aspx'");mm_menu_0801112001_2.addMenuItem("Horreur","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(143)'");mm_menu_0801112001_2.addMenuItem("Ind&#233;pendant","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(161)'");mm_menu_0801112001_2.addMenuItem("Musique&nbsp;et&nbsp;com&#233;die&nbsp;musicale","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(122)'");mm_menu_0801112001_2.addMenuItem("Romantique","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(156)'");mm_menu_0801112001_2.addMenuItem("Science-fiction&nbsp;et&nbsp;fantastique","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(176)'");mm_menu_0801112001_2.addMenuItem("Int&#233;r&#234;ts&nbsp;particuliers","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(163)'");mm_menu_0801112001_2.addMenuItem("Sports","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(196)'");mm_menu_0801112001_2.addMenuItem("T&#233;l&#233;vision","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(208)'");mm_menu_0801112001_2.addMenuItem("Thrillers","location='"+menuRootUrl+"Browse/Browse.aspx?f=cat(184)'");mm_menu_0801112001_2.hideOnMouseOut=true;mm_menu_0801112001_2.childMenuIcon=zipGlobal.BaseImagePath+"zip/en-CA/Sports/menu/arrows.gif";mm_menu_0801112001_2.bgColor='#555555';mm_menu_0801112001_2.menuBorder=1;mm_menu_0801112001_2.menuLiteBgColor='#FFFFFF';mm_menu_0801112001_2.menuBorderBgColor='#777777';if(window.mm_menu_0801112001_1)return;window.mm_menu_0801112001_1=new Menu("root2",130,23,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#BB0000","#990000","left","middle",6,0,500,-5,7,true,false,true,0,true,true);mm_menu_0801112001_1.addMenuItem("New&nbsp;Releases&nbsp;DVDs","location='"+menuRootUrl+"Browse/RecentReleases.aspx'");mm_menu_0801112001_1.addMenuItem("Coming&nbsp;Soon","location='"+menuRootUrl+"Browse/ComingSoon.aspx'");mm_menu_0801112001_1.addMenuItem("In&nbsp;Theatres","location='"+menuRootUrl+"Browse/NewInTheatres.aspx'");mm_menu_0801112001_1.addMenuItem("New&nbsp;@&nbsp;Zip","location='"+menuRootUrl+"Browse/NewToOurLibrary.aspx'");mm_menu_0801112001_1.hideOnMouseOut=true;mm_menu_0801112001_1.childMenuIcon=zipGlobal.BaseImagePath+"zip/en-CA/Sports/menu/arrows.gif";mm_menu_0801112001_1.bgColor='#555555';mm_menu_0801112001_1.menuBorder=1;mm_menu_0801112001_1.menuLiteBgColor='#FFFFFF';mm_menu_0801112001_1.menuBorderBgColor='#777777';if(window.mm_menu_0801112001_3)return;window.mm_menu_0801112001_3=new Menu("root2",170,23,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#BB0000","#990000","left","middle",6,0,500,-5,7,true,false,true,0,true,true);mm_menu_0801112001_3.addMenuItem("Nouvelles&nbsp;Sorties&nbsp;DVD","location='"+menuRootUrl+"Browse/RecentReleases.aspx'");mm_menu_0801112001_3.addMenuItem("Prochainement&nbsp;&#224;&nbsp;l'affiche","location='"+menuRootUrl+"Browse/ComingSoon.aspx'");mm_menu_0801112001_3.addMenuItem("Actuellement&nbsp;au&nbsp;cin&#233;ma","location='"+menuRootUrl+"Browse/NewInTheatres.aspx'");mm_menu_0801112001_3.addMenuItem("Nouveaut&#233;s&nbsp;chez&nbsp;Zip","location='"+menuRootUrl+"Browse/NewToOurLibrary.aspx'");mm_menu_0801112001_3.hideOnMouseOut=true;mm_menu_0801112001_3.childMenuIcon=zipGlobal.BaseImagePath+"zip/en-CA/Sports/menu/arrows.gif";mm_menu_0801112001_3.bgColor='#555555';mm_menu_0801112001_3.menuBorder=1;mm_menu_0801112001_3.menuLiteBgColor='#FFFFFF';mm_menu_0801112001_3.menuBorderBgColor='#777777';if(window.mm_menu_0801112001_4)return;window.mm_menu_0801112001_4=new Menu("root3",100,23,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#BB0000","#990000","left","middle",6,0,500,-5,7,true,false,true,0,true,true);mm_menu_0801112001_4.addMenuItem("Top&nbsp;ZipListed","location='"+menuRootUrl+"Browse/TopZipListed.aspx'");mm_menu_0801112001_4.addMenuItem("Top&nbsp;ZipRated","location='"+menuRootUrl+"Browse/TopZipRated.aspx'");mm_menu_0801112001_4.addMenuItem("Hidden Gems","location='"+menuRootUrl+"Browse/HiddenGems.aspx'");mm_menu_0801112001_4.hideOnMouseOut=true;mm_menu_0801112001_4.childMenuIcon=zipGlobal.BaseImagePath+"zip/en-CA/Sports/menu/arrows.gif";mm_menu_0801112001_4.bgColor='#555555';mm_menu_0801112001_4.menuBorder=1;mm_menu_0801112001_4.menuLiteBgColor='#FFFFFF';mm_menu_0801112001_4.menuBorderBgColor='#777777';if(window.mm_menu_0801112001_5)return;window.mm_menu_0801112001_5=new Menu("root3",160,23,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#BB0000","#990000","left","middle",6,0,500,-5,7,true,false,true,0,true,true);mm_menu_0801112001_5.addMenuItem("Top&nbsp;zipp&#233;s","location='"+menuRootUrl+"Browse/TopZipListed.aspx'");mm_menu_0801112001_5.addMenuItem("Top&nbsp;&#233;valu&#233;s","location='"+menuRootUrl+"Browse/TopZipRated.aspx'");mm_menu_0801112001_5.addMenuItem("Petits bijoux&nbsp;&#224;&nbsp;d&#233;couvrir","location='"+menuRootUrl+"Browse/HiddenGems.aspx'");mm_menu_0801112001_5.hideOnMouseOut=true;mm_menu_0801112001_5.childMenuIcon=zipGlobal.BaseImagePath+"zip/en-CA/Sports/menu/arrows.gif";mm_menu_0801112001_5.bgColor='#555555';mm_menu_0801112001_5.menuBorder=1;mm_menu_0801112001_5.menuLiteBgColor='#FFFFFF';mm_menu_0801112001_5.menuBorderBgColor='#777777';mm_menu_0801112001_1.writeMenus();}
function Menu(label,mw,mh,fnt,fs,fclr,fhclr,bg,bgh,halgn,valgn,pad,space,to,sx,sy,srel,opq,vert,idt,aw,ah)
{this.version="020320 [Menu; zipMenu.js]";this.type="Menu";this.menuWidth=mw;this.menuItemHeight=mh;this.fontSize=fs;this.fontWeight="plain";this.fontFamily=fnt;this.fontColor=fclr;this.fontColorHilite=fhclr;this.bgColor="#555555";this.menuBorder=1;this.menuBgOpaque=opq;this.menuItemBorder=1;this.menuItemIndent=idt;this.menuItemBgColor=bg;this.menuItemVAlign=valgn;this.menuItemHAlign=halgn;this.menuItemPadding=pad;this.menuItemSpacing=space;this.menuLiteBgColor="#ffffff";this.menuBorderBgColor="#777777";this.menuHiliteBgColor=bgh;this.menuContainerBgColor="#cccccc";this.childMenuIcon="";this.submenuXOffset=sx;this.submenuYOffset=sy;this.submenuRelativeToItem=srel;this.vertical=vert;this.items=new Array();this.actions=new Array();this.childMenus=new Array();this.hideOnMouseOut=true;this.hideTimeout=to;this.addMenuItem=addMenuItem;this.writeMenus=writeMenus;this.MM_showMenu=MM_showMenu;this.onMenuItemOver=onMenuItemOver;this.onMenuItemAction=onMenuItemAction;this.hideMenu=hideMenu;this.hideChildMenu=hideChildMenu;if(!window.menus)window.menus=new Array();this.label=" "+label;window.menus[this.label]=this;window.menus[window.menus.length]=this;if(!window.activeMenus)window.activeMenus=new Array();}
function addMenuItem(label,action){this.items[this.items.length]=label;this.actions[this.actions.length]=action;}
function FIND(item){if(window.mmIsOpera)return(document.getElementById(item));if(document.all)return(document.all[item]);if(document.getElementById)return(document.getElementById(item));return(false);}
function writeMenus(container){if(window.triedToWriteMenus)return;var agt=navigator.userAgent.toLowerCase();window.mmIsOpera=agt.indexOf("opera")!=-1;if(!container&&document.layers){window.delayWriteMenus=this.writeMenus;var timer=setTimeout('delayWriteMenus()',500);container=new Layer(100);clearTimeout(timer);}else if(document.all||document.hasChildNodes||window.mmIsOpera){document.writeln('<span id="menuContainer"></span>');container=FIND("menuContainer");}
window.mmHideMenuTimer=null;if(!container)return;window.triedToWriteMenus=true;container.isContainer=true;container.menus=new Array();for(var i=0;i<window.menus.length;i++)
container.menus[i]=window.menus[i];window.menus.length=0;var countMenus=0;var countItems=0;var top=0;var content='';var lrs=false;var theStat="";var tsc=0;if(document.layers)lrs=true;for(var i=0;i<container.menus.length;i++,countMenus++){var menu=container.menus[i];if(menu.bgImageUp||!menu.menuBgOpaque){menu.menuBorder=0;menu.menuItemBorder=0;}
if(lrs){var menuLayer=new Layer(100,container);var lite=new Layer(100,menuLayer);lite.top=menu.menuBorder;lite.left=menu.menuBorder;var body=new Layer(100,lite);body.top=menu.menuBorder;body.left=menu.menuBorder;}else{content+=''+'<div id="menuLayer'+countMenus+'" style="position:absolute;z-index:2;left:10px;top:'+(i*100)+'px;visibility:hidden;color:'+menu.menuBorderBgColor+';">\n'+'  <div id="menuLite'+countMenus+'" style="position:absolute;z-index:2;left:'+menu.menuBorder+'px;top:'+menu.menuBorder+'px;visibility:hide;" onmouseout="mouseoutMenu();">\n'+'  <div id="menuFg'+countMenus+'" style="position:absolute;left:'+menu.menuBorder+'px;top:'+menu.menuBorder+'px;visibility:hide;">\n'+'';}
var x=i;for(var i=0;i<menu.items.length;i++){var item=menu.items[i];var childMenu=false;var defaultHeight=menu.fontSize+2*menu.menuItemPadding;if(item.label){item=item.label;childMenu=true;}
menu.menuItemHeight=menu.menuItemHeight||defaultHeight;var itemProps='';if(menu.fontFamily!='')itemProps+='font-family:'+menu.fontFamily+';';itemProps+='font-weight:'+menu.fontWeight+';fontSize:'+menu.fontSize+'px;';if(menu.fontStyle)itemProps+='font-style:'+menu.fontStyle+';';if(document.all||window.mmIsOpera)
itemProps+='font-size:'+menu.fontSize+'px;" onmouseover="onMenuItemOver(null,this);" onclick="onMenuItemAction(null,this);';else if(!document.layers){itemProps+='font-size:'+menu.fontSize+'px;';}
var l;if(lrs){var lw=menu.menuWidth;if(menu.menuItemHAlign=='right')lw-=menu.menuItemPadding;l=new Layer(lw,body);}
var itemLeft=0;var itemTop=i*menu.menuItemHeight;if(!menu.vertical){itemLeft=i*menu.menuWidth;itemTop=0;}
var dTag='<div id="menuItem'+countItems+'" style="position:absolute;left:'+itemLeft+'px;top:'+itemTop+'px;'+itemProps+'">';var dClose='</div>';if(menu.bgImageUp)dTag='<div id="menuItem'+countItems+'" style="background:url('+menu.bgImageUp+');position:absolute;left:'+itemLeft+'px;top:'+itemTop+'px;'+itemProps+'">';var left=0,top=0,right=0,bottom=0;left=1+menu.menuItemPadding+menu.menuItemIndent;right=left+menu.menuWidth-2*menu.menuItemPadding-menu.menuItemIndent;if(menu.menuItemVAlign=='top')top=menu.menuItemPadding;if(menu.menuItemVAlign=='bottom')top=menu.menuItemHeight-menu.fontSize-1-menu.menuItemPadding;if(menu.menuItemVAlign=='middle')top=((menu.menuItemHeight/2)-(menu.fontSize/2)-1);bottom=menu.menuItemHeight-2*menu.menuItemPadding;var textProps='position:absolute;left:'+left+'px;top:'+top+'px;';if(lrs){textProps+=itemProps+'right:'+right+';bottom:'+bottom+';';dTag="";dClose="";}
if(document.all&&!window.mmIsOpera){item='<div align="'+menu.menuItemHAlign+'">'+item+'</div>';}else if(lrs){item='<div style="text-align:'+menu.menuItemHAlign+';">'+item+'</div>';}else{var hitem=null;if(menu.menuItemHAlign!='left'){if(window.mmIsOpera){var operaWidth=menu.menuItemHAlign=='center'?-(menu.menuWidth-2*menu.menuItemPadding):(menu.menuWidth-6*menu.menuItemPadding);hitem='<div id="menuItemHilite'+countItems+'Shim" style="position:absolute;top:1px;left:'+menu.menuItemPadding+'px;width:'+operaWidth+'px;text-align:'
+menu.menuItemHAlign+';visibility:visible;">'+item+'</div>';item='<div id="menuItemText'+countItems+'Shim" style="position:absolute;top:1px;left:'+menu.menuItemPadding+'px;width:'+operaWidth+'px;text-align:'
+menu.menuItemHAlign+';visibility:visible;">'+item+'</div>';}else{hitem='<div id="menuItemHilite'+countItems+'Shim" style="position:absolute;top:1px;left:1px;right:-'+(left+menu.menuWidth-3*menu.menuItemPadding)+'px;text-align:'
+menu.menuItemHAlign+';visibility:visible;">'+item+'</div>';item='<div id="menuItemText'+countItems+'Shim" style="position:absolute;top:1px;left:1px;right:-'+(left+menu.menuWidth-3*menu.menuItemPadding)+'px;text-align:'
+menu.menuItemHAlign+';visibility:visible;">'+item+'</div>';}}else hitem=null;}
if(document.all&&!window.mmIsOpera)item='<div id="menuItemShim'+countItems+'" style="position:absolute;left:0px;top:0px;">'+item+'</div>';var dText='<div id="menuItemText'+countItems+'" style="'+textProps+'color:'+menu.fontColor+';">'+item+'&nbsp</div>\n'
+'<div id="menuItemHilite'+countItems+'" style="'+textProps+'color:'+menu.fontColorHilite+';visibility:hidden;">'
+(hitem||item)+'&nbsp</div>';if(childMenu)content+=(dTag+dText+'<div id="childMenu'+countItems+'" style="position:absolute;left:0px;top:3px;"><img src="'+menu.childMenuIcon+'"></div>\n'+dClose);else content+=(dTag+dText+dClose);if(lrs){l.document.open("text/html");l.document.writeln(content);l.document.close();content='';theStat+="-";tsc++;if(tsc>50){tsc=0;theStat="";}
status=theStat;}
countItems++;}
if(lrs){var focusItem=new Layer(100,body);focusItem.visibility="hidden";focusItem.document.open("text/html");focusItem.document.writeln("&nbsp;");focusItem.document.close();}else{content+='   <div id="focusItem'+countMenus+'" style="position:absolute;left:0px;top:0px;visibility:hide;" onclick="onMenuItemAction(null,this);">&nbsp;</div>\n';content+='   </div>\n  </div>\n</div>\n';}
i=x;}
if(document.layers){container.clip.width=window.innerWidth;container.clip.height=window.innerHeight;container.onmouseout=mouseoutMenu;container.menuContainerBgColor=this.menuContainerBgColor;for(var i=0;i<container.document.layers.length;i++){proto=container.menus[i];var menu=container.document.layers[i];container.menus[i].menuLayer=menu;container.menus[i].menuLayer.Menu=container.menus[i];container.menus[i].menuLayer.Menu.container=container;var body=menu.document.layers[0].document.layers[0];body.clip.width=proto.menuWidth||body.clip.width;body.clip.height=proto.menuHeight||body.clip.height;for(var n=0;n<body.document.layers.length-1;n++){var l=body.document.layers[n];l.Menu=container.menus[i];l.menuHiliteBgColor=proto.menuHiliteBgColor;l.document.bgColor=proto.menuItemBgColor;l.saveColor=proto.menuItemBgColor;l.onmouseover=proto.onMenuItemOver;l.onclick=proto.onMenuItemAction;l.mmaction=container.menus[i].actions[n];l.focusItem=body.document.layers[body.document.layers.length-1];l.clip.width=proto.menuWidth||body.clip.width;l.clip.height=proto.menuItemHeight||l.clip.height;if(n>0){if(l.Menu.vertical)l.top=body.document.layers[n-1].top+body.document.layers[n-1].clip.height+proto.menuItemBorder+proto.menuItemSpacing;else l.left=body.document.layers[n-1].left+body.document.layers[n-1].clip.width+proto.menuItemBorder+proto.menuItemSpacing;}
l.hilite=l.document.layers[1];if(proto.bgImageUp)l.background.src=proto.bgImageUp;l.document.layers[1].isHilite=true;if(l.document.layers.length>2){l.childMenu=container.menus[i].items[n].menuLayer;l.document.layers[2].left=l.clip.width-13;l.document.layers[2].top=(l.clip.height/2)-4;l.document.layers[2].clip.left+=3;l.Menu.childMenus[l.Menu.childMenus.length]=l.childMenu;}}
if(proto.menuBgOpaque)body.document.bgColor=proto.bgColor;if(proto.vertical){body.clip.width=l.clip.width+proto.menuBorder;body.clip.height=l.top+l.clip.height+proto.menuBorder;}else{body.clip.height=l.clip.height+proto.menuBorder;body.clip.width=l.left+l.clip.width+proto.menuBorder;if(body.clip.width>window.innerWidth)body.clip.width=window.innerWidth;}
var focusItem=body.document.layers[n];focusItem.clip.width=body.clip.width;focusItem.Menu=l.Menu;focusItem.top=-30;focusItem.captureEvents(Event.MOUSEDOWN);focusItem.onmousedown=onMenuItemDown;if(proto.menuBgOpaque)menu.document.bgColor=proto.menuBorderBgColor;var lite=menu.document.layers[0];if(proto.menuBgOpaque)lite.document.bgColor=proto.menuLiteBgColor;lite.clip.width=body.clip.width+1;lite.clip.height=body.clip.height+1;menu.clip.width=body.clip.width+(proto.menuBorder*3);menu.clip.height=body.clip.height+(proto.menuBorder*3);}}else{if((!document.all)&&(container.hasChildNodes)&&!window.mmIsOpera){container.innerHTML=content;}else{container.document.open("text/html");container.document.writeln(content);container.document.close();}
if(!FIND("menuLayer0"))return;var menuCount=0;for(var x=0;x<container.menus.length;x++){var menuLayer=FIND("menuLayer"+x);container.menus[x].menuLayer="menuLayer"+x;menuLayer.Menu=container.menus[x];menuLayer.Menu.container="menuLayer"+x;menuLayer.style.zindex=1;var s=menuLayer.style;s.pixeltop=-300;s.pixelleft=-300;s.top='-300px';s.left='-300px';var menu=container.menus[x];menu.menuItemWidth=menu.menuWidth||menu.menuIEWidth||140;if(menu.menuBgOpaque)menuLayer.style.backgroundColor=menu.menuBorderBgColor;var top=0;var left=0;menu.menuItemLayers=new Array();for(var i=0;i<container.menus[x].items.length;i++){var l=FIND("menuItem"+menuCount);l.Menu=container.menus[x];l.Menu.menuItemLayers[l.Menu.menuItemLayers.length]=l;if(l.addEventListener||window.mmIsOpera){l.style.width=menu.menuItemWidth+'px';l.style.height=menu.menuItemHeight+'px';l.style.pixelWidth=menu.menuItemWidth;l.style.pixelHeight=menu.menuItemHeight;l.style.top=top+'px';l.style.left=left+'px';if(l.addEventListener){l.addEventListener("mouseover",onMenuItemOver,false);l.addEventListener("click",onMenuItemAction,false);l.addEventListener("mouseout",mouseoutMenu,false);}
if(menu.menuItemHAlign!='left'){l.hiliteShim=FIND("menuItemHilite"+menuCount+"Shim");l.hiliteShim.style.visibility="inherit";l.textShim=FIND("menuItemText"+menuCount+"Shim");l.hiliteShim.style.pixelWidth=menu.menuItemWidth-2*menu.menuItemPadding-menu.menuItemIndent;l.hiliteShim.style.width=l.hiliteShim.style.pixelWidth;l.textShim.style.pixelWidth=menu.menuItemWidth-2*menu.menuItemPadding-menu.menuItemIndent;l.textShim.style.width=l.textShim.style.pixelWidth;}}else{l.style.pixelWidth=menu.menuItemWidth;l.style.pixelHeight=menu.menuItemHeight;l.style.pixelTop=top;l.style.pixelLeft=left;if(menu.menuItemHAlign!='left'){var shim=FIND("menuItemShim"+menuCount);shim[0].style.pixelWidth=menu.menuItemWidth-2*menu.menuItemPadding-menu.menuItemIndent;shim[1].style.pixelWidth=menu.menuItemWidth-2*menu.menuItemPadding-menu.menuItemIndent;shim[0].style.width=shim[0].style.pixelWidth+'px';shim[1].style.width=shim[1].style.pixelWidth+'px';}}
if(menu.vertical)top=top+menu.menuItemHeight+menu.menuItemBorder+menu.menuItemSpacing;else left=left+menu.menuItemWidth+menu.menuItemBorder+menu.menuItemSpacing;l.style.fontSize=menu.fontSize+'px';l.style.backgroundColor=menu.menuItemBgColor;l.style.visibility="inherit";l.saveColor=menu.menuItemBgColor;l.menuHiliteBgColor=menu.menuHiliteBgColor;l.mmaction=container.menus[x].actions[i];l.hilite=FIND("menuItemHilite"+menuCount);l.focusItem=FIND("focusItem"+x);l.focusItem.style.pixelTop=-30;l.focusItem.style.top='-30px';var childItem=FIND("childMenu"+menuCount);if(childItem){l.childMenu=container.menus[x].items[i].menuLayer;childItem.style.pixelLeft=menu.menuItemWidth-11;childItem.style.left=childItem.style.pixelLeft+'px';childItem.style.pixelTop=(menu.menuItemHeight/2)-4;childItem.style.top=childItem.style.pixelTop+'px';l.Menu.childMenus[l.Menu.childMenus.length]=l.childMenu;}
l.style.cursor="hand";menuCount++;}
if(menu.vertical){menu.menuHeight=top-1-menu.menuItemSpacing;menu.menuWidth=menu.menuItemWidth;}else{menu.menuHeight=menu.menuItemHeight;menu.menuWidth=left-1-menu.menuItemSpacing;}
var lite=FIND("menuLite"+x);var s=lite.style;s.pixelHeight=menu.menuHeight+(menu.menuBorder*2);s.height=s.pixelHeight+'px';s.pixelWidth=menu.menuWidth+(menu.menuBorder*2);s.width=s.pixelWidth+'px';if(menu.menuBgOpaque)s.backgroundColor=menu.menuLiteBgColor;var body=FIND("menuFg"+x);s=body.style;s.pixelHeight=menu.menuHeight+menu.menuBorder;s.height=s.pixelHeight+'px';s.pixelWidth=menu.menuWidth+menu.menuBorder;s.width=s.pixelWidth+'px';if(menu.menuBgOpaque)s.backgroundColor=menu.bgColor;s=menuLayer.style;s.pixelWidth=menu.menuWidth+(menu.menuBorder*4);s.width=s.pixelWidth+'px';s.pixelHeight=menu.menuHeight+(menu.menuBorder*4);s.height=s.pixelHeight+'px';}}
if(document.captureEvents)document.captureEvents(Event.MOUSEUP);if(document.addEventListener)document.addEventListener("mouseup",onMenuItemOver,false);if(document.layers&&window.innerWidth){window.onresize=NS4resize;window.NS4sIW=window.innerWidth;window.NS4sIH=window.innerHeight;setTimeout("NS4resize()",500);}
document.onmouseup=mouseupMenu;window.mmWroteMenu=true;status="";}
function NS4resize(){if(NS4sIW!=window.innerWidth||NS4sIH!=window.innerHeight)window.location.reload();}
function onMenuItemOver(e,l){MM_clearTimeout();l=l||this;var a=window.ActiveMenuItem;if(document.layers){if(a){a.document.bgColor=a.saveColor;if(a.hilite)a.hilite.visibility="hidden";if(a.Menu.bgImageOver)a.background.src=a.Menu.bgImageUp;a.focusItem.top=-100;a.clicked=false;}
if(l.hilite){l.document.bgColor=l.menuHiliteBgColor;l.zIndex=1;l.hilite.visibility="inherit";l.hilite.zIndex=2;l.document.layers[1].zIndex=1;l.focusItem.zIndex=this.zIndex+2;}
if(l.Menu.bgImageOver)l.background.src=l.Menu.bgImageOver;l.focusItem.top=this.top;l.focusItem.left=this.left;l.focusItem.clip.width=l.clip.width;l.focusItem.clip.height=l.clip.height;l.Menu.hideChildMenu(l);}else if(l.style&&l.Menu){if(a){a.style.backgroundColor=a.saveColor;if(a.hilite)a.hilite.style.visibility="hidden";if(a.hiliteShim)a.hiliteShim.style.visibility="inherit";if(a.Menu.bgImageUp)a.style.background="url("+a.Menu.bgImageUp+")";;}
l.style.backgroundColor=l.menuHiliteBgColor;l.zIndex=1;if(l.Menu.bgImageOver)l.style.background="url("+l.Menu.bgImageOver+")";if(l.hilite){l.hilite.style.visibility="inherit";if(l.hiliteShim)l.hiliteShim.style.visibility="visible";}
l.focusItem.style.pixelTop=l.style.pixelTop;l.focusItem.style.top=l.focusItem.style.pixelTop+'px';l.focusItem.style.pixelLeft=l.style.pixelLeft;l.focusItem.style.left=l.focusItem.style.pixelLeft+'px';l.focusItem.style.zIndex=l.zIndex+1;l.Menu.hideChildMenu(l);}else return;window.ActiveMenuItem=l;}
function onMenuItemAction(e,l){l=window.ActiveMenuItem;if(!l)return;hideActiveMenus();if(l.mmaction)eval(""+l.mmaction);window.ActiveMenuItem=0;}
function MM_clearTimeout(){if(mmHideMenuTimer)clearTimeout(mmHideMenuTimer);mmHideMenuTimer=null;mmDHFlag=false;}
function MM_startTimeout(){if(window.ActiveMenu){mmStart=new Date();mmDHFlag=true;mmHideMenuTimer=setTimeout("mmDoHide()",window.ActiveMenu.Menu.hideTimeout);}}
function mmDoHide(){if(!mmDHFlag||!window.ActiveMenu)return;var elapsed=new Date()-mmStart;var timeout=window.ActiveMenu.Menu.hideTimeout;if(elapsed<timeout){mmHideMenuTimer=setTimeout("mmDoHide()",timeout+100-elapsed);return;}
if(typeof PagedBoxHideShowDDL!="undefined")
PagedBoxHideShowDDL(true);mmDHFlag=false;hideActiveMenus();window.ActiveMenuItem=0;}
function MM_showMenu(menu,x,y,child,imgname){if(!window.mmWroteMenu)return;if(typeof PagedBoxHideShowDDL!="undefined")
PagedBoxHideShowDDL(false);MM_clearTimeout();if(menu){var obj=FIND(imgname)||document.images[imgname]||document.links[imgname]||document.anchors[imgname];x=moveXbySlicePos(x,obj);y=moveYbySlicePos(y,obj);}
if(document.layers){if(menu){var l=menu.menuLayer||menu;l.top=l.left=1;hideActiveMenus();if(this.visibility)l=this;window.ActiveMenu=l;}else{var l=child;}
if(!l)return;for(var i=0;i<l.layers.length;i++){if(!l.layers[i].isHilite)l.layers[i].visibility="inherit";if(l.layers[i].document.layers.length>0)MM_showMenu(null,"relative","relative",l.layers[i]);}
if(l.parentLayer){if(x!="relative")l.parentLayer.left=x||window.pageX||0;if(l.parentLayer.left+l.clip.width>window.innerWidth)l.parentLayer.left-=(l.parentLayer.left+l.clip.width-window.innerWidth);if(y!="relative")l.parentLayer.top=y||window.pageY||0;if(l.parentLayer.isContainer){l.Menu.xOffset=window.pageXOffset;l.Menu.yOffset=window.pageYOffset;l.parentLayer.clip.width=window.ActiveMenu.clip.width+2;l.parentLayer.clip.height=window.ActiveMenu.clip.height+2;if(l.parentLayer.menuContainerBgColor&&l.Menu.menuBgOpaque)l.parentLayer.document.bgColor=l.parentLayer.menuContainerBgColor;}}
l.visibility="inherit";if(l.Menu)l.Menu.container.visibility="inherit";}else if(FIND("menuItem0")){var l=menu.menuLayer||menu;hideActiveMenus();if(typeof(l)=="string")l=FIND(l);window.ActiveMenu=l;var s=l.style;s.visibility="inherit";if(x!="relative"){s.pixelLeft=x||(window.pageX+document.body.scrollLeft)||0;s.left=s.pixelLeft+'px';}
if(y!="relative"){s.pixelTop=y||(window.pageY+document.body.scrollTop)||0;s.top=s.pixelTop+'px';}
l.Menu.xOffset=document.body.scrollLeft;l.Menu.yOffset=document.body.scrollTop;}
if(menu)window.activeMenus[window.activeMenus.length]=l;MM_clearTimeout();}
function onMenuItemDown(e,l){var a=window.ActiveMenuItem;if(document.layers&&a){a.eX=e.pageX;a.eY=e.pageY;a.clicked=true;}}
function mouseupMenu(e){hideMenu(true,e);hideActiveMenus();return true;}
function getExplorerVersion(){var ieVers=parseFloat(navigator.appVersion);if(navigator.appName!='Microsoft Internet Explorer')return ieVers;var tempVers=navigator.appVersion;var i=tempVers.indexOf('MSIE ');if(i>=0){tempVers=tempVers.substring(i+5);ieVers=parseFloat(tempVers);}
return ieVers;}
function mouseoutMenu(){if((navigator.appName=="Microsoft Internet Explorer")&&(getExplorerVersion()<4.5))
return true;hideMenu(false,false);return true;}
function hideMenu(mouseup,e){var a=window.ActiveMenuItem;if(a&&document.layers){a.document.bgColor=a.saveColor;a.focusItem.top=-30;if(a.hilite)a.hilite.visibility="hidden";if(mouseup&&a.mmaction&&a.clicked&&window.ActiveMenu){if(a.eX<=e.pageX+15&&a.eX>=e.pageX-15&&a.eY<=e.pageY+10&&a.eY>=e.pageY-10){setTimeout('window.ActiveMenu.Menu.onMenuItemAction();',500);}}
a.clicked=false;if(a.Menu.bgImageOver)a.background.src=a.Menu.bgImageUp;}else if(window.ActiveMenu&&FIND("menuItem0")){if(a){a.style.backgroundColor=a.saveColor;if(a.hilite)a.hilite.style.visibility="hidden";if(a.hiliteShim)a.hiliteShim.style.visibility="inherit";if(a.Menu.bgImageUp)a.style.background="url("+a.Menu.bgImageUp+")";}}
if(!mouseup&&window.ActiveMenu){if(window.ActiveMenu.Menu){if(window.ActiveMenu.Menu.hideOnMouseOut)MM_startTimeout();return(true);}}
return(true);}
function hideChildMenu(hcmLayer){MM_clearTimeout();var l=hcmLayer;for(var i=0;i<l.Menu.childMenus.length;i++){var theLayer=l.Menu.childMenus[i];if(document.layers)theLayer.visibility="hidden";else{theLayer=FIND(theLayer);theLayer.style.visibility="hidden";if(theLayer.Menu.menuItemHAlign!='left'){for(var j=0;j<theLayer.Menu.menuItemLayers.length;j++){var itemLayer=theLayer.Menu.menuItemLayers[j];if(itemLayer.textShim)itemLayer.textShim.style.visibility="inherit";}}}
theLayer.Menu.hideChildMenu(theLayer);}
if(l.childMenu){var childMenu=l.childMenu;if(document.layers){l.Menu.MM_showMenu(null,null,null,childMenu.layers[0]);childMenu.zIndex=l.parentLayer.zIndex+1;childMenu.top=l.Menu.menuLayer.top+l.Menu.submenuYOffset;if(l.Menu.vertical){if(l.Menu.submenuRelativeToItem)childMenu.top+=l.top+l.parentLayer.top;childMenu.left=l.parentLayer.left+l.parentLayer.clip.width-(2*l.Menu.menuBorder)+l.Menu.menuLayer.left+l.Menu.submenuXOffset;}else{childMenu.top+=l.top+l.parentLayer.top;if(l.Menu.submenuRelativeToItem)childMenu.left=l.Menu.menuLayer.left+l.left+l.clip.width+(2*l.Menu.menuBorder)+l.Menu.submenuXOffset;else childMenu.left=l.parentLayer.left+l.parentLayer.clip.width-(2*l.Menu.menuBorder)+l.Menu.menuLayer.left+l.Menu.submenuXOffset;}
if(childMenu.left<l.Menu.container.clip.left)l.Menu.container.clip.left=childMenu.left;var w=childMenu.clip.width+childMenu.left-l.Menu.container.clip.left;if(w>l.Menu.container.clip.width)l.Menu.container.clip.width=w;var h=childMenu.clip.height+childMenu.top-l.Menu.container.clip.top;if(h>l.Menu.container.clip.height)l.Menu.container.clip.height=h;l.document.layers[1].zIndex=0;childMenu.visibility="inherit";}else if(FIND("menuItem0")){childMenu=FIND(l.childMenu);var menuLayer=FIND(l.Menu.menuLayer);var s=childMenu.style;s.zIndex=menuLayer.style.zIndex+1;if(document.all||window.mmIsOpera){s.pixelTop=menuLayer.style.pixelTop+l.Menu.submenuYOffset;if(l.Menu.vertical){if(l.Menu.submenuRelativeToItem)s.pixelTop+=l.style.pixelTop;s.pixelLeft=l.style.pixelWidth+menuLayer.style.pixelLeft+l.Menu.submenuXOffset;s.left=s.pixelLeft+'px';}else{s.pixelTop+=l.style.pixelTop;if(l.Menu.submenuRelativeToItem)s.pixelLeft=menuLayer.style.pixelLeft+l.style.pixelLeft+l.style.pixelWidth+(2*l.Menu.menuBorder)+l.Menu.submenuXOffset;else s.pixelLeft=(menuLayer.style.pixelWidth-4*l.Menu.menuBorder)+menuLayer.style.pixelLeft+l.Menu.submenuXOffset;s.left=s.pixelLeft+'px';}}else{var top=parseInt(menuLayer.style.top)+l.Menu.submenuYOffset;var left=0;if(l.Menu.vertical){if(l.Menu.submenuRelativeToItem)top+=parseInt(l.style.top);left=(parseInt(menuLayer.style.width)-4*l.Menu.menuBorder)+parseInt(menuLayer.style.left)+l.Menu.submenuXOffset;}else{top+=parseInt(l.style.top);if(l.Menu.submenuRelativeToItem)left=parseInt(menuLayer.style.left)+parseInt(l.style.left)+parseInt(l.style.width)+(2*l.Menu.menuBorder)+l.Menu.submenuXOffset;else left=(parseInt(menuLayer.style.width)-4*l.Menu.menuBorder)+parseInt(menuLayer.style.left)+l.Menu.submenuXOffset;}
s.top=top+'px';s.left=left+'px';}
childMenu.style.visibility="inherit";}else return;window.activeMenus[window.activeMenus.length]=childMenu;}}
function hideActiveMenus(){if(!window.activeMenus)return;for(var i=0;i<window.activeMenus.length;i++){if(!activeMenus[i])continue;if(activeMenus[i].visibility&&activeMenus[i].Menu&&!window.mmIsOpera){activeMenus[i].visibility="hidden";activeMenus[i].Menu.container.visibility="hidden";activeMenus[i].Menu.container.clip.left=0;}else if(activeMenus[i].style){var s=activeMenus[i].style;s.visibility="hidden";s.left='-200px';s.top='-200px';}}
if(window.ActiveMenuItem)hideMenu(false,false);window.activeMenus.length=0;}
function moveXbySlicePos(x,img){if(!document.layers){var onWindows=navigator.platform?navigator.platform=="Win32":false;var macIE45=document.all&&!onWindows&&getExplorerVersion()==4.5;var par=img;var lastOffset=0;while(par){if(par.leftMargin&&!onWindows)x+=parseInt(par.leftMargin);if((par.offsetLeft!=lastOffset)&&par.offsetLeft)x+=parseInt(par.offsetLeft);if(par.offsetLeft!=0)lastOffset=par.offsetLeft;par=macIE45?par.parentElement:par.offsetParent;}}else if(img.x)x+=img.x;return x;}
function moveYbySlicePos(y,img){if(!document.layers){var onWindows=navigator.platform?navigator.platform=="Win32":false;var macIE45=document.all&&!onWindows&&getExplorerVersion()==4.5;var par=img;var lastOffset=0;while(par){if(par.topMargin&&!onWindows)y+=parseInt(par.topMargin);if((par.offsetTop!=lastOffset)&&par.offsetTop)y+=parseInt(par.offsetTop);if(par.offsetTop!=0)lastOffset=par.offsetTop;par=macIE45?par.parentElement:par.offsetParent;}}else if(img.y>=0)y+=img.y;return y;}
if(typeof(bsn)=="undefined")
_b=bsn={};if(typeof(_b.Autosuggest)=="undefined")
_b.Autosuggest={};_b.AutoSuggest=function(id,param)
{if(!document.getElementById)
return 0;this.fld=_b.DOM.gE(id);if(!this.fld)
return 0;this.sInp="";this.nInpC=0;this.aSug=[];this.iHigh=0;this.oP=param?param:{};var k,def={minchars:1,meth:"get",varname:"input",className:"autosuggest",timeout:2500,delay:500,offsety:-5,shownoresults:true,noresults:"No results!",maxheight:250,cache:true,maxentries:25,maxresults:250};for(k in def)
{if(typeof(this.oP[k])!=typeof(def[k]))
this.oP[k]=def[k];}
var p=this;this.fld.onkeypress=function(ev){return p.onKeyPress(ev);};this.fld.onkeyup=function(ev){return p.onKeyUp(ev);};this.fld.setAttribute("autocomplete","off");};_b.AutoSuggest.prototype.onKeyPress=function(ev)
{var key=(window.event)?window.event.keyCode:ev.keyCode;var RETURN=13;var TAB=9;var ESC=27;var bubble=1;switch(key)
{case RETURN:this.setHighlightedValue();bubble=0;break;case ESC:this.clearSuggestions();break;}
return bubble;};_b.AutoSuggest.prototype.onKeyUp=function(ev)
{var key=(window.event)?window.event.keyCode:ev.keyCode;var ARRUP=38;var ARRDN=40;var bubble=1;switch(key)
{case ARRUP:this.changeHighlight(key);bubble=0;break;case ARRDN:this.changeHighlight(key);bubble=0;break;default:this.getSuggestions(this.fld.value);}
return bubble;};_b.AutoSuggest.prototype.getSuggestions=function(val)
{if(val==this.sInp)
return 0;_b.DOM.remE(this.idAs);this.sInp=val;if(val.length<this.oP.minchars)
{this.aSug=[];this.nInpC=val.length;return 0;}
var ol=this.nInpC;this.nInpC=val.length?val.length:0;var l=this.aSug.length;if(this.nInpC>ol&&l&&l<this.oP.maxresults&&this.oP.cache)
{var arr=[];for(var i=0;i<l;i++)
{if(this.aSug[i].value.substr(0,val.length).toLowerCase()==val.toLowerCase()||this.aSug[i].value.substr(0,val.length+4).toLowerCase()=='the '+val.toLowerCase()||this.aSug[i].value.substr(0,val.length+1).toLowerCase().replace(':','')==val.toLowerCase()||this.aSug[i].value.substr(0,val.length+5).toLowerCase().replace(':','')=='the '+val.toLowerCase())
arr.push(this.aSug[i]);}
this.aSug=arr;this.createList(this.aSug);return false;}
else
{var pointer=this;var input=this.sInp;clearTimeout(this.ajID);this.ajID=setTimeout(function(){pointer.doAjaxRequest(input)},this.oP.delay);}
return false;};_b.AutoSuggest.prototype.doAjaxRequest=function(input)
{if(input!=this.fld.value)
return false;var pointer=this;if(typeof(this.oP.script)=="function")
var url=this.oP.script(encodeURIComponent(this.sInp));else
var url=this.oP.script+this.oP.varname+"="+encodeURIComponent(this.sInp);if(!url)
return false;var meth=this.oP.meth;var input=this.sInp;var onSuccessFunc=function(req){pointer.setSuggestions(req,input)};var onErrorFunc=function(status){};var myAjax=new _b.Ajax();myAjax.makeRequest(url,meth,onSuccessFunc,onErrorFunc);};_b.AutoSuggest.prototype.setSuggestions=function(req,input)
{if(input!=this.fld.value)
return false;this.aSug=[];if(this.oP.json)
{var jsondata=eval('('+req.responseText+')');for(var i=0;i<jsondata.results.length;i++)
{this.aSug.push({'id':jsondata.results[i].id,'value':jsondata.results[i].value,'info':jsondata.results[i].info});}}
else
{var xml=req.responseXML;if(xml.getElementsByTagName('results')!=null){var results=xml.getElementsByTagName('results')[0].childNodes;for(var i=0;i<results.length;i++)
{if(results[i].hasChildNodes())
this.aSug.push({'id':results[i].getAttribute('id'),'value':results[i].childNodes[0].nodeValue,'info':results[i].getAttribute('info')});}}}
this.idAs="as_"+this.fld.id;this.createList(this.aSug);};_b.AutoSuggest.prototype.createList=function(arr)
{var pointer=this;var listings=arr.length;listings=arr.length>this.oP.maxentries?this.oP.maxentries:arr.length;_b.DOM.remE(this.idAs);this.killTimeout();if(listings==0&&!this.oP.shownoresults)
return false;var div=_b.DOM.cE("div",{id:this.idAs,className:this.oP.className});var hcorner=_b.DOM.cE("div",{className:"as_corner"});var hbar=_b.DOM.cE("div",{className:"as_bar"});var header=_b.DOM.cE("div",{className:"as_header"});header.appendChild(hcorner);header.appendChild(hbar);div.appendChild(header);var ul=_b.DOM.cE("ul",{id:"as_ul"});var emLength;var st;for(var i=0;i<listings;i++)
{var val=this.aSug[i].value;var iLen=this.sInp.length;if(val.substr(0,iLen+1).toLowerCase().replace(':','')==this.sInp.toLowerCase()){emLength=iLen+1;st=val.toLowerCase().replace(':','').indexOf(this.sInp.toLowerCase());}
else if(val.substr(0,iLen+4).toLowerCase()=='the '+this.sInp.toLowerCase()){emLength=iLen+4;st=val.toLowerCase().indexOf('the '+this.sInp.toLowerCase());}
else if(val.substr(0,iLen+5).toLowerCase().replace(':','')=='the '+this.sInp.toLowerCase()){emLength=iLen+5;st=val.toLowerCase().replace(':','').indexOf('the '+this.sInp.toLowerCase());}
else{emLength=iLen;st=val.toLowerCase().indexOf(this.sInp.toLowerCase());}
var output=val.substring(0,st)+"<em>"+val.substring(st,st+emLength)+"</em>"+val.substring(st+emLength);var span=_b.DOM.cE("span",{},output,true);if(arr[i].info!="")
{var br=_b.DOM.cE("br",{});span.appendChild(br);var small=_b.DOM.cE("small",{},arr[i].info);span.appendChild(small);}
var a=_b.DOM.cE("a",{href:"#"});var tl=_b.DOM.cE("span",{className:"tl"}," ");var tr=_b.DOM.cE("span",{className:"tr"}," ");a.appendChild(tl);a.appendChild(tr);a.appendChild(span);a.name=i+1;a.onclick=function(){pointer.setHighlightedValue();return false;};a.onmouseover=function(){pointer.setHighlight(this.name,false);};var li=_b.DOM.cE("li",{},a);ul.appendChild(li);}
if(arr.length==0&&this.oP.shownoresults)
{var li=_b.DOM.cE("li",{className:"as_warning"},this.oP.noresults);ul.appendChild(li);}
div.appendChild(ul);var fcorner=_b.DOM.cE("div",{className:"as_corner"});var fbar=_b.DOM.cE("div",{className:"as_bar"});var footer=_b.DOM.cE("div",{className:"as_footer"});footer.appendChild(fcorner);footer.appendChild(fbar);div.appendChild(footer);var pos=_b.DOM.getPos(this.fld);div.style.left=(pos.x)+"px";div.style.top=(pos.y+this.fld.offsetHeight+this.oP.offsety+5)+"px";div.style.width=(this.fld.offsetWidth+72)+"px";div.onmouseover=function(){pointer.killTimeout()};div.onmouseout=function(){pointer.resetTimeout()};document.getElementsByTagName("body")[0].appendChild(div);this.iHigh=0;var pointer=this;this.toID=setTimeout(function(){pointer.clearSuggestions()},this.oP.timeout);};_b.AutoSuggest.prototype.changeHighlight=function(key)
{var list=_b.DOM.gE("as_ul");if(!list)
return false;var n;if(key==40)
n=this.iHigh+1;else if(key==38)
n=this.iHigh-1;if(n>list.childNodes.length)
n=list.childNodes.length;if(n<1)
n=1;this.setHighlight(n,true);};_b.AutoSuggest.prototype.setHighlight=function(n,changefld)
{var list=_b.DOM.gE("as_ul");if(!list)
return false;if(this.iHigh>0)
this.clearHighlight();this.iHigh=Number(n);list.childNodes[this.iHigh-1].className="as_highlight";if(changefld==true)
this.fld.value=this.aSug[this.iHigh-1].value;this.killTimeout();};_b.AutoSuggest.prototype.clearHighlight=function()
{var list=_b.DOM.gE("as_ul");if(!list)
return false;if(this.iHigh>0)
{list.childNodes[this.iHigh-1].className="";this.iHigh=0;}};_b.AutoSuggest.prototype.setHighlightedValue=function(){if(this.iHigh){this.sInp=this.fld.value=this.aSug[this.iHigh-1].value;this.fld.focus();if(null!=document.getElementById("navMod_btnSearch")){document.getElementById("navMod_btnSearch").click();}
else if(null!=document.getElementById("navMod_imgBtnSearch")){document.getElementById("navMod_imgBtnSearch").click();}
else if(null!=document.getElementById("ctl00_ctl00_ctl10_imgBtnSearch")){document.getElementById("ctl00_ctl00_ctl10_imgBtnSearch").click();}
else if(null!=document.getElementById("ctl00_ctl00_ctl07_imgBtnSearch")){document.getElementById("ctl00_ctl00_ctl07_imgBtnSearch").click();}
else if(null!=document.getElementById("ctl00_ctl00_ctl06_imgBtnSearch")){document.getElementById("ctl00_ctl00_ctl06_imgBtnSearch").click();}
if(this.fld.selectionStart)
this.fld.setSelectionRange(this.sInp.length,this.sInp.length);this.clearSuggestions();if(typeof(this.oP.callback)=="function")
this.oP.callback(this.aSug[this.iHigh-1]);}};_b.AutoSuggest.prototype.killTimeout=function()
{clearTimeout(this.toID);};_b.AutoSuggest.prototype.resetTimeout=function()
{clearTimeout(this.toID);var pointer=this;this.toID=setTimeout(function(){pointer.clearSuggestions()},1000);};_b.AutoSuggest.prototype.clearSuggestions=function()
{this.killTimeout();var ele=_b.DOM.gE(this.idAs);var pointer=this;if(ele)
{var fade=new _b.Fader(ele,1,0,250,function(){_b.DOM.remE(pointer.idAs)});}};if(typeof(_b.Ajax)=="undefined")
_b.Ajax={};_b.Ajax=function()
{this.req={};this.isIE=false;};_b.Ajax.prototype.makeRequest=function(url,meth,onComp,onErr)
{if(meth!="POST")
meth="GET";this.onComplete=onComp;this.onError=onErr;var pointer=this;if(window.XMLHttpRequest)
{this.req=new XMLHttpRequest();this.req.onreadystatechange=function(){pointer.processReqChange()};this.req.open("GET",url,true);this.req.send(null);}
else if(eval('window.'+'A'+'c'+'t'+'i'+'v'+'e'+'X'+'O'+'b'+'j'+'e'+'c'+'t'))
{this.req=eval('new '+'A'+'c'+'t'+'i'+'v'+'e'+'X'+'O'+'b'+'j'+'e'+'c'+'t("Microsoft.XMLHTTP")');if(this.req)
{this.req.onreadystatechange=function(){pointer.processReqChange()};this.req.open(meth,url,true);this.req.send();}}};_b.Ajax.prototype.processReqChange=function()
{if(this.req.readyState==4){if(this.req.status==200)
{this.onComplete(this.req);}else{this.onError(this.req.status);}}};if(typeof(_b.DOM)=="undefined")
_b.DOM={};_b.DOM.cE=function(type,attr,cont,html)
{var ne=document.createElement(type);if(!ne)
return 0;for(var a in attr)
ne[a]=attr[a];var t=typeof(cont);if(t=="string"&&!html)
ne.appendChild(document.createTextNode(cont));else if(t=="string"&&html)
ne.innerHTML=cont;else if(t=="object")
ne.appendChild(cont);return ne;};_b.DOM.gE=function(e)
{var t=typeof(e);if(t=="undefined")
return 0;else if(t=="string")
{var re=document.getElementById(e);if(!re)
return 0;else if(typeof(re.appendChild)!="undefined")
return re;else
return 0;}
else if(typeof(e.appendChild)!="undefined")
return e;else
return 0;};_b.DOM.remE=function(ele)
{var e=this.gE(ele);if(!e)
return 0;else if(e.parentNode.removeChild(e))
return true;else
return 0;};_b.DOM.getPos=function(e)
{var e=this.gE(e);var obj=e;var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;var obj=e;var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curtop+=obj.offsetTop;obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return{x:curleft,y:curtop};};if(typeof(_b.Fader)=="undefined")
_b.Fader={};_b.Fader=function(ele,from,to,fadetime,callback)
{if(!ele)
return 0;this.e=ele;this.from=from;this.to=to;this.cb=callback;this.nDur=fadetime;this.nInt=50;this.nTime=0;var p=this;this.nID=setInterval(function(){p._fade()},this.nInt);};_b.Fader.prototype._fade=function()
{this.nTime+=this.nInt;var ieop=Math.round(this._tween(this.nTime,this.from,this.to,this.nDur)*100);var op=ieop/100;if(this.e.filters)
{try
{this.e.filters.item("DXImageTransform.Microsoft.Alpha").opacity=ieop;}catch(e){this.e.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+ieop+')';}}
else
{this.e.style.opacity=op;}
if(this.nTime==this.nDur)
{clearInterval(this.nID);if(this.cb!=undefined)
this.cb();}};_b.Fader.prototype._tween=function(t,b,c,d)
{return b+((c-b)*(t/d));};function EncodeHtml(unencodedString){var encodedHtml;encodedHtml=escape(unencodedString);encodedHtml=encodedHtml.replace(/\//g,"%2F");encodedHtml=encodedHtml.replace(/\?/g,"%3F");encodedHtml=encodedHtml.replace(/=/g,"%3D");encodedHtml=encodedHtml.replace(/&/g,"%26");encodedHtml=encodedHtml.replace(/@/g,"%40");return encodedHtml;}
function IsEmpty(checkEmpty){if(checkEmpty==null||checkEmpty==""||checkEmpty=="undefined"||checkEmpty==-1||checkEmpty==0)
return true;return false;}
function CleanedUri(excludeQueryString){var cleanedPageName=location.href.replace("http://","").replace("https://","");var indexFirstSlash=cleanedPageName.indexOf('/');if(indexFirstSlash>=0){cleanedPageName=cleanedPageName.substring(indexFirstSlash,1+cleanedPageName.length);if(excludeQueryString){var indexFirstQuestionMark=cleanedPageName.indexOf('?');var indexFirstAnchor=cleanedPageName.indexOf('#');if(indexFirstQuestionMark>=0){return(cleanedPageName.substring(0,indexFirstQuestionMark));}
else if(indexFirstAnchor>=0){return(cleanedPageName.substring(0,indexFirstAnchor));}}
return cleanedPageName;};return"";}
function ZipTrack(trackObject){var DEV_MODE=IsDev();if(trackObject.Action==TRACKINGACTION_IGNORE)return;if(typeof zipGlobal=="undefined"||typeof zipGlobal.ZipTrackService=="undefined"){if(DEV_MODE)alert("zipTrackService is not defined. Do not ignore this, and please fix!");return;}
PopulateEmptyTrackingProperties(trackObject);var wsRequest=zipGlobal.ZipTrackService+"?"+SerializeParams(trackObject)+"&nocache="+Math.random();if(trackObject.Panel<=0){if(DEV_MODE){alert("ERROR: Unknown panel attempting to be tracked ("+trackObject.Panel+"). Do not ignore this, and please fix!");}
return false;}
if(trackObject.Action<=0){if(DEV_MODE){alert("ERROR: Unknown action attempting to be tracked ("+trackObject.Action+"). Do not ignore this, and please fix!");}
return false;}
LoadPixel(wsRequest);}
function PopulateEmptyTrackingProperties(trackObject){for(trackKey in zipGlobal.ZipTrackTemplate){if(IsEmpty(trackObject[trackKey])){switch(trackKey){case'URL':trackObject[trackKey]=CleanedUri(true);break;default:trackObject[trackKey]=zipGlobal.ZipTrackTemplate[trackKey];}}}}
function LoadPixel(pixelUrl,optionalDivId){var trackDiv;if(typeof optionalDivId!="undefined"&&optionalDivId!=null){trackDiv=document.getElementById(optionalDivId);}
else{trackDiv=document.getElementById("divZipTrack");}
if(typeof trackDiv!="undefined"&&trackDiv!=null){trackDiv.innerHTML='<img alt="" border="0" name="zipTrackPixel" width="1" height="1" src="'+pixelUrl+'" />';}}
function ZipTrackFirstVisit(){if(typeof zipGlobal=="undefined"||typeof zipGlobal.ZipTrackTemplate=="undefined")
return;var firstVisitTrackObject=cloneObject(zipGlobal.ZipTrackTemplate);firstVisitTrackObject.Action=TRACKINGACTION_FIRSTVISIT;firstVisitTrackObject.Panel=TRACKINGPANEL_GLOBAL;ZipTrack(firstVisitTrackObject);}
function cloneObject(toClone){var o=new Object();for(var property in toClone){o[property]=typeof(toClone[property])=='object'&&toClone[property]!=null?cloneObject(toClone[property]):toClone[property];}
return o;}
function SearchRedirect(sText,sUrl){document.location=sUrl+"?s="+EncodeHtml(sText);}
function TitleSearchKeyPress(e,sText,sUrl){var key=e.keyCode||e.which;if(key==13){SearchRedirect(sText,sUrl);return false;}}
var qaOpenedDiv=-1;function QAOpen(qaNum){if(this.qaOpenedDiv>0){document.getElementById("qa-question"+qaOpenedDiv).className="qa-inactive";document.getElementById("qa-answer"+qaOpenedDiv+"-link").className="qa-link-show";document.getElementById("qa-answer"+qaOpenedDiv+"-full").className="qa-answer-hide";}
document.getElementById("qa-question"+qaNum).className="qa-active";document.getElementById("qa-answer"+qaNum+"-link").className="qa-link-hide";document.getElementById("qa-answer"+qaNum+"-full").className="qa-answer-show";this.qaOpenedDiv=qaNum;}
var titleHoverObject;var titleHoverTimeout;var titleUnHoverTimeout;function copyByEnum(object){var copyObject=new Object();for(var property in object){copyObject[property]=object[property];}
return copyObject;}
function AjaxTitleWaitHover(eventObj,titleId,hasTitleImage,delay,showTheatresLink){var loginBox=document.getElementById("loginBox");if(loginBox&&(loginBox.style.visibility=="visible"||loginBox.style.visibility=="show")){return;}
titleHoverObject=copyByEnum(eventObj);if((typeof delay=="undefined")||(delay==null)||delay<=0){AjaxTitleHover(eventObj,titleId,hasTitleImage);}
else
titleHoverTimeout=setTimeout("AjaxTitleHover(null,'"+titleId+"',"+hasTitleImage+","+showTheatresLink+")",delay);if(typeof playFeedPopup=="undefined"){var s=document.createElement("script");s.src=zipGlobal.ServerPath+"scripts/LobbyVideo.js?nocache=0";s.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(s);}}
function AjaxTitleHover(eventObj,titleId,hasTitleImage,showTheatresLink){var webServiceRequest;webServiceRequest="WebServices/Title/wsTitleDetail.asmx/GetTitleHoverContent";webServiceRequest+="?titleId="+titleId;webServiceRequest+="&hasTitleImage="+hasTitleImage;if((typeof showTheatresLink=="undefined")||(showTheatresLink==null)){showTheatresLink=false;}
webServiceRequest+="&showTheatresLink="+showTheatresLink;obj=new AJAXRequest(zipGlobal.ServerPath,webServiceRequest,'AjaxTitleHover_CallBack');obj.sendRequest();}
function AjaxTitleHover_CallBack(){var title
var content
if(xhttp.responseText==null||xhttp.responseText.indexOf("<return>Failed</return>")>=0){return;}
contentRoot=xhttp.responseXML.getElementsByTagName("content");if(contentRoot[0]==null)
{return;}
nodeTitle=xhttp.responseXML.getElementsByTagName("title");if(nodeTitle[0]){title=nodeTitle[0].firstChild.nodeValue;}
content=contentRoot[0].firstChild.nodeValue;TitleHover(null,title,content);}
function TitleWaitHover(eventObj,title,content){titleHoverObject=eventObj;titleHoverTimeout=setTimeout("TitleHover(null, '"+title+"','"+content+"')",750);}
function TitleHover(eventObj,title,content){var divName="divTitleHover";var target,newTarget;var boxWidth="373px";var boxX,boxY;var divWidth,divHeight;var boxStyle="red";var boxLeft=false;var boxTop=false;var boxOffsetX=-10,boxOffsetY=0;var winH,winW;var eventObjY;var CurrentwindowTop=0;if(eventObj){titleHoverObject=eventObj;}
if(titleHoverObject==null){if(document.getElementById(divName))
document.getElementById(divName).style.visibility="hidden";return;}
if(window.innerWidth){winW=window.innerWidth;winH=window.innerHeight;}
else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){winW=document.documentElement.clientWidth;winH=document.documentElement.clientHeight;}
else{winW=document.body.offsetWidth;winH=document.body.offsetHeight;}
CurrentwindowTop=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;if(!titleHoverObject){boxX=winW/2+170;boxY=300;}
else{boxX=DL_GetElementLeft(titleHoverObject);boxY=DL_GetElementTop(titleHoverObject);eventObjY=boxY;}
if(!titleHoverObject){boxLeft=false;boxTop=false;}
else if(boxX<winW/2){boxLeft=true;}
else{boxLeft=false;}
if(boxY-CurrentwindowTop<winH/2){boxTop=true;}
else{boxTop=false;}
if(!document.getElementById(divName)){newTarget=document.createElement("div");newTarget.id=divName;document.body.appendChild(newTarget);newTarget.onmouseover=TitlePopupOnmouseover;newTarget.onmouseout=TitlePopupOnmouseout;}
else if(navigator.appName=="Microsoft Internet Explorer"){target=document.getElementById(divName);target.removeAttribute("style");}
target=document.getElementById(divName);target.style.position="absolute";target.style.width=boxWidth;target.innerHTML="\
     <div class='fo-"+(boxLeft?"left":"right")+"'>\
      <div class='fo-box'>\
       <div class='fo-top-wrap'>\
        <div class='fo-top'>"+title+"</div>\
       </div>\
       <div class='fo-mid-wrap'>\
        <div class='fo-mid' "+((navigator.appName=="Microsoft Internet Explorer"&&document.documentElement.clientHeight==0)?"style='width:100%'>":">")+content+"</div>\
       </div>\
       <div class='fo-bot-wrap'></div>\
      </div>\
      <div id='titleArrow' class='fo-arr-"+(boxTop?"up":"down")+"'></div>\
      <div style='clear:both'></div>\
     </div>";divWidth=target.offsetWidth||target.width||373;divHeight=target.offsetHeight||target.height||400;alignRightX=titleHoverObject.offsetWidth||titleHoverObject.width||150;if(titleHoverObject&&titleHoverObject.offsetHeight<=11){alignMiddleY=-titleHoverObject.childNodes[0].offsetHeight/2;}
else
alignMiddleY=(titleHoverObject.offsetHeight||titleHoverObject.height||110)/2;eventObjY=boxY+alignMiddleY;alignMiddleY-=divHeight/2;boxY+=alignMiddleY;if(boxLeft)
boxX+=alignRightX;if(boxY<CurrentwindowTop){boxY=CurrentwindowTop;}
else if(boxY+divHeight>CurrentwindowTop+winH){boxY=CurrentwindowTop+winH-divHeight;}
target.style.visibility="visible";if(boxLeft){target.style.top=(boxY+boxOffsetY)+"px";target.style.left=(boxX+boxOffsetX)+"px";}
else{target.style.top=(boxY+boxOffsetY)+"px";target.style.left=(boxX-boxOffsetX-divWidth)+"px";}
var arrow=document.getElementById("titleArrow");if(arrow!=null){if(eventObjY-boxY-boxOffsetY-(boxTop?10:80)+100>divHeight)
arrow.style.marginTop=(divHeight-100)+"px"
else if(eventObjY<CurrentwindowTop)
arrow.style.marginTop=20+"px"
else
arrow.style.marginTop=eventObjY-boxY-boxOffsetY-(boxTop?10:80)+"px"}
if(typeof PagedBoxHideShowDDL!="undefined")
PagedBoxHideShowDDL(false);iePngFix("div","fo-");}
function TitleWaitUnhover(){if(titleHoverTimeout&&titleHoverObject){clearTimeout(this.titleHoverTimeout);}
var hoverBox=document.getElementById("divTitleHover")
if(hoverBox!=null&&hoverBox.style.visibility=="visible"){titleUnHoverTimeout=setTimeout('TitleUnhover()',1);}
else{TitleUnhover()}}
var titlePopupVisible=false;function TitlePopupOnmouseover(){titlePopupVisible=true;if(titleUnHoverTimeout){clearTimeout(titleUnHoverTimeout);}}
function TitlePopupOnmouseout(ev){if(ev){var isNestedDiv=false;var eParElement;if(ev.relatedTarget)
eParElement=ev.relatedTarget.offsetParent;while(eParElement!=null){if(eParElement==document.getElementById('divTitleHover')){isNestedDiv=true;eParElement=null;}
else
eParElement=eParElement.offsetParent;}
if(isNestedDiv==false){titlePopupVisible=false;TitleUnhover();}}
else{if(!event.fromElement.contains(event.toElement)&&!document.getElementById('divTitleHover').contains(event.toElement)){titlePopupVisible=false;TitleUnhover();}}}
function TitleUnhover(){titleHoverObject=null;if(document.getElementById("divTitleHover")&&titlePopupVisible==false){document.getElementById("divTitleHover").style.visibility="hidden";}
if(typeof PagedBoxHideShowDDL!="undefined")
PagedBoxHideShowDDL(true);}
function iePngFix(tagName,classPrefix){var ie55=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1);var ie6=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1);if(!ie55&&!ie6)return;$(tagName+"[class^="+classPrefix+"]").each(function(){var bgImg=this.currentStyle['backgroundImage'];if(bgImg.indexOf(".png")>=0){var ieBg=bgImg.split('url("')[1].split('")')[0];this.style.backgroundImage="none";this.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ieBg+"',sizingMethod='crop')";}});}
function DL_GetElementLeft(eElement){if(!eElement&&this)
{eElement=this;}
var nLeftPos=eElement.offsetLeft;var eParElement=eElement.offsetParent;while(eParElement!=null){nLeftPos+=eParElement.offsetLeft;eParElement=eParElement.offsetParent;}
return nLeftPos;};function DL_GetElementTop(eElement){if(!eElement&&this){eElement=this;}
var nTopPos=eElement.offsetTop;var eParElement=eElement.offsetParent;while(eParElement!=null){nTopPos+=eParElement.offsetTop;eParElement=eParElement.offsetParent;}
return nTopPos;};function luhn_check(number){var number=number.replace(/\D/g,'');var number_length=number.length;var parity=number_length%2;var total=0;for(i=0;i<number_length;i++){var digit=number.charAt(i);if(i%2==parity){digit=digit*2;if(digit>9){digit=digit-9;}}
total=total+parseInt(digit);}
if(total%10==0){return true;}else{return false;}}
function ValidateCreditCard(cardType,cardNumber){var luhnCheck=luhn_check(cardNumber);if(!luhnCheck)return false;if(cardType.toLowerCase()=="mastercard"){if(cardNumber.length!=16)return false;if(cardNumber.substr(0,2)!="51"&&cardNumber.substr(0,2)!="52"&&cardNumber.substr(0,2)!="53"&&cardNumber.substr(0,2)!="54"&&cardNumber.substr(0,2)!="55")return false;return true;}
else if(cardType.toLowerCase()=="visa"){if(cardNumber.length!=13&&cardNumber.length!=16)return false;if(cardNumber.substr(0,1)!="4")return false;return true;}
else if(cardType.toLowerCase()=="amex"){if(cardNumber.length!=15)return false;if(cardNumber.substr(0,2)!="34"&&cardNumber.substr(0,2)!="37")return false;return true;}
return false;}
function isInteger(s){var i;if(isEmpty(s))
if(isInteger.arguments.length==1)return 0;else return(isInteger.arguments[1]==true);for(i=0;i<s.length;i++){var c=s.charAt(i);if(!isDigit(c))return false;}
return true;}
function isEmpty(s){return((s==null)||(s.length==0))}
function isDigit(c){return((c>="0")&&(c<="9"))}
function ImagePathCultured(){if(typeof zipGlobal=="undefined")return"";return zipGlobal.ImagePath+zipGlobal.StrCulture+"/";}
function updateVideoInfoBox(videoId,videoContent){var videoInfoIframe=document.getElementById('videoInfoIframe');if(typeof videoInfoIframe=="undefined"||videoInfoIframe==null)
return;videoInfoIframe.src=zipGlobal.ServerPath+"MyAccount/Video/VideoInfo.aspx?video="+videoId+"&content="+videoContent;videoInfoIframe.height=60;}
function GetVdPlayer(publishid,w,h){var ie=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;var flashTag=new String();var transTag;var playerPath="http://www.videodetective.net/flash/players/player4.6.298.movieapi.swf";var bg="000000";if(h==null)h=260;if(w==null)w=320;transTag="transparent";if(ie){flashTag+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';flashTag+='id="vdplayer" ';flashTag+='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.version+'" ';flashTag+='width="'+w+'" ';flashTag+='height="'+h+'">';flashTag+='<param name="movie" value="'+playerPath+'"/>';flashTag+='<param name="quality" value="high"/>';flashTag+='<param name="wmode" value="'+transTag+'"/>';flashTag+='<param name="allowFullScreen" value="true"/>';flashTag+='<param name="bgcolor" value="#'+bg+'"/>';flashTag+='<param name="flashvars" value="publishedid='+publishid+'&width='+w+'&height='+h+'"/>';flashTag+='</object>';}
else{flashTag+='<embed src="'+playerPath+'" ';flashTag+='quality="high" ';flashTag+='bgcolor="#'+bg+'" ';flashTag+='width="'+w+'" ';flashTag+='height="'+h+'" ';flashTag+='allowFullScreen="true" ';flashTag+='wmode="'+transTag+'" ';flashTag+='type="application/x-shockwave-flash" ';flashTag+='flashvars="publishedid='+publishid+'&width='+w+'&height='+h+'" ';flashTag+='name="vdplayer" ';flashTag+='pluginspage="http://www.macromedia.com/go/getflashplayer">';flashTag+='</embed>';}
return flashTag;}
function playVDFeed(publishid,w,h){var vpRef=document.getElementById("videoPlayer");vpRef.innerHTML=GetVdPlayer(publishid,w,h);if(publishid>0)setTimeout("updateVideoInfoBox("+publishid+",'Lobby')",500);}
function hideVDFeed(){var vpRef=document.getElementById("videoPlayer");vpRef.innerHTML="";}
function ProvincesByPostal(postalCode){if(typeof postalCode=="undefined"||postalCode.length<0)return[];switch(postalCode.substr(0,1).toUpperCase())
{case'T':return['AB'];case'V':return['BC'];case'R':return['MB'];case'E':return['NB'];case'A':return['NL'];case'B':return['NS'];case'X':return['NT','NU'];case'K':return['ON'];case'L':return['ON'];case'M':return['ON'];case'N':return['ON'];case'P':return['ON'];case'C':return['PE'];case'G':return['QC'];case'H':return['QC'];case'J':return['QC'];case'S':return['SK'];case'Y':return['YT'];}
return[];}
function IIfEnglish(englishText,frenchText){if(typeof zipGlobal=="undefined"||zipGlobal==null)return englishText;if(zipGlobal.CultureID==2){return frenchText;}
return englishText;}
function IIfZip(zipText,otherText){if(typeof zipGlobal=="undefined"||zipGlobal==null)return zipText;if(zipGlobal.BrandID==1){return zipText;}
return otherText;}
function IIfRVD(rvdText,otherText){if(typeof zipGlobal=="undefined"||zipGlobal==null)return otherText;if(zipGlobal.BrandID==2){return rvdText;}
return otherText;}
function IsDev(){return(document.location.href.indexOf('/dev.')>0);}
var upTriggers=new Array();var popTriggers=new Array();function RegisterUpdatePanelTrigger(panelTrigger,panelClientId,postbackParams){if(typeof postbackParams=="undefined"||postbackParams==null)postbackParams='';var upTrigger={ClientID:panelClientId,Params:postbackParams};if(typeof upTriggers[panelTrigger]=="undefined"||upTriggers[panelTrigger]==null){upTriggers[panelTrigger]=new Array();}
upTriggers[panelTrigger].push(upTrigger);}
function RegisterPopButtonTrigger(popTriggerName,popUrl,popRel,popTitle,panelTrigger,returnRedirect){if(typeof popTitle=="undefined"||popTitle==null)popTitle='';if(typeof panelTrigger=="undefined"||panelTrigger==""||panelTrigger=="None")panelTrigger=null;var popTrigger={URL:popUrl,RelTag:popRel,Title:popTitle,UpdateTrigger:panelTrigger,ReturnRedirect:returnRedirect};popTriggers[popTriggerName]=popTrigger;}
function TriggerUpdatePanel(panelTrigger){if(typeof __doPostBack=="undefined"||__doPostBack==null){if(IsDev())alert("__doPostBack() does not exist (Are you sure you're using an Update Panel?). Source: TriggerUpdatePanel()");return;}
else if(typeof upTriggers[panelTrigger]=="undefined"||upTriggers[panelTrigger]==null){if(IsDev())alert("Update Panel Trigger '"+panelTrigger+"' is not registered (Use RegisterUpdatePanelTrigger() to register it). Source: TriggerUpdatePanel()");return;}
else if(panelTrigger=="None"){if(IsDev())alert("No trigger was set for this update panel. So why is it an update panel again? Source: TriggerUpdatePanel()");return;}
if(activeTriggerUpdate!=null){setTimeout('TriggerUpdatePanel("'+panelTrigger+'")',500);return;}
activeTriggerUpdate=panelTrigger;for(tNum=0;tNum<upTriggers[panelTrigger].length;tNum++){__doPostBack(upTriggers[panelTrigger][tNum].ClientID,upTriggers[panelTrigger][tNum].Params);}}
function TriggerPopButton(popTriggerName){var refTrig;if(typeof popTriggers[popTriggerName]=="undefined"||popTriggers[popTriggerName]==null){if(IsDev())alert("Pop Button Trigger '"+popTriggerName+"' is not registered (Use RegisterPopButtonTrigger() to register it). Source: TriggerPopButton()");return;}
else if(popTriggerName=="None"){if(IsDev())alert("No trigger was set for this pop button. Source: TriggerPopButton()");return;}
refTrig=popTriggers[popTriggerName];GB_load(refTrig.URL,refTrig.RelTag,refTrig.Title,refTrig.UpdateTrigger,refTrig.ReturnRedirect);SetAnchor(popTriggerName);}
function AutoTriggerPopButton(popTriggerName){if(popTriggerName==null){RestoreAnchor();popTriggerName=GetAnchor();}
if(popTriggerName==null||popTriggerName=="")return false;if(typeof popTriggers[popTriggerName]=="undefined"||popTriggers[popTriggerName]==null)return false;TriggerPopButton(popTriggerName);return true;}
function GreyboxClose(){if(typeof parent.parent.GB_CURRENT!="undefined"&&parent.parent.GB_CURRENT!=null){parent.parent.GB_CURRENT.hide();}
else if(typeof parent.GB_CURRENT!="undefined"&&parent.GB_CURRENT!=null){parent.GB_CURRENT.hide();}
else if(typeof GB_CURRENT!="undefined"&&GB_CURRENT!=null){GB_CURRENT.hide();}}
function GreyboxSetHeight(newHeight){var PADDING_BOTTOM=12;var rootDoc=FindRoot();if(rootDoc.GB_CURRENT!="undefined"&&rootDoc.GB_CURRENT!=null){rootDoc.GB_CURRENT.resizeHeight(newHeight+PADDING_BOTTOM);}}
function GreyboxAutoHeight(elementId,retryCount){var maxRetries=10;var newHeight=ElementTopById(elementId);if(typeof retryCount=="undefined"||retryCount==null)retryCount=0;else retryCount++;if(newHeight>1){GreyboxSetHeight(newHeight);}
if(retryCount<maxRetries){setTimeout("GreyboxAutoHeight('"+elementId+"', "+retryCount+")",retryCount*retryCount*10);}}
function GetAnchor(){var docLoc=document.location.href;if(docLoc.indexOf("#")>=0){return(docLoc.substr(docLoc.indexOf("#")+1,docLoc.length-1));}
return"";}
function SetAnchor(anchorTag){var docLoc=document.location.href;if(docLoc.indexOf("#")>=0){document.location.href=docLoc.substr(0,docLoc.indexOf("#"))+"#"+anchorTag;}
else{document.location.href=docLoc+"#"+anchorTag;}}
function ClearAnchor(){var docLoc=document.location.href;if(docLoc.indexOf("#")>=0){document.location.href=docLoc.substr(0,docLoc.indexOf("#"))+"#";}}
function SaveAnchor(anchorValue,optionalUrl){if(typeof optionalUrl=="undefined"||optionalUrl==null){optionalUrl=EncodeHtml(GetAnchorlessUrl());}
document.cookie="AnchorPersist=Anchor="+anchorValue+"&URL="+optionalUrl+"; path=/;";}
function GetAnchorlessUrl(){var docLoc=document.location.href;if(docLoc.indexOf("#")>=0){return(docLoc.substr(0,docLoc.indexOf("#")));}
return docLoc;}
function PersistAnchor(){RestoreAnchor();SaveAnchor(GetAnchor());}
function RestoreAnchor(){var savedAnchor=null;var savedUrl=null;var currentAnchor=GetAnchor();savedAnchor=get_cookie("AnchorPersist","Anchor");savedUrl=get_cookie("AnchorPersist","URL");if(savedAnchor==null||savedAnchor==""||savedUrl==null||savedUrl=="")return;if(GetAnchorlessUrl().replace("https","http").toLowerCase()!=savedUrl.replace("https","http").toLowerCase())return;if(currentAnchor==""){SetAnchor(savedAnchor);}
SaveAnchor("","");}
function DelayRedirect(redirectUrl,delayMs){if(typeof zipGlobal!="undefined"&&zipGlobal!=null){if(redirectUrl.indexOf("~/")==0){redirectUrl=redirectUrl.replace("~/",zipGlobal.ServerPath);}}
if(delayMs==null||!delayMs){delayMs=1000;}
setTimeout("document.location.href = '"+redirectUrl+"'",delayMs);}
function ParentRedirect(redirectUrl){var deepestParent;if(typeof zipGlobal!="undefined"&&zipGlobal!=null){if(redirectUrl.indexOf("~/")==0){redirectUrl=redirectUrl.replace("~/",zipGlobal.ServerPath);}}
if(redirectUrl.indexOf("#")>=0){tmpBareUrl=redirectUrl.substr(0,redirectUrl.indexOf("#"));tmpAnchor=redirectUrl.substr(redirectUrl.indexOf("#")+1,redirectUrl.length-1);if(FindRoot().AutoTriggerPopButton(tmpAnchor)){return false;}
else{SaveAnchor(tmpAnchor,tmpBareUrl);}}
deepestParent=FindRoot();deepestParent.location.href=redirectUrl;return false;}
function ParentRefresh(){var docLoc=FindRoot().location.href;if(docLoc.indexOf("#")>=0){docLoc=docLoc.substr(0,docLoc.indexOf("#"));}
if(GetAnchorlessUrl()==docLoc)return false;FindRoot().location.href=docLoc;}
function FindRoot(){var deepestParent=this;var maxDepths=5;var currentDepth=0;while(typeof deepestParent.parent!="undefined"&&deepestParent.parent!=null){deepestParent=deepestParent.parent;if(currentDepth++>maxDepths)break;}
return deepestParent;}
function BackButtonDisplay(){var docRef=document.referrer;if(ImagePathCultured()==""||docRef==null||docRef==""||docRef==document.location.href||docRef.indexOf("loader_frame.html")>0)return;document.write("<img src='"+ImagePathCultured()+"btn_cancel2.gif' border='0' onclick='BackButtonOnClick()' class='pb-button' />");}
function BackButtonOnClick(){if(document.referrer==null||document.referrer==""||document.referrer==document.location.href){document.location.href=zipGlobal.ServerPath+"MyAccount";return;}
document.location.href=document.referrer;}
function ElementTopById(eId){var targetDiv=document.getElementById(eId);if(typeof targetDiv=="undefined"||targetDiv==null)return-1;return DL_GetElementTop(targetDiv);}
function RemoveFrames(){try{if(FindRoot().location!=document.location){FindRoot().location=document.location;}}
catch(e){}}
function SerializeParams(paramObj){var qs="";var propertyCount=0;for(paramKey in paramObj){qs+=(propertyCount++?"&":"")
+EncodeHtml(paramKey)+"="
+EncodeHtml(paramObj[paramKey]);}
return qs;}
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");}
var categoryResults=new Array();var visibleCats=new Array();var catInit=false;function CategoryDefaultInit(){var onclickLink;if(catInit)return;catInit=true;if(typeof this.delayLoad=="undefined"||this.delayLoad==null||!this.delayLoad)return;onclickLink=$("a.list-selected")[0];if(typeof onclickLink=="undefined"||onclickLink==null)return;defaultOnClick=onclickLink.attributes['onclick'];if(typeof defaultOnClick!="undefined"&&defaultOnClick!=null&&defaultOnClick.value!=""){eval(defaultOnClick.value.replace("this","onclickLink"));}}
function FocusToNext(event,length,maximumLength,target){if(length==maximumLength){$('#'+target).focus();};};function FocusToPrevious(event,length,target){var keyCode=event.which?event.which:event.keyCode;if(8==keyCode&&0==length){$('#'+target).focus();};};var submitOnceControls=[];function SubmitOnce(control){for(i=0;i<submitOnceControls.length;i++){if(submitOnceControls[i]==control){return false;}}
submitOnceControls.push(control);};function ShowButtonLoading(btnObj){var imgLoading=ImagePathCultured()+"loading/LoadingBar_Black.gif";var imgId='imgLoading_'+btnObj.id;$(btnObj).before("<img id='"+imgId+"' src='"+imgLoading+"' />").hide();};function CompleteButtonLoading(btnObj){$('#imgLoading_'+btnObj.id).remove();$(btnObj).show();};function IsNullOrEmpty(obj){if(typeof obj=='undefined')return true;if(obj==null||obj==='')return true;return false;};function SafeRead(obj){if(IsNullOrEmpty(obj)){return'';}
return obj;};function SafeBool(obj){if(IsNullOrEmpty(obj)){return false;}
return(obj==true?true:false);};function SafeInt(obj){if(IsNullOrEmpty(obj)||!isInteger(obj)){return-1;}
return parseInt(obj);};function TitleActionTemplate(){var actionObj={"ActionID":-1,"TitleID":-1,"TitleTypeID":TITLETYPE_TITLE,"Value":-1};return actionObj;};function TitleActionRequest(actionObj,callbackSuccess,callbackFailure,callbackParams){jQuery.ajax({type:"POST",url:zipGlobal.ServerPath+"WebServices/Title/Action.ashx",data:jQuery.toJSON(actionObj),contentType:"application/json; charset=utf-8",dataType:"json",error:function(){if(!IsNullOrEmpty(callbackFailure)){callbackFailure(callbackParams);}},success:function(r){if(!IsNullOrEmpty(callbackSuccess)){callbackSuccess(r,callbackParams);}}});};function ZipVar(varName,varVal){if(ZipVar.arguments.length==1){var getVal=get_cookie(COOKIES_JAVASCRIPT,varName);return getVal;}
else if(ZipVar.arguments.length==2){return set_cookie(COOKIES_JAVASCRIPT,varName,varVal);}
warn("ZipVar","Incorrect number of parameters",ZipVar.arguments.length);};function disableSelection(target){if(typeof target.onselectstart!="undefined"){target.onselectstart=function(){return false;};}
else if(typeof target.style.MozUserSelect!="undefined"){target.style.MozUserSelect="none";}
else{target.onmousedown=function(){return false;};}
target.style.cursor="default";};function hideRecBox(boxId){$("#"+boxId+"_ctlRecommendations"+boxId).hide();}
function showRexTips(pnlTitleId,pnlTipId,lnkSeeAll){$("#"+pnlTitleId).hide();$("#"+pnlTipId).show();$("#"+lnkSeeAll).hide();}
function InitRatingBar(obj){if($(obj).find(".stars .hover").length<=0){resNA=IIfEnglish("Not interested","Pas int&#233;ress&#233;(e)");res1=IIfEnglish("Hated it","J&#8217;ai d&#233;test&#233;");res2=IIfEnglish("Disliked it","Je n&#8217;ai pas aim&#233;");res3=IIfEnglish("Liked it","J&#8217;ai bien aim&#233;");res4=IIfEnglish("Really Liked it","J&#8217;ai vraiment aim&#233;");res5=IIfEnglish("Loved it","J&#8217;ai ador&#233;!");$(obj).children(".stars").append("<span class='hover'><span class='i1' title='"+res1+"'></span><span class='i2' title='"+res2+"'></span><span class='i3' title='"+res3+"'></span><span class='i4' title='"+res4+"'></span><span class='i5' title='"+res5+"'></span></span>").find("span span").click(function(e){var starNum=parseInt(this.className.replace('i',''));$(this).parent().parent().children("div").css("width",(20*starNum)+"%").addClass("rated");$(obj).children(".starna").children("div").css("width","0%").removeClass("rated");eval("var trackObj = "+$(obj).children("input").val());submitTitleRating(starNum,trackObj.TitleID);trackObj.Action=TRACKINGACTION_RATE;trackObj.TitleType=TITLETYPE_TITLE;ZipTrack(trackObj);}).hover(function(e){var starNum=parseInt(this.className.replace('i',''));$(obj).children(".stars").addClass("starshover").children("div").addClass("r"+starNum);$(obj).find(".starna div").addClass("hide");},function(e){$(obj).children(".stars").removeClass("starshover").children("div").removeClass("r1 r2 r3 r4 r5");$(obj).find(".starna div").removeClass("hide");});$(obj).children(".starna").click(function(e){$(this).children("div").css("width","100%").addClass("rated");$(obj).find(".stars div").css("width","0%").removeClass("rated");eval("var trackObj = "+$(obj).children("input").val());submitTitleRating(0,trackObj.TitleID);trackObj.Action=TRACKINGACTION_RATE;trackObj.TitleType=TITLETYPE_TITLE;ZipTrack(trackObj);}).children('div').append("<span title='"+resNA+"'></span>").children('span').hover(function(e){$(this).parent().addClass("starnahover");$(obj).find(".stars div").addClass("hide");},function(e){$(this).parent().removeClass("starnahover");$(obj).find(".stars div").removeClass("hide");});}}
function log(){if(IsDev()&&typeof console!="undefined"&&typeof console.log!="undefined"){console.log.apply(console,arguments);}};function warn(){if(IsDev()&&typeof console!="undefined"&&typeof console.warn!="undefined"){console.warn.apply(console,arguments);}};function dir(){if(IsDev()&&typeof console!="undefined"&&typeof console.dir!="undefined"){console.dir.apply(console,arguments);}};function getOffset(obj){var coord={x:0,y:0};while(obj){coord.x+=obj.offsetLeft;coord.y+=obj.offsetTop;obj=obj.offsetParent;}
return coord;};function clearPopups(){$("#popUps").remove();}
function enterIntercept(e,callFunction){var key=e.keyCode||e.which;if(13==key){callFunction();return false;}
return true;}
function weSuggest(divRef,keyholeRef){jQuery.ajax({type:"GET",url:zipGlobal.ServerPath+"WebServices/Title/Similar.ashx?nocache="+Math.random(),contentType:"application/json; charset=utf-8",dataType:"json",success:function(response){weSuggest_success(response,divRef,keyholeRef);},error:function(){}});}
function weSuggest_success(response,divRef,keyholeRef){var jqLeft=$(divRef).children(".we-suggest-row-left");var jqRight=$(divRef).children(".we-suggest-row-right");var randLeft,randRight;if(response==null||response[0]==null||response[1]==null){return;}
if(response[0].length>0||response[1].length>0){$(divRef).show();if(response[0].length>0){if(response[0][0].SearchType=="STL"){jqLeft.find(".you-liked").show();}
else{jqLeft.find(".you-rented").show();}
jqLeft.show();randLeft=Math.ceil(Math.random()*response[0].length)-1;weSuggest_displaySelect(response[0],randLeft,jqLeft);weSuggest_displayTitle(response[0][randLeft],jqLeft);}
else{jqLeft.html($(keyholeRef).html()).show().find(".spritefont").spriteFont();}
if(response[1].length>0){if(response[1][0].SearchType=="STL"){jqRight.find(".you-liked").show();}
else{jqRight.find(".you-rented").show();}
jqRight.show();randRight=Math.ceil(Math.random()*response[1].length)-1;weSuggest_displaySelect(response[1],randRight,jqRight);weSuggest_displayTitle(response[1][randRight],jqRight);}
else{jqRight.html($(keyholeRef).html()).show().find(".spritefont").spriteFont();}}}
function weSuggest_displaySelect(titleList,selectedIndex,jqRef){if(!zipGlobal.Enabled.WeSuggestDDL)return;htmlSelect="";htmlSelect+="<select>";for(i=0;i<titleList.length;i++){var title=titleList[i];htmlSelect+="<option value='"+i+"' "+(i==selectedIndex?"selected":"")+">"+title.SourceTitleDisplay+"</option>";}
htmlSelect+="</select>";jqRef.find(".title-select").append(htmlSelect).find("select").change(function(){weSuggest_displayTitle(titleList[SafeInt($(this).val())],jqRef);});}
function weSuggest_displayTitle(title,jqRef){var htmlSource="";var htmlSuggest="";var trackObject=cloneObject(zipGlobal.ZipTrackTemplate);trackObject.Panel=(title.SearchType=="STL"?TRACKINGPANEL_LOBBYYOULIKED:TRACKINGPANEL_LOBBYYOURENTED);trackObject.TitleID=title.SourceTitleId;htmlSource+="<div class='art' style='background-image:url("+zipGlobal.BaseImagePath+"small/"+title.SourceTitleId+".jpg)'"+titleHoverAttr(title.SourceTitleId,false)+clickTitlePage(title.SourceTitleId,false)+"></div>";htmlSource+="<div class='display'>"+linkTitlePage(title.SourceTitleId,false,title.SourceTitleDisplay,13)+"</div>";htmlSource+=displayStarbar(title.SourceUserRating,title.SourceAverageUserRating,trackObject,true);trackObject.TitleID=title.TitleId;htmlSuggest+="<div class='art' style='background-image:url("+zipGlobal.BaseImagePath+"large/"+title.TitleId+".jpg)'"+titleHoverAttr(title.TitleId,false)+clickTitlePage(title.TitleId,false)+">";if(title.IsRex){htmlSuggest+="<div class='rex'></div>";}else if(title.IsHiddenGem){htmlSuggest+="<div class='gem'></div>";}
htmlSuggest+="</div>";htmlSuggest+="<div class='btn-inactive'></div>";htmlSuggest+=displayStarbar(title.UserRating,title.AverageUserRating,trackObject,false);htmlSuggest+="<div class='display'>"+linkTitlePage(title.TitleId,false,title.TitleDisplay,22)+"</div>";jqRef.find(".title-source").html(htmlSource);jqRef.find(".title-suggest").html(htmlSuggest);jqRef.find(".btn-inactive").click(function(e){var actionObj=TitleActionTemplate();actionObj.TitleTypeID=TITLETYPE_TITLE;actionObj.ActionID=(this.className=="btn-unzip-lg"?TITLEACTION_UNZIP:TITLEACTION_ZIP);actionObj.TitleID=title.TitleId;TitleActionRequest(actionObj);trackObject.Action=(this.className=="btn-unzip-lg"?TRACKINGACTION_UNZIP:TRACKINGACTION_ZIP);ZipTrack(trackObject);this.className=(this.className=="btn-unzip-lg"?"btn-zip-lg":"btn-unzip-lg");}).each(function(){this.className=this.className.replace("btn-inactive",(title.UserZipListed?"btn-unzip-lg":"btn-zip-lg"));});}
function linkTitlePage(titleId,isCollection,linkText,len){if(linkText.length>len)
linkText=linkText.substring(0,len-3)+"...";return"<a href='"+zipGlobal.ServerPath+"browse/title.aspx?f="+(isCollection?"clsId":"titleId")+"("+titleId+")'>"+linkText+"</a>";}
function clickTitlePage(titleId,isCollection){return" onclick='ParentRedirect(&quot;"+zipGlobal.ServerPath+"browse/title.aspx?f="+(isCollection?"clsId":"titleId")+"("+titleId+")&quot;)'";}
function titleHoverAttr(titleId,hasTitleImage){if(!zipGlobal.Enabled.TitleHover){return"";}
return" onmouseout='TitleWaitUnhover()' onmouseover='AjaxTitleWaitHover(this,"+titleId+","+(hasTitleImage?"true":"false")+","+zipGlobal.TitleHoverDelay+")'";}
function displayStarbar(userRating,zipRating,trackObject,isSmall){var classRating="rating";var htmlStars="";var extraStarNA="";var extraStars="";var widthStarNA=0;var widthStars=0;if(userRating>=0){if(userRating==0){extraStarNA=" class=\"rated\"";widthStarNA=100;}else{extraStars=" class=\"rated\"";widthStars=20*userRating;}}else{widthStars=Math.round(20*zipRating);}
if(isSmall){classRating+=" sm";}
htmlStars+="<div class=\""+classRating+"\" onmouseover=\"InitRatingBar(this)\">";htmlStars+="<input type=\"hidden\" value=\""+$.toJSON(trackObject).replace(/\"/ig,"'")+"\"/>";htmlStars+="<div class=\"starna\"><div"+extraStarNA+" style=\"width: "+widthStarNA+"%;\"></div></div>";htmlStars+="<div class=\"stars\"><div"+extraStars+" style=\"width: "+widthStars+"%;\"></div>";htmlStars+="</div></div>";return htmlStars;}
function userCategoryRecommendationIgnore(dataToken){$.ajax({url:zipGlobal.ServerPath+'WebServices/Category/Recommend.ashx',data:'data='+dataToken,type:'POST',dataType:'xml',timeout:10000,error:function(xml){},success:function(xml){window.location=window.location;}});return false;};function PrevSlice(controlId){var objControl=$("#"+controlId);var currentSliceIndex=parseInt(objControl.attr("tooltip"));var slices=$("#"+controlId+" tr");var objCurrentSlice=slices[currentSliceIndex];$(objCurrentSlice).hide();if(currentSliceIndex>0){currentSliceIndex--;}
else{currentSliceIndex=slices.length-1;}
$(slices[currentSliceIndex]).show();objControl.attr("tooltip",currentSliceIndex);};function NextSlice(controlId){var objControl=$("#"+controlId);var currentSliceIndex=parseInt(objControl.attr("tooltip"));var slices=$("#"+controlId+" tr");var objCurrentSlice=slices[currentSliceIndex];$(objCurrentSlice).hide();if(currentSliceIndex<slices.length-1){currentSliceIndex++;}
else{currentSliceIndex=0;}
$(slices[currentSliceIndex]).show();objControl.attr("tooltip",currentSliceIndex);};