var CONTAINER_CONTENTS=[];function bookmarkSite(b,a){if(document.all){window.external.AddFavorite(a,b)}else{if(window.sidebar){window.sidebar.addPanel(b,a,"")}}}function launchNewBrowser(b,a){myRemote=open(b,a,"channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=1,resizable=yes,scrollbars=1,status=1,toolbar=1");if(myRemote!=null){myRemote.focus()}}function launchPrinterFriendly(a){open(a,"","width=650,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=1,resizable=yes,scrollbars=1,status=1,toolbar=1")}function launch(e,b,a,c){var d=open(e,b,a);if(d.opener==null){d.opener=window}d.opener.name=c;return d}function launchRemote(d,g,l,a,b){var j=a;var c=l;var e=(screen.height-l)/2;var f=(screen.width-a)/2;switch(b){case"TRUE":myRemote=launch(d,g,"left="+f+",top="+e+",height="+c+",width="+j+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=no,scrollbars=1,status=0,toolbar=0","myWindow");break;case"Yahoo":myRemote=launch(d,g,"left="+f+",top="+e+",height="+c+",width="+j+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=1,status=0,toolbar=0","myWindow");break;default:myRemote=launch(d,g,"left="+f+",top="+e+",height="+c+",width="+j+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=no,scrollbars=0,status=0,toolbar=0","myWindow")}myRemote.focus()}function popNav1(c,b,d){var a=open(c,b,d);if(typeof(a)!="underfined"&&!a.closed){a.focus()}else{c=c+"&ref="+escape(self.location);a=window.offscreenBuffering(c,b,d)}}function clickButton(c,b){var a=document.getElementById(b);if(typeof a=="object"){if(navigator.appName.indexOf("Netscape")>(-1)){if(c.keyCode==13){c.returnValue=false;c.cancel=true;a.click();return false}}if(navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){if(event.keyCode==13){event.returnValue=false;event.cancel=true;a.click();return false}}}}function getTicketBoxOfficeRelPath(){try{if(window.location.pathname.indexOf("purchase/movietickets")>=0){return"../../../TicketBoxOffice.aspx"}else{return"TicketBoxOffice.aspx"}}catch(a){return"TicketBoxOffice.aspx"}}function refreshDate(d,f,b){var e=getTicketBoxOfficeRelPath();var c=d;var a=c.options[c.selectedIndex].value;if(a=="empty"){return}if(document.frmTicketQty.OfferCheck){document.location.href=e+"?tid="+f+"&mid="+b+"&refreshdate="+a+"&offerChecked="+document.frmTicketQty.OfferCheck.checked}else{document.location.href=e+"?tid="+f+"&mid="+b+"&refreshdate="+a}}function refreshShowTime(c,e,a){var d=getTicketBoxOfficeRelPath();var b=c;var f=b.options[b.selectedIndex].value;if(f=="empty"){return}if(document.frmTicketQty.OfferCheck){document.location.href=d+"?tid="+e+"&mid="+a+"&row_count="+f+"&offerChecked="+document.frmTicketQty.OfferCheck.checked}else{if(document.location.href.toString().indexOf("offerChecked=true")>0){document.location.href=d+"?tid="+e+"&mid="+a+"&row_count="+f+"&offerChecked=true"}else{document.location.href=d+"?tid="+e+"&mid="+a+"&row_count="+f}}}var seating_limitations="none";function checkValue(a){if(isNaN(a.value)){alert("You must enter a numeric value between 0 and 99");a.value=0;a.focus()}else{if(a.value==""||a.value<0||a.value%1>0||a.value==" "||a.value=="  "){alert("You must enter a numeric value between 0 and 99");a.value=0;a.focus()}else{activecheck(a,"true")}}}function checkValueWithMinMax(c,b,a){if(isNaN(c.value)){alert("You must enter a numeric value between "+b+" and "+a);c.value=0;c.focus()}else{if(c.value==""||c.value<0||c.value%1>0||c.value==" "||c.value=="  "){alert("You must enter a numeric value between "+b+" and "+a);c.value=0;c.focus()}else{activecheck(c,"true")}}}function activecheck(c,b){oPrice=document.frmTicketQty.price;var a=false;for(i=0;i<oPrice.length-1;i++){if(document.frmTicketQty.quantity[i].id==seating_limitations&&document.frmTicketQty.quantity[i].value!=0){a=true}}if(a==false){seating_limitations="none"}if(c.id!=seating_limitations&&seating_limitations!="none"){if(b!="true"){alert("You cannot purchase Reserved Seating tickets and General Admission tickets in the same order.")}c.value=0;c.blur()}else{if(seating_limitations=="none"){seating_limitations=c.id}else{if(c.id==seating_limitations){}}}}function tixtotal(q){var o=0,c=0,h,m=0,p=0;var a;var d;var h=document.frmTicketQty.fee;var b=document.frmTicketQty.surcharge;var l=document.frmTicketQty.resvFee;var f;var j;var g;var e;var n;d=document.frmTicketQty.price;if(q.value<0){q.value=0}for(f=0;f<d.length-1;f++){o=parseInt(document.frmTicketQty.quantity[f].value,10);if(isNaN(o)){o=0}price=o*parseFloat(document.frmTicketQty.price[f].value);c=c+o;m=m+price;document.frmTicketQty.inputSubtotal[f].value=formatCurrency(price)}if(document.frmTicketQty.inputSubtotalAll){document.frmTicketQty.inputSubtotalAll.value=formatCurrency(m)}e=parseFloat(h.value)+parseFloat(b.value);p=c*e;n=c*(parseFloat(l.value));m=m+p+n;document.frmTicketQty.inputTotal.value=formatCurrency(m);if(document.frmTicketQty.inputFeeQty!=null){document.frmTicketQty.inputFeeQty.value=c;document.frmTicketQty.inputFeetotal.value=formatCurrency(p);if(document.frmTicketQty.inputResvFeeQty!=null){document.frmTicketQty.inputResvFeeQty.value=c;document.frmTicketQty.inputResvFeetotal.value=formatCurrency(n)}}}function formatCurrency(a){a=a.toString().replace(/\$|\,/g,"");if(isNaN(a)){a="0"}cents=Math.floor((a*100+0.5)%100);a=Math.floor((a*100+0.5)/100).toString();if(cents<10){cents="0"+cents}for(var b=0;b<Math.floor((a.length-(1+b))/3);b++){a=a.substring(0,a.length-(4*b+3))+","+a.substring(a.length-(4*b+3))}return("$"+a+"."+cents)}function UpdateDivContent(divid,newcontent){if(document.layers){with(document.layers[divid].document){write(newcontent);close()}}}function adjustTixSel(c,b){if(b<=0){return}var o,q,r,j,n,f;var h;h=document.frmTicketQty.price;o=c;q=h.length-2;if(b<0){return}for(i=0;i<=q;i++){f=document.frmTicketQty.quantity[i];r=0;for(k=0;k<=q;k++){if(k!=i){r=r+document.frmTicketQty.quantity[k].selectedIndex}}j=o-r;j=f.selectedIndex>j?f.selectedIndex:j;n=f.selectedIndex;if(f.length-1!=j){f.length=0;for(k=0;k<=j;k++){f.options[k]=new Option(k+" ",k,0);if(k==n){f.selectedIndex=k}}}}var d=0,s=0,p=0,m=0,e;var g=document.frmTicketQty.fee;var a=document.frmTicketQty.surcharge;var l=document.frmTicketQty.resvFee;e=document.frmTicketQty.price;for(i=0;i<e.length-1;i++){qty=parseInt(document.frmTicketQty.quantity[i].selectedIndex,10);price=qty*parseFloat(document.frmTicketQty.price[i].value);d=d+qty;m=m+price;document.frmTicketQty.inputSubtotal[i].value=formatCurrency(price)}if(document.frmTicketQty.inputSubtotalAll){document.frmTicketQty.inputSubtotalAll.value=formatCurrency(m)}s=d*(parseFloat(g.value)+parseFloat(a.value));p=d*(parseFloat(l.value));m=m+s+p;document.frmTicketQty.inputTotal.value=formatCurrency(m);if(document.frmTicketQty.inputFeeQty!=null){document.frmTicketQty.inputFeeQty.value=d;document.frmTicketQty.inputFeetotal.value=formatCurrency(s);if(document.frmTicketQty.inputResvFeeQty!=null){document.frmTicketQty.inputResvFeeQty.value=d;document.frmTicketQty.inputResvFeetotal.value=formatCurrency(p)}}}function launchWin(g,n,p,b){var o=b;var f=p;var j=(screen.height-p)/2;var l=0;var o=800,f=600;o=screen.availWidth;f=screen.availHeight;var c=b,m=p;var d=(o-c)/2,e=(f-m)/2;if(n=="Help"){var a=open(g,n,"width="+c+",height="+m+",top="+e+",left="+d+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=1,status=0,toolbar=1")}else{if(n=="FullWindow"){var a=open(g,n,"width="+c+",height="+m+",top="+e+",left="+d+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=1,resizable=yes,scrollbars=1,status=1,toolbar=1")}else{var a=open(g,n,"width="+c+",height="+m+",top="+e+",left="+d+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=no,scrollbars=1,status=0,toolbar=0")}}if(a.opener==null){a.opener=window;a.opener.name="myWindow"}a.focus()}function amenInfo(a){newWin=window.open(a,"AmenWin","width=350,height=250,scrollbars=no,resizable=no");newWin.focus()}var submitted=false;function submit_me(){if(submitted!=true){submitted=true;return true}return false}function checkFavoritesCount(d){var a=0;var c="10";if(d){if(d.getAttribute("theaterInFavorites")=="1"){return true}a=d.getAttribute("favoritesCount");if(a==c){var b=confirm("You have already chosen the maximum number of favorites. To remove one of your current favorites go to the Favorites Setup Page to edit your list. \n\nDo you want to go to your Favorites Setup Page?");if(b){window.location="favoritesSetup.aspx?from="+d.getAttribute("pageName")+d.getAttribute("qs");return false}return false}}return true}function popUp(e,c,g,b,a,f){var d="height="+g+",width="+b+",left="+a+",top="+f+",toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1";window.open(e,c,d)}function popUp2(b,c,a,f,e){var d;d=window.open(b,"WLNewWin","toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width="+c+",height="+a+",left="+f+",top="+e)}function SetTixTotals(){var a;var b;a=document.frmTicketQty.quantity;if(a){for(b=0;b<a.length;b++){tixtotal(a[b])}}}function DropDownNav(a){document.location.href=a.options[a.selectedIndex].value}function characterCounter(c,a,b){if(c.value.length>b){c.value=c.value.substring(0,b)}else{if(a!=null){countfield=document.getElementById(a);if(countfield!=null){countfield.innerHTML=b-c.value.length}}}}function WriteToContainer(a,d,c){var b=document.getElementById(a);var f=10;var e=500;if(c==null){c=0}if(b){b.innerHTML=d;if(CONTAINER_CONTENTS!=null){CONTAINER_CONTENTS[a]=d}}else{if(c<=f){c++;d=d.replace(/"/g,'\\"');window.setTimeout('WriteToContainer("'+a+'","'+d+'",'+c+");",e)}}}function GetOriginalContainerContent(a){if(CONTAINER_CONTENTS!=null&&a!=null){return CONTAINER_CONTENTS[a]}return null}$(function(){$("a#read_more").click(function(){$(this).remove();$("span.moretext").css("display","inline");return false})});