
/**********************************************************************************   
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) 
*********************************************************************************/
/**********************************************************************************   
MANCS Enterprise, Inc.
*   Modified for Image MouseOver ONLY!
*   Version: 1.0 (04/22/2002)
*   Filename: MSEFnSwitchDiv.js
*   Function Prefix: MSESWIMGDIV
*********************************************************************************/
if(document.layers){ //NS4 resize fix...
	scrX= innerWidth; scrY= innerHeight;
	onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}


msgFont= "arial,helvetiva"	// The font for the message
msgFontSize= 12				// Set the fontSize in px
msgFontColor="#000000"		// Set the fontColor
msgWidth= "100%"				// Set the width of the messageblock here for netscape 4
messages=new Array()
messages[0]="<img src=images/spacer.gif width=280 height=15 border=0>" 
messages[1]="<a href=mh.asp?sb=mh onMouseover=\"MSESubLayersImgMseOver('SubNaviMH')\" onMouseout=\"MSESubLayersImgMseOut('SubNaviMH')\"><img name=\"SubNaviMH\" src=images/navi-morehaven-off.jpg width=54 height=15 border=0 alt=\"Morehaven\"></a><img src=images/navi-dot.gif width=15 height=15 border=0><a href=ch.asp?sb=ch onMouseover=\"MSESubLayersImgMseOver('SubNaviCH')\" onMouseout=\"MSESubLayersImgMseOut('SubNaviCH')\"><img name=\"SubNaviCH\" src=images/navi-ch-off.jpg width=73 height=15 border=0 alt=\"Custom Homes\"></a><img src=images/navi-dot.gif width=15 height=15 border=0><a href=kl.asp?sb=kl onMouseover=\"MSESubLayersImgMseOver('SubNaviKL')\" " + "onMouseout=\"MSESubLayersImgMseOut('SubNaviKL')\"><img name=\"SubNaviKL\" src=images/navi-kl-off.jpg width=101 height=15 border=0 alt=\"Kingston & Lancaster\"></a><img src=images/navi-dot.gif width=15 height=15 border=0><a href=thc.asp?sb=thc onMouseover=\"MSESubLayersImgMseOver('SubNaviTHC')\" onMouseout=\"MSESubLayersImgMseOut('SubNaviTHC')\"><img name=\"SubNaviTHC\" src=images/navi-thc-off.jpg width=118 height=15 border=0 alt=\"Town Homes Community\"></a><img src=images/navi-dot.gif width=15 height=15 border=0><a href=tb.asp?sb=tb onMouseover=\"MSESubLayersImgMseOver('SubNaviTB')\" onMouseout=\"MSESubLayersImgMseOut('SubNaviTB')\"><img name=\"SubNaviTB\" " +
"src=images/navi-tb-off.jpg width=77 height=15 border=0 alt=\"The Bellehaven\"></a>"



function MSESWIMGDIVMkObjMain(obj){
   	this.MSESWIMGDIVCSS = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;	
}


function MSESWIMGDIVMkObj(obj){
   	this.MSESWIMGDIVCSS = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;	
   	this.MSESWIMGDIVWriteRef = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0;	
	this.MSESWIMGDIVWriteIt = MSESWIMGDIVWriteMethod;					
}


function MSESWIMGDIVWriteMethod(text,num){
	if (bw.ns4){
		this.MSESWIMGDIVWriteRef.write(text)
		this.MSESWIMGDIVWriteRef.close()
	}
    else this.MSESWIMGDIVWriteRef.innerHTML = messages[num]
}

//The mouoseover function. Calls the writeIt method to write the text to the div.
function MSESWIMGDIVExec(num){
	if(bw.bw && MSESWIMGDIVCode) {
		MSESWIMGDIVCode.MSESWIMGDIVWriteIt('<table width=500 border="0" cellpadding="0" cellspacing="0" bgColor=#03323C><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 MSESWIMGDIVInit(){
	//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;
	
	MSESWIMGDIVCode = new MSESWIMGDIVMkObj('MSESWIMGDIVLayer');
	
	//Setting the style properties of the text layer.
	if(bw.dom || bw.ie4){
		with(MSESWIMGDIVCode.MSESWIMGDIVWriteRef.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.
	MSESWIMGDIVCode.MSESWIMGDIVCSS.visibility= "visible";
	
	
	if (bw.dom) {	
		MSESWIMGDIVCodeMain = new MSESWIMGDIVMkObjMain('MSESWIMGDIVLayerMain');
		MSESWIMGDIVCodeMain.MSESWIMGDIVCSS.visibility= "visible";
	}
	
}

 

