// JScript File
/**********************************************************************************   
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=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	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=lib_bwcheck()
if(document.layers){ //NS4 resize fix...
	scrX= innerWidth; scrY= innerHeight;
	onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}

//Set the text you want to display on mouseover here.
messages=new Array()
messages[0]="<span>Click on a road</span> to learn more about that project."
messages[1]="<span>Interstate 275</span> - Past, Present and Future Projects."
messages[2]="<span>Downtown Tampa Interchanges</span> - Past, Present and Future Projects."
messages[3]="<span>Interstate 4</span> - Past, Present and Future Projects."
messages[4]="<span>Interstate 75</span> - Past, Present and Future Projects."
messages[5]="<span>Interstate 175</span> - Past, Present and Future Projects."
messages[6]="<span>Interstate 375</span> - Past, Present and Future Projects."
messages[7]="<span>Tampa Airport Interchanges</span> - Past, Present and Future Projects."
messages[8]="<span>Sunshine Skyway Bridge</span> - Past, Present and Future Projects."
messages[9]="<span>I-4/Selmon Expressway Connector</span> - New Roadway Corridor Project."

/********************************************************************************
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 = '<p>' + messages[num] + '</p>'
}

//The mouoseover function. Calls the writeIt method to write the text to the div.
function changeText(num){
	if(bw.bw) oMessage.writeIt('<p>' + messages[num] + '</p>', 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('where')
	//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

	function refreshtype(newstype){
	window.location = 'http://www.mytbi.com/closures/default.asp?newstype=' + newstype;
	}
	function refreshcounty(county){
		window.location = 'http://www.mytbi.com/closures/default.asp?county=' + county;
		}
	function refreshroad(road){
	window.location = 'http://www.mytbi.com/closures/default.asp?road=' + road;
	}

	function PopupPic(sPicURL) {
	 window.open( "popup.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200");
	}
	/*--------------------------For Gallery Page----------------*/
    function refreshtype2(newstype){
	window.location = 'http://www.mytbi.com/gallery/default.asp?newstype=' + newstype;
	}
	function refreshcounty2(county){
		window.location = 'http://www.mytbi.com/gallery/default.asp?county=' + county;
		}
	function refreshroad2(road){
	window.location = 'http://www.mytbi.com/gallery/default.asp?road=' + road;
	}
	function refreshproject2(project){
	window.location = 'http://www.mytbi.com/gallery/default.asp?project=' + project;
	}
	/*-------------------------For Photo Admin Page-------------------*/
    function refreshtype3(newstype,FileType){
	window.location = 'http://www.mytbi.com/content/admin/gallery/default.asp?FileType=' + FileType + '&newstype=' + newstype;
	}
	function refreshcounty3(county,FileType){
		window.location = 'http://www.mytbi.com/content/admin/gallery/default.asp?FileType=' + FileType + '&county=' + county;
		}
	function refreshroad3(road,FileType){
	window.location = 'http://www.mytbi.com/content/admin/gallery/default.asp?FileType=' + FileType + '&road=' + road;
	}
	function refreshproject3(project,FileType){
	window.location = 'http://www.mytbi.com/content/admin/gallery/default.asp?FileType=' + FileType + '&project=' + project;
	}    