// <%' File Version:2.5 %>
var grabing=false
function whichBrs() {
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1) return 'Opera';
	if (agt.indexOf("staroffice") != -1) return 'Star Office';
	if (agt.indexOf("webtv") != -1) return 'WebTV';
	if (agt.indexOf("beonex") != -1) return 'Beonex';
	if (agt.indexOf("chimera") != -1) return 'Chimera';
	if (agt.indexOf("netpositive") != -1) return 'NetPositive';
	if (agt.indexOf("phoenix") != -1) return 'Phoenix';
	if (agt.indexOf("firefox") != -1) return 'Firefox';whichBrs
	if (agt.indexOf("safari") != -1) return 'Safari';
	if (agt.indexOf("skipstone") != -1) return 'SkipStone';
	if (agt.indexOf("msie 7") != -1) return 'Internet Explorer 7';
	if (agt.indexOf("msie") != -1) return 'Internet Explorer';
	if (agt.indexOf("netscape") != -1) return 'Netscape';
	if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
	if (agt.indexOf('\/') != -1) {
	if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
		return navigator.userAgent.substr(0,agt.indexOf('\/'));}
	else return 'Netscape';} else if (agt.indexOf(' ') != -1)
		return navigator.userAgent.substr(0,agt.indexOf(' '));
	else return navigator.userAgent;
}
try{window.status = 'Station ID: '+ StationID + '  Cart ID: '+ TheShoppingCartID}
catch(e){}
function getpagebody(page) {
	if (page.indexOf('#')<26){
	var xmlhttp=false;
	//if (charName != Char) {
    var XMLData = "No Data";
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
    xmlhttp.open("GET",page,true);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {
			var Token = xmlhttp.responseText
			var htmlbody = Token.slice(Token.indexOf('<mainbody>') +10,Token.indexOf('</mainbody>',Token.indexOf('<mainbody>') +10))
			document.getElementById('MainBody').innerHTML = htmlbody
			
		}
	}
	xmlhttp.send(null);
}	
}

var ment = 20
var menl = 10
var MenuTimer
var TickTimer
var AttractionOn
	function CalLookup(d,a,sd) {
		if(grabing){return false};
		AttractionOn = a
		if (MenuTimer!=null){MenuTimer = clearTimeout(MenuTimer)};
		var xmlhttp=false;
	    var XMLData = "No Data";
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		if (!xmlhttp && window.createRequest) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
	    xmlhttp.open("GET", "AttrDetail.asp?a="+a+"&d="+d,true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
				var Token = xmlhttp.responseText
				//TestPage(Token)
				BuildMenu(Token,sd)
			}
		}
		xmlhttp.send(null);

	}
		
function Locate(e){
	if(grabing){return false};
	var posx=0,posy=0;
	if(e==null) e=window.event;
	if(e.pageX || e.pageY){
	    posx=e.pageX; posy=e.pageY;
	    }
	else if(e.clientX || e.clientY){
	    if(document.documentElement.scrollTop){
	        posx=e.clientX+document.documentElement.scrollLeft;
	        posy=e.clientY+document.documentElement.scrollTop;
	        }
	    else{
	        posx=e.clientX+document.body.scrollLeft;
	        posy=e.clientY+document.body.scrollTop;
	        }
	    }
	ment=(posy+10);
	menl=(posx+10);
	}
function clearmenu(){
	if(grabing){return false};
	try{
		document.getElementById("HiddenMenu").style.visibilty = 'hidden';
		document.getElementById("HiddenMenu").innerHTML = "<div style='position: absolute;'></div>";
	}catch(err){}
	try{document.getElementById("HiddenMenu2").style.visibilty = 'hidden';
	document.getElementById("HiddenMenu2").innerHTML = "<div style='position: absolute;'></div>";
	}catch(err){}
	}
document.onmousedown = Locate	//locate the mouse pointer at all times

