

function Browser() {
	var b=navigator.appName;
	if (b=="Netscape") this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	//this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.ie6up = ((navigator.appVersion.indexOf("MSIE 6")!=-1)||(navigator.appVersion.indexOf("MSIE 7")!=-1));
	this.opera=(this.b=="opera");
	var ua=navigator.userAgent.toLowerCase();
	this.mac = (ua.indexOf("mac")!=-1);
}
var is = new Browser();


if (document.images) { 

	more_info_on = new Image();
	more_info_on.src = "images/button_more_info_on.gif";
	more_info_off = new Image();
	more_info_off.src = "images/button_more_info.gif";	

	buy_tickets_on = new Image();
	buy_tickets_on.src = "images/button_buy_tickets_on.gif";
	buy_tickets_off = new Image();
	buy_tickets_off.src = "images/button_buy_tickets.gif";

	see_all_events_on = new Image();
	see_all_events_on.src = "images/button_see_all_events_on.gif";
	see_all_events_off = new Image();
	see_all_events_off.src = "images/button_see_all_events.gif";

	sign_up_on = new Image();
	sign_up_on.src = "images/button_sign_up_on.gif";
	sign_up_off = new Image();
	sign_up_off.src = "images/button_sign_up.gif";
	
	more_on = new Image();
	more_on.src = "images/button_more_on.gif";
	more_off = new Image();
	more_off.src = "images/button_more.gif";

	contact_us_on = new Image();
	contact_us_on.src = "images/button_contact_us_on.gif";
	contact_us_off = new Image();
	contact_us_off.src = "images/button_contact_us.gif";

	get_directions_on = new Image();
	get_directions_on.src = "images/button_get_directions_on.gif";
	get_directions_off = new Image();
	get_directions_off.src = "images/button_get_directions.gif";

}

function roll(imgName, objectName, which) {
	document.images[imgName].src = eval(objectName + "_" + which + ".src");
}
