var zummi
var cliffCheck
var dirty = false;
var FlipCount = 0;
var flippie;
var fakei = "plsdont"
var dirty = false;
var dirtyX = false;
var FlipCount = 0;
var flippie;
var hold = 1;
var holdMe;
var select1;
var select2;
var j = 0;
var i=0;
var x=0;
var thisVar = "";
var sendHome;
var hold;
var elem

function changeUp(){
var me;
var grabBag="";
var tote = "";
var xx = 0;
flippie = eval("document.formMain.listHere");
	for(xx=0;xx!=20;xx++){
	flippie.options[xx].selected = true;
	dynamo();
}

}

function dropsRePopulate(zummi,dropVarX){
flippie = eval("document.formMain."+zummi);
var dropList;
var dropListRay;
var dropName;
var outPut;
var dropVarX
dropVar = dropVarX;

//alert(dropVarX+" dropVar");
	for(xx=0;xx!=flippie.length;xx++){
		me = flippie.options[xx].value;
		if(me == dropVar){flippie.options[xx].selected = true;}
	}
	
//dropList = dropVar.indexOf(",");
//alert(areaList);
/*	if (dropList != -1){
		dropListRay = dropVar.split(",");
		for(dropName in dropListRay){
			//alert(areaListRay[areaName]);
			for(xx=0;xx!=flippie.length;xx++){
				me = flippie.options[xx].value;
				//outPut = outPut+me+" "+areaListRay[areaName]+"<br>";
				if(me == dropListRay[dropName]){flippie.options[xx].selected = true;}
			}
		}
		//document.write(outPut);
	}else{*/
}

function criRePopulate(){

var outPut;
var criPart;
var criRay;
var cirCheck;
	criCheck = criString.indexOf(",");
	if (criCheck != -1){	
		criRay = criString.split(",");
		for (criPart in criRay){	
			for(xx=0;xx!=document.formMain.length;xx++){
				me=document.formMain.elements[xx].name;
				if(me == criRay[criPart]){document.formMain.elements[xx].checked = true;}
				outPut = outPut+me+" - "+criRay[criPart]+"<br>";
			}
		}
//document.write(outPut);
	}
}

function areaRePopulate(){
flippie = eval("document.formMain.listHere");
var areaList;
var areaListRay;
var areaName;
var outPut;
areaList = countyVar.indexOf(",");
//alert(areaList);
	if (areaList != -1){
		areaListRay = countyVar.split(",");
		for(areaName in areaListRay){
			//alert(areaListRay[areaName]);
			for(xx=0;xx!=20;xx++){
				me = flippie.options[xx].value;
				//outPut = outPut+me+" "+areaListRay[areaName]+"<br>";
				if(me == areaListRay[areaName]){flippie.options[xx].selected = true;}
			}
		}
		//document.write(outPut);
	}else{
		for(xx=0;xx!=20;xx++){
			me = flippie.options[xx].value;
			if(me == countyVar){flippie.options[xx].selected = true;}
		}
	}
grabBag=countyVar
var xx = 0;
var xxl = 0;
var xxmin = 0;
var xxover = 0;
var thisVar;
var holdMeLenOver = 0;
var holdMeXL = grabBag.split(",")
	for(xxl=0;xxl!=holdMeXL.length;xxl++){
		if (holdMeXL[xxl] != ""){
			var holdMeX = eval(holdMeXL[xxl].replace(/ /g, '_')+"ID").split(",");
			var holdMe = eval(holdMeXL[xxl].replace(/ /g, '_')).split(",");
			var holdMeLen = holdMe.length+holdMeLenOver
			holdMeLenOver = (holdMeLen)
			document.formMain.townies.length = (holdMeLen);
			//document.formMain.townies.options[xxover].selected = true;
			document.formMain.townies.options[xxover].text = "----------- "+countName(holdMeXL[xxl])+" -----------";
			document.formMain.townies.options[xxover].value = "moned";
			xxover++;
			for(xx=xxover;xx!=(holdMeLen);xx++){
				document.formMain.townies.options[xx].selected = false;
				document.formMain.townies.options[xx].text = holdMe[xxmin];
				document.formMain.townies.options[xx].value = holdMeX[xxmin];
				//if (document.formMain.townies.options[xx].value == ""){document.formMain.townies.options[xx].value = " ----------- ";}
				xxmin++;
			}
			xxover = xx;
			xxmin = 0;
		}
	}
townShipRePopulate(holdMeLen);
}