function BuildMenu(Token,sd) {
	if(grabing){return false};
	var D6=window,Y7=document;function B8(){this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=Y7.getElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;this.ie4=(Y7.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6;this.mac=this.agent.indexOf("Mac")>-1;this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;this.ns4=(Y7.layers && !this.dom)?1:0;this.bw=(this.ie6||this.ie5||this.ie4||this.ie7||this.ns4||this.ns6||this.opera5);return this}bw=new B8();z=0;b=0;g="";if(bw.opera5||bw.ns6){b=2};if(bw.ie){g=" style='width: 100%'"}else{z=6}mt=ment;ml=menl;w=100;mh=23;mw=ml-w;k=0;mt=mt-z;p="<a class='mi'"+g+" href='";q="' title='";r="\"; return true' onmouseout='window.status=\"\"; return true'>";t="</a>";a="' onmouseover='window.status=\"";v="<div class=sp></div>"
	m=new Array();n=new Array();s=new Array();sw=new Array();su=new Array();st=new Array()
	if (Token.indexOf('<attr') <= 0) {
		var x = 0
		var xx = 0
		var date=new Date()
		var onSaledate=new Date(sd)		
		if(onSaledate>date){
			var ons = onSaledate.toLocaleDateString() + " at " + onSaledate.toLocaleTimeString() 
			m[xx]='Tickets On Sale<br>'+ons;n[xx]='#';sw[xx]=200;su[xx]="";st[xx]="";s[xx]="";
			w=240
		}else{
			while (x < Token.length) 
			{
				if(Token.indexOf('<time>',x)>-1){
					var attraction = Token.slice(Token.indexOf('<time>',x) +6,Token.indexOf('</time>',Token.indexOf('<time>',x) +6));
					var id = Token.slice(Token.indexOf('<id>',x) +4,Token.indexOf('</id>',Token.indexOf('<id>',x) +4))
					m[xx]=attraction;n[xx]=id+'';sw[xx]=150;su[xx]=attraction;st[xx]="";s[xx]="";
					xx++; 
					x = Token.indexOf('</id>',x)+5
				}else{
					x= Token.length
				}
			}
			if (xx>1) {
				m[xx]='View All';n[xx]='DisplayDatesandTimes.asp?SearchID='+AttractionOn;sw[xx]=150;su[xx]=attraction;st[xx]="";s[xx]="";
			}
		}
		ma=m.length
		
		document.getElementById("HiddenMenu").innerHTML = ''
		if (k==1) {mw2=ml-w;
		for (i=0; i < ma; i++){document.getElementById("HiddenMenu").innerHTML +=("<div id='sb"+i+"' class='mn' style='visibility:hidden; position: absolute; top:"+(mt+mh)+";left:"+(mw+=w+2)+";width:"+(sw[i]-b)+"'MenuTimer = clearTimeout(MenuTimer);' onmouseout='MenuTimer = setTimeout(\"clearmenu()\",3000);'>"+s[i]+"</div>")}
		for (i=0; i < ma; i++){document.getElementById("HiddenMenu").innerHTML +=("<div style='position: absolute; top:"+mt+";left:"+(mw2+=w+2)+";width:"+w+"' onmouseover='MenuTimer = clearTimeout(MenuTimer);' onmouseout='MenuTimer = setTimeout(\"clearmenu()\",3000);' ><a onmouseover='MenuTimer = clearTimeout(MenuTimer);' class='bi'"+g+" href='"+n[i]+q+st[i]+a+su[i]+r+m[i]+t+"</div>")}}
		else {mw2=mt-mh;mt2=mt-mh+2
		for (i=0; i < ma; i++){document.getElementById("HiddenMenu").innerHTML +=("<div id='sb"+i+"' class='mn' style='visibility:hidden;position: absolute; top:"+(mt2+=(mh+1))+";left:"+(ml+w-10)+";width:"+sw[i]+"' onmouseover='MenuTimer = clearTimeout(MenuTimer);' onmouseout='MenuTimer = setTimeout(\"clearmenu()\",3000);'>"+s[i]+"</div>")}
		for (i=0; i < ma; i++){document.getElementById("HiddenMenu").innerHTML +=("<div style='position: absolute; top:"+(mw2+=(mh+1))+";left:"+ml+";width:"+w+"' onmouseover='MenuTimer = clearTimeout(MenuTimer);' onmouseout='MenuTimer = setTimeout(\"clearmenu()\",3000);'><a onmouseover='MenuTimer = clearTimeout(MenuTimer);' class='bi'"+g+" href='"+n[i]+q+st[i]+a+su[i]+r+m[i]+t+"</div>")}}
	}else{

	}
	lib_obj.prototype.showIt = function(){this.css.visibility="visible"}
	lib_obj.prototype.hideIt = function(){this.css.visibility="hidden"}
	libinit()
	MenuTimer = setTimeout("clearmenu()",3000);
	
	function lib_obj(obj,nest){nest=(!nest) ? "":'document.'+nest+'.';this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt;this.ref=bw.dom||bw.ie4?document:this.css.document;this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0;return this}
	function lib_doc_size(){this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||0;this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||0;this.x50=this.x2/2;this.y50=this.y2/2;return this;}
	function libinit(){
		page=new lib_doc_size();
		o=new Array();
		for (i=0; i < ma; i++){
			o[i]=new lib_obj('sb'+i);o[i].hideIt()
		}
	}
	
}
function ShowDetails(a) {
	if(grabing){return false};
	document.getElementById("HiddenMenu").style.visibilty = 'hidden';
	document.getElementById("HiddenMenu").innerHTML = "<div style='position: absolute;'></div>";
	document.getElementById("EventDetails").innerHTML = document.getElementById("attr"+a).innerHTML
}

function TestPage(HTML){
	newwindow2=window.open('','Temp');
	var tmp = newwindow2.document;
	tmp.write(HTML);
	tmp.close();
}

function pageinit(){
	DisplayMainMenu()
	ShowCommentBox()
}
m=new Array()

	var SSTop
	var SSLeft
function ShoppingCartUpdate(v){
	if(grabing){return false};
	var xmlhttp=false;
    var XMLData = "No Data";
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	d=new Date()

	var URL ="ShoppingCartDetails.asp?v="+v+"&t="+SSTop+"&L="+SSLeft+"&i="+d.valueOf()
    xmlhttp.open("GET", URL,true);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {
			var Token = xmlhttp.responseText
			var HTML = Token.slice(Token.indexOf('<mainbody>') +10,Token.indexOf('</mainbody>',Token.indexOf('<mainbody>') +10));
			document.getElementById("SSD").innerHTML = HTML
			document.getElementById("SSD").innerHTML +="<div id='SSTM' style='position: absolute; top:1;left:1;width:1'>"
			document.getElementById("SSD").style.zIndex=20
			TheStepOn = Token.slice(Token.indexOf('<step>') +6,Token.indexOf('</step>',Token.indexOf('<step>') +6));
			try{Progress(TheStepOn)}catch(e){}
		}
	}
	xmlhttp.send(null);
}

