
function loadRollovers(baseurl) {
    A0 = new rollover("eventoverview",
                      baseurl + "/img/eventoverview.gif",
                      baseurl + "/img/eventoverview-over.gif",
                      "eventoverview");
    A1 = new rollover("gamingschedule",
                      baseurl + "/img/gamingschedule.gif",
                      baseurl + "/img/gamingschedule-over.gif",
                      "gamingschedule");
    A2 = new rollover("pricingandpayment",
                      baseurl + "/img/pricingandpayment.gif",
                      baseurl + "/img/pricingandpayment-over.gif",
                      "pricingandpayment");
    A3 = new rollover("signup",
                      baseurl + "/img/signup.gif",
                      baseurl + "/img/signup-over.gif",
                      "signup");
    A4 = new rollover("editprofile",
                      baseurl +
                      "/img/editprofile.gif",
                      baseurl + "/img/editprofile-over.gif",
                      "editprofile");
    A5 = new rollover("logout",
                      baseurl + "/img/logout.gif",
                      baseurl + "/img/logout-over.gif",
                      "logout");
    A6 = new rollover("register",
                      baseurl + "/img/register.gif",
                      baseurl + "/img/register-over.gif",
                      "register");
}

function rollover(label,inactive,active,status)
{
	this.rollokay   = testbrowser();
	this.imagelabel   = label;
	this.statusline = status;
	this.active   = false;

	if( this.rollokay )
	{
		this.activeimage         = new Image();
		this.activeimage.src     = active;
		this.inactiveimage       = new Image();
		this.inactiveimage.src   = inactive;
	}
	
	this.mouseOver = activerollover;
	this.mouseOut  = inactiverollover;
}

function activerollover()
{
	if ( this.rollokay && !this.isSelected )
	{
		document.images[this.imagelabel].src = this.activeimage.src;
	}
	this.active = true
	window.status = this.statusline;
}

function inactiverollover()
	{
		if ( this.rollokay )
		{
			if( !this.isSelected ) {document.images[this.imagelabel].src = this.inactiveimage.src;}
		}
		this.active = false
		window.status = '';
	}

function testbrowser()
{
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		if(parseInt(navigator.appVersion) >= 4)
		{
			return( 1 );
    } 
    else 
    {
			return( 0 );
		}
	} 
	else if (navigator.appName == "Netscape") 
	{
		if(parseInt(navigator.appVersion) >= 3) 
		{
			return( 1 );
		} 
		else 
		{
			return( 0 );
		}
	}
}

NS = IE = false;

if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.userAgent.indexOf("Mac")==-1))
IE = true;
else
NS = true;
