function addEvent(c,b,e,a){if(c.addEventListener){c.addEventListener(b,e,a);return true}else{if(c.attachEvent){var d=c.attachEvent("on"+b,e);return d}else{return false}}}function knackerEvent(a){if(a&&a.stopPropagation){a.stopPropagation()}if(window.event&&window.event.cancelBubble){window.event.cancelBubble=true}if(a&&a.preventDefault){a.preventDefault()}if(window.event){window.event.returnValue=false}}function cancelEventSafari(){return false}function getElementStyle(b,d){var c=document.getElementById(b);if(c.currentStyle){return c.currentStyle[toCamelCase(d)]}else{if(window.getComputedStyle){var a=window.getComputedStyle(c,"");return a.getPropertyValue(d)}else{return""}}}function toCamelCase(e){var b=e.toLowerCase().split("-");if(b.length==1){return b[0]}var a=(e.indexOf("-")==0)?b[0].charAt(0).toUpperCase()+b[0].substring(1):b[0];for(var c=1;c<b.length;c++){var d=b[c];a+=d.charAt(0).toUpperCase()+d.substring(1)}return a}function disableTestLinks(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].href.match(/[^#]#$/)){addEvent(b[a],"click",knackerEvent,false)}}}function createCookie(c,d,e){var a="";if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var d=document.cookie.split(";");var e=b+"=";for(var c=0;c<d.length;c++){var a=d[c];while(a.charAt(0)==" "){a=a.substring(1,a.length)}if(a.indexOf(e)==0){return a.substring(e.length,a.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)}function mouse_event(b,a){if(b.className!="paging"){b.className=a}}function openSeatMapWindow(c,d,a){if(c=="ByVenID"){var b=d+"?VenID="+a;SeatMapWindow=window.open(b,"SeatMap","height=700, width=740,toolbar=no,scrollbars=no,menubar=no,resizable=yes,top=100px,left=100px")}if(c=="ByPerID"){var b=d+"?PerID="+a;SeatMapWindow=window.open(b,"SeatMap","height=700, width=740,toolbar=no,scrollbars=no,menubar=no,resizable=yes,top=100px,left=100px")}}function openPackagePopup(c,a){var b=c+"?PkgID="+a;PackagePopup=window.open(b,"Package","height=550, width=700,toolbar=no,scrollbars=no,menubar=no")}function openMyReceiptPopup1(c,b){var a="/popups/myreceipt.aspx?tsgid="+c+"&sec=0&dt="+Date();popUpWindow(a,600,500,"yes","yes","yes","yes")}function openMyReceiptPopup(a){openMyReceiptPopup1(a,0)}function Set_Cookie(b,d,a,g,c,f){var e=new Date();e.setDate(e.getDate()+a);document.cookie=b+"="+escape(d)+((a==null)?"":";expires="+e.toGMTString())+((g)?";path="+g:"")+((c)?";domain="+c:"")+((f)?";secure":"")}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}window.onload=function(){if(!document.getElementsByTagName){return false}var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].getAttribute("class")=="popup"){b[a].onclick=function(){openPopUp(this.getAttribute("href"));return false}}}};function openPopUp(){alert("linkURL")}function popUpWindow(h,a,k,g,b,d,e){var f="";var j=h;var c="height="+k+", width="+a+", toolbar="+g+", scrollbars="+b+", menubar="+d+", title="+f+", titlebar="+e;newPopUp=window.open(j,f,c)}function popUp(b,a,c){window.open(b,"popup","width="+a+",height="+c)}var win=null;function centeredPopup(e,d,b,c,a){LeftPosition=(screen.width)?(screen.width-b)/2:0;TopPosition=(screen.height)?(screen.height-c)/2:0;settings="height="+c+",width="+b+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+a+",resizable";win=window.open(e,d,settings)}function init(){var c=document.getElementsByTagName("input");for(var a=0;a<c.length;a++){var b=c[a];if(b.type=="text"&&b.className.match(/\bcleardefault\b/)){addEvent(b,"focus",clearDefaultText,false);addEvent(b,"blur",replaceDefaultText,false);if(b.value!=""){b.defaultText=b.value}}}}function clearDefaultText(b){var a=window.event?window.event.srcElement:b?b.target:null;if(!a){return}if(a.value==a.defaultText){a.value=""}}function replaceDefaultText(b){var a=window.event?window.event.srcElement:b?b.target:null;if(!a){return}if(a.value==""&&a.defaultText){a.value=a.defaultText}}var BoxHeights={maxh:0,boxes:Array(),num:0,equalise:function(){this.num=arguments.length;for(var a=0;a<this.num;a++){if(!document.getElementById(arguments[a])){return}}this.boxes=arguments;this.maxheight();for(var a=0;a<this.num;a++){document.getElementById(arguments[a]).style.height=this.maxh+"px"}if(document.getElementById("loader")!=null){document.getElementById("loader").className="dispblock"}},maxheight:function(){var b=new Array();for(var a=0;a<this.num;a++){if(navigator.userAgent.toLowerCase().indexOf("opera")==-1){b.push(document.getElementById(this.boxes[a]).scrollHeight)}else{b.push(document.getElementById(this.boxes[a]).offsetHeight)}}b.sort(this.sortNumeric);this.maxh=b[this.num-1]},sortNumeric:function(b,a){return b-a}};function sayhi(){alert(this.maxh)}function show(a){var b=document.getElementById(a);if(b!=null){b.style.display="block"}}function hide(a){var b=document.getElementById(a);if(b!=null){b.style.display="none"}}function showhide(a){var b=document.getElementById(a);if(b!=null){if(b.style.display=="block"){b.style.display="none"}else{b.style.display="block"}}}function showSwitch(b,a){var c=document.getElementById(a);if((b.options[b.selectedIndex].value==4)||(b.options[b.selectedIndex].value==7)){c.style.display="block"}else{c.style.display="none"}}function showDivElement(a){if(document.getElementById){if(document.getElementById(a)!=null){document.getElementById(a).style.display="block"}}else{if(document.layers){document.id.display="block"}else{document.all.id.style.display="block"}}}function hideDivElement(a){if(document.getElementById){if(document.getElementById(a)!=null){document.getElementById(a).style.display="none"}}else{if(document.layers){document.id.display="none"}else{document.all.id.style.display="none"}}}function swapButtonText(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].id.search("_btnBuy")!=-1){if(b[a].innerHTML=="Buy"){b[a].innerHTML="Select"}}}}function __doPostBackAsync(c,b){var a=Sys.WebForms.PageRequestManager.getInstance();if(!Array.contains(a._asyncPostBackControlIDs,c)){a._asyncPostBackControlIDs.push(c)}if(!Array.contains(a._asyncPostBackControlClientIDs,c)){a._asyncPostBackControlClientIDs.push(c)}__doPostBack(c,b)}function __doAsyncPostBack(b,a){__doPostBackAsync(b,a)}function setUniqueRadioButton(a,b){var c=$("input[@name $= '"+a+"']");for(i=0;i<c.length;i++){if(c[i].type=="radio"){c[i].checked=false}}b.checked=true}function tooltip(){$(".info").each(function(){$(this).click(function(){var a=$(this).next("span").children();if(a.is(":hidden")){a.show();$(this).addClass("bgtool")}else{a.hide();$(this).removeClass("bgtool")}});$(this).mouseout(function(){var a=$(this).next("span").children();a.hide();$(this).removeClass("bgtool")})})}function setCardText(a,e,d){var b=e.parentNode.parentNode;var c=": ";$(b).find(".crd").each(function(){c+=$(this).text()+" "});$(d).text(c)};