// get variables from query string
	function getQueryVariable(variable) {
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (var i=0;i<vars.length;i++) {
			var pair = vars[i].split("=");
			if (pair[0] == variable) {
				return pair[1];
			}
		} 
		return "";
	}

	if(typeof(linkID)=="undefined") {
		linkID = getQueryVariable("linkID");
	}

// Preload wait animation for displayeventinfo, etc...
	image1 = new Image();
	image1.src = (typeof(imageWWWPath)!=undefined ? '/evenue/linkID='+linkID+'/images' : imageWWWPath) + '/waitani.gif';
	image2 = new Image();
	image2.src = (typeof(styleWWWPath)!=undefined ? '/evenue/linkID='+linkID+'/stylesheets' : styleWWWPath) + '/style.css';

/* --------------------------------------------------
	Configuration Variables
-------------------------------------------------- */

// there are generally two header types, images and text...
// set to images if your headers are images
// set to text if your headers are text
	var headType = "text";

//custom code new era - set ada promo code
	var adaPromoName = "ADA";

	function isAdaEvent(code) {
		//if name is in hiddenList[], then return true
		//if name is not in hiddenList[], then return false
		var codeFilter = code.split(":");
		
		if(codeFilter[0] != "PR" && codeFilter[4] == "" && codeFilter[3].indexOf("PRK") != 0 && codeFilter[3].indexOf("RTS") != 0) {
			return true;
		} else {
			return false;
		}
	}
	
// set to whatever you want the text for 00:00 to display, eg, midnight, 00:00 or time TBD
	var zerotimetext = "<b>time TBD</b>";

// set to 1 to turn on, 0 to off
	var showRenewalLinks = 1;
	var showStudentLinks = 1;
	var showDonationLinks = 1;

// parent group code
	var bypassGroup = (typeof(linkID)!="undefined" && linkID!="XXXXXXX" ? "TIX" : "GS");

// hidden group codes 
	var hiddenGroups = new Array();
	var hgi = 0
	hiddenGroups[hgi++] = "HIDDEN";
	hiddenGroups[hgi++] = "HIDDEN-FL";
	hiddenGroups[hgi++] = "PACMON";
	hiddenGroups[hgi++] = "PREM";
	hiddenGroups[hgi++] = "CGHC";
	//hiddenGroups[hgi++] = "FL-CON";

	function isHiddenGroup(groupCode) {
		for(var i=0; i < hiddenGroups.length; i++) {
			if(hiddenGroups[i] == groupCode) {
				return true;
			}
		}
		return false;
	}

// hidden events by group
	function isEventInHiddenGroup(groupCode) {
		var parentGroup = groupCode;
		while(parentGroup!="" && !isHiddenGroup(parentGroup)) {
			for(var i=0; i<fullGroupList.length; i++) {
				if(parentGroup == fullGroupList[i].code) {
					parentGroup = fullGroupList[i].parent;
					break;
				}
			}
		}
		return (isHiddenGroup(parentGroup) ? true : false);
	}

// set to 1 to include Canadian provinces
	var useCanadianProvince = 0;

// order of address lines
	function makeAddrOrder(number, type, req) {
		this.number = number;
		this.type = type;
		this.req = req;
	}
	var addrOrder = new Array();
	addrOrder[0] = new makeAddrOrder(2, "text", 1);
	addrOrder[1] = new makeAddrOrder(1, "text", 0);
	addrOrder[2] = new makeAddrOrder(3, "hidden", 0);

// array of days of the week (abbreviated & full)
	var dowa =  new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");
	var dowf =  new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

// array of months of the year (abbreviated & full)
	var moya = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
	var moyf = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

// array of credit cards used -- put the name of the cc in the array below to add it to the site.
// remove it from the array to remove it from the site
//	var ccUsed = new Array("Visa", "MasterCard", "Discover", "Amex");
	var ccUsed = new Array("Visa", "MasterCard", "Discover");

// ticket office phone number... used throughout the site in "helper" text... ie (for more information call the ticket office at XXXXXX)
	var phoneNumber = "1-800-298-4200";

// trim leading and trailing spaces;
	function trim(field){
		var badName = field.value;
		var goodName = badName.replace(/^\s+|\s+$/ig, "");
		field.value = goodName;
	}

// changes all letters to uppercase
	function allCaps(field) {
		var theString = field.value.toUpperCase();
		field.value = theString;
	}

// strip non numerics
	function numbersOnly(field){
		var badName = field.value;
		var goodName = badName.replace(/[^0-9]/ig, "");
		field.value = goodName;
	}

// strip non alphabetics
	function alphaOnly(field){
		var badName = field.value;
		var goodName = badName.replace(/[^a-zA-Z -]/ig, "");
		field.value = goodName;
	}

// strip html coding from strings
	function stripHTML(string) {
		string = string.replace(/<br>/ig, " ");
		return string.replace(/(<([^>]+)>)/ig, "");
	}