var NavTimer 
function SCDetails(x){
	if(grabing){return false};
	if(x==1){
		ShoppingCartUpdate(0)
		NavTimer = setTimeout("SCDetails(0)",8000)
		document.getElementById("SSDetails").style.visibility="visible"
		try{document.getElementById('NavBox').style.visibility='hidden'}catch(err){}
		try{document.getElementById('CardType').style.visibility='hidden'}catch(err){}
		try{document.getElementById('Month').style.visibility='hidden'}catch(err){}
		try{document.getElementById('Year').style.visibility='hidden'}catch(err){}
	}else{
		document.getElementById("SSDetails").style.visibility="hidden"
		try{document.getElementById("HiddenMenu2").style.visibilty = 'hidden';
		document.getElementById("HiddenMenu2").innerHTML = "<div style='position: absolute;'></div>";
		document.getElementById("SSTM").innerHTML = "<div style='position: absolute;'></div>";
		}catch(err){}
		try{document.getElementById('NavBox').style.visibility='visible'}catch(err){}
		try{document.getElementById('CardType').style.visibility='visible'}catch(err){}
		try{document.getElementById('Month').style.visibility='visible'}catch(err){}
		try{document.getElementById('Year').style.visibility='visible'}catch(err){}
	}
}
var SelSeatList = new Array();SelSeatList[0] = new Array;SelSeatList[1]= new Array;SelSeatList[2]= new Array;SelSeatList[3]= new Array
var CostCat = new Array();CostCat[0] = new Array;CostCat[1] = new Array;CostCat[2] = new Array 
var TicTypes = new Array();TicTypes[0] = new Array;TicTypes[1] = new Array;TicTypes[2] = new Array;TicTypes[3] = new Array 
function ChangeSeat(si,sc,id){
	if(grabing){return false};
		document.getElementById("HiddenMenu2").innerHTML = ''
		var xmlhttp=false;
		var URL = 'SeatSelection.asp?SchedID='+sc+'&Sl='+si+'&u=0'
	    var XMLData = "No Data";
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		if (!xmlhttp && window.createRequest) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}

	    xmlhttp.open("GET", URL,true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
				var Token = xmlhttp.responseText
				//TestPage(Token)
				var D6=window,Y7=document;function B8(){this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=Y7.getElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;this.ie4=(Y7.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6;this.mac=this.agent.indexOf("Mac")>-1;this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;this.ns4=(Y7.layers && !this.dom)?1:0;this.bw=(this.ie6||this.ie5||this.ie4||this.ie7||this.ns4||this.ns6||this.opera5);return this}bw=new B8();z=0;b=0;g="";if(bw.opera5||bw.ns6){b=2};if(bw.ie){g=" style='width: 100%'"}else{z=6}mt2=ment;ml2=menl;w=100;mh=23;mw=ml-w;k=0;mt2=mt2-z;p="<a class='mi'"+g+" href='";q="' title='";r="\"; return true' onmouseout='window.status=\"\"; return true'>";t="</a>";a="' onmouseover='window.status=\"";v="<div class=sp></div>"
				m=new Array();n=new Array();s=new Array();sw=new Array();su=new Array();st=new Array()
				SelSeatList = new Array();SelSeatList[0] = new Array;SelSeatList[1]= new Array;SelSeatList[2]= new Array;SelSeatList[3]= new Array;var x=0;var y=0
				while (x < Token.length) 
				{
					if(Token.indexOf('<si>',x)>-1){
						SelSeatList[0][y] = Token.slice(Token.indexOf('<si>',x) +4,Token.indexOf('</si>',Token.indexOf('<si>',x) +4));
						SelSeatList[1][y] = Token.slice(Token.indexOf('<sc>',x) +4,Token.indexOf('</sc>',Token.indexOf('<sc>',x) +4));
						y++
						x = Token.indexOf('</sc>',x)+4
					}else{
						x= Token.length
					}
				}
				CostCat = new Array();CostCat[0] = new Array;CostCat[1] = new Array;CostCat[2] = new Array;var x=0;var y =0
				while (x < Token.length) 
				{
					if(Token.indexOf('<cc>',x)>-1){
						CostCat[0][y] = Token.slice(Token.indexOf('<cc>',x) +4,Token.indexOf('</cc>',Token.indexOf('<cc>',x) +4));
						CostCat[1][y] = Token.slice(Token.indexOf('<tt>',x) +4,Token.indexOf('</tt>',Token.indexOf('<tt>',x) +4));
						CostCat[2][y] = Token.slice(Token.indexOf('<price>',x) +7,Token.indexOf('</price>',Token.indexOf('<price>',x) +7));
						y++
						x = Token.indexOf('</price>',x)+5
					}else{
						x= Token.length
					}
				}
				TicTypes = new Array();TicTypes[0] = new Array;TicTypes[1] = new Array;TicTypes[2] = new Array;TicTypes[3] = new Array
				x=0
				y=0
				while (x < Token.length) 
				{
					if(Token.indexOf('<ti>',x)>-1){
						TicTypes[0][y] = Token.slice(Token.indexOf('<ti>',x) +4,Token.indexOf('</ti>',Token.indexOf('<ti>',x) +4));
						TicTypes[1][y] = Token.slice(Token.indexOf('<td>',x) +4,Token.indexOf('</td>',Token.indexOf('<td>',x) +4));
						TicTypes[2][y] = Token.slice(Token.indexOf('<tc>',x) +4,Token.indexOf('</tc>',Token.indexOf('<tc>',x) +4));
						TicTypes[3][y] = Token.slice(Token.indexOf('<tp>',x) +4,Token.indexOf('</tp>',Token.indexOf('<tp>',x) +4));
						y++
						x = Token.indexOf('</tp>',x)+4
					}else{
						x= Token.length
					}
				}
				
				for (i=0; i < TicTypes[0].length; i++){
					var Price = TicTypes[3][i]
					for (ii=0; ii < TicTypes[0].length; ii++){
						if(CostCat[0][ii]==SelSeatList[1][0] && TicTypes[0][i]==CostCat[1][ii]){
							Price = CostCat[2][ii]
						}
					}
					m[i]=TicTypes[1][i]+' $'+CurrencyFormatted(Price);n[i]="javascript:UpdateSeat("+TicTypes[0][i]+","+si+","+id+")"+'';sw[i]=200;su[i]=TicTypes[1][i]+' $'+CurrencyFormatted(Price);st[i]="";s[i]="";					

				}
				w=100
				ma=m.length			
				mw2=mt2-mh;mt2=mt2-mh+2
				document.getElementById("SSTM").innerHTML =""
				for (i=0; i < ma; i++){document.getElementById("SSTM").innerHTML +=("<div id='sb3"+i+"' class='mn' style='visibility:hidden;position: absolute; z-index: 30; top:"+(mt2+=(mh+1))+"px;left:"+(ml2+w-10)+"px;width:"+sw[i]+"px' onmouseover='TickTimer = clearTimeout(TickTimer);' onmouseout=''>"+s[i]+"</div>")}
				for (i=0; i < ma; i++){document.getElementById("SSTM").innerHTML +=("<div id='mnu"+i+"' style='position: absolute; top:"+(mw2+=(mh+1))+";left:"+ml2+";width:"+w+"; z-index: 30' onmouseover='NavTimer = clearTimeout(NavTimer); TickTimer = clearTimeout(TickTimer);' onmouseout='TickTimer = setTimeout(\"clearmenu()\",3000);' align='right'><a onmouseover='NavTimer = clearTimeout(NavTimer); TickTimer = clearTimeout(TickTimer);' class='bi'"+g+" href='"+n[i]+q+st[i]+a+su[i]+r+m[i]+t+"</div>")}}	
				
				lib_obj3.prototype.showIt = function(){this.css.visibility="visible"}
				lib_obj3.prototype.hideIt = function(){this.css.visibility="hidden"}
				libinit3();
				function lib_obj3(obj,nest){nest=(!nest) ? "":'document.'+nest+'.';this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt;this.ref=bw.dom||bw.ie4?document:this.css.document;this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0;return this}
				
				function lib_doc_size3(){
					this.x=0;
					this.x2=bw.ie && document.body.offsetWidth-20||0;
					this.y=0;
					this.y2=bw.ie && document.body.offsetHeight-5||0;
					this.x50=this.x2/2;
					this.y50=this.y2/2;
					return this;}
					
				function libinit3(){
					page=new lib_doc_size3();
					o=new Array();
					for (ii=0; ii < ma; ii++){
						o[ii]=new lib_obj3('sb'+ii);o[ii].hideIt()
					}
				}
			}
		xmlhttp.send(null);
}
function UpdateSeat(t,s,id){	
	if(grabing){return false};
		var xmlhttp=false;
		var URL = 'ChangeTicketType.asp?Sl='+s+'&t='+t+'&i='+id
	    var XMLData = "No Data";
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		if (!xmlhttp && window.createRequest) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		//window.open(URL)
	    xmlhttp.open("GET", URL,true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
				var cid = 0
				var Token = xmlhttp.responseText
				//TestPage(Token)
				
				ShoppingCartUpdate()
			}
		}
		xmlhttp.send(null);
}

