/**********************************************************************************   
ChangeText 
*   Copyright (C) 2001 Thomas Brattli
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by Thomas Brattli
*
*   Script date: 08/02/2001 (keep this date to check versions) 
*********************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver_1=navigator.appVersion
	this.agent_1=navigator.userAgent
	this.dom_1=document.getElementById?1:0
	this.opera5_1=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	this.ie5_1=(this.ver_1.indexOf("MSIE 5")>-1 && this.dom_1 && !this.opera5_1)?1:0; 
	this.ie6_1=(this.ver_1.indexOf("MSIE 6")>-1 && this.dom_1 && !this.opera5_1)?1:0;
	this.ie4_1=(document.all && !this.dom_1 && !this.opera5_1)?1:0;
	this.ie_1=this.ie4_1||this.ie5_1||this.ie6_1
	this.mac_1=this.agent_1.indexOf("Mac")>-1
	this.ns6_1=(this.dom_1 && parseInt(this.ver_1) >= 5) ?1:0; 
	this.ns4_1=(document.layers && !this.dom_1)?1:0;
	this.bw_1=(this.ie6_1 || this.ie5_1 || this.ie4_1 || this.ns4_1 || this.ns6_1 || this.opera5_1)
	return this
}
var bw=lib_bwcheck()
if(document.layers){ //NS4 resize fix...
	scrX= innerWidth; scrY= innerHeight;
	onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}

/****
Variables to set 
****/
msgFont= "arial,helvetiva"	// The font for the message
msgFontSize= 11			// Set the fontSize in px
msgFontColor="#000000"		// Set the fontColor
msgWidth= "300"				// Set the width of the messageblock here for netscape 4

//Set the text you want to display on mouseover here.
messages=new Array()
messages[0]="" //This is the default text that appears when you mouse out.
messages[1]="<b>3 Position Contrls</b><br/>Control your jacks from any of three convenient locations: the drivers seat, entrance door or service centre." //3position
messages[2]="<b>Benchmark</b><br/>Innovative dinnette, bed, and storage bins, all in one." // benchmark
messages[3]="" // evolution
messages[4]="<b>One Place</b><br/>Puts important switches and guages at your fingertips." // oneplace 
messages[5]="<b>PowerLine</b><br/>Automatically manages power usage to prevent power shorts" // powerline
messages[6]="<b>Quick Connect</b><br/>Ensures quick, clean sewer hook ups every time." // quickconnect
messages[7]="<b>Quickport</b><br/>Never wrestle hoses and cords through tiny access holes again." // quickport
messages[8]="<b>Rest Easy</b><br/>This multi-position lounge is a couch, a lounger and a comfortable bed." // rest easy
messages[9]="<b>RV Radio</b><br/>A radio/CD player designed exclusively for RVs." // rv radio
messages[10]="<b>Sirius</b><br/>Get connected to Sirius satellite radio programming and start listening to 120 channels of digital entertainment." // sirius
messages[11]="<b>Sleep Number</b><br/>Your Sleep Number - The key to a Perfect Night's Sleep.™" // sleep number
messages[12]="<b>Smartspace</b><br/>Philosophy of using innovative features to make the most of available space" // smartspace
messages[13]="<b>Smart Storage</b><br/>Storage space designed to be larger and easier to access" // smartstorage
messages[14]="<b>Storemore</b><br />Plentiful storage compartments extended with the slideout for easy access." // storemore
messages[15]="<b>Super Structure</b><br/>Superior structural design and precision-engineered Thermo-Panel sidewalls produce a coach of lasting beauty." // superstructure
messages[16]="<b>Titanium Touch</b><br/>An exclusive refigerator door material." // titanium touch
messages[17]="<b>True Air</b><br/>The only true residential central A/C system for motor homes." // trueair
messages[18]="<b>True Level</b><br/>A precise holding tank monitoring system that never corrodes or clogs" // truelevel
messages[19]="<b>GP Go</b><br/>A powerful integrated Global Positioning System with the flexibility of a portable GPS" // gpgo
messages[20]="<b>Ideal Rest</b><br/>A body conformin memory foam mattress that molds to the contours of your body" // ideal rest
messages[21]="<b>Maxum Chasis</b><br/>Exclusive Freightliner designs features a lowered-rail chasis design" // maxum

/********************************************************************************
You don't have to change anything below this
********************************************************************************/

//ChangeText object constructor.
function makeChangeTextObj(obj){
   	this.css = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;	
   	this.writeref = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0;	
	this.writeIt = b_writeIt;					
}
function b_writeIt(text,num){
	if (bw.ns4){
		this.writeref.write(text)
		this.writeref.close()
	}
    else this.writeref.innerHTML = messages[num]
}

//The mouoseover function. Calls the writeIt method to write the text to the div.
function changeText(num){
	if(bw.bw) oMessage.writeIt('<table width="'+msgWidth+'" border="0" cellpadding="0" cellspacing="0"><tr><td><span style="font-size:'+msgFontSize+'px; font-family:'+msgFont+'; color:'+msgFontColor+'">'+messages[num]+'</span></td></tr></table>', num)
}

//The init function. Calls the object constructor and initiates some properties.
function changeTextInit(){
	//Fixing the browsercheck for opera... this can be removed if the browsercheck has been updated!!
	bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
	if (bw.opera5) bw.ns6 = 0
	
	oMessage = new makeChangeTextObj('divMessage')
	oLinks = new makeChangeTextObj('divLinks')
	//Setting the style properties of the text layer.
	if(bw.dom || bw.ie4){
		with(oMessage.writeref.style){fontFamily=msgFont; fontSize=msgFontSize+"px"; color=msgFontColor}
	}
	//Both layers are hidden by default to prevent users from mousing over them and creating errors while the page loads.
	oMessage.css.visibility= "visible"
	oLinks.css.visibility= "visible"
}

//If the browser is ok, the init function is called on pageload. 
//if (bw.bw) onload = changeTextInit

		