// string cleaner
	function cleaner(string) {
		// fix break tags
		string = string.replace(/<br>/ig, " ");
		
		// remove html tags
		string = stripHTML(string);
		
		// fix apostrophes
		string = string.replace(/\'/ig, "&#39;");
		string = string.replace(/"/ig, "&quot;");
		
		// trim leading/trailing spaces
		string = string.replace(/^\s+|\s+$/ig, "");
		
		// remove extra spaces
		while(string.indexOf("  ")>-1) {
			string = string.replace(/  /g, " ");
		}
		
		return string;
	}

// generic rollover function
	function flip(image, type) {
		document[image].src = imageWWWPath + "/" + image + type + ".gif";
	}

// generic pop up window function
	function pop(url, w, h) {
		window.open(url, '', 'scrollbars=yes,resizable=yes,width='+w+',height='+h+'');
	}

// generic pop up window function
	function popMap(url) {
		window.open(url, '', 'scrollbars=yes,resizable=yes,width=490,height=586,top=0,left=0');	
	}

// function to print the header on each page
// if your headers are images, the image parameter is the filename and the text parameter is the alt text
// if your headers are text, the image parameter is ignored and the text parameter is the text printed
	function printHead(image, text) {
		if(headType == "image") {
			document.write(
				'<table cellpadding="0" cellspacing="0" border="0" width="100%">',
				'	<tr>',
				'		<td width="34"><img src="', imageWWWPath, '/head-l.gif" width="34" height="19"  border="0"></td>',
				'		<td width="100%"><img src="', imageWWWPath, '/head-',image,'.gif" height="19" alt="',text,'" border="0"></td>',
				'	</tr>',
				'</table>'
			);
		} else if(headType == "text") {
			document.write(
				'<h1>',text,'</h1>'
			);
		}
		return true;
	}

// supporting function to printBreadCrumbs
	function printParent(group) {
		var match = -1;
		for(var i=0; i < fullGroupList.length; i++) {
			if(group == fullGroupList[i].code) {
				match = i;
				if(fullGroupList[i].parent != "") {
					printParent(fullGroupList[i].parent);
				}
			}
		}
		if(match >= 0) {
			//org: document.write('<span>', cleaner(fullGroupList[match].description) ,' &gt; </span>');
			//brainstorm #27, clickable breadcrumbs link 1 of 2
			document.write('<span class="printparent"><a href="/cgi-bin/ncommerce3/SEGetGroupList?groupCode=',fullGroupList[match].code,'&linkID=', linkID, '&shopperContext=&caller=&appCode=">', cleaner(fullGroupList[match].description) ,'</a> &gt; </span>');			
		}
	}
	
	//custom code new era - custom function to return the full group code heirarchy of an event. 
	//ASSUMES THAT TOP LEVEL GROUP IS EQUAL TO "GS"
	function getParents(group) {
		var tmpParents = "";
		tmpParents += group;
		var tmpGroup = group;
		for(var i=0; i < fullGroupList.length; i++) {
			if(tmpGroup == fullGroupList[i].code) {
				tmpParents += ":"+fullGroupList[i].parent;
				tmpGroup = fullGroupList[i].parent;
				i = -1;
			}
			//INSERT TOP LEVEL GROUP HERE - CURRENTLY IS "GS"
			if(tmpGroup == "GS") {break;}
		}
		return tmpParents;
	}
	//END CUSTOM CODE

// function to print "Bread Crumb" type navigation
	function printBreadCrumbs(group) {
		document.write('<div id="breadcrumbs">');
		if(group.code != "") {
			for(var i=0; i < fullGroupList.length; i++) {
				if(group.code == fullGroupList[i].code && fullGroupList[i].parent != "") {
					printParent(fullGroupList[i].parent);
				}
			}
			//org: document.write('<strong>', cleaner(group.description) ,'</strong>'); 
			//brainstorm #27, clickable breadcrumbs link 2 of 2 
			document.write('<span class="printbread"><a href="/cgi-bin/ncommerce3/SEGetGroupList?groupCode=', group.code,'&linkID=', linkID, '&shopperContext=&caller=&appCode=">', cleaner(group.description) ,'</a></span>');			
		}
		document.write('</div>');
		return;
	}

// function to get the group name	
	function getGroupName(group) {
		var name="";
		for(var i=0; i < fullGroupList.length; i++) {
			if(group == fullGroupList[i].code) {
				name = fullGroupList[i].description;
				break;
			}
		}
		return name;
	}

// helper function eg turns 3 into 03
	function twoForm(n) { return (n < 10 ? "0"+n : n); }

// calculate amount of days in a given month (0-11) and return number.
	function daysInMonth(month,year) {
		var dd = new Date((month==11 ? year+1 : year), (month==11 ? 0 : month+1), 0);
		return dd.getDate();
	}

// print calendar link
	function printCalendarLink(linkID, groupCode) {
		var date1 = new Date();
		var date2 = new Date(date1.getFullYear()+1, date1.getMonth(), 0);

		var calendarLink = 
			'/cgi-bin/ncommerce3/SEGetEventList?linkID='+ linkID +
			'&groupCode='+ groupCode +
			'&timeDateFrom='+ 	date1.getFullYear() +'-'+ (date1.getMonth()+1) +'-'+ date1.getDate() +'-00.00.00'+
			'&timeDateTo='+ 	date2.getFullYear() +'-'+ (date2.getMonth()+1) +'-'+ date2.getDate() +'-00.00.00';
		return calendarLink;
	}

// function to format an amount eg xxx.xx
	function formatAmt(amount) {
		var fmt_amt = Math.round(amount * 100) / 100;
		fmt_amt = fmt_amt.toString();
		var ipos = fmt_amt.indexOf(".");
		if(ipos == -1)
			fmt_amt += ".00";
		else if(fmt_amt.substr(ipos + 1).length == 1)
			fmt_amt += "0";
		return fmt_amt;
	}

// helper function eg turns 3 into 03
	function twoForm(n) {
		return (n < 10 ? "0"+n : n);
	}

// convert time string (ie: "2008-04-26 14:00:00.000000") to proper date format.
	function convertTimeStamp(str) {
		if(str == "")
			return "";
		
		regExp = /(\d{4})-(\d\d)-(\d\d)\s(\d\d):(\d\d):(\d\d)\.\d{6}/ ;
		if(!regExp.test(str))
			return "Bad Date" ;
		
		arr = str.match(regExp) ;
		return new Date(arr[1], arr[2] - 1, arr[3], arr[4], arr[5], arr[6]) ;
	}

// 6.91
	function formatDate(strD)
	{
		if(strD == "" || strD == "Partial" || strD == "Multiple")
		{
			return strD;
		}
		else
		{
			dateArr = strD.split("-");
			return (dateArr[1] + "-" + dateArr[2] + "-" + dateArr[0]);
		}
	}

// function to make the time a nice format
	function timeFormat(time) {
		if(time == "") {
			var hm = "n/a";
		} else {
			var m = time.getMinutes();
			var h24 = time.getHours();
			var h = h24 > 12 ? h24 - 12 : (h24==0 ? 12 : h24);
			
			if(m == 0 && h24 == 0) {
				hm = zerotimetext;
			} else if(m == 0 && h24 == 12) {
				hm = "Noon";
			} else {
				hm = h + ":" +  twoForm(m) + (h24 < 12 ? "&nbsp;am" : "&nbsp;pm");
			}
		}

		return hm;
	}

// function to make the date a nice format
	function dateFormat(time) {
		if(time == "") {
			var formatedTime = "n/a";
		} else {
			var formatedTime = dowf[time.getDay()] + ", " + moyf[time.getMonth()] + " " + time.getDate() + ", " + time.getFullYear();
		}

		return formatedTime;
	}

	function shortDateFormat(time, ismultiday, endtime) {
		if(typeof(time)=="undefined" || time == "") {
			var formatedTime = "n/a";
			
		} else if(
			typeof(ismultiday)!="undefined" && ismultiday=="1" && 
			typeof(endtime)!="undefined" && endtime!="" && 
			endtime.toString()!=time.toString()
		) {
			var formatedTime =
				'Begins: '+ dowa[time.getDay()] +', '+ moya[time.getMonth()] +'-'+ time.getDate() +'-'+ time.getFullYear() + '<br>'+
				'Ends: '+ dowa[endtime.getDay()] +', '+ moya[endtime.getMonth()] +'-'+ endtime.getDate() +'-'+ endtime.getFullYear();
			
		} else {
			var formatedTime = dowa[time.getDay()] +', '+ moya[time.getMonth()] +'-'+ time.getDate() +'-'+ time.getFullYear();
		}
	
		return formatedTime;
	}

	function shortestDateFormat(time) {
		var formatedTime = (time.getMonth()+1) + '/' + time.getDate() + '/' + time.getFullYear();
		return formatedTime;
	}
	
// If left undefined, date format functions below may fail on some pages.
	if(typeof(pageName)=="undefined") var pageName = "";

// function to make the date & time a nice format (with labels)
	function dateTimeFormat(time, ismultiday, endtime) {
		if(typeof(time)=="undefined" || time == "") {
			var formatedTime = "date &amp; time n/a";
			
		} else if(
			typeof(ismultiday)!="undefined" && ismultiday=="1" && 
			typeof(endtime)!="undefined" && endtime!="" && 
			endtime.toString()!=time.toString()
		) {
			var formatedTime =
				'<strong>Event Begins:</strong> '+ dateFormat(time) + ' at ' + timeFormat(time) + '<br>'+
				'<strong>Event Ends:</strong> '+ dateFormat(endtime) + ' at ' + timeFormat(endtime);
			
		} else {
			var formatedTime =
				//OG '<strong>Event Date:</strong>' +(pageName=="DisplayEventList.html" ? '<br>' : '') + dateFormat(time) + (pageName=="DisplayEventList.html" ? '<br>' : ' at ') + timeFormat(time);
				'<table style="margin-left: -2px;"><tr><td nowrap valign="top"><strong>Event Date:</strong></td><td>' + dateFormat(time) + ' at ' + timeFormat(time)+'</td></tr></table>';				
		}
			return formatedTime;
	}

// function to make the date & time a nice format (no labels)
	function dateTimeFormat2(time, ismultiday, endtime) {
		if(typeof(time)=="undefined" || time == "") {
			var formatedTime = "date &amp; time n/a";
			
		} else if(
			typeof(ismultiday)!="undefined" && ismultiday=="1" && 
			typeof(endtime)!="undefined" && endtime!="" && 
			endtime.toString()!=time.toString()
		) {
			var formatedTime =
				'Event Begins: '+ dateFormat(time) + ' at ' + timeFormat(time) + '<br>'+
				'Event Ends: '+ dateFormat(endtime) + ' at ' + timeFormat(endtime);
			
		} else {
			var formatedTime = (pageName=="DisplayEventList.html" ? '<br>' : '') + dateFormat(time) + (pageName=="DisplayEventList.html" ? '<br>' : ' at ') + timeFormat(time);
		}

		return formatedTime;
	}

// function to make the date a nice format for pop up boxes (no &nbsp;)
	function popdateFormat(time) {
		var formatedTime = dateTimeFormat2(time)
		formatedTime = formatedTime.replace(/&nbsp;/ig, ' ');
		return formatedTime;
	}

// formats a number to xxx.xx
	function amountFormat(amount) {
		var amtFmt = Math.round(amount * 100) / 100;
		amtFmt = amtFmt.toString();
		var ipos = amtFmt.indexOf(".");
		if(ipos == -1) {
			amtFmt += ".00";
		} else if(amtFmt.substr(ipos + 1).length == 1) {
			amtFmt += "0";
		}
		return amtFmt;
	}

// prints error message, centered and in error style
	function printError(errorMsg) {
		document.write(
			'<br><div align="center" class="error">', errorMsg ,'</div><br>'
		);
	}

// prints the event head in the cart & orderok pages
/* custom code new era - create custom function for printCartTitle
function printCartTitle(text, colspan) {
		if(colspan == "") {
			colspan = 10;
		}
		document.write(
			'<tr><td colspan="',colspan,'" class="cartbox">',text,'</td></tr>'
		);
	}
*/

// CUSTOM CODE NEW ERA - THIS FUNCTION IS RESPONSIBLE FOR MAKING THE PATH FROM EVENUE ROOT TO GET TO THE APPROPRIATE VIEW FROM SEAT IMAGE BASED ON SECTION, ROW, SIZE, AND TEAM.
// output will be something like /evenue/linkID=global-wachovia/images/vfs/flyers/150x100/101LR1-8.gif
function showVfsPath(level, section, row, size, team) {
	var vfsFileFilter = "";
	//logic for making the file name.

	if(section != ""){
		var vfsFile = section;
	}
	else {
		var vfsFile = false;
	}
	
	if(vfsFile) {
	switch(team) {
	case "flyers":
			
			if(section.substring(0,1) == "1") { //100 level
				// 100 level sections that only have rows 1-23
				if(parseInt(row) == 1) {
					vfsFile = "FL"+vfsFile+"I";
				}
				else if(parseInt(section) == 101 || parseInt(section) == 102 || parseInt(section) == 103 || parseInt(section) == 104 || parseInt(section) == 110 || parseInt(section) == 111 || parseInt(section) == 112 || parseInt(section) == 114 || parseInt(section) == 115 || parseInt(section) == 116 || parseInt(section) == 122 || parseInt(section) == 123 || parseInt(section) == 124) {
					if(parseInt(row) >= 1 && parseInt(row) <= 8) {
						vfsFile += "LR1-8";
					} else if(parseInt(row) >= 9 && parseInt(row) <= 16) {
						vfsFile += "LR9-16";
					} else if(parseInt(row) >= 17 && parseInt(row) <= 26) {
						vfsFile += "LR17-23";
					} else {
						//nothing here... yet
					}
				} else if(parseInt(section) == 113) {
					if(parseInt(row) >= 1 && parseInt(row) <= 8) {
						vfsFile += "LR3-8";
					} else if(parseInt(row) >= 9 && parseInt(row) <= 16) {
						vfsFile += "LR9-16";
					} else if(parseInt(row) >= 17 && parseInt(row) <= 26) {
						vfsFile += "LR17-23";
					} else {
						//nothing here... yet
					}
				} else {
				// 100 level sections that have rows 1-26
					if(parseInt(row) >= 1 && parseInt(row) <= 8) {
						vfsFile += "LR1-8";
					} else if(parseInt(row) >= 9 && parseInt(row) <= 16) {
						vfsFile += "LR9-16";
					} else if(parseInt(row) >= 17 && parseInt(row) <= 26) {
						vfsFile += "LR17-26";
					} else {
						//nothing here... yet
					}
				}
			}
			else if(section.substring(0,1) == "2") { //200 level
				
				//check for second level exceptions - some sections have seat blocks of rows 1-11
				if(parseInt(section) == 210) {
					
					if(parseInt(row) >= 1 && parseInt(row) <= 7) {
						vfsFile += "UR1-7";
					} else if(parseInt(row) >= 8 && parseInt(row) <= 11) {
						vfsFile += "UR9-11";
					} else if(parseInt(row) >= 12 && parseInt(row) <= 15) {
						vfsFile += "UR12-15";
					} else {
						//nothing here... yet
					}
				} else if(parseInt(section) == 201 || parseInt(section) == 202 || parseInt(section) == 212 || parseInt(section) == 213 || parseInt(section) == 214 || parseInt(section) == 224) {
					if(parseInt(row) >= 1 && parseInt(row) <= 11) {
						vfsFile += "UR1-11";
					} else if(parseInt(row) >= 12 && parseInt(row) <= 15) {
						vfsFile += "UR12-15";
					} else {
						//nothing here... yet
					}
				} else if(parseInt(section) == 222) {
					if(parseInt(row) >= 1 && parseInt(row) <= 15) {
						vfsFile += "UR1-15";
					} else {
						//nothing here... yet
					}
				} else { //normally named sections in the 200 level.
					if(parseInt(row) >= 1 && parseInt(row) <= 7) {
						vfsFile += "UR1-7";
					} else if(parseInt(row) >= 8 && parseInt(row) <= 11) {
						vfsFile += "UR8-11";
					} else if(parseInt(row) >= 12 && parseInt(row) <= 15) {
						vfsFile += "UR12-15";
					} else {
						//nothing here... yet
					}
				}
				
			} else if(section.substring(0,2) == "CC") { //CADILLAC GRILLE
				//CADILLAC GRILLE IS EASY, NO EXCEPTIONS AND ONLY ONE PICTURE FOR ALL ROWS
				vfsFile = "FL"+vfsFile;
				
			} else if(section.substring(0,2) == "CB" || section.substring(0,2) == "SB" || section.substring(0,2) == "PS") { //CLUB BOXES/SUPER BOXES/PREMIUM SUITES
				//CLUB BOXES ARE EASY, NO EXCEPTIONS AND ONLY ONE PICTURE FOR ALL ROWS
				//ALL PICTURES ARE NAMED ACCORDING TO SECTION
				vfsFile = "FL"+vfsFile;
			} else if(section == "BALSUI") {
				// BALCONY SUITES - section is always BALSUI, files are named BALSUI.gif
				vfsFile = "BALSUI";
			}
			
			var vfsFileFilter = "FLYERS-"+vfsFile;
		break;
		// END FLYERS
		
		
		case "sixers":
			
			//all sixers images start with "SI"
			vfsFile = "SI"+vfsFile;
			
			if(section.substring(0,1) == "1" && level == "RISERS") {  // Risers
				vfsFile += "R";
			} else if(section.substring(0,1) == "1") { //100 level
				if(parseInt(row) >= 1 && parseInt(row) <= 8) {
					vfsFile += "LR1-8";
				} else if(parseInt(row) >= 9 && parseInt(row) <= 16) {
					vfsFile += "LR9-16";
				} else if(parseInt(row) >= 17 && parseInt(row) <= 26) {
					vfsFile += "LR17-23";
				} else if(row == "AA") {
					vfsFile += "AA";
				} else if(row == "BB") {
					vfsFile += "BB";
				} else if(row == "CC") {
					vfsFile += "CC";
				} else {
					//nothing here... yet
				}
			} else if(section.substring(0,1) == "2") { //200 level
				if(parseInt(row) >= 1 && parseInt(row) <= 5) {
					vfsFile += "UR1-5";
				} else if(parseInt(row) >= 6 && parseInt(row) <= 10) {
					vfsFile += "UR6-10";
				} else if(parseInt(row) >= 11 && parseInt(row) <= 15) {
					vfsFile += "UR11-15";
				} else {
					//nothing here... yet
				}
			} 
			var vfsFileFilter = "SIXERS-"+vfsFile;
			
			//  INDIVIDUAL EXCLUSIONS
			if(vfsFile == "SI117R" || 
			   vfsFile == "SI118R" || 
			   vfsFile.substring(5,7) == "RR"
			   )
			{
				vfsFileFilter = "na";
				}
		break;
		// END SIXERS

	}
		
		//alert(vfsFileFilter);
		//sections to SHOW view from seat
		if(vfsFileFilter.substring(0,8) == "FLYERS-1" || // 100 level
		   vfsFileFilter.substring(0,8) == "FLYERS-2" || // 200 level
		   vfsFileFilter.substring(0,10) == "FLYERS-FL1" || // ice level
		   vfsFileFilter.substring(0,11) == "FLYERS-FLCB" || // flyers club boxes
		   vfsFileFilter.substring(0,11) == "FLYERS-FLSB" || // flyers super boxes
		   vfsFileFilter.substring(0,11) == "FLYERS-FLPS" || // flyers premium suites
		   vfsFileFilter.substring(0,11) == "FLYERS-FLCC" || // flyers cadillac grille
		   vfsFileFilter.substring(0,13) == "FLYERS-BALSUI" || // flyers balcony suites
		   vfsFileFilter.substring(0,10) == "SIXERS-SI1" || // sixers 100 level
		   vfsFileFilter.substring(0,10) == "SIXERS-SI2" // sixers 200 level
		   )
		{ //check to make sure that we only link to images that are known.
			document.write('/evenue/linkID=global-wachovia/images/vfs/'+team+'/'+size+'/'+vfsFile+'.gif');
		}
		else {  //if a section is defined, but we do not have an images for it
			document.write('/evenue/linkID=global-wachovia/images/wellsfargo_100.jpg');
		}
	} else { //if a section is not defined in the function call, print out the wells fargo logo.
		document.write('/evenue/linkID=global-wachovia/images/wellsfargo_100.jpg');
	}
}

// custom code new era - custom printCartTitle function to display map logo on each cart.
function printCartTitle(text, colspan, puet, section, row, level) {
		
		if(colspan == "") {
			colspan = 10;
		}
		switch(puet)
		{
		case "Flyers":
			if(section != "" && row != "" && level != "") {
				// custom code new era - display seating map thumb on every cart page
				document.write('<tr><td colspan="',colspan,'" class="cartbox"><div style="float:left; width:100%;"><div style="float:right"><a href="javascript:popBox(\'');
				showVfsPath(level, section, row, "600x400", "flyers");
				document.write('\', \'newWin\', 500, 400);"><img src="');
				showVfsPath(level, section, row, "150x100", "flyers");
				document.write('" border=0></a><br><div align=center><a href="javascript:popBox(\'');
				showVfsPath(level, section, row, "600x400", "flyers");
				document.write('\', \'newWin\', 500, 400);">view seat</a></div></div><div style="float:right"><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/flyers-2011.jpg\', \'newWin\', 500, 400);"><img src=/evenue/linkID=global-wachovia/images/maps/flyers-2011-sm.jpg border=0></a><br><div align=center><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/flyers-2011.jpg\', \'newWin\', 500, 400);">view map</a></div></div>',text,'</div></td></tr>');
			} else {
				// custom code new era - display seating map thumb on every cart page
				document.write('<tr><td colspan="',colspan,'" class="cartbox"><div style="float:left; width:100%;"><div style="float:right"><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/flyers-2011.jpg\', \'newWin\', 500, 400);"><img src=/evenue/linkID=global-wachovia/images/maps/flyers-2011-sm.jpg border=0></a><br><div align=center><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/flyers-2011.jpg\', \'newWin\', 500, 400);">view map</a></div></div>',text,'</div></td></tr>');
			}
		  	break;
		case "76ers":
			if(section != "" && row != "" && level != "") {
				// custom code new era - display seating map thumb on every cart page
				document.write('<tr><td colspan="',colspan,'" class="cartbox"><div style="float:left; width:100%;"><div style="float:right"><a href="javascript:popBox(\'');
				showVfsPath(level, section, row, "600x400", "sixers");
				document.write('\', \'newWin\', 500, 400);"><img src="');
				showVfsPath(level, section, row, "150x100", "sixers");
				document.write('" border=0></a><br><div align=center><a href="javascript:popBox(\'');
				showVfsPath(level, section, row, "600x400", "sixers");
				document.write('\', \'newWin\', 500, 400);">view seat</a></div></div><div style="float:right"><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/sixers_2011_large.gif\', \'newWin\', 500, 400);"><img src=/evenue/linkID=global-wachovia/images/maps/sixers_2011_mini.gif border=0></a><br><div align=center><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/sixers_2011_large.gif\', \'newWin\', 500, 400);">view map</a></div></div>',text,'</div></td></tr>');
			} else {
				// custom code new era - display seating map thumb on every cart page
				document.write('<tr><td colspan="',colspan,'" class="cartbox"><div style="float:left; width:100%;"><div style="float:right"><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/sixers_2011_large.gif\', \'newWin\', 500, 400);"><img src=/evenue/linkID=global-wachovia/images/maps/sixers_2011_mini.gif border=0></a><br><div align=center><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/sixers_2011_large.gif\', \'newWin\', 500, 400);">view map</a></div></div>',text,'</div></td></tr>');
			}
			
		  	break;
		case "Wings":
			document.write(
				// custom code new era - display seating map thumb on every cart page
				'<tr><td colspan="',colspan,'" class="cartbox"><div style="float:left; width:100%;"><div style="float:right"><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/wi2012.jpg\', \'newWin\', 500, 400);"><img src=/evenue/linkID=global-wachovia/images/maps/wi2012_logo.jpg border=0></a><br><div align=center><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/wi2012.jpg\', \'newWin\', 500, 400);">view map</a></div></div>',text,'</div>',
				'</td></tr>'
			);
		  	break;
		case "FlyersPackage":
			document.write(
				// custom code new era - display seating map thumb on every cart page
				'<tr><td colspan="',colspan,'" class="cartbox"><big><div style="float:left; width:100%;"><div style="float:right"><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/flyers-2011.jpg\', \'newWin\', 500, 400);"><img src=/evenue/linkID=global-wachovia/images/maps/flyers-2011-sm.jpg border=0></a><br><div align=center><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/flyers-2011.jpg\', \'newWin\', 500, 400);">view map</a></div></div>',text,'</big>'
			);
		  	break;
		case "76ersPackage":
			document.write(
				// custom code new era - display seating map thumb on every cart page
				'<tr><td colspan="',colspan,'" class="cartbox"><big><div style="float:left; width:100%;"><div style="float:right"><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/sixers_2011_large.gif\', \'newWin\', 500, 400);"><img src=/evenue/linkID=global-wachovia/images/maps/sixers_2011_mini.gif border=0></a><br><div align=center><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/sixers_2011_large.gif\', \'newWin\', 500, 400);">view map</a></div></div>',text,'</big>'
			);
		  	break;
		case "WingsPackage":
			document.write(
				// custom code new era - display seating map thumb on every cart page
				'<tr><td colspan="',colspan,'" class="cartbox"><big><div style="float:left; width:100%;"><div style="float:right"><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/wi2012.jpg\', \'newWin\', 500, 400);"><img src=/evenue/linkID=global-wachovia/images/maps/wi2012_logo.jpg border=0></a><br><div align=center><a href="javascript:popBox(\'/evenue/linkID=global-wachovia/images/maps/wi2012.jpg\', \'newWin\', 500, 400);">view map</a></div></div>',text,'</big>'
			);
		  	break;
		case "Package":
		  document.write(
					'<tr><td class="cartbox" colspan="',colspan,'" ><big><div style="float:left; width:100%;">', text ,'</big>'
				);
		  break;
		case "HideMap":
			document.write(
				'<tr><td colspan="',colspan,'" class="cartbox">',text,'</td></tr>'
			);
			break;
		default:
			document.write(
				'<tr><td colspan="',colspan,'" class="cartbox">',text,'</td></tr>'
			);
		}
	}

// prints head lines in cart & orderok pages
	function printTypeHead(text, colspan) {
		if(colspan == "") {
			colspan = 10;
		}
		document.write(
		//	'<tr><td colspan="',colspan,'">&nbsp;</td></tr>', // Custom Code New Era - Prevents Shopping Cart from lining up corrctly with Total Bar
			'<tr><td colspan="',colspan,'" class="sectionhead">',text,'</td></tr>'
		);
	}

// Opens search box on SE
	function launch() {
		remote = open(seWWWPath+"/datePicker.html", "child", "resizable,dependent=yes,width=400,height=400");
	}

// Works with launch function	for the datepicker
	function callBack(child, groupCode, timeDateFrom, timeDateTo) {
		document.dateForm.timeDateFrom.value = timeDateFrom;
		document.dateForm.timeDateTo.value = timeDateTo;
		document.dateForm.groupCode.value = groupCode;
		child.close();
		document.dateForm.submit();
	}
	
// Validates email address with the following rules:
// 1. One or more characters before the "@"
// 2. An optional "[", because user@[255.255.255.0] is a valid e-mail
// 3. A sequence of letters, numbers, and periods, which are all valid domain or IP address characters
// 4. A period followed by a 2-3 letter suffix
// 5. An optional "]"

	function emailValidate(email) {

		var str = email.value; // email string
  
		var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
		var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,4})(\]?)$/; // valid

		if (!reg1.test(str) && reg2.test(str)) { // if syntax is valid
			return true;
		}

		window.status = "Please enter a valid Internet e-mail address";

		email.focus();
		email.select();

		return false;
	}