function DeleteADetail(id,r){
	if(grabing){return false};	
		var response= confirm("Are you sure you wish to remove this item from your cart?")
		if(!response){return}
		var xmlhttp=false;
		var URL = 'DeleteADetail.asp?SCDID='+id+'&r='+r
	    var XMLData = "No Data";
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		if (!xmlhttp && window.createRequest) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
	    xmlhttp.open("GET", URL,true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
				var cid = 0
				var Token = xmlhttp.responseText
				//TestPage(Token)
				ShoppingCartUpdate()
				var HTML = Token.slice(Token.indexOf('<mainbody>') +10,Token.indexOf('</mainbody>',Token.indexOf('<mainbody>') +10));
				document.getElementById("NavBar").innerHTML += HTML
				if(Token.indexOf("InfoWindow")>0){
					document.getElementById("InfoWindow").style.top=document.getElementById('MainBody').offsetTop+(document.getElementById('MainBody').offsetHeight/2)-(document.getElementById("InfoWindow").offsetHeight/2)
					document.getElementById("InfoWindow").style.left=(document.getElementById('MainBody').offsetLeft+document.getElementById('MainBody').offsetWidth/2-document.getElementById('InfoWindow').offsetWidth/2)
					document.getElementById("InfoWindow").style.zIndex = 100
					document.getElementById("InfoWindow").style.visibility="visible"
				}
			}
		}
		xmlhttp.send(null);
}
function ClearCart(){	
	if(grabing){return false};
		var response= confirm("Are you sure you wish to remove all items from your cart?")
		if(!response){return}
		var xmlhttp=false;
		var URL = 'ClearCart.asp'
	    var XMLData = "No Data";
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		if (!xmlhttp && window.createRequest) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
	    xmlhttp.open("GET", URL,true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
				var cid = 0
				var Token = xmlhttp.responseText
				//TestPage(Token)
				ShoppingCartUpdate()
				window.location.replace('.')
			}
		}
		xmlhttp.send(null);
}

