// 
	var TN_Widget = function() {
		return {
			//Options
			newWindow : true,
			linkText : "view
tickets",
			tixUrl : "http://www.ticketnetwork.com/tix/",
			trackingParams : "",
			custLink : true,
			//depricated
			kbid : "",
			//Overwrittable functions
			trackingLink :"",
			CreateCustomUrl : function(row) {
				return this.tixUrl +  row[7] + "-tickets-"+ row[6] + ".aspx";
			},
			CreateEventRow : function(row, isAlt) {
				return "
| " +
				row[0] +" | " +
				row[1] +" " +
				row[2] +" | " +
				row[3] +" " +
				row[4] + " " +
				row[5] + " | "+ this.linkText+ " | 
";
			},
			
			AddCss: function(cssUrl) {
				var fileref=document.createElement("link");
				fileref.setAttribute("rel", "stylesheet");
				fileref.setAttribute("type", "text/css");
				fileref.setAttribute("href", cssUrl);
				document.getElementsByTagName("head")[0].appendChild(fileref);
			},
			
			CreateTable : function(eventData,kywrds,url) {
				if(typeof(TN_SetWidgetOptions) == "function")
					TN_SetWidgetOptions();
				//for backwards compatability
				if(this.kbid != "")
					this.trackingParams = "?img=249&kbid="+this.kbid;
				var newTable = [];
				for(var cntr = 0; cntr < eventData.length; cntr++)
					newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
					
				var objToAddTo;
				
				if(objToAddTo = document.getElementById("tn_results_container")) {
					objToAddTo.innerHTML = '' + newTable.join('') + '
';	  
				} else
					document.write('' + newTable.join('') + '
 ');
				
				if(eventData.length >= 100 && kywrds != undefined) {
					if(objToAddTo = document.getElementById("tn_results_container")) {
						objToAddTo.innerHTML += '';
					} else {
						document.write("");
					}
				}
				
				if(eventData.length > 0) {
					document.getElementById("previewNote").style.display = "none";
				}
			}
		};
	}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['You Used to Call Me Marie...','Clarke Theatre Foundation','Mission, Canada','Monday','11/3/2025','7:30 PM','7364171','You-Used-to-Call-Me-Marie----11-3-2025'],['The Used','Egyptian Room At Old National Centre','Indianapolis, IN','Tuesday','11/4/2025','8:00 PM','7106315','The-Used-11-4-2025'],['The Used','The Rave - Milwaukee','Milwaukee, WI','Wednesday','11/5/2025','8:00 PM','7106324','The-Used-11-5-2025'],['The Used','The Rave - Milwaukee','Milwaukee, WI','Friday','11/7/2025','8:00 PM','7106325','The-Used-11-7-2025'],['The Used','The Rave - Milwaukee','Milwaukee, WI','Saturday','11/8/2025','8:00 PM','7106326','The-Used-11-8-2025'],['The Used - 3 Day Pass','Theatre Of The Living Arts','Philadelphia, PA','Monday','11/10/2025','TBD','7106317','The-Used---3-Day-Pass-11-10-2025'],['The Used','Theatre Of The Living Arts','Philadelphia, PA','Monday','11/10/2025','8:00 PM','7106318','The-Used-11-10-2025'],['The Used','Theatre Of The Living Arts','Philadelphia, PA','Tuesday','11/11/2025','8:00 PM','7106319','The-Used-11-11-2025'],['The Used','Theatre Of The Living Arts','Philadelphia, PA','Thursday','11/13/2025','8:00 PM','7106320','The-Used-11-13-2025'],['Papa Roach, The Used & Sleep Theory','Rogers Arena','Vancouver, Canada','Tuesday','11/25/2025','7:00 PM','7121625','Papa-Roach--The-Used---Sleep-Theory-11-25-2025'],['Papa Roach, The Used & Sleep Theory','Prospera Place','Kelowna, Canada','Wednesday','11/26/2025','7:00 PM','7121626','Papa-Roach--The-Used---Sleep-Theory-11-26-2025'],['Papa Roach, The Used & Sleep Theory','Scotiabank Saddledome','Calgary, Canada','Friday','11/28/2025','7:00 PM','7121627','Papa-Roach--The-Used---Sleep-Theory-11-28-2025'],['Papa Roach, The Used & Sleep Theory','Rogers Place','Edmonton, Canada','Saturday','11/29/2025','7:00 PM','7121628','Papa-Roach--The-Used---Sleep-Theory-11-29-2025'],['Papa Roach, The Used & Sleep Theory','SaskTel Centre','Saskatoon, Canada','Monday','12/1/2025','6:00 PM','7121629','Papa-Roach--The-Used---Sleep-Theory-12-1-2025'],['Papa Roach, The Used & Sleep Theory','Canada Life Centre','Winnipeg, Canada','Tuesday','12/2/2025','7:00 PM','7121630','Papa-Roach--The-Used---Sleep-Theory-12-2-2025'],['Papa Roach, The Used & Sleep Theory','Coca-Cola Coliseum','Toronto, Canada','Friday','12/5/2025','7:00 PM','7121631','Papa-Roach--The-Used---Sleep-Theory-12-5-2025'],['Papa Roach, The Used & Sleep Theory','Kitchener Memorial Auditorium','Kitchener, Canada','Saturday','12/6/2025','7:00 PM','7121632','Papa-Roach--The-Used---Sleep-Theory-12-6-2025'],['Papa Roach, The Used & Sleep Theory','Place Bell','Laval, Canada','Monday','12/8/2025','8:00 PM','7121634','Papa-Roach--The-Used---Sleep-Theory-12-8-2025'],['Papa Roach, The Used & Sleep Theory','Scotiabank Centre','Halifax, Canada','Wednesday','12/10/2025','8:00 PM','7121635','Papa-Roach--The-Used---Sleep-Theory-12-10-2025']],'The Used','http://www.ticketnetwork.com/ticket/The-Used-events.aspx');