function townShipRePopulate(longTime){
//alert("In Town");
flippie = eval("document.formMain.townies");
var townList;
var townListRay;
var townName;
var outPut;
townList = townVar.indexOf(",");
	if (townList != -1){
		townListRay = townVar.split(",");
		for(townName in townListRay){
			//alert(areaListRay[areaName]);
			for(xx=0;xx!=longTime;xx++){
				me = flippie.options[xx].value;
				//outPut = outPut+me+" "+areaListRay[areaName]+"<br>";
				if(me == townListRay[townName]){flippie.options[xx].selected = true;}
			}
		}
		//document.write(outPut);
	}else{
		for(xx=0;xx!=longTime;xx++){
			me = flippie.options[xx].value;
			if(me == townVar){flippie.options[xx].selected = true;}
		}
	}
}

function homeReset(){
document.imgFnd.nextStep.value = "8";
document.area.nextStep.value = "1";
//alert("Hello Puppet");
}
function formVal(elem,zummi){
var yuck = 0;
hold =	eval("document."+zummi);
elem.split(",");
for (i in elem) {
document.write(i);
	if (hold.i.value == ""){alert("Please enter a value for "+hold.elements[i]);yuck=1;break;}
}
	if (yuck == 0){alert("test");}//hold.submit()
//JS From Details.asp
}

function propMove(who){document.hereX.nextStep.value ="7"; document.hereX.noVal.value=who;hereX.submit();}
function NoPic(zummi){if(zummi == 1){document.PicMain.src = "images/nopic.jpg"};}
function Swap(zummi){document.PicMain.src = zummi;}
function Swap2(zummi){document.PicMain2.src = zummi;}

//End JS From Details.asp

//JS From Results.asp

function moverX(){document.nav.nextStep.value ="2"; document.nav.submit();}
function mover2X(){document.location.href="default.asp";}
function mover3X(who){document.nav.nextStep.value = who; document.nav.submit();}

function NoPiclil(zummi){zummi.src = "images/noPicLil.jpg"; return false;}

function moveMain(who,zummi){
	var holdIt;
	var hangOn;
	holdIt = eval("window.opener.document."+who+".nextStep");
	hangOn = eval("window.opener.document."+who);
	holdIt.value=zummi; 
	hangOn.submit();
}

function moveAll(who,zummi){
	var holdIt;
	var hangOn;
	holdIt = eval("document."+who+".nextStep");
	hangOn = eval("document."+who);
	holdIt.value=zummi; 
	hangOn.submit();
}
//End JS From Results.asp

//JS From Code.asp
function mover(){history.back();}
function moverx(){document.forms[0].nextStep.value ="2"; document.forms[0].submit();}
function mover2(){document.trans.submit();}
function mover3(){document.location.href="default.asp";}
//End JS From Code.asp

//JS From Property Type


function mrClean()
{
	var f = document.formMain;
	if(f.SchoolDistrict.selectedIndex < 0 && f.listHere.selectedIndex < 0 && (f.townies.selectedIndex < 0 || f.townies.length < 2))
		alert("You should select at least one location for your search");
	else
		f.submit();
}

function movOther(){
	if(reg == true){
		cliffCheck = confirm('Are you sure you want to leave Registration? All information entered so far will be lost.\nOK = Exit Registration\nCancel = Stay and Continue');
		if (cliffCheck == true){document.location.href="default.asp";}
	}else{
		document.location.href="default.asp"
	}
}



function checkem(flippie){
flipped =eval("document.formMain."+flippie);
radd1 = document.formMain.rad1
radd2 = document.formMain.rad2
radd3 = document.formMain.rad3
radd4 = document.formMain.rad4
checkFlip = flipped.checked;
	if(checkFlip == true){FlipCount++;}else{radd1.checked=false;radd2.checked=false;radd3.checked=false;radd4.checked=false;FlipCount--;}
	if(FlipCount <= 0){dirty = false;}else{dirty = true;}
//document.formMain.info.value = FlipCount;
}