function HowManySeats(Q,S){	
	if(grabing){return false};
		var xmlhttp=false;
		if(Q==0&&S==0){
			document.getElementById("SeatStatus").innerHTML="&nbsp;";
			return
		}
		var URL = 'SeatCounts.asp?QuadrantID='+Q+'&ScheduleID='+S
	    var XMLData = "No Data";
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		if (!xmlhttp && window.createRequest) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
	    xmlhttp.open("GET", URL,true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
				var cid = 0
				var Token = xmlhttp.responseText
				//TestPage(Token)
				var Count = Token.slice(Token.indexOf('<r>') +3,Token.indexOf('</r>',Token.indexOf('<r>') +3));
				document.getElementById("SeatStatus").innerHTML="Estimated Seats Available : " + Count
			}
		}
		xmlhttp.send(null);
}

function CurrencyFormatted(amount)
{
	var i = parseFloat(amount);
	if(isNaN(i)) { i = 0.00; }
	var minus = '';
	if(i < 0) { minus = '-'; }
	i = Math.abs(i);
	i = parseInt((i + .005) * 100);
	i = i / 100;
	s = new String(i);
	if(s.indexOf('.') < 0) { s += '.00'; }
	if(s.indexOf('.') == (s.length - 2)) { s += '0'; }
	s = minus + s;
	return s;
}
var helpwindow
var helpmode = 1
var hh=400
var hw=250
function PageHelp(p){
	var h=hh,w=hw
	var ofw=3
	var ofh=25
	while (p.indexOf('/') > -1){
	  p = p.slice(p.indexOf('/')+1,p.length)
	}
	if(helpmode==1){
		var sw=screen.width, sh=screen.height
		
		if(whichBrs()=='Internet Explorer 7'){sh-=30,ofw=0,ofh=3}
		sh-=ofh
		var sfix = ''
		if(whichBrs()=='Safari')(sfix = '?s=1')
		helpwindow = window.open('Help'+p+sfix,'Help','scrollbars=1,width='+w+',height='+sh)  
		try{
			window.resizeTo(sw-w-3,sh+3);
			window.moveTo(0,0);
			helpwindow.resizeTo(w,sh);
			helpwindow.moveTo(sw-w,0);	
			helpwindow.ofh = ofh
			//window.onunload = function(e){
			//	helpwindow.timera = helpwindow.setTimeout("getnewpage()",1000)
			//}
		}
		catch(e){alert('Online Help requires Popups to be enabled for this site, we have detected that the popup was not able to show, please enable popups for this site to view help.')}
	}else{
		//Not using the following
	
	 	var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth-30;
		myHeight = window.innerHeight-50;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth-15;
		myHeight = document.body.clientHeight-30;
		}
		var newDiv = document.createElement('div');
		var newframe = document.createElement('iframe');
		ref = newDiv.style;
		ref.position = 'absolute';ref.width = w;ref.height = h+28;ref.top = myHeight-h;ref.left = myWidth-w;ref.visibility='hidden';ref.border='outset';newDiv.id='HelpBox'
		newframe.src = 'help'+p
		lay = newframe.style;lay.width = (w-ofw);lay.height = h+ofw
		document.getElementsByTagName('body').item(0).appendChild(newDiv)
		newDiv.innerHTML = '<table cellspacing=0 cellpadding=1 width="'+(w+ofw)+'"><tr>'
			+'<td class="HelpHeader" height="21" onmouseover="this.style.cursor=\'move\'" onmouseout="this.style.cursor=\'\'" onmousedown="top.MoveHelp(0)" onmouseup="top.MoveHelp(1)">Page Help</td>'
			+'<td class="CloseHelp HelpHeader" height="21" width="52" align="right" onmouseover="this.style.cursor=\'pointer\'" onmouseout="this.style.cursor=\'\'" onclick="top.document.getElementById(\'HelpBox\').style.visibility=\'hidden\'">'
			+'<span style="text-decoration: overline"><u>X</u></span> Close</td></tr></table>'
		newDiv.appendChild(newframe)
		newframe.onmouseover=function(e){oktomovehelp=false}
		ref.visibility='visible'
		//end not using
	}
}