// validates account number
	function accntValidate(account) {
		var pe = /[0-9]/;
		var val = account.value;

		if(!(val.match(pe)) ) {
			window.status = "Please enter a valid e-mail address or account number";
			account.select();
			account.focus();
			return false;
		}
		return true;
	}

// CUSTOM CODE NEW ERA - Validates password is not empty
	function passwordValidate(password) {
		//white space check
		if (password.value.match(/[\s]/)) {
			alert("Sorry, passwords may not contain spaces or tabs.");
			return false;
		}
		//slashes check
		if (password.value.match(/[\\\/]/)) {
			alert("Sorry, passwords may not contain slashes or backslashes.");
			return false;
		}
		return true;
	}

// CUSTOM - Validates password length
	function passwordLengthValidate(password) {
		if(password.length >= 4 && password.length <= 12) {
			return true;
		}
		return false;
	}
	
// CUSTOM - Validates First Name - only alpha characters and dashes.  ex: "Billy-Bob" is an acceptable name.
	function firstNameValidate(fname) {
		if (fname.match(/^[\sa-zA-Z-]+$/)) {
			return true;
		}
		return false;
	}

// CUSTOM - Validates Last Name - Only alpha characters and dashes
	function lastNameValidate(lname) {
		if (lname.match(/^[\sa-zA-Z-]+$/)) {
			return true;
		}
		return false;
	}

// CUSTOM - Validates United States Zip Code - Either 10 xxxxx-xxxx or xxxxx format
	function usaZipValidate(zip) {
		if (zip.length >= 5 && zip.length <= 10){
			return true;
		}
		return false;
	}
	
// CUSTOM - Validates US Phone Number - 10 digits only
	function phoneValidate (phone) {
		re  = /[^0-9]/g;
		phoneClean = phone.replace(re, ""); // take out non integers
		
		if(phoneClean.length != 10) {
			return false;
		}
		return true;
	}
	
// CUSTOM - Formats and returns US Phone number - 10 digits only
	function getPhoneFormatted(phone) {
		re  = /[^0-9]/g;
		phoneClean = phone.replace(re, ""); // take out non integers
		return "("+phoneClean.substring(0,3)+") "+phoneClean.substring(3,6)+"-"+phoneClean.substring(6,10);
	}
// END CUSTOM CODE NEW ERA


// Centered Pop Up Box
	function popBox(href, name, w, h) {
		if(typeof(name)=="undefined") 	name ="evenue";
		if(typeof(w)=="undefined") 		w=700;
		if(typeof(h)=="undefined") 		h=480;
		
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes';
		win = window.open(href, name, winprops);
		if (parseInt(navigator.appVersion) >= 4) {
			win.window.focus();
		}
	}
	
	/* function popBox(loc) {
		window.open(loc, 'evenue', 'scrollbars=yes,resizable=yes,width=640,height=480');
	} */

// Disables enter button in input boxes
	function disableEnter(fld) {
		var key = (window.event) ? event.keyCode : (key == 0);
		if(key == 13) {
			return false;
		}
		return true;
	}

// formats the phone number into the following format: (XXX)XXX-XXXX
	function phoneFormat(field) {
		re  = /[^0-9]/g;
		val = field.value.replace(re, ""); // take out non integers

		if(!val.match(/^[2-9]\d{9}$/)) {
			window.status = "Please enter a valid 10 digit phone number";
			return false;
		}

		field.value = "(" + val.substr(0, 3) + ")" + val.substr(3, 3) + "-" + val.substr(6, 4);

		return true;
	}

// Changes first letter of all strings in an input field to Uppercase
	function changeCase(field) {
		var fstring;
		var tmpChar;
		var preString;
		var postString;
		var flength;
		fstring = field.value.toLowerCase();
		flength = fstring.length;
		if (flength > 0) {
			for (s = 0; s < flength; s++) {
				if (s == 0)  {
					tmpChar = fstring.substring(0,1).toUpperCase();
					postString = fstring.substring(1,flength);
					fstring = tmpChar + postString;
				} else {
					tmpChar = fstring.substring(s, s+1);
					if (tmpChar == " " && s < (flength-1)) {
						tmpChar = fstring.substring(s+1, s+2).toUpperCase();
						preString = fstring.substring(0, s+1);
						postString = fstring.substring(s+2,flength);
						fstring = preString + tmpChar + postString;
					}
				}
			}
		}
		field.value = fstring;
	}

// address labels & states
//Default state code.
	var defaultStCode = "";
//Default country code.
	var defaultCnCode = "";

// Array for State code and state name
	var stCodes = new Array(
		"AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL",
		"GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME",
		"MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH",
		"NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "PR",
		"RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV",
		"WI", "WY",
		"-",
		"AB", "BC", "LB", "MB", "NB", 
		"NF", "NS", "NT", "ON", "PE",
		"QC", "SK", "YT",
		"-", "N/A"
	);

	var stNames = new Array(
		"Alabama", "Alaska", "Arizona", "Arkansas", "California",
		"Colorado", "Connecticut", "Delaware", "District of Columbia", "Florida",
		"Georgia", "Hawaii", "Idaho", "Illinois", "Indiana",
		"Iowa", "Kansas", "Kentucky", "Louisiana", "Maine",
		"Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi",
		"Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire",
		"New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota",
		"Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Puerto Rico",
		"Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas",
		"Utah", "Vermont", "Virginia", "Washington", "West Virginia",
		"Wisconsin", "Wyoming",
		"-------------",
		"Alberta", "British Columbia", "Labrador", "Manitoba", "New Brunswick",
		"Newfoundland", "Nova Scotia", "Northwest Territories", "Ontario", "Prince Edward Island",
		"Quebec", "Saskatchewan", "Yukon Territory",
		"-------------", "NOT APPLICABLE"
	);


// Array for Country code and country name
	var cnCodes = new Array(
		"US", "AL",
		"DZ", "AD", "AO", "AR", "AM", "AW",
		"AU", "AT", "AZ", "PT", "BS", "BH",
		"BD", "BB", "BY", "BE", "BZ", "BJ",
		"BM", "BT", "BO", "BA", "BW", "BR",
		"BN", "BG", "BF", "BI", "KH", "CM",
		"CA", "CV", "KY", "CF", "TS", "CL",
		"CN", "CO", "ZR", "CG", "FR", "CR",
		"CI", "HR", "CY", "CZ", "DK", "DJ",
		"DO", "EC", "EG", "SV", "GQ", "ER",
		"EE", "ET", "DK", "FJ", "FI", "FR",
		"GF", "PF", "GA", "GE", "DE", "GH",
		"GB", "GR", "GD", "GP", "GT",
		"GN", "GW", "GY", "HT", "HN", "HK",
		"HU", "IS", "IN", "ID", "IQ", "IE",
		"IL", "IT", "JM", "JP", "JO", "KG",
		"KE", "KR", "KW", "KG", "LA", "LV",
		"LS", "LR", "LI", "LT", "LU", "MO",
		"MK", "MG", "PT", "MW", "MY", "MV",
		"ML", "MT", "MQ", "MR", "MU", "MX",
		"MD", "MN", "MA", "MZ", "NA", "NR",
		"NP", "NL", "AN", "NC", "NZ", "NI",
		"NE", "NG", "NO", "OM", "PK", "PA",
		"PG", "PY", "PE", "PH", "PL", "PT",
		"QA", "RO", "RU", "RW", "KN", "LC",
		"VC", "SA", "SN", "YU", "SC", "SL",
		"SG", "SK", "SI", "SB", "SO", "ZA",
		"ES", "LK", "SD", "SZ", "SE", "SZ",
		"SY", "TW", "TJ", "TZ", "TH", "TG",
		"TT", "TN", "TR", "TM", "UG",
		"UA", "AE", "UY", "VU", "VE",
		"VN", "WS", "YE"
	);

	var cnNames = new Array(
		"United States of America", "Albania", 
		"Algeria", "Andorra", "Angola", "Argentina", "Armenia", "Aruba", 
		"Australia", "Austria", "Azerbaijan", "Azores", "Bahamas", "Bahrain", 
		"Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", 
		"Bermuda", "Bhutan", "Bolivia", "Bosna-Herzegovina", "Botswana", "Brazil", 
		"Brunei Darussalam", "Bulgaria", "Burkina FASO", "Burundi", "Cambodia", "Cameroon", 
		"Canada", "Cape Verde", "Cayman Islands", "Cntl African Republic", "Chad", "Chile", 
		"China", "Columbia", "Democratic Republic of Congo", "Republic of the Congo (Brazaville)", "Corsica", "Costa Rica", 
		"Cote d&#39;Ivoire (Ivory Coast)", "Croatia", "Cyprus", "Czech Republic", "Denmark", "Djibouti", 
		"Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", 
		"Estonia", "Ethiopia", "Faroe Islands", "Fiji", "Finland", "France", 
		"French Guiana", "French Polynesia (Tahitti)", "Gabon", "Georgia, Republic of", "Germany", "Ghana", 
		"Great Britain & Northern Ireland", "Greece", "Grenada", "Guadeloupe", "Guatemala", 
		"Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hong Kong", 
		"Hungary", "Iceland", "India", "Indonesia", "Iraq", "Ireland (Eire)", 
		"Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", 
		"Kenya", "South Korea, Republic of", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", 
		"Lesotho", "Liberia", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", 
		"Macedonia, Republic of", "Madagascar", "Madeira Islands", "Malawi", "Malaysia", "Maldives ", 
		"Mali", "Malta", "Martinique", "Mauritania", "Mauritius", "Mexico", 
		"Moldova", "Mongolia", "Morocco", "Mozambique", "Namibia", "Nauru", 
		"Nepal", "Netherlands (Holland)", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", 
		"Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Panama", 
		"Papua New Guinea", "Paraguay", "Peru", "Phillipines", "Poland", "Portugal", 
		"Qatar", "Romania", "Russia (Russia Federation)", "Rwanda", "St. Christopher (St. Kitts) and Nevis", "St. Lucia", 
		"St. Vincent and the Grenadines", "Saudi Arabia", "Senegal", "Serbia Montenegro (Yugoslavia)", "Seychelles", "Sierra Leone", 
		"Singapore", "Slovak Republic (Slovakia)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", 
		"Spain", "Sri Lanka ", "Sudan", "Swaziland", "Sweden", "Switzerland", 
		"Syrian Arab Republic", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", 
		"Trinidad & Tobago", "Tunisia", "Turkey", "Turkmenistan", "Uganda", 
		"Ukraine", "United Arab Emirates", "Uruguay", "Vanuatu", "Venezuela", 
		"Vietnam", "Western Samoa", "Yemen"
	);

	if(useCanadianProvince) {
		var stateAddrLabel = "Province/State";
		var zipAddrLabel = "Postal/Zip Code";
	} else {
		var stateAddrLabel = "State";
		var zipAddrLabel = "Zip Code";
	}

	function getStateLabel() {
		return stateAddrLabel;
	}

	function getZipCodeLabel() {
		return zipAddrLabel;
	}

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
// all site specific functions go here
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
	function imgOn(img) {
		document[img].src = imageWWWPath+"/menu-on.gif";
	}
	function imgOff(img) {
		document[img].src = imageWWWPath+"/menu-off.gif";
	}

// hidden dates
	var hiddenDates = new Array(
	//	"New Jersey Symphony - Marvin Hamlisch At The Movies"
	);

	function isHiddenDate(event, date) {
		if(date!="" && (date.getFullYear() == "2099" || date.getFullYear() == "2025")) // custom code new era - hidden date of 2025 for flyers flr1ice promo.
			return true;
		
		event = stripHTML(event);
		for(var hdi=0; hdi < hiddenDates.length; hdi++) {
			if(hiddenDates[hdi].toUpperCase() == event.toUpperCase()) {
				return true;
			}
		}
		return false;
	}

// get variables from query string
	function getQueryVariable(variable) {
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (var i=0;i<vars.length;i++) {
			var pair = vars[i].split("=");
			if (pair[0] == variable) {
				return pair[1];
			}
		} 
		return "";
	}

// ASAT: new era - returns true or false on when to show the seat maps based off of season code
function showMapTable(eventCode) {
	// Show Map Table Exception list based on event code and/or promo code
	if (eventCode=="PR:WACH:FL2009P:LX10R4G1:FLR4LEXUS" || eventCode=="PR:WACH:FL2009P:LX10R4G2:FLR4LEXUS" || eventCode=="PR:WACH:FL2009P:LX10R4G3:FLR4LEXUS" || eventCode=="PR:WACH:FL2009P:R4MERCH:FLR4MERCH" || eventCode=="PR:WACH:FL2010:EX100921:FLEX100921" || eventCode=="PR:WACH:FL2010:BBQ100907:FLEARLY") { return false; }
	var eventCodeFilter = eventCode.split(":");
	if (eventCodeFilter[3].substr(0,3)=="PRK") {
		return false;
	} else {
		switch(eventCodeFilter[2].substr(0,2)) {
			case "SI":
				if (eventCodeFilter[3]=="PM") return false;
				if (eventCodeFilter[3]=="VIP") return false;
				if (eventCodeFilter[3]=="CGPPSP") return false;
				if (eventCodeFilter[3]=="CGPPSP1") return false;
				if (eventCodeFilter[3]=="CGSP") return false;
				if (eventCodeFilter[3]=="CGSP1") return false;
				if (eventCodeFilter[3]=="PP") return false;
				if (eventCodeFilter[3]=="PPS") return false;
				if (eventCodeFilter[3]=="SIXERS") return false;
				if (eventCodeFilter[3]=="LEXUS") return false;
				if (eventCodeFilter[3]=="PPSP20") return false;
				if (eventCodeFilter[3]=="PPSP10") return false;
				return true;
				break;
			case "FL":
				if (eventCodeFilter[4]=="PREM") return false;
				return true;
				break;
			case "PH":
				return true;
				break;
			case "KI":
				return true;
				break;
			case "WI":
				return true;
				break;
			case "SO":
				return true;
				break;
			default:
				return false;
				break;
		}
	}
}

function showMapTablePKG(packageCode) {
	var packageCodeFilter = packageCode.split(":");
	if (packageCodeFilter[3].substr(0,3)=="PRK") {
		return false;
	} 
	else if(packageCode == "GS:WACH::FLJRFLY:" || packageCode == "ST:WACH::FLEBIRD10:S10"|| packageCode == "ST:WACH::FLEBIRD10B:S11" || packageCode == "GS:WACH::FLBDDP10:" || packageCode == "GS:WACH::FLBDSG10:") {
		return false;
	}else {
		switch(packageCodeFilter[3].substr(0,2)) {
			case "SI":
				if (packageCodeFilter[3]=="PM") return false;
				return true;
				break;
			case "FL":
				return true;
				break;
			case "WI":
				return true;
				break;
			default:
				return false;
				break;
		}
	}
}