function Flip(flippie){
flipped =eval("document.formMain."+flippie);
radd1 = document.formMain.rad1
radd2 = document.formMain.rad2
radd3 = document.formMain.rad3
radd4 = document.formMain.rad4
checkFlip = flipped.checked;
	if(checkFlip == true){FlipCount--;flipped.checked=false;}else{radd1.checked=false;radd2.checked=false;radd3.checked=false;radd4.checked=false;FlipCount++;flipped.checked=true;}
	if(FlipCount <= 0){dirty = false;}else{dirty = true;}
document.formMain.rad.value = flipped.value;
}


//Emd JS from Property Type

//CodeII JS

function checkemCri(flippie){
flipped =eval("document.formMain."+flippie);
checkFlip = flipped.checked;
	if(checkFlip == true){FlipCount++;}else{FlipCount--;}
	if(FlipCount <= 0){dirty = false;}else{dirty = true;}
//document.formMain.info.value = FlipCount;
}

function FlipCri(flippie){
flipped =eval("document.formMain."+flippie);
checkFlip = flipped.checked;
	if(checkFlip == true){FlipCount--;flipped.checked=false;}else{FlipCount++;flipped.checked=true;}
	if(FlipCount <= 0){dirty = false;}else{dirty = true;}
//document.formMain.info.value = FlipCount;
}
//End CodeII JS

//MX JS
<!--

<!--
function Popables(theURL,winName,features,w,h) { //v2.0
var LeftPosition;
var TopPosition;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
window.open(theURL,winName,'top='+TopPosition+',left='+LeftPosition+','+features);
// window.open(theURL,winName,features);
}
//-->