var oktomovehelp = false
var MenuOffsetTop = 0;var MenuOffsetLeft = 0
function MoveHelp(u){
	if(u==0){
		document.onmousemove = HelpLocate
		document.onselectstart=function(e){return false}
		oktomovehelp=true	
		MenuOffsetTop = document.getElementById('HelpBox').offsetTop+15
		MenuOffsetLeft = document.getElementById('HelpBox').offsetLeft
		
	}else if(u==1){
		oktomovehelp=false
		document.onmousemove = function(e){}
		document.onselectstart=function(e){}
	}
	return false
}
function HelpLocate(e){
	if(!oktomovehelp){return false};
	var posx=0,posy=0;
	if(e==null) e=window.event;
	if(e.pageX || e.pageY){
	    posx=e.pageX; posy=e.pageY;
	    }
	else if(e.clientX || e.clientY){
	    if(document.documentElement.scrollTop){
	        posx=e.clientX+document.documentElement.scrollLeft;
	        posy=e.clientY+document.documentElement.scrollTop;
	        }
	    else{
	        posx=e.clientX+document.body.scrollLeft;
	        posy=e.clientY+document.body.scrollTop;
	        }
	    } 
		document.getElementById('HelpBox').style.top =  posy + MenuOffsetTop - ment
		document.getElementById('HelpBox').style.left = posx + MenuOffsetLeft -menl
	}