// ASAT: new era - show maps on displayeventinfo
function displayMap(eventCode, show) {
	var mapfile = "";
	var sm_mapfile = "";
						
	var eventCodeFilter = eventCode.split(":");
	switch(eventCodeFilter[2].substr(0,2)) {
		case "SI":
				mapfile = "sixers_2011_large.gif";
				sm_mapfile = "sixers_2011.gif";
			break;
		case "FL":
			if (eventCodeFilter[3]=="SPEC" || eventCodeFilter[3]=="FL081007") {
				mapfile = "flyersSpectrumMap.gif";
				sm_mapfile = "flyersSpectrumMap_sm.gif";
			} else if (eventCodeFilter[3]=="FS"){
				mapfile = "flyers-2011.jpg";
				sm_mapfile = "flyers-3d-sm.jpg";
			} else if (eventCodeFilter[4]=="10PARK"){
				mapfile = "flyers_parking_2010.jpg";  // insert this row after Wachovia changes to Wells Fargo
				sm_mapfile = "flyers_parking_2010.jpg";  // insert this row after Wachovia changes to Wells Fargo
			} else if (eventCodeFilter[2]=="FL2010P") {
				mapfile = "flyers-3d-po.jpg";
				sm_mapfile = "flyers-3d-sm-po.jpg";
			} else if(eventCodeFilter[2]=="FL2010") {
				mapfile = "flyers-2011.jpg";
				sm_mapfile = "flyers-3d-sm.jpg";
			} else {
				mapfile = "";
				sm_mapfile = "";
			}
			break;
		case "WI":
			mapfile = "wi2012.jpg";
			sm_mapfile = "wi2012.jpg";
			break;
		case "SO":
			mapfile = "soulCenterMap.jpg";
			sm_mapfile = "soulCenterMapSm.jpg";
			break;
		default:
			mapfile = "spacer.gif";
			sm_mapfile = "spacer.gif";
			break;
	}
	
	// CUSTOM CODE NEW ERA - SHOW NONCLICKABLE VIEW FROM SEAT MAP FOR PACKAGES - PART 3 OF 3
	
	var showNonClickVFS = false;
	var mapType = "";
	// FLYERS
	if(eventCodeFilter[2].indexOf("FL") == 0) {
		var showNonClickVFS = true;
		var mapType = "flyersStandard";
	}
	//SIXERS
	if(eventCodeFilter[2].indexOf("SI") == 0) {
		var showNonClickVFS = true;
		var mapType = "sixersStandard";
	}
	//WINGS
	//CONCERTS
	//SOUL
	
	/*
	if(showNonClickVFS) {
		if (show=="link") {
			document.write('<br><a href="javascript:popBox(\'', imageWWWPath, '/maps/', mapfile, '\', \'name\', \'700\', \'354\')">Click here to see a larger image</a>');	
		} else {
			document.write('<img usemap="#',mapType,'Map" src="', imageWWWPath, '/maps/', sm_mapfile, '" border="0"><br><a href="javascript:popBox(\'', imageWWWPath, '/maps/', mapfile, '\', \'name\', \'700\', \'354\')">Click here to see a larger image</a>');	
		}
	} else {
		if (show=="link") {
			document.write('<br><a href="javascript:popBox(\'', imageWWWPath, '/maps/', mapfile, '\', \'name\', \'700\', \'354\')">Click here to see a larger image</a>');	
		} else {
			document.write('<img src="', imageWWWPath, '/maps/', sm_mapfile, '" border="0"><br><a href="javascript:popBox(\'', imageWWWPath, '/maps/', mapfile, '\', \'name\', \'700\', \'354\')">Click here to see a larger image</a>');	
		}
	}
	*/
}
	



// display map on package page, looks at first 2 characters of package code
function displayMapPKG(packageCode, show) {
	var mapfile = "";
	var sm_mapfile = "";
						
	var packageCodeFilter = packageCode.split(":");
	switch(packageCodeFilter[3].substr(0,2)) {
		case "SI":
			if (packageCodeFilter[3]=="SI2010.FVP.F8CC") {
				mapfile = "sixers_map_value.gif";
				sm_mapfile = "sixers_map_value_sm.gif";
			} else {
				mapfile = "sixers_2011_large.gif";
				sm_mapfile = "sixers_2011.gif";
			}
			break;
		case "FL":
			mapfile = "flyers-2011.jpg";
			sm_mapfile = "flyers-3d-sm.jpg";
			break;
		case "WI":
			mapfile = "wi2012.jpg";
			sm_mapfile = "wi2012.jpg";
			break;
		default:
			mapfile = "spacer.gif";
			sm_mapfile = "spacer.gif";
			break;
	}
	
	// CUSTOM CODE NEW ERA - FIX BON JOVI WILD PACKAGE SO IT DOES NOT MATCH THE WINGS MAP CRITERIA.
	if(packageCodeFilter[3]=="WILD" || packageCodeFilter[3]=="SILVER") {
		mapfile = "spacer.gif";
		sm_mapfile = "spacer.gif";
	}
	//END CUSTOM CODE NEW ERA
	
	// CUSTOM CODE NEW ERA - SHOW NONCLICKABLE VIEW FROM SEAT MAP FOR PACKAGES - PART 3 OF 3
	
	var showNonClickVFS = false;
	var mapType = "";
	// FLYERS
	if(packageCodeFilter[3].indexOf("FL") == 0) {
		var showNonClickVFS = true;
		var mapType = "flyersStandard";
	}
	//SIXERS
	if(packageCodeFilter[3].indexOf("SI") == 0) {
		var showNonClickVFS = true;
		var mapType = "sixersStandard";
	}
	//WINGS
	//CONCERTS
	//SOUL
	
	if(showNonClickVFS) {
		if (show=="link") {
			//document.write('<br><a href="javascript:popBox(\'', imageWWWPath, '/maps/', mapfile, '\', \'name\', \'650\', \'558\')">Click here to see a larger image</a>');	
		} else if (show=="mapOnly") {
			document.write('<img usemap="#',mapType,'Map" src="', imageWWWPath, '/maps/', sm_mapfile, '" border="0"><br>');
		} else {
			//document.write('<img usemap="#',mapType,'Map" src="', imageWWWPath, '/maps/', sm_mapfile, '" border="0" width="400" height="335"><br><a href="javascript:popBox(\'', imageWWWPath, '/maps/', mapfile, '\', \'name\', \'650\', \'558\')">Click here to see a larger image</a>');	
		}
	} else {
		if (show=="link") {
			//document.write('<br><a href="javascript:popBox(\'', imageWWWPath, '/maps/', mapfile, '\', \'name\', \'650\', \'558\')">Click here to see a larger image</a>');	
		} else if (show=="mapOnly") {
			document.write('<img src="', imageWWWPath, '/maps/', sm_mapfile, '" border="0"><br>');
		} else {
			//document.write('<img src="', imageWWWPath, '/maps/', sm_mapfile, '" border="0" width="400" height="335"><br><a href="javascript:popBox(\'', imageWWWPath, '/maps/', mapfile, '\', \'name\', \'650\', \'558\')">Click here to see a larger image</a>');	
		}
	}
	// END CUSTOM CODE NEW ERA - SHOW NONCLICKABLE VIEW FROM SEAT MAP FOR PACKAGES - PART 3 OF 3
}

// print "view seating map" link - used in cartdisplay.html
// ASAT: new era - view seat map link - part 2 of 2
function printSeatMap(itemGroup) {
	var seatMapPage = "";
	// color array (used in conjunction with printColor function)
	switch(itemGroup) {
		case "SIXERS": case "SIXERSSIN": case "76NS": case "76DS": case "76JS": case "76FS": case "76MS": case "76AS": case "SIXERPLAN": case "SR1G1": case "SR1G2": case "SIPLAYOFFS":
			seatMapPage = "sixers-seating.html";
			break;
		case "FLY-IND":
			seatMapPage = "flyers-seating.html"
			break;
		case "WINGS-IND":
			seatMapPage = "wings-seating.html"
			break;
		default:
			seatMapPage = "";
			break;
	}
	
	var mapHref = "";

	if(seatMapPage != "") {
		 mapHref = '<a href="'+seWWWPath+'/'+seatMapPage+'" target="_blank">view seat map</a>';
	}
	return(mapHref);
}

// ASAT: New Era - Parking exception list

function checkParkingDate(eventHold) {
	var eventDate = new Date(eventHold);
	var testDate = new Date(eventHold);
	testDate.setDate(testDate.getDate()-5);
	var today = new Date();

	if (Date.parse(today)>Date.parse(testDate)) {
		//document.write("Don't show parking " + today + " " + testDate);
		return false;
	} else {
		//document.write("Show parking " + today + " " + testDate);
		return true;
	}
}

//Custom Code New Era - Function to print stored value tickets by event code.
function displayStoredValue(code, svLink) {
	//Flyers stored value.
	var flyersStoredValueCodes = "11ORN|11WKE|11PP|11HOF|11ORND|11WKED|10HOF";
	if(flyersStoredValueCodes.indexOf(code) >= 0) {
		document.write("<a href='"+svLink+"'><img src='"+imageWWWPath+"/logos/sv.gif' alt='Stored Value'>&nbsp;<strong style='vertical-align:30px;'>Add Stored Value Tickets!</strong></a>");
	}
}

function checkParking(evCode) {
	if (evCode.substr(0,3)=="PRK") {
		return false;
	} else { 
		// Add events to exception list that shouldn't show parking
		var exception_list = "3JOY|3CHEER|3SNOW|11BLK|11ORN|11WKE|11PP|11HOF|10PARK|FLEX100921|BBQ100907|11ORND|11WKED|10HOF";
		if (exception_list.indexOf(evCode)>-1) { return false; }
	}
	return true;
}

// ASAT: - New Era: Hide Prices and Fees based on Package Code on displayPackageReservation page
function hidePrices(pkgCode, lineTot) {
	var price = "";
	// This code is to handle all of the Flyer's birthday packages
	if(pkgCode.substr(0,15)=="GS:WACH::FLBDAE" || pkgCode.substr(0,15)=="GS:WACH::FLBDCL") { return "&nbsp;"; }
	if (pkgCode.substr(0,18)=="GS:WACH::SI2010.FS") { return "&nbsp;"; }
	
	switch(pkgCode) {
		case "GS:WACH::PBDAY1011:": case "GS:WACH::PBDAY0108:": case "GS:WACH::PBDAY0110:": case "GS:WACH::PBDAY0113:": case "GS:WACH::PBDAY0121:": case "GS:WACH::PBDAY0204:": case "GS:WACH::PBDAY0212:": case "GS:WACH::PBDAY0214:": case "GS:WACH::PBDAY0219:": case "GS:WACH::PBDAY0221:": case "GS:WACH::PBDAY0225:": case "GS:WACH::PBDAY0227:": case "GS:WACH::PBDAY0305:": case "GS:WACH::PBDAY0307:": case "GS:WACH::PBDAY0310:": case "GS:WACH::PBDAY0312:": case "GS:WACH::PBDAY0314:": case "GS:WACH::PBDAY0323:": case "GS:WACH::PBDAY0326:": case "GS:WACH::PBDAY0329:": case "GS:WACH::PBDAY0403:": case "GS:WACH::PBDAY0407:": case "GS:WACH::PBDAY0412:": case "GS:WACH::PBDAY1013:": case "GS:WACH::PBDAY1022:": case "GS:WACH::PBDAY1025:": case "GS:WACH::PBDAY1030:": case "GS:WACH::PBDAY1102:": case "GS:WACH::PBDAY1108:": case "GS:WACH::PBDAY1116:": case "GS:WACH::PBDAY1122:": case "GS:WACH::PBDAY1124:": case "GS:WACH::PBDAY1128:": case "GS:WACH::PBDAY1202:": case "GS:WACH::PBDAY1204:": case "GS:WACH::PBDAY1209:": case "GS:WACH::PBDAY1211:": case "GS:WACH::PBDAY1213:": case "GS:WACH::PBDAY1216:": case "GS:WACH::PBDAY1220:": case "GS:WACH::PBDAY1223:":
			// Premium Birthday Delivery Packages
			price = "$435.00";
			break;
		case "GS:WACH::ABDAY1011:": case "GS:WACH::ABDAY0108:": case "GS:WACH::ABDAY0110:": case "GS:WACH::ABDAY0113:": case "GS:WACH::ABDAY0121:": case "GS:WACH::ABDAY0204:": case "GS:WACH::ABDAY0212:": case "GS:WACH::ABDAY0214:": case "GS:WACH::ABDAY0219:": case "GS:WACH::ABDAY0221:": case "GS:WACH::ABDAY0225:": case "GS:WACH::ABDAY0227:": case "GS:WACH::ABDAY0305:": case "GS:WACH::ABDAY0307:": case "GS:WACH::ABDAY0310:": case "GS:WACH::ABDAY0312:": case "GS:WACH::ABDAY0314:": case "GS:WACH::ABDAY0323:": case "GS:WACH::ABDAY0326:": case "GS:WACH::ABDAY0329:": case "GS:WACH::ABDAY0403:": case "GS:WACH::ABDAY0407:": case "GS:WACH::ABDAY0412:": case "GS:WACH::ABDAY1013:": case "GS:WACH::ABDAY1022:": case "GS:WACH::ABDAY1025:": case "GS:WACH::ABDAY1030:": case "GS:WACH::ABDAY1102:": case "GS:WACH::ABDAY1108:": case "GS:WACH::ABDAY1116:": case "GS:WACH::ABDAY1122:": case "GS:WACH::ABDAY1124:": case "GS:WACH::ABDAY1128:": case "GS:WACH::ABDAY1202:": case "GS:WACH::ABDAY1204:": case "GS:WACH::ABDAY1209:": case "GS:WACH::ABDAY1211:": case "GS:WACH::ABDAY1213:": case "GS:WACH::ABDAY1216:": case "GS:WACH::ABDAY1220:": case "GS:WACH::ABDAY1223:":
			// All You Can Eat Birthday Delivery Packages
			price = "$260.00";
			break;
		case "GS:WACH::NP090108:": case "GS:WACH::NP090110:": case "GS:WACH::NP090113:": case "GS:WACH::NP090121:": case "GS:WACH::NP090204:": case "GS:WACH::NP090212:": case "GS:WACH::NP090214:": case "GS:WACH::NP090219:": case "GS:WACH::NP090221:": case "GS:WACH::NP090225:": case "GS:WACH::NP090227:": case "GS:WACH::NP090305:": case "GS:WACH::NP090307:": case "GS:WACH::NP090310:": case "GS:WACH::NP090312:": case "GS:WACH::NP090314:": case "GS:WACH::NP090323:": case "GS:WACH::NP090326:": case "GS:WACH::NP090329:": case "GS:WACH::NP090403:": case "GS:WACH::NP090407:": case "GS:WACH::NP090412:":
			// Flyers North Pole Packages
			price = "$125.00";
			break;
		case "GS:WACH::SW090108:": case "GS:WACH::SW090110:": case "GS:WACH::SW090113:": case "GS:WACH::SW090121:": case "GS:WACH::SW090204:": case "GS:WACH::SW090212:": case "GS:WACH::SW090214:": case "GS:WACH::SW090219:": case "GS:WACH::SW090221:": case "GS:WACH::SW090225:": case "GS:WACH::SW090227:": case "GS:WACH::SW090305:": case "GS:WACH::SW090307:": case "GS:WACH::SW090310:": case "GS:WACH::SW090312:": case "GS:WACH::SW090314:": case "GS:WACH::SW090323:": case "GS:WACH::SW090326:": case "GS:WACH::SW090329:": case "GS:WACH::SW090403:": case "GS:WACH::SW090407:": case "GS:WACH::SW090412:":
			// Flyers Santa's Workshop Packages
			price = "$150.00";
			break;
		case "GS:WACH::FLSSNP:": case"GS:WACH::FLSSHP:": case "GS:WACH::FLSSDP2:": case "GS:WACH::FLSSSR:": case "GS:WACH::FLSSSW:": case "GS:WACH::FLSSNP:": case "GS:WACH::FLSSJB:": case "GS:WACH::FLSSHPHK:": case "GS:WACH::FLSSDPHK:": case "GS:WACH::FLSSNPHK:": case "GS:WACH::FLSSSRHK:": case "GS:WACH::FLSSSWHK:": case "GS:WACH::FLSTPATTY:": case "GS:WACH::FLVDAY:": case "GS:WACH::FL3GAME:":
			// Flyers Santa's Workshop Packages 2009-10
			// Flyers Valentines Day and St. Patty's Day
			// Flyers  3 game package
			// Show no price
			price = "&nbsp;";
			break;
		case "GS:WACH::AYCE090108:": case "GS:WACH::AYCE090110:": case "GS:WACH::AYCE090113:": case "GS:WACH::AYCE090121:": case "GS:WACH::AYCE090204:": case "GS:WACH::AYCE090212:": case "GS:WACH::AYCE090214:": case "GS:WACH::AYCE090219:": case "GS:WACH::AYCE090221:": case "GS:WACH::AYCE090225:": case "GS:WACH::AYCE090227:": case "GS:WACH::AYCE090305:": case "GS:WACH::AYCE090307:": case "GS:WACH::AYCE090310:": case "GS:WACH::AYCE090312:": case "GS:WACH::AYCE090314:": case "GS:WACH::AYCE090323:": case "GS:WACH::AYCE090326:": case "GS:WACH::AYCE090329:": case "GS:WACH::AYCE090403:": case "GS:WACH::AYCE090407:": case "GS:WACH::AYCE090412:":
			// Flyers All You Can Eat Packages
			price = "$185.00";
			break;
		case "GS:WACH::HOL090108:": case "GS:WACH::HOL090110:": case "GS:WACH::HOL090113:": case "GS:WACH::HOL090121:": case "GS:WACH::HOL090204:": case "GS:WACH::HOL090212:": case "GS:WACH::HOL090214:": case "GS:WACH::HOL090219:": case "GS:WACH::HOL090221:": case "GS:WACH::HOL090225:": case "GS:WACH::HOL090227:": case "GS:WACH::HOL090305:": case "GS:WACH::HOL090307:": case "GS:WACH::HOL090310:": case "GS:WACH::HOL090312:": case "GS:WACH::HOL090314:": case "GS:WACH::HOL090323:": case "GS:WACH::HOL090326:": case "GS:WACH::HOL090329:": case "GS:WACH::HOL090403:": case "GS:WACH::HOL090407:": case "GS:WACH::HOL090412:":
			// Flyers Holiday Packages
			price = "$230.00";
			break;
		case "GS:WACH::SR090108:": case "GS:WACH::SR090110:": case "GS:WACH::SR090113:": case "GS:WACH::SR090121:": case "GS:WACH::SR090204:": case "GS:WACH::SR090212:": case "GS:WACH::SR090214:": case "GS:WACH::SR090219:": case "GS:WACH::SR090221:": case "GS:WACH::SR090225:": case "GS:WACH::SR090227:": case "GS:WACH::SR090305:": case "GS:WACH::SR090307:": case "GS:WACH::SR090310:": case "GS:WACH::SR090312:": case "GS:WACH::SR090314:": case "GS:WACH::SR090323:": case "GS:WACH::SR090326:": case "GS:WACH::SR090329:": case "GS:WACH::SR090403:": case "GS:WACH::SR090407:": case "GS:WACH::SR090412:":
			// Flyers Sleigh Ride Packages
			price = "$260.00";
			break;
		case "GS:WACH::DEL090108:": case "GS:WACH::DEL090110:": case "GS:WACH::DEL090113:": case "GS:WACH::DEL090121:": case "GS:WACH::DEL090204:": case "GS:WACH::DEL090212:": case "GS:WACH::DEL090214:": case "GS:WACH::DEL090219:": case "GS:WACH::DEL090221:": case "GS:WACH::DEL090225:": case "GS:WACH::DEL090227:": case "GS:WACH::DEL090305:": case "GS:WACH::DEL090307:": case "GS:WACH::DEL090310:": case "GS:WACH::DEL090312:": case "GS:WACH::DEL090314:": case "GS:WACH::DEL090323:": case "GS:WACH::DEL090326:": case "GS:WACH::DEL090329:": case "GS:WACH::DEL090403:": case "GS:WACH::DEL090407:": case "GS:WACH::DEL090412:":
			// Flyers Deluxe Packages
			price = "$500.00";
			break;
		case "GS:WT::WTTTT:":
			price = "$150.00";
			break;  
		/*case "GS:WACH::SW090108:":
			price = "$168.30";
			break;*/
		case "GS:WACH::LEX11:": case "GS:WACH::LEX12:": case "GS:WACH::LEX13:": case "GS:WACH::LEX14:": case "GS:WACH::LEX15:": case "GS:WACH::LEX16:": case "GS:WACH::LEX17:": case "GS:WACH::LEX18:": case "GS:WACH::LEX19:": case "GS:WACH::LEX20:": case "GS:WACH::LEX21:": case "GS:WACH::LEX22:": case "GS:WACH::LEX23:": case "GS:WACH::LEX24:": case "GS:WACH::LEX25:": case "GS:WACH::LEX26:": case "GS:WACH::LEX27:": case "GS:WACH::LEX28:": case "GS:WACH::LEX29:": case "GS:WACH::LEX30:": case "GS:WACH::LEX31:": case "GS:WACH::LEX32:": case "GS:WACH::LEX33:": case "GS:WACH::LEX3:":  // Lexus Packs
			if(lineTot == "98.70"){
				price = "146.00|LOWER";
			}
			if(lineTot == "55.45"){
				price = "104.50|MEZZ1";
			}
			if(lineTot == "49.80"){
				price = "99.00|MEZZ2";
			}
			if(lineTot == "195.40"){
				price = "237.00|CLUB";
			}
			break;
		case "GS:WACH::SI.COM.HIST.200:": case "GS:WACH::SI.COM.HIST.125:": case "GS:WACH::SI.COM.TRAD.200:": case "GS:WACH::SI.COM.TRAD.125:":
			// Sixers 3 game pack (sending a space so that the final cost doesn't show either)
			// this needs to be done because if you return null, then all prices will show like
			// a normal event
			price = "&nbsp;";
			break;
		case "GS:WACH::FLBDAE090922:": case "GS:WACH::RBNHL:":
			price = "&nbsp;";
			break;
		default: // every other package
			price = "";
			break;
	}
	return price;
}

