//platform and browser check
browser = new BrowserCheck();
function BrowserCheck() 
{
	var b = navigator.appName
	// convert all characters to lowercase to simplify testing
    var agt = navigator.userAgent.toLowerCase()
	
	// get platform
	this.win = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )
	this.mac = (agt.indexOf("mac")!=-1)
	// get browser
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.is_major = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.is_major>=4)
	this.ns4 = (this.b=="ns" && this.is_major==4)
	this.ns5 = (this.b=="ns" && this.is_major==5)
	this.ie = (this.b=="ie" && this.is_major>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.is_major = 5
	this.min = (this.ns || this.ie)
}


//open new browser window
var newWin = null;	
function createNewWindow(strURL)
{	
    closeNewWindow(); 
    newWin = window.open(strURL,"","toolbar=yes,scrollbars=yes,resizable=yes,height=600,width=800,left=10,top=10");
}

function closeNewWindow()
{
    if(newWin != null)
    {
        newWin.close();
    }
}

//preLoad images
if (document.images) 
{
	subOn = new Image(13,11)
	subOn.src = "images/m_uparrow_on.gif"
	subOff = new Image(13,11)
	subOff.src = "images/m_uparrow_off.gif"

	sub15On = new Image(13,11)
	sub15On.src = "images/m_uparrow_on.gif"
	sub15Off = new Image(13,11)
	sub15Off.src = "images/m_uparrow_off.gif"

	m0_On = new Image(90,26)
	m0_On.src = "images/asp_on.gif"
	m0_Off = new Image(90,26)
	m0_Off.src = "images/asp_off.gif"

	m1_On = new Image(90,26)
	m1_On.src = "images/url_on.gif"
	m1_Off = new Image(90,26)
	m1_Off.src = "images/url_off.gif"

	m2_On = new Image(90,26)
	m2_On.src = "images/contact_on.gif"
	m2_Off = new Image(90,26)
	m2_Off.src = "images/contact_off.gif"

	m3_On = new Image(90,26)
	m3_On.src = "images/home_on.gif"
	m3_Off = new Image(90,26)
	m3_Off.src = "images/home_off.gif"
}	