function CheckHelpPage(){
	var xmlhttp=false;
    var XMLData = "No Data";
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
    xmlhttp.open("HEAD", 'Help'+thispage,true);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {
			try{
			if (xmlhttp.status==404) {document.getElementById('helpbutton').style.visibility='hidden'}
			else{document.getElementById('helpbutton').style.display='inherit'}
			}catch(e){}
		}
	}
	xmlhttp.send(null);

}
aaa = setTimeout('CheckHelpPage()',2000)
var OpenComments = false
function LeaveComment(){
	if(!OpenComments){
		OpenComments =true
		var HTML = '<div style="position: absolute; width: 100px; height: 100px; z-index: 1; left:40%; top:40%" id="frmComments">'
		HTML +='<table border="0" cellpadding="0" cellspacing="1" width="100%" id="table1" style="border-style: outset; border-width: 4px; background-color: #FFFFFF">'
		HTML +='<tr><td>Comments on the Web Site:</td></tr>'
		HTML +='<tr><td><textarea rows="7" ID="CComments" cols="36"></textarea></td></tr>'
		HTML +='<tr><td><p align="center"><input type="button" value="Send Comments" ID="CSubmit" onclick="SendComment()"><input type="button" value="Cancel" ID="CCancel" onclick="document.getElementById(\'frmComments\').style.visibility=\'hidden\'"></td></tr></table></div>'
		document.getElementById('NavBar').innerHTML += HTML
	}else{
		document.getElementById('frmComments').style.visibility="visible"
	}
}
function ShowCommentBox(){
	var HTML = '<div style="position: absolute; width: 76px; height: 85px; z-index: 1; right:0; top:0" id="frmCommentBox">'
		HTML +='<a href="#" onclick="LeaveComment()"><img src="images/CommentBox.gif" border="0" width="80%" height="80%" alt="Comment on the Web Site!"></a>'
		document.getElementById('NavBar').innerHTML += HTML

}

function SendComment(){
	document.getElementById('frmComments').style.visibility="hidden"
	var cc = document.getElementById('CComments').value
	document.getElementById('CComments').value = ""
	alert('Thank you for your Comments.')
	var xmlhttp=false;
    var XMLData = "No Data";
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
    xmlhttp.open("HEAD", 'SendComment.asp?c='+cc,true);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {}
	}
	xmlhttp.send(null);

}