function hideItemPrice(itemCode) {
	// ASAT: - new era
	// hides line item price/fees/cost on the displayPackageReservation page
	// check 1st 11 chars for flyers bday packages
	if (itemCode.substr(0,11)=="FL2009:BDCL") { return true; }
	if (itemCode.substr(0,10)=="FL2009:BDE") { return true; }
	if (itemCode.match(":FW12")) { return true; }
	switch(itemCode) {
		case "GS:WACH::FWC10EA:": case "GS:WACH::FWC10GA:": case "GS:WACH::FWC10EAP:": case "GS:WACH::FWC10GAP:": case "GS:WACH::FW12:": case "GS:WACH::FW12PRE:":
			// Flyers Wives Package Codes - we are using this to hide the Ticket Type, Description and Date instead of the price
			return true;
			break;
		case "FL2008:BDAYP:BDAY1011:PBDAY1011:": case "FL2008:BDAYP:BDAY0108:PBDAY0108:": case "FL2008:BDAYP:BDAY0110:PBDAY0110:": case "FL2008:BDAYP:BDAY0113:PBDAY0113:": case "FL2008:BDAYP:BDAY0121:PBDAY0121:": case "FL2008:BDAYP:BDAY0204:PBDAY0204:": case "FL2008:BDAYP:BDAY0212:PBDAY0212:": case "FL2008:BDAYP:BDAY0214:PBDAY0214:": case "FL2008:BDAYP:BDAY0219:PBDAY0219:": case "FL2008:BDAYP:BDAY0221:PBDAY0221:": case "FL2008:BDAYP:BDAY0225:PBDAY0225:": case "FL2008:BDAYP:BDAY0227:PBDAY0227:": case "FL2008:BDAYP:BDAY0305:PBDAY0305:": case "FL2008:BDAYP:BDAY0307:PBDAY0307:": case "FL2008:BDAYP:BDAY0310:PBDAY0310:": case "FL2008:BDAYP:BDAY0312:PBDAY0312:": case "FL2008:BDAYP:BDAY0314:PBDAY0314:": case "FL2008:BDAYP:BDAY0323:PBDAY0323:": case "FL2008:BDAYP:BDAY0326:PBDAY0326:": case "FL2008:BDAYP:BDAY0329:PBDAY0329:": case "FL2008:BDAYP:BDAY0403:PBDAY0403:": case "FL2008:BDAYP:BDAY0407:PBDAY0407:": case "FL2008:BDAYP:BDAY0412:PBDAY0412:": case "FL2008:BDAYP:BDAY1013:PBDAY1013:": case "FL2008:BDAYP:BDAY1022:PBDAY1022:": case "FL2008:BDAYP:BDAY1025:PBDAY1025:": case "FL2008:BDAYP:BDAY1030:PBDAY1030:": case "FL2008:BDAYP:BDAY1102:PBDAY1102:": case "FL2008:BDAYP:BDAY1108:PBDAY1108:": case "FL2008:BDAYP:BDAY1116:PBDAY1116:": case "FL2008:BDAYP:BDAY1122:PBDAY1122:": case "FL2008:BDAYP:BDAY1124:PBDAY1124:": case "FL2008:BDAYP:BDAY1128:PBDAY1128:": case "FL2008:BDAYP:BDAY1202:PBDAY1202:": case "FL2008:BDAYP:BDAY1204:PBDAY1204:": case "FL2008:BDAYP:BDAY1209:PBDAY1209:": case "FL2008:BDAYP:BDAY1211:PBDAY1211:": case "FL2008:BDAYP:BDAY1213:PBDAY1213:": case "FL2008:BDAYP:BDAY1216:PBDAY1216:": case "FL2008:BDAYP:BDAY1220:PBDAY1220:": case "FL2008:BDAYP:BDAY1223:PBDAY1223:":
			// Premium BDay packages
			return true;
			break;
		case "FL2008:BDAYA:BDAY1011:ABDAY1011:": case "FL2008:BDAYA:BDAY0108:ABDAY0108:": case "FL2008:BDAYA:BDAY0110:ABDAY0110:": case "FL2008:BDAYA:BDAY0113:ABDAY0113:": case "FL2008:BDAYA:BDAY0121:ABDAY0121:": case "FL2008:BDAYA:BDAY0204:ABDAY0204:": case "FL2008:BDAYA:BDAY0212:ABDAY0212:": case "FL2008:BDAYA:BDAY0214:ABDAY0214:": case "FL2008:BDAYA:BDAY0219:ABDAY0219:": case "FL2008:BDAYA:BDAY0221:ABDAY0221:": case "FL2008:BDAYA:BDAY0225:ABDAY0225:": case "FL2008:BDAYA:BDAY0227:ABDAY0227:": case "FL2008:BDAYA:BDAY0305:ABDAY0305:": case "FL2008:BDAYA:BDAY0307:ABDAY0307:": case "FL2008:BDAYA:BDAY0310:ABDAY0310:": case "FL2008:BDAYA:BDAY0312:ABDAY0312:": case "FL2008:BDAYA:BDAY0314:ABDAY0314:": case "FL2008:BDAYA:BDAY0323:ABDAY0323:": case "FL2008:BDAYA:BDAY0326:ABDAY0326:": case "FL2008:BDAYA:BDAY0329:ABDAY0329:": case "FL2008:BDAYA:BDAY0403:ABDAY0403:": case "FL2008:BDAYA:BDAY0407:ABDAY0407:": case "FL2008:BDAYA:BDAY0412:ABDAY0412:": case "FL2008:BDAYA:BDAY1013:ABDAY1013:": case "FL2008:BDAYA:BDAY1022:ABDAY1022:": case "FL2008:BDAYA:BDAY1025:ABDAY1025:": case "FL2008:BDAYA:BDAY1030:ABDAY1030:": case "FL2008:BDAYA:BDAY1102:ABDAY1102:": case "FL2008:BDAYA:BDAY1108:ABDAY1108:": case "FL2008:BDAYA:BDAY1116:ABDAY1116:": case "FL2008:BDAYA:BDAY1122:ABDAY1122:": case "FL2008:BDAYA:BDAY1124:ABDAY1124:": case "FL2008:BDAYA:BDAY1128:ABDAY1128:": case "FL2008:BDAYA:BDAY1202:ABDAY1202:": case "FL2008:BDAYA:BDAY1204:ABDAY1204:": case "FL2008:BDAYA:BDAY1209:ABDAY1209:": case "FL2008:BDAYA:BDAY1211:ABDAY1211:": case "FL2008:BDAYA:BDAY1213:ABDAY1213:": case "FL2008:BDAYA:BDAY1216:ABDAY1216:": case "FL2008:BDAYA:BDAY1220:ABDAY1220:": case "FL2008:BDAYA:BDAY1223:ABDAY1223:":
			// All you Can Eat Bday packages
			return true;
			break;
		case "FL2008:NP:A0108:NP090108:": case "FL2008:NP:A0108:NP090110:": case "FL2008:NP:A0108:NP090113:": case "FL2008:NP:A0108:NP090121:": case "FL2008:NP:A0108:NP090204:": case "FL2008:NP:A0108:NP090212:": case "FL2008:NP:A0108:NP090214:": case "FL2008:NP:A0108:NP090219:": case "FL2008:NP:A0108:NP090221:": case "FL2008:NP:A0108:NP090225:": case "FL2008:NP:A0108:NP090227:": case "FL2008:NP:A0108:NP090305:": case "FL2008:NP:A0108:NP090307:": case "FL2008:NP:A0108:NP090310:": case "FL2008:NP:A0108:NP090312:": case "FL2008:NP:A0108:NP090314:": case "FL2008:NP:A0108:NP090323:": case "FL2008:NP:A0108:NP090326:": case "FL2008:NP:A0108:NP090329:": case "FL2008:NP:A0108:NP090403:": case "FL2008:NP:A0108:NP090407:": case "FL2008:NP:A0108:NP090412:": case "FL2010:SSNP10:SS:FLSSNP10:": case "FL2010:SSSW10:SS:FLSSSW10:": case "FL2010:SSRD10:SS:FLSSRD10:": case "FL2010:SSHP10:SS:FLSSHP10:": case "GS:WACH::FLSSSF10:": case "FL2010:SSDP10:SS:FLSSDP10:": case "FL2010:SSSR10:SS:FLSSSR10:": 
			// Flyers North Pole Packages
			return true;
			break;
		case "FL2008:SW:A0108:SW090108:": case "FL2008:SW:A0108:SW090110:": case "FL2008:SW:A0108:SW090113:": case "FL2008:SW:A0108:SW090121:": case "FL2008:SW:A0108:SW090204:": case "FL2008:SW:A0108:SW090212:": case "FL2008:SW:A0108:SW090214:": case "FL2008:SW:A0108:SW090219:": case "FL2008:SW:A0108:SW090221:": case "FL2008:SW:A0108:SW090225:": case "FL2008:SW:A0108:SW090227:": case "FL2008:SW:A0108:SW090305:": case "FL2008:SW:A0108:SW090307:": case "FL2008:SW:A0108:SW090310:": case "FL2008:SW:A0108:SW090312:": case "FL2008:SW:A0108:SW090314:": case "FL2008:SW:A0108:SW090323:": case "FL2008:SW:A0108:SW090326:": case "FL2008:SW:A0108:SW090329:": case "FL2008:SW:A0108:SW090403:": case "FL2008:SW:A0108:SW090407:": case "FL2008:SW:A0108:SW090412:": case "FL2009:SSNP:SS:FLSSNP:": case "FL2009:SSHP:SS:FLSSHP:": case "FL2009:SSDP:SS:FLSSDP2:": case "FL2009:SSSR:SS:FLSSSR:": case "FL2009:SSSW:SS:FLSSSW:": case "FL2009:SSNP:SS:FLSSNP:": case "FL2009:SSJB:SS:FLSSJB:": case "FL2009:SSDPHK:SS:FLSSDPHK:": case "FL2009:SSSRHK:SS:FLSSSRHK:": case "FL2009:SSHPHK:SS:FLSSHPHK:": case "FL2009:SSSWHK:SS:FLSSSWHK:": case "FL2009:SSNPHK:SS:FLSSNPHK:": case "FL2009:FL100309:GAMES:FLVDAY": case "FL2009:FL100321:FLYERS:FLSTPATTY": case "FL2009:FL100325:FLYERS:FLSTPATTY": case "FL2009:FL100328:FLYERS:FLSTPATTY": case "FL2009:FL100402:FLYERS:FLSTPATTY": case "FL2009:KPATTY:EXTRAS:FLSTPATTY:":
			// Flyers Santa's Workshop Packages
			// Flyers Valentines Day and St. Patty's Day
			return true;
			break;
		case "FL2008:AYCE:A0108:AYCE090108:": case "FL2008:AYCE:A0108:AYCE090110:": case "FL2008:AYCE:A0108:AYCE090113:": case "FL2008:AYCE:A0108:AYCE090121:": case "FL2008:AYCE:A0108:AYCE090204:": case "FL2008:AYCE:A0108:AYCE090212:": case "FL2008:AYCE:A0108:AYCE090214:": case "FL2008:AYCE:A0108:AYCE090219:": case "FL2008:AYCE:A0108:AYCE090221:": case "FL2008:AYCE:A0108:AYCE090225:": case "FL2008:AYCE:A0108:AYCE090227:": case "FL2008:AYCE:A0108:AYCE090305:": case "FL2008:AYCE:A0108:AYCE090307:": case "FL2008:AYCE:A0108:AYCE090310:": case "FL2008:AYCE:A0108:AYCE090312:": case "FL2008:AYCE:A0108:AYCE090314:": case "FL2008:AYCE:A0108:AYCE090323:": case "FL2008:AYCE:A0108:AYCE090326:": case "FL2008:AYCE:A0108:AYCE090329:": case "FL2008:AYCE:A0108:AYCE090403:": case "FL2008:AYCE:A0108:AYCE090407:": case "FL2008:AYCE:A0108:AYCE090412:":
			// Flyers All You Can Eat Packages
			return true;
			break;
		case "FL2008:HOL:A0108:HOL090108:": case "FL2008:HOL:A0108:HOL090110:": case "FL2008:HOL:A0108:HOL090113:": case "FL2008:HOL:A0108:HOL090121:": case "FL2008:HOL:A0108:HOL090204:": case "FL2008:HOL:A0108:HOL090212:": case "FL2008:HOL:A0108:HOL090214:": case "FL2008:HOL:A0108:HOL090219:": case "FL2008:HOL:A0108:HOL090221:": case "FL2008:HOL:A0108:HOL090225:": case "FL2008:HOL:A0108:HOL090227:": case "FL2008:HOL:A0108:HOL090305:": case "FL2008:HOL:A0108:HOL090307:": case "FL2008:HOL:A0108:HOL090310:": case "FL2008:HOL:A0108:HOL090312:": case "FL2008:HOL:A0108:HOL090314:": case "FL2008:HOL:A0108:HOL090323:": case "FL2008:HOL:A0108:HOL090326:": case "FL2008:HOL:A0108:HOL090329:": case "FL2008:HOL:A0108:HOL090403:": case "FL2008:HOL:A0108:HOL090407:": case "FL2008:HOL:A0108:HOL090412:":
			// Flyers Holiday Packages
			return true;
			break;
		case "FL2008:SR:A0108:SR090108:": case "FL2008:SR:A0108:SR090110:": case "FL2008:SR:A0108:SR090113:": case "FL2008:SR:A0108:SR090121:": case "FL2008:SR:A0108:SR090204:": case "FL2008:SR:A0108:SR090212:": case "FL2008:SR:A0108:SR090214:": case "FL2008:SR:A0108:SR090219:": case "FL2008:SR:A0108:SR090221:": case "FL2008:SR:A0108:SR090225:": case "FL2008:SR:A0108:SR090227:": case "FL2008:SR:A0108:SR090305:": case "FL2008:SR:A0108:SR090307:": case "FL2008:SR:A0108:SR090310:": case "FL2008:SR:A0108:SR090312:": case "FL2008:SR:A0108:SR090314:": case "FL2008:SR:A0108:SR090323:": case "FL2008:SR:A0108:SR090326:": case "FL2008:SR:A0108:SR090329:": case "FL2008:SR:A0108:SR090403:": case "FL2008:SR:A0108:SR090407:": case "FL2008:SR:A0108:SR090412:":
			// Flyers Sleigh Ride Packages
			return true;
			break;
		case "FL2008:DEL:A0108:DEL090108:": case "FL2008:DEL:A0108:DEL090110:": case "FL2008:DEL:A0108:DEL090113:": case "FL2008:DEL:A0108:DEL090121:": case "FL2008:DEL:A0108:DEL090204:": case "FL2008:DEL:A0108:DEL090212:": case "FL2008:DEL:A0108:DEL090214:": case "FL2008:DEL:A0108:DEL090219:": case "FL2008:DEL:A0108:DEL090221:": case "FL2008:DEL:A0108:DEL090225:": case "FL2008:DEL:A0108:DEL090227:": case "FL2008:DEL:A0108:DEL090305:": case "FL2008:DEL:A0108:DEL090307:": case "FL2008:DEL:A0108:DEL090310:": case "FL2008:DEL:A0108:DEL090312:": case "FL2008:DEL:A0108:DEL090314:": case "FL2008:DEL:A0108:DEL090323:": case "FL2008:DEL:A0108:DEL090326:": case "FL2008:DEL:A0108:DEL090329:": case "FL2008:DEL:A0108:DEL090403:": case "FL2008:DEL:A0108:DEL090407:": case "FL2008:DEL:A0108:DEL090412:":
			// Flyers Deluxe Packages
			return true;
			break;
		case "NE07:EMISC:EMISC:WT:": case "FELD09:FOODNHL:FOOD:RBNHL:": case "FELD09:MGNHL:MEET:RBNHL:":
			return true;
			break;
		default:
			return false;
			break;
	}
	return false;
}