function MM_openBrWindow(theURL,winName,features,w,h) { //v2.0
var LeftPosition;
var TopPosition;
//document.write(w+" Width");
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
//alert(TopPosition);
//alert(LeftPosition);
  window.open(theURL,winName,'top='+TopPosition+',left='+LeftPosition+','+features);
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
// End MX JS
// Splash JS
function val(){if (document.imgFnd.noVal.value != ""){document.imgFnd.whichDoctor.value="mls";document.imgFnd.submit();}else{alert("You must enter a MLS value to run a MLS search")}}
function valX(){if (document.imgFnd.addX.value != ""){document.imgFnd.nextStep.value="6";document.imgFnd.whichDoctor.value="addx";document.imgFnd.submit();}else{alert("You must enter an address to run an address search")}}

// End Splash JS

<!-- Begin
function hidden()
{document.body.style.overflow='hidden';}
function unhidden()
{document.body.style.overflow='';}
//  End -->

// Registration JS

//history.previous = history[2];
function mover(){document.nav.nextStep.value ="2"; document.nav.submit();}
function mover1(){document.nav.nextStep.value ="6"; document.nav.submit();}
function mover3(who){document.nav.nextStep.value = who; document.nav.submit();}
function mover4(){history.back();}
function mover5(){history.go(-2);}
function NoPic(zummi){if(zummi == 1){document.PicMain.src = "images/nopic.jpg"};}
function Swap(zummi){document.PicMain.src = zummi;}

function send(zummi){
for(i=0;i!=6;i++){
	hold =	document.nav.elements[i].value;
	if(hold == "" ){sendHome = "nope";alert("Please Enter a value for "+document.nav.elements[i].name);break;}else{sendHome = "plsDo";}
}

	if(zummi == ""){if (document.nav.buyAgent.value == "Select One" || document.nav.preApproved.value == "Select One" || document.nav.PAread.checked == false){sendHome = "nope";alert("Please make sure all Additional Required Information has been completed.");}}
	if(zummi == "no"){if (document.nav.buyAgent.value == "Select One" || document.nav.preApproved.value == "Select One" ){sendHome = "nope";alert("Please make sure all Additional Required Information has been completed.");}}
	//document.write (document.nav.PAread.checked)
	if (sendHome == "plsDo"){document.nav.submit();}
}
// End Registration JS

// Area JS
function selectionTest()
{
		thisVar = document.formMain.listHere.options[i].selected;
		if (thisVar == true){dirty = true;dirtyX = true;endAll = 1;}
		i++;	
		if (i == 20){i = 0;}

intSend = window.setTimeout("selectionTest()",10);
	
}

function selectionTestX()
{
//alert("In Man");
var endAllX=0;
var thisVarXL;
var thisVarXY;
for(x=0;x!=topBox;x++){
	thisVarXL = document.formMain.townies.options[x].selected;
if (thisVarXL == true){
	thisVarXY = document.formMain.townies.options[x].selectedIndex;
	thisVarXY = document.formMain.townies.options[thisVarXY].value;
}
	if (thisVarXL == true && thisVarXY != "none" && dirtyX == true){dirty = true;endAllX = 1;break;}	
	//if (x == topBox){x = 0;}
}	
	if (endAllX == 0){dirty = false;}
}

function NewSelection(flippie){
	NewSelection2(flippie);
	dynamo();
}

function NewSelection2(flippie){
	var cid = GetCIdByNum(flippie);
	var idx = -1;
	var list = document.formMain.listHere.options;
	for (var i=0; i<list.length; i++)
		if (list[i].value == cid){
			idx = i;
			break;
		}

	if (idx == -1) return;

	thisVar = list[idx].selected;
	if(thisVar == true){
		list[idx].selected=false;
		dirty = false;
		dirtyX = false;
	}else{
		list[idx].selected=true;
		dirty = true;
	}
}

function GetCIdByNum(cNum){
	switch("" + cNum){
		case "0":
			return "EAL";
			break;
		case "1":
			return "NAL";
			break;
		case "2":
			return "NWA";
			break;
		case "3":
			return "SAL";
			break;
		case "4":
			return "WAL";
			break;
		case "5":
			return "ARM";
			break;
		case "6":
			return "BEA";
			break;
		case "7":
			return "BUT";
			break;
		case "8":
			return "CLA";
			break;
		case "9":
			return "LAW";
			break;
		case "10":
			return "MER";
			break;
		case "11":
			return "NTH";
			break;
		case "12":
			return "ETH";
			break;
		case "13":
			return "FAY";
			break;
		case "14":
			return "IND";
			break;
		case "15":
			return "SOM";
			break;
		case "16":
			return "WML";
			break;
		case "17":
			return "GRE";
			break;
		case "18":
			return "STH";
			break;
		case "19":
			return "WSH";
			break;
		case "20":
			return "Jefferson";
			break;
		case "21":
			return "Clearfield";
			break;
		case "22":
			return "Elk";
			break;
		case "23":
			return "McKean";
			break;
		case "24":
			return "Cameron";
			break;
		case "25":
			return "Centre";
			break;
		case "26":
			return "Clinton";
			break;
		default:
			return "";
			break;
	}

}


/* ------ORIGINAL DYNAMO 6/3/03---------------------------------
function dynamo(){
var me;
flippie = eval("document.formMain.listHere");
me = flippie.options[flippie.selectedIndex].value;
//document.formMain.holdon.value = me;
//alert(me);
var xx = 0;
var thisVar;
var holdMeX = eval(me+"ID").split(",");
var holdMe = eval(me).split(",");
document.formMain.townies.length = holdMe.length;
//thisVar = document.formMain.townies.length;
//thisrVar = 0;
document.formMain.townies.options[0].selected = true;
	for(xx=0;xx!=holdMe.length;xx++){
		document.formMain.townies.options[xx].text = holdMe[xx];
		document.formMain.townies.options[xx].value = holdMeX[xx];
	}

//document.formMain.townies.length = holdMe.length;
//alert(thisVar);
//if (thisVar == true){document.formMain.listHere.options[flippie].selected=false;dirty = false;}else{document.formMain.listHere.options[flippie].selected=true;dirty = true;}
}
*/

function countName(zummi){
	switch(zummi){
		case "NWA" :
			return "North West Allegheny";
			break;
		case "SAL" :
			return "South Allegheny";
			break;
		case "EAL" :
			return "East Allegheny";
			break;
		case "NAL" :
			return "North Allegheny";
			break;		
		case "WAL" :
			return "West Allegheny";
			break;
		case "ETH" :
			return "East Other";
			break;
		case "STH" :
			return "South Other";
			break;
		case "NTH" :
			return "North Other";
			break;		
		case "ARM" :
			return "Armstrong";
			break;
		case "WSH" :
			return "Washington";
			break;
		case "GRE" :
			return "Greene";
			break;
		case "WML" :
			return "Westmoreland";
			break;
		case "SOM" :
			return "Somerset";
			break;
		case "IND" :
			return "Indiana";
			break;
		case "FAY" :
			return "Fayette";
			break;
		case "LAW" :
			return "Lawrence";
			break;
		case "CLA" :
			return "Clarion/Venango";
			break;
		case "BUT" :
			return "Butler";
			break;
		case "BEA" :
			return "Beaver";
			break;
		case "MER" :
			return "Mercer";
			break;
		case "ERI" :
			return "Erie";
			break;	
		case "CRA" :
			return "Crawford";
		default:
			return zummi;
			break;
	}
}

function dynamo(){
var me;
var grabBag="";
var tote = "";
var xx = 0;
flippie = eval("document.formMain.listHere");
for(xx = 0; xx < flippie.options.length; xx++){
	me = flippie.options[xx].selected;
	if(me == true){
		grabBag=tote+flippie.options[xx].value+",";
		tote = grabBag;
	}
}
//document.formMain.holdon.value = grabBag;

var xx = 0;
var xxl = 0;
var xxmin = 0;
var xxover = 0;
var thisVar;
var holdMeLenOver = 0;
var holdMeXL = grabBag.split(",")
	for(xxl=0;xxl!=holdMeXL.length;xxl++){
		if (holdMeXL[xxl] != "") {
			var holdMeX = eval(holdMeXL[xxl].replace(/ /g, '_')+"ID").split(",");
			var holdMe = eval(holdMeXL[xxl].replace(/ /g, '_')).split(",");
			if (holdMe.length > 1){
				var holdMeLen = holdMe.length+holdMeLenOver
				holdMeLenOver = (holdMeLen)
				document.formMain.townies.length = (holdMeLen);
				//document.formMain.townies.options[xxover].selected = true;
				document.formMain.townies.options[xxover].text = "-------- "+countName(holdMeXL[xxl])+" --------";
				document.formMain.townies.options[xxover].value = "moned";
				xxover++;
				for(xx=xxover;xx!=(holdMeLen);xx++){
					document.formMain.townies.options[xx].selected = false;
					document.formMain.townies.options[xx].text = holdMe[xxmin];
					document.formMain.townies.options[xx].value = holdMeX[xxmin];
					//if (document.formMain.townies.options[xx].value == ""){document.formMain.townies.options[xx].value = " ----------- ";}
					xxmin++;
				}
				xxover = xx;
				xxmin = 0;
			}
		}
	}
	if (holdMeLenOver == 0)
		document.formMain.townies.length = 0;
	if (holdMeXL.length == 1 && holdMeXL[0] == "")
	{
		document.formMain.townies.length = 1;
		document.formMain.townies[0].text = "Please Select A County";
		document.formMain.townies[0].value = "none";
		document.formMain.townies[0].selected = false;
		document.formMain.listHere.focus();
	}
//document.formMain.townies.length = holdMe.length;
//alert(thisVar);
//if (thisVar == true){document.formMain.listHere.options[flippie].selected=false;dirty = false;}else{document.formMain.listHere.options[flippie].selected=true;dirty = true;}
}

// END Area JS


// Text Change by DHTMLCentral

/**********************************************************************************   
ChangeText 
*   Copyright (C) 2001 <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
*   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 <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a> 
*********************************************************************************/

function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new 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= 12				// 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]="This is link nr 1, you should really visit it!"
messages[2]="Link nr 2 (this one) is even better!"
messages[3]="This link however, nr3, isn't that good..."
messages[4]="Maybe you should try this one?<br>I'll write some more text to show that it wraps correctly to several lines."
messages[5]="<img src=\"changetext_image.gif\" width=\"56\" height=\"54\" alt=\"\" border=\"0\"><br>As you see, you can put html in here too, like an image."
messages[6]="Later all.."

/********************************************************************************
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