function displayOrderFees(ItemCode) {
// ASAT: - new era
// This function will display the Order Fees at the bottom of displaypackagereservation.html
	if(ItemCode.substr(0,15)=="GS:WACH::FLBDAE" || ItemCode.substr(0,15)=="GS:WACH::FLBDCL") { return; }
	if(ItemCode.substr(0,18)=="GS:WACH::SI2010.FS") {
				document.write(
				'<tr align="right">',
				'	<td colspan="9">Season Ticket Order Charge</td>',
				'	<td class="amount">',amountFormat(parseFloat(packageConfirm.pkFeeCharge)),'</td>',
				'</tr>'
			);
				return;
	}
	switch(ItemCode) {
		case "GS:WACH::FLPARENT1:": case "GS:WACH::FLPARENT2:": case "GS:WACH::FLPARENT3:": case "GS:WACH::FLPARENT4:": case "GS:WACH::FLPARENT5:":  case "GS:WACH::FLPARENT6:": case "GS:WACH::FLPARENT7:":   // slap shot package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Handling & Shipping Fee</td>',
				'	<td class="amount">$26.60</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::FLPROPP1:": case "GS:WACH::FLPROPP2:": case "GS:WACH::FLPROPP3:": case "GS:WACH::FLPROPP4:": case "GS:WACH::FLPROPP5:":  case "GS:WACH::FLPROPP6:": case "GS:WACH::FLPROPP7:":   // penalty package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Handling & Shipping Fee</td>',
				'	<td class="amount">$26.90</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::FLPRIMEAU1:": case "GS:WACH::FLPRIMEAU2:": case "GS:WACH::FLPRIMEAU3:": case "GS:WACH::FLPRIMEAU4:": case "GS:WACH::FLPRIMEAU5:":  case "GS:WACH::FLPRIMEAU6:": case "GS:WACH::FLPRIMEAU7:":   // power play package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Handling & Shipping Fee</td>',
				'	<td class="amount">$33.60</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::NP0112:": case "GS:WACH::NP0116:": case "GS:WACH::NP0120:": case "GS:WACH::NP0122:": case "GS:WACH::NP0129:": case "GS:WACH::NP0202:": case "GS:WACH::NP0206:": case "GS:WACH::NP0214:": case "GS:WACH::NP0217:": case "GS:WACH::NP0221:": case "GS:WACH::NP0223:": case "GS:WACH::NP0228:": case "GS:WACH::NP0304:": case "GS:WACH::NP0306:": case "GS:WACH::NP0308:": case "GS:WACH::NP0312:": case "GS:WACH::NP0318:": case "GS:WACH::NP0323:": case "GS:WACH::NP0404:":   // santa sack north pole package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$26.60</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::SW0112:": case "GS:WACH::SW0116:": case "GS:WACH::SW0120:": case "GS:WACH::SW0122:": case "GS:WACH::SW0129:": case "GS:WACH::SW0202:": case "GS:WACH::SW0206:": case "GS:WACH::SW0214:": case "GS:WACH::SW0217:": case "GS:WACH::SW0221:": case "GS:WACH::SW0223:": case "GS:WACH::SW0228:": case "GS:WACH::SW0304:": case "GS:WACH::SW0306:": case "GS:WACH::SW0308:": case "GS:WACH::SW0312:": case "GS:WACH::SW0318:": case "GS:WACH::SW0323:": case "GS:WACH::SW0404:":   // santa sack WORKSHOP package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$26.90</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::SR0112:": case "GS:WACH::SR0116:": case "GS:WACH::SR0120:": case "GS:WACH::SR0122:": case "GS:WACH::SR0129:": case "GS:WACH::SR0202:": case "GS:WACH::SR0206:": case "GS:WACH::SR0214:": case "GS:WACH::SR0217:": case "GS:WACH::SR0221:": case "GS:WACH::SR0223:": case "GS:WACH::SR0228:": case "GS:WACH::SR0304:": case "GS:WACH::SR0306:": case "GS:WACH::SR0308:": case "GS:WACH::SR0312:": case "GS:WACH::SR0318:": case "GS:WACH::SR0323:": case "GS:WACH::SR0404:":  // santa sack SLEIGH RIDE package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$33.60</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::DSS0112:": case "GS:WACH::DSS0116:": case "GS:WACH::DSS0120:": case "GS:WACH::DSS0122:": case "GS:WACH::DSS0129:": case "GS:WACH::DSS0202:": case "GS:WACH::DSS0206:": case "GS:WACH::DSS0214:": case "GS:WACH::DSS0217:": case "GS:WACH::DSS0221:": case "GS:WACH::DSS0223:": case "GS:WACH::DSS0228:": case "GS:WACH::DSS0304:": case "GS:WACH::DSS0306:": case "GS:WACH::DSS0308:": case "GS:WACH::DSS0312:": case "GS:WACH::DSS0318:": case "GS:WACH::DSS0323:": case "GS:WACH::DSS0404:":  // DELUXE SANTA SACK package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$56.20</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::ESS0112:": case "GS:WACH::ESS0116:": case "GS:WACH::ESS0120:": case "GS:WACH::ESS0122:": case "GS:WACH::ESS0129:": case "GS:WACH::ESS0202:": case "GS:WACH::ESS0206:": case "GS:WACH::ESS0214:": case "GS:WACH::ESS0217:": case "GS:WACH::ESS0221:": case "GS:WACH::ESS0223:": case "GS:WACH::ESS0228:": case "GS:WACH::ESS0304:": case "GS:WACH::ESS0306:": case "GS:WACH::ESS0308:": case "GS:WACH::ESS0312:": case "GS:WACH::ESS0318:": case "GS:WACH::ESS0323:": case "GS:WACH::ESS0404:":  // AYCE SANTA SACK package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$26.90</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::HO0112:": case "GS:WACH::HO0116:": case "GS:WACH::HO0120:": case "GS:WACH::HO0122:": case "GS:WACH::HO0129:": case "GS:WACH::HO0202:": case "GS:WACH::HO0206:": case "GS:WACH::HO0214:": case "GS:WACH::HO0217:": case "GS:WACH::HO0221:": case "GS:WACH::HO0223:": case "GS:WACH::HO0228:": case "GS:WACH::HO0304:": case "GS:WACH::HO0306:": case "GS:WACH::HO0308:": case "GS:WACH::HO0312:": case "GS:WACH::HO0318:": case "GS:WACH::HO0323:": case "GS:WACH::HO0404:":  // Holiday package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$30.40</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::TOY0112:": case "GS:WACH::TOY0116:": case "GS:WACH::TOY0120:": case "GS:WACH::TOY0122:": case "GS:WACH::TOY0129:": case "GS:WACH::TOY0202:": case "GS:WACH::TOY0206:": case "GS:WACH::TOY0214:": case "GS:WACH::TOY0217:": case "GS:WACH::TOY0221:": case "GS:WACH::TOY0223:": case "GS:WACH::TOY0228:": case "GS:WACH::TOY0304:": case "GS:WACH::TOY0306:": case "GS:WACH::TOY0308:": case "GS:WACH::TOY0312:": case "GS:WACH::TOY0318:": case "GS:WACH::TOY0323:": case "GS:WACH::TOY0404:":  // Toyota Premium package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$3.50</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::VUM26:": case "GS:WACH::VUM27:": case "GS:WACH::VUM28:": case "GS:WACH::VUM28:": case "GS:WACH::VUM29:": case "GS:WACH::VUM30:": case "GS:WACH::VUM31:": case "GS:WACH::VUM32:": case "GS:WACH::VUM33:": case "GS:WACH::VUM34:": case "GS:WACH::VUM35:": case "GS:WACH::VUM36:": case "GS:WACH::VUM37:": case "GS:WACH::VUM38:": case "GS:WACH::VUM39:": case "GS:WACH::VUM40:": case "GS:WACH::VUM41:": // VUM Vengeance Flyers package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Order Fees</td>',
				'	<td class="amount">$26.60</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::VMM26:": case "GS:WACH::VMM27:": case "GS:WACH::VMM28:": case "GS:WACH::VMM28:": case "GS:WACH::VMM29:": case "GS:WACH::VMM30:": case "GS:WACH::VMM31:": case "GS:WACH::VMM32:": case "GS:WACH::VMM33:": case "GS:WACH::VMM34:": case "GS:WACH::VMM35:": case "GS:WACH::VMM36:": case "GS:WACH::VMM37:": case "GS:WACH::VMM38:": case "GS:WACH::VMM39:": case "GS:WACH::VMM40:": case "GS:WACH::VMM41:": // VMM Vengeance Flyers package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Order Fees</td>',
				'	<td class="amount">$26.90</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::VAYCE26:": case "GS:WACH::VAYCE27:": case "GS:WACH::VAYCE28:": case "GS:WACH::VAYCE28:": case "GS:WACH::VAYCE29:": case "GS:WACH::VAYCE30:": case "GS:WACH::VAYCE31:": case "GS:WACH::VAYCE32:": case "GS:WACH::VAYCE33:": case "GS:WACH::VAYCE34:": case "GS:WACH::VAYCE35:": case "GS:WACH::VAYCE36:": case "GS:WACH::VAYCE37:": case "GS:WACH::VAYCE38:": case "GS:WACH::VAYCE39:": case "GS:WACH::VAYCE40:": case "GS:WACH::VAYCE41:": // VAYCE Vengeance Flyers package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$26.90</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::VLL26:": case "GS:WACH::VLL27:": case "GS:WACH::VLL28:": case "GS:WACH::VLL28:": case "GS:WACH::VLL29:": case "GS:WACH::VLL30:": case "GS:WACH::VLL31:": case "GS:WACH::VLL32:": case "GS:WACH::VLL33:": case "GS:WACH::VLL34:": case "GS:WACH::VLL35:": case "GS:WACH::VLL36:": case "GS:WACH::VLL37:": case "GS:WACH::VLL38:": case "GS:WACH::VLL39:": case "GS:WACH::VLL40:": case "GS:WACH::VLL41:": // VLL Vengeance Flyers package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Order Fees</td>',
				'	<td class="amount">$26.90</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::VPL25:": case "GS:WACH::VPL26:": case "GS:WACH::VPL27:": case "GS:WACH::VPL28:": case "GS:WACH::VPL28:": case "GS:WACH::VPL29:": case "GS:WACH::VPL30:": case "GS:WACH::VPL31:": case "GS:WACH::VPL32:": case "GS:WACH::VPL33:": case "GS:WACH::VPL34:": case "GS:WACH::VPL35:": case "GS:WACH::VPL36:": case "GS:WACH::VPL37:": case "GS:WACH::VPL38:": case "GS:WACH::VPL39:": case "GS:WACH::VPL40:": case "GS:WACH::VPL41:": // VpL Vengeance Flyers package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Order Fees</td>',
				'	<td class="amount">$33.60</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::SPHILLY:":  // Social Philly Flyers package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Shipping Fees</td>',
				'	<td class="amount">$0.00</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::PPP19:": case "GS:WACH::PPP20:": case "GS:WACH::PPP21:": case "GS:WACH::PPP22:": case "GS:WACH::PPP23:": case "GS:WACH::PPP24:": case "GS:WACH::PPP25:": case "GS:WACH::PPP26:": case "GS:WACH::PPP27:": case "GS:WACH::PPP28:": case "GS:WACH::PPP29:": case "GS:WACH::PPP30:": case "GS:WACH::PPP31:": case "GS:WACH::PPP32:": case "GS:WACH::PPP33:": case "GS:WACH::PPP34:": case "GS:WACH::PPP35:": case "GS:WACH::PPP36:": case "GS:WACH::PPP37:": case "GS:WACH::PPP38:": case "GS:WACH::PPP39:": case "GS:WACH::PPP40:": case "GS:WACH::PPP41:": // Peco Premium Pass
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket and Order Fee</td>',
				'	<td class="amount">$26.10</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::SI17FP:": case "GS:WACH::SI20FP:": case "GS:WACH::SI26FP:": case "GS:WACH::SI29FP:": case "GS:WACH::SI34FP:": case "GS:WACH::SI36FP:": case "GS:WACH::SI38FP:": case "GS:WACH::SI39FP:": case "GS:WACH::SI41FP:": // Sixers Family Plan
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Handling & Shipping Fee</td>',
				'	<td class="amount">$5.00</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::EAT0924:": case "GS:WACH::EAT0926:":  case "GS:WACH::EAT0929:": case "GS:WACH::EAT1013:": case "GS:WACH::EAT10116:":  case "GS:WACH::EAT1018:":  case "GS:WACH::EAT1020:":  case "GS:WACH::EAT1110:":  case "GS:WACH::EAT1112:":  case "GS:WACH::EAT1115:":  case "GS:WACH::EAT1117:":  case "GS:WACH::EAT1123:":  case "GS:WACH::EAT1126:":  case "GS:WACH::EAT1201:":  case "GS:WACH::EAT1211:":  case "GS:WACH::EAT1213:":  case "GS:WACH::EAT1215:":  case "GS:WACH::EAT1218:":  case "GS:WACH::EAT1222:":  case "GS:WACH::EAT1227:":  case "GS:WACH::EAT0112:":  case "GS:WACH::EAT0118:":  case "GS:WACH::EAT0120:":  case "GS:WACH::EAT0122:":  case "GS:WACH::EAT0124:":  case "GS:WACH::EAT0129:":  case "GS:WACH::EAT0131:":  case "GS:WACH::EAT0202:":  case "GS:WACH::EAT0206:":  case "GS:WACH::EAT0209:":  case "GS:WACH::EAT0214:":  case "GS:WACH::EAT0217:":  case "GS:WACH::EAT0221:":  case "GS:WACH::EAT0223:":  case "GS:WACH::EAT0228:":  case "GS:WACH::EAT0304:":  case "GS:WACH::EAT0306:":  case "GS:WACH::EAT0308:":  case "GS:WACH::EAT0312:":  case "GS:WACH::EAT0318:":  case "GS:WACH::EAT0321:":  case "GS:WACH::EAT0323:":  case "GS:WACH::EAT0404:":  case "GS:WACH::EAT0406:": // Flyers All You Can Eat
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket & Order Fee</td>',
				'	<td class="amount">$11.45</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::SIEAT01:": case "GS:WACH::SIEAT02:":  case "GS:WACH::SIEAT03:": case "GS:WACH::SIEAT04:": case "GS:WACH::SIEAT05:":  case "GS:WACH::SIEAT06:":  case "GS:WACH::SIEAT07:":  case "GS:WACH::SIEAT08:":  case "GS:WACH::SIEAT09:":  case "GS:WACH::SIEAT10:":  case "GS:WACH::SIEAT11:":  case "GS:WACH::SIEAT12:":  case "GS:WACH::SIEAT13:":  case "GS:WACH::SIEAT14:":  case "GS:WACH::SIEAT15:":  case "GS:WACH::SIEAT16:":  case "GS:WACH::SIEAT17:":  case "GS:WACH::SIEAT18:":  case "GS:WACH::SIEAT19:":  case "GS:WACH::SIEAT20:":  case "GS:WACH::SIEAT21:":  case "GS:WACH::SIEAT22:":  case "GS:WACH::SIEAT23:":  case "GS:WACH::SIEAT24:":  case "GS:WACH::SIEAT25:":  case "GS:WACH::SIEAT26:":  case "GS:WACH::SIEAT27:":  case "GS:WACH::SIEAT28:":  case "GS:WACH::SIEAT29:":  case "GS:WACH::SIEAT30:":  case "GS:WACH::SIEAT31:":  case "GS:WACH::SIEAT32:":  case "GS:WACH::SIEAT33:":  case "GS:WACH::SIEAT34:":  case "GS:WACH::SIEAT35:":  case "GS:WACH::SIEAT36:":  case "GS:WACH::SIEAT37:":  case "GS:WACH::SIEAT38:":  case "GS:WACH::SIEAT39:":  case "GS:WACH::SIEAT40:":  case "GS:WACH::SIEAT41:": // Sixers All You Can Eat
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket & Order Fee</td>',
				'	<td class="amount">$9.70</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::SIFVP03:": case "GS:WACH::SIFVP04:": case "GS:WACH::SIFVP05:": case "GS:WACH::SIFVP08:": case "GS:WACH::SIFVP09:": case "GS:WACH::SIFVP10:":  case "GS:WACH::SIFVP11:": case "GS:WACH::SIFVP13:": case "GS:WACH::SIFVP14:":  case "GS:WACH::SIFVP15:": case "GS:WACH::SIFVP17:": case "GS:WACH::SIFVP18:":  case "GS:WACH::SIFVP20:": case "GS:WACH::SIFVP23:": case "GS:WACH::SIFVP28:":  case "GS:WACH::SIFVP31:": case "GS:WACH::SIFVP32:": case "GS:WACH::SIFVP36:":  case "GS:WACH::SIFVP37:": case "GS:WACH::SIFVP40:": // Sixers Family Value Pack
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket & Order Fee</td>',
				'	<td class="amount">$10.00</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::POWERPLAY:": case "GS:WACH::SLAPSHOT:":  case "GS:WACH::HATTRICK:": // 5 Game Plan PL 4
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket & Order Fee</td>',
				'	<td class="amount">$49.75</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::POWERPLAY2:": case "GS:WACH::SLAPSHOT2:":  case "GS:WACH::HATTRICK2:": // 5 Game Plan PL 5
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket & Order Fee</td>',
				'	<td class="amount">$49.00</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::PBDAY1011:": case "GS:WACH::PBDAY0108:": case "GS:WACH::PBDAY0110:": case "GS:WACH::PBDAY0113:": case "GS:WACH::PBDAY0121:": case "GS:WACH::PBDAY0204:": case "GS:WACH::PBDAY0212:": case "GS:WACH::PBDAY0214:": case "GS:WACH::PBDAY0219:": case "GS:WACH::PBDAY0221:": case "GS:WACH::PBDAY0225:": case "GS:WACH::PBDAY0227:": case "GS:WACH::PBDAY0305:": case "GS:WACH::PBDAY0307:": case "GS:WACH::PBDAY0310:": case "GS:WACH::PBDAY0312:": case "GS:WACH::PBDAY0314:": case "GS:WACH::PBDAY0323:": case "GS:WACH::PBDAY0326:": case "GS:WACH::PBDAY0329:": case "GS:WACH::PBDAY0403:": case "GS:WACH::PBDAY0407:": case "GS:WACH::PBDAY0412:": case "GS:WACH::PBDAY1013:": case "GS:WACH::PBDAY1022:": case "GS:WACH::PBDAY1025:": case "GS:WACH::PBDAY1030:": case "GS:WACH::PBDAY1102:": case "GS:WACH::PBDAY1108:": case "GS:WACH::PBDAY1116:": case "GS:WACH::PBDAY1122:": case "GS:WACH::PBDAY1124:": case "GS:WACH::PBDAY1128:": case "GS:WACH::PBDAY1202:": case "GS:WACH::PBDAY1204:": case "GS:WACH::PBDAY1209:": case "GS:WACH::PBDAY1211:": case "GS:WACH::PBDAY1213:": case "GS:WACH::PBDAY1216:": case "GS:WACH::PBDAY1220:": case "GS:WACH::PBDAY1223:": case "GS:WACH::ABDAY1011:": case "GS:WACH::ABDAY0108:": case "GS:WACH::ABDAY0110:": case "GS:WACH::ABDAY0113:": case "GS:WACH::ABDAY0121:": case "GS:WACH::ABDAY0204:": case "GS:WACH::ABDAY0212:": case "GS:WACH::ABDAY0214:": case "GS:WACH::ABDAY0219:": case "GS:WACH::ABDAY0221:": case "GS:WACH::ABDAY0225:": case "GS:WACH::ABDAY0227:": case "GS:WACH::ABDAY0305:": case "GS:WACH::ABDAY0307:": case "GS:WACH::ABDAY0310:": case "GS:WACH::ABDAY0312:": case "GS:WACH::ABDAY0314:": case "GS:WACH::ABDAY0323:": case "GS:WACH::ABDAY0326:": case "GS:WACH::ABDAY0329:": case "GS:WACH::ABDAY0403:": case "GS:WACH::ABDAY0407:": case "GS:WACH::ABDAY0412:": case "GS:WACH::ABDAY1013:": case "GS:WACH::ABDAY1022:": case "GS:WACH::ABDAY1025:": case "GS:WACH::ABDAY1030:": case "GS:WACH::ABDAY1102:": case "GS:WACH::ABDAY1108:": case "GS:WACH::ABDAY1116:": case "GS:WACH::ABDAY1122:": case "GS:WACH::ABDAY1124:": case "GS:WACH::ABDAY1128:": case "GS:WACH::ABDAY1202:": case "GS:WACH::ABDAY1204:": case "GS:WACH::ABDAY1209:": case "GS:WACH::ABDAY1211:": case "GS:WACH::ABDAY1213:": case "GS:WACH::ABDAY1216:": case "GS:WACH::ABDAY1220:": case "GS:WACH::ABDAY1223:":
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Handling & Shipping Fee</td>',
				'	<td class="amount">0.00</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::NP090108:": case "GS:WACH::NP090110:": case "GS:WACH::NP090113:": case "GS:WACH::NP090121:": case "GS:WACH::NP090204:": case "GS:WACH::NP090212:": case "GS:WACH::NP090214:": case "GS:WACH::NP090219:": case "GS:WACH::NP090221:": case "GS:WACH::NP090225:": case "GS:WACH::NP090227:": case "GS:WACH::NP090305:": case "GS:WACH::NP090307:": case "GS:WACH::NP090310:": case "GS:WACH::NP090312:": case "GS:WACH::NP090314:": case "GS:WACH::NP090323:": case "GS:WACH::NP090326:": case "GS:WACH::NP090329:": case "GS:WACH::NP090403:": case "GS:WACH::NP090407:": case "GS:WACH::NP090412:": case "GS:WACH::FLSSNP:":
			// Flyers North Pole Packages
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Order Processing Fee</td>',
				'	<td class="amount">21.60</td>',
				'</tr>',
				'<tr align="right">',
				'	<td colspan="9">Package Handling & Shipping Fee</td>',
				'	<td class="amount">7.50</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::SW090108:": case "GS:WACH::SW090110:": case "GS:WACH::SW090113:": case "GS:WACH::SW090121:": case "GS:WACH::SW090204:": case "GS:WACH::SW090212:": case "GS:WACH::SW090214:": case "GS:WACH::SW090219:": case "GS:WACH::SW090221:": case "GS:WACH::SW090225:": case "GS:WACH::SW090227:": case "GS:WACH::SW090305:": case "GS:WACH::SW090307:": case "GS:WACH::SW090310:": case "GS:WACH::SW090312:": case "GS:WACH::SW090314:": case "GS:WACH::SW090323:": case "GS:WACH::SW090326:": case "GS:WACH::SW090329:": case "GS:WACH::SW090403:": case "GS:WACH::SW090407:": case "GS:WACH::SW090412:":
			// Flyers Santa's Workshop Packages
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Order Processing Fee</td>',
				'	<td class="amount">23.80</td>',
				'</tr>',
				'<tr align="right">',
				'	<td colspan="9">Package Handling & Shipping Fee</td>',
				'	<td class="amount">7.50</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::AYCE090108:": case "GS:WACH::AYCE090110:": case "GS:WACH::AYCE090113:": case "GS:WACH::AYCE090121:": case "GS:WACH::AYCE090204:": case "GS:WACH::AYCE090212:": case "GS:WACH::AYCE090214:": case "GS:WACH::AYCE090219:": case "GS:WACH::AYCE090221:": case "GS:WACH::AYCE090225:": case "GS:WACH::AYCE090227:": case "GS:WACH::AYCE090305:": case "GS:WACH::AYCE090307:": case "GS:WACH::AYCE090310:": case "GS:WACH::AYCE090312:": case "GS:WACH::AYCE090314:": case "GS:WACH::AYCE090323:": case "GS:WACH::AYCE090326:": case "GS:WACH::AYCE090329:": case "GS:WACH::AYCE090403:": case "GS:WACH::AYCE090407:": case "GS:WACH::AYCE090412:":
			// Flyers All You Can Eat Packages
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Order Processing Fee</td>',
				'	<td class="amount">26.00</td>',
				'</tr>',
				'<tr align="right">',
				'	<td colspan="9">Package Handling & Shipping Fee</td>',
				'	<td class="amount">7.50</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::HOL090108:": case "GS:WACH::HOL090110:": case "GS:WACH::HOL090113:": case "GS:WACH::HOL090121:": case "GS:WACH::HOL090204:": case "GS:WACH::HOL090212:": case "GS:WACH::HOL090214:": case "GS:WACH::HOL090219:": case "GS:WACH::HOL090221:": case "GS:WACH::HOL090225:": case "GS:WACH::HOL090227:": case "GS:WACH::HOL090305:": case "GS:WACH::HOL090307:": case "GS:WACH::HOL090310:": case "GS:WACH::HOL090312:": case "GS:WACH::HOL090314:": case "GS:WACH::HOL090323:": case "GS:WACH::HOL090326:": case "GS:WACH::HOL090329:": case "GS:WACH::HOL090403:": case "GS:WACH::HOL090407:": case "GS:WACH::HOL090412:":
			// Flyers Holiday Packages
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Order Processing Fee</td>',
				'	<td class="amount">29.50</td>',
				'</tr>',
				'<tr align="right">',
				'	<td colspan="9">Package Handling & Shipping Fee</td>',
				'	<td class="amount">7.50</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::SR090108:": case "GS:WACH::SR090110:": case "GS:WACH::SR090113:": case "GS:WACH::SR090121:": case "GS:WACH::SR090204:": case "GS:WACH::SR090212:": case "GS:WACH::SR090214:": case "GS:WACH::SR090219:": case "GS:WACH::SR090221:": case "GS:WACH::SR090225:": case "GS:WACH::SR090227:": case "GS:WACH::SR090305:": case "GS:WACH::SR090307:": case "GS:WACH::SR090310:": case "GS:WACH::SR090312:": case "GS:WACH::SR090314:": case "GS:WACH::SR090323:": case "GS:WACH::SR090326:": case "GS:WACH::SR090329:": case "GS:WACH::SR090403:": case "GS:WACH::SR090407:": case "GS:WACH::SR090412:":
			// Flyers Sleigh Ride Packages
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Order Processing Fee</td>',
				'	<td class="amount">29.50</td>',
				'</tr>',
				'<tr align="right">',
				'	<td colspan="9">Package Handling & Shipping Fee</td>',
				'	<td class="amount">7.50</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::DEL090108:": case "GS:WACH::DEL090110:": case "GS:WACH::DEL090113:": case "GS:WACH::DEL090121:": case "GS:WACH::DEL090204:": case "GS:WACH::DEL090212:": case "GS:WACH::DEL090214:": case "GS:WACH::DEL090219:": case "GS:WACH::DEL090221:": case "GS:WACH::DEL090225:": case "GS:WACH::DEL090227:": case "GS:WACH::DEL090305:": case "GS:WACH::DEL090307:": case "GS:WACH::DEL090310:": case "GS:WACH::DEL090312:": case "GS:WACH::DEL090314:": case "GS:WACH::DEL090323:": case "GS:WACH::DEL090326:": case "GS:WACH::DEL090329:": case "GS:WACH::DEL090403:": case "GS:WACH::DEL090407:": case "GS:WACH::DEL090412:":
			// Flyers Deluxe Packages
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Ticket Order Processing Fee</td>',
				'	<td class="amount">55.00</td>',
				'</tr>',
				'<tr align="right">',
				'	<td colspan="9">Package Handling & Shipping Fee</td>',
				'	<td class="amount">7.50</td>',
				'</tr>'
			);
			break;
		case "GS:WACH::FLSSNP10:": case "GS:WACH::FLSSSW10:":  case "GS:WACH::FLSSRD10:": case "GS:WACH::FLSSHP10:": case "GS:WACH::FLSSSF10:": case "GS:WACH::FLSSDP10:": case "GS:WACH::FLSSSR10:":  case "GS:WACH::FLSS411:": case "GS:WACH::FLSS211:": case "GS:WACH::WI.HP0114:": case "GS:WACH::WI.HP0121:":
			// Flyers 2010 Santa Sacks - change label of Package order charge to package handling and shipping fee
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Package Handling and Shipping Fee</td>',
				'	<td class="amount">',amountFormat(parseFloat(packageConfirm.pkFeeCharge)),'</td>',
				'</tr>'
			);
		break;
		default: // every other package
			document.write(
				'<tr align="right">',
				'	<td colspan="9">Package Order Charge</td>',
				'	<td class="amount">',amountFormat(parseFloat(packageConfirm.pkFeeCharge)),'</td>',
				'</tr>'
			);
			break;
	}
}

// print calendar link for calendar view
	function printCalendarLink(linkID, groupCode) {
		var date1 = new Date();
		var date2 = new Date(date1.getFullYear()+1, date1.getMonth(), 1);
		var calendarLink = 
			'/cgi-bin/ncommerce3/SEGetEventList?linkID='+ linkID +
			'&groupCode='+ groupCode +
			'&timeDateFrom='+ 	date1.getFullYear() +'-'+ (date1.getMonth()+1) +'-01-00.00.00'+
			'&timeDateTo='+ 	date2.getFullYear() +'-'+ (date2.getMonth()+1) +'-01-00.00.00';
		return calendarLink;
	}

/*--------------------------------------------------
	HIDDEN EVENTS LIST
	SYNTAX: hiddenList[i++] = "<event code>";
	
	The hidden list requires that the entire event code be part of the hiddenList[].
	Including only parts of the event code will not hide the event.
	Format is: GS:WACH:<SEASON>:<EVENT>:
	
	REMEMBER TO INCLUDE THE TRAILING COLON ON STANDARD EVENTS/PACKAGES
-------------------------------------------------- */
	hiddenList = new Array;
	var z = 0;
	hiddenList[z++] = "GS:WACH::BJVIP3:";
	hiddenList[z++] = "GS:WACH:WA2008:M2:";
	hiddenList[z++] = "GS:WACH:WA2008:PRKM2:";
	hiddenList[z++] = "GS:WACH:FL2009P:FL10R1G3:";
	hiddenList[z++] = "GS:WACH:FL2009P:FL10R3G4:";
	hiddenList[z++] = "GS:WACH::FLNJ:";
	hiddenList[z++] = "GS:WACH::FLBOS:";
	hiddenList[z++] = "GS:WACH::FLBUF:";
	hiddenList[z++] = "GS:WACH::FLCAR:";
	hiddenList[z++] = "GS:WACH::FLFLA:";
	hiddenList[z++] = "GS:WACH::FLMTL:";
	hiddenList[z++] = "GS:WACH::FLNYI:";
	hiddenList[z++] = "GS:WACH::FLNYR:";
	hiddenList[z++] = "GS:WACH::FLOTT:";
	hiddenList[z++] = "GS:WACH::FLATL:";
	hiddenList[z++] = "GS:WACH::FLWAS:";
	hiddenList[z++] = "GS:WACH::FLPITT:";
	hiddenList[z++] = "GS:WACH::FLTB:";
	hiddenList[z++] = "GS:WACH::FLTOR:";
	//hiddenList[z++] = "GS:WACH::FLKDM1106:";
	//hiddenList[z++] = "GS:WACH::FLKGS1015:";
	//hiddenList[z++] = "GS:WACH::FLKRW1108:";
	//hiddenList[z++] = "GS:WACH::SI.COM.3GAME:";
	hiddenList[z++] = "GS:WACH::BVD101029:";
	hiddenList[z++] = "GS:WACH::SIBVD101029:";
	hiddenList[z++] = "GS:WACH::SI.BVD101029:";
	hiddenList[z++] = "GS:WACH:WA2011:RH0724:"; 
	hiddenList[z++] = "GS:WACH:WA2011:PRKRH0724:";
	//hiddenList[z++] = "GS:WACH:WA2012:CP0706:";
	//hiddenList[z++] = "GS:WACH:WA2012:PRKCP0706:";
	

	//FLYERS 2011 PLAYOFFS
	
	//ROUND 2 GAMES
	//hiddenList[z++] = "GS:WACH:FL2010P:FL11R2G1:";  // ROUND 2, GAME 1
	//hiddenList[z++] = "GS:WACH:FL2010P:FL11R2G2:";  // ROUND 2, GAME 2
	//hiddenList[z++] = "GS:WACH:FL2010P:FL11R2G3:";  // ROUND 2, GAME 3
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R2G4:";  // ROUND 2, GAME 4
	
	//ROUND 3 GAMES
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R3G1:";  // ROUND 3, GAME 1
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R3G2:";  // ROUND 3, GAME 2
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R3G3:";  // ROUND 3, GAME 3
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R3G4:";  // ROUND 3, GAME 4
	
	//ROUND 4 GAMES
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R4G1:";  // ROUND 4, GAME 1
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R4G2:";  // ROUND 4, GAME 2
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R4G3:";  // ROUND 4, GAME 3
	hiddenList[z++] = "GS:WACH:FL2010P:FL11R4G4:";  // ROUND 4, GAME 4
	
	//ROUND 2 LEXUS
	//hiddenList[z++] = "GS:WACH:FL2010P:LX11R2G1:";  // LEXUS ROUND 2, GAME 1
	//hiddenList[z++] = "GS:WACH:FL2010P:LX11R2G2:";  // LEXUS ROUND 2, GAME 2
	//hiddenList[z++] = "GS:WACH:FL2010P:LX11R2G3:";  // LEXUS ROUND 2, GAME 3
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R2G4:";  // LEXUS ROUND 2, GAME 4
	
	//ROUND 3 LEXUS
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R3G1:";  // LEXUS ROUND 3, GAME 1
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R3G2:";  // LEXUS ROUND 3, GAME 2
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R3G3:";  // LEXUS ROUND 3, GAME 3
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R3G4:";  // LEXUS ROUND 3, GAME 4
	
	//ROUND 4 LEXUS
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R4G1:";  // LEXUS ROUND 4, GAME 1
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R4G2:";  // LEXUS ROUND 4, GAME 2
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R4G3:";  // LEXUS ROUND 4, GAME 3
	hiddenList[z++] = "GS:WACH:FL2010P:LX11R4G4:";  // LEXUS ROUND 4, GAME 4
	
	
	function isEventHidden(code) {
		//if name is in hiddenList[], then return true
		//if name is not in hiddenList[], then return false
		var codeFilter = code.split(":");
		
		for(xx in hiddenList) {
			var hiddenEventCodeFilter = hiddenList[xx].split(":");
			
			if(codeFilter[0] == hiddenEventCodeFilter[0] && 
				codeFilter[1] == hiddenEventCodeFilter[1] &&
				codeFilter[2] == hiddenEventCodeFilter[2] &&
				codeFilter[3] == hiddenEventCodeFilter[3]
			) {
				return true;
			}
		}
		return false;
		
	}
	
/* ---------------------------------------------------
	END HIDDEN EVENTS SECTION
--------------------------------------------------- */

/*----------------------------------------------------
	// CUSTOM CODE NEW ERA - HIDE PRICES, HIDE FEES, HIDE LEVELS, HIDE SEATS, HIDE QUANTITY, HIDE MAP
-----------------------------------------------------*/

function writeHideTagResult(hideString, code, pageConfig, price_hold) {
	// set all hide variables to false.  they will be set to true later

	var hideMapTag = false;
	var hidePriceTag = false;
	var hideSeatsTag = false;
	var hideLevelTag = false;
	var hideQtyTag = false;
	var hideDescTag = false;
	var hidePkPriceTag = false;

	// section for individual events.  Set the hide variables for specific events as necessary
	if(code == "GS:WACH::FLKH1014:" || code == "GS:WACH::FLKB1021:" || code == "GS:WACH::FLKG1026:") {
		hideMapTag = false;
		hidePriceTag = true;
		hideSeatsTag = true;
		hideLevelTag = true;
		hideQtyTag = false;
		hideDescTag = false; 
		hidePkPriceTag = false;
	}
	
	if(code == "GS:WACH::THS:") {
		hideMapTag = false;
		hidePriceTag = false;
		hideSeatsTag = true;
		hideLevelTag = true;
		hideQtyTag = false;
		hideDescTag = false; 
		hidePkPriceTag = false;
	}
	
	if(code.match("GS:WACH::FLLX")) {
		hideMapTag = false;
		hidePriceTag = false;
		hideSeatsTag = true;
		hideLevelTag = true;
		hideQtyTag = false;
		hideDescTag = false; 
		hidePkPriceTag = false;
	}
	
	if(code=="FL2009:SI100105B:SIXERS:FLSI99" || code=="FL2009:SI091214B:SIXERS:FLSI99" || code=="FL2009:SI100111B:SIXERS:FLSI99") {
		hideMapTag = false;
		hidePriceTag = false;
		hideSeatsTag = false;
		hideLevelTag = true;
		hideQtyTag = false;
		hideDescTag = false; 
		hidePkPriceTag = false;
	}
	
	if(code=="WA2010:HG4PACK:Voucher:HG.FAMPACK:") {
		hideMapTag = false;
		hidePriceTag = false;
		hideSeatsTag = false;
		hideLevelTag = false;
		hideQtyTag = false;
		hideDescTag = false; 
		hidePkPriceTag = true;
	}
	
	if(code =="WA2011:JZKWVIP:VIP:JZKWVIP") {
		hideMapTag = false;
		hidePriceTag = false;
		hideSeatsTag = false;
		hideLevelTag = true;
		hideQtyTag = false;
		hideDescTag = false; 
		hidePkPriceTag = false;
	}

	//check the event description for HIDE TAGS
	if(hideString.match("<HIDEMAP>")) {hideMapTag = true;}
	if(hideString.match("<HIDEPRICE>")) {hidePriceTag = true;}
	if(hideString.match("<HIDESEATS>")) {hideSeatsTag = true;}
	if(hideString.match("<HIDEQTY>")) {hideQtyTag = true;}
	if(hideString.match("<HIDELEVEL>")) {hideLevelTag = true;}
	if(hideString.match("<HIDEDESC>")) {hideDescTag = true;}
	if(hideString.match("<HIDEPKPRICE>")) {hidePkPriceTag = true;}

	if(code == "SI2010:SI110327:GAMES:SI.COM.KHH") {
		hideMapTag = false;
		hidePriceTag = false;
		hideSeatsTag = false;
		hideLevelTag = false;
		hideQtyTag = false;
		hideDescTag = false; 
		hidePkPriceTag = false;
	}
	
	if(code.match("FLSS411") || code.match("FLSS211") || code.match("WI.HP0114") || code.match("WI.HP0121")) {
		hideMapTag = false;
		hidePriceTag = true;
		hideSeatsTag = false;
		hideLevelTag = false;
		hideQtyTag = false;
		hideDescTag = false; 
		hidePkPriceTag = true;
	}

	// DISPLAY EACH OF THE ITEMS IN THE PRICE TABLE BASED ON THE HIDE VARIABLES
	if(pageConfig == "displayPackageReservation-events") {
		document.write('<tr align="center">');
		if(code.match(":FW12")) {
			if(hideDescTag) {document.write('<td colspan="2">&nbsp;</td>');} else {document.write('<td colspan="2">', currentEventPriceInfo.description, '</td>');}
		} else {
			if(hideDescTag) {document.write('<td colspan="2">&nbsp;</td>');} else {document.write('<td colspan="2">', currentEventPriceTypeInfo.description, '</td>');}
		}
		if(hideLevelTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', currentSeatBlockInfo.level, '</td>');}
		if(hideSeatsTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', currentSeatBlockInfo.section, '</td>');}
		if(hideSeatsTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', firstRowInfo.row, '</td>');}
		if(hideSeatsTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', blockSeat, '</td>');}
		if(hideQtyTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', currentEventPriceInfo.qty, '</td>');}
		if(hidePriceTag || hidePkPriceTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', currentEventPriceInfo.ticketPrice, '</td>');}   //on this page <HIDEPKPRICE> AND <HIDEPRICE> should perform the same function.
		if(hidePriceTag || hidePkPriceTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', feeTotal, '</td>');}   //on this page <HIDEPKPRICE> AND <HIDEPRICE> should perform the same function.
		if(hidePriceTag || hidePkPriceTag) {document.write('<td class="amounthead">&nbsp;</td>');} else {document.write('<td class="amounthead">', price_hold, '</td>');}   //on this page <HIDEPKPRICE> AND <HIDEPRICE> should perform the same function.
		document.write('</tr>');
	}
	
	if(pageConfig == "displayPackageReservation-items") {
		document.write('<tr align="center">');
		if(hideDescTag) {document.write('<td colspan="6">&nbsp;</td>');} else {document.write('<td align="left" colspan="6">', currentitemInfo.description, '</td>');}
		if(hideQtyTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td>', currentitemInfo.qty, '</td>');}
		if(hidePriceTag || hidePkPriceTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td>', currentitemInfo.price, '</td>');}
		if(hidePriceTag || hidePkPriceTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td>', currentitemInfo.fee, '</td>');}
		if(hidePriceTag || hidePkPriceTag) {document.write('<td class="amount">&nbsp;</td>');} else {document.write('<td class="amount">', ilineTotal, '</td>');}
		document.write('</tr>');
	}
	
	if(pageConfig == "cartDisplay-events") {
		document.write('<tr align="center">');
		if(hideDescTag) {document.write('<td colspan="3">&nbsp;</td>');} else {document.write('	<td align="left">', lineItem.description, '</td><td colspan="2">', l_plDesc, '</td>');}
		
		if(li0.level=="" && li0.section=="" && li0.row=="" && seatString=="" && i==0) {
			//document.write('<td colspan="3">', defaultGAtext ,'</td>');
			document.write('<td colspan="3">&nbsp;</td>');
		} else {
			if(hideLevelTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', li0.level, '</td>');}
			if(hideSeatsTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', li0.section, '</td>');}
			if(hideSeatsTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', li0.row, '</td>');}
		}
		
		if(hideSeatsTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td nowrap>', seatString, '</td>');}
		if(hideQtyTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', lineItem.qty, '</td>');}
		if(hidePriceTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', amountFormat(Number(lineItem.price) - Number(lineItem.perTicket) - Number(lineItem.facFee)), '</td>');}   //on this page <HIDEPKPRICE> AND <HIDEPRICE> should perform the same function.
		if(hidePriceTag) {document.write('<td >&nbsp;</td>');} else {document.write('<td >', amountFormat(Number(lineItem.perTicket) + Number(lineItem.facFee)), '</td>');}   //on this page <HIDEPKPRICE> AND <HIDEPRICE> should perform the same function.
		if(hidePriceTag) {document.write('<td class="amounthead">&nbsp;</td>');} else {document.write('<td class="amounthead">', price_hold, '</td>');}   //on this page <HIDEPKPRICE> AND <HIDEPRICE> should perform the same function.
		document.write('</tr>');
	}

}


/*----------------------------------------------------
	END HIDDEN PRICE/SECTION/DESCRIPTION SECTION
-----------------------------------------------------*/
	
	
// custom code 
// print special buy tickets link
	function printSELink(linkID, groupCode, opt) {

		var SELink = 
			'/cgi-bin/ncommerce3/SEGetGroupList?'+
			'groupCode='+ bypassGroup +			
			'&linkID='+ linkID +
			'&shopperContext=&caller=&appCode=' + 
			'&OPT='+opt;

		return SELink;
	}
// end of cc	

	
/* --------------------------------------------------
	BoxedShadow - custom code
-------------------------------------------------- */
	function printShadowboxHeader() {
		document.write(
			'<table border="0" cellpadding="0" cellspacing="0" style="height: 100%; margin-bottom: 1.5em;">',
			'	<tr valign="bottom">',
			'		<td width="10" height="10"><img src="', imageWWWPath ,'/houston-boxed11.gif" width="10" height="10" alt="" border="0"></td>',
			'		<td style="background: url(\'', imageWWWPath ,'/houston-boxed12.gif\') bottom left repeat-x;"><img src="', imageWWWPath ,'/blank.gif" width="1" height="10" alt="" border="0"></td>',
			'		<td width="10" height="10"><img src="', imageWWWPath ,'/houston-boxed13.gif" width="10" height="10" alt="" border="0"></td>',
			'	</tr>',
			'	<tr valign="top">',
			'		<td width="10" style="background: url(\'', imageWWWPath ,'/houston-boxed21.gif\') top right repeat-y;"><img src="', imageWWWPath ,'/blank.gif" width="10" height="1" alt="" border="0"></td>',
			'		<td>'
		);
	}
	
	function printShadowboxFooter() {
		document.write(
			'		</td>',
			'		<td width="10" style="background: url(\'', imageWWWPath ,'/houston-boxed23.gif\') top left repeat-y;"><img src="', imageWWWPath ,'/blank.gif" width="10" height="1" alt="" border="0"></td>',
			'	</tr>',
			'	<tr valign="top">',
			'		<td width="10" height="10"><img src="', imageWWWPath ,'/houston-boxed31.gif" width="10" height="10" alt="" border="0"></td>',
			'		<td style="background: url(\'', imageWWWPath ,'/houston-boxed32.gif\') top left repeat-x;"><img src="', imageWWWPath ,'/blank.gif" width="1" height="10" alt="" border="0"></td>',
			'		<td width="10" height="10"><img src="', imageWWWPath ,'/houston-boxed33.gif" width="10" height="10" alt="" border="0"></td>',
			'	</tr>',
			'</table>'
		);
	}
	
// toggle display

	function toggleEl(mcsID){
		var el = document.getElementById(mcsID);
		if(el.style.display=='none')
			el.style.display="block";
		else 	
			el.style.display="none";
	
	}
	

