// Browser Sniffer
var doCheck = (document.all!=null);
if (doCheck == false) {
	versionNN = navigator.userAgent.toLowerCase();
	if (versionNN.search(/mozilla\/4/i) != -1) 
		browser = "NN4";
	else 
		browser = "NN6";
} else {
	var agt = navigator.userAgent.toLowerCase();
	if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) 
		browser = "IE";
	else 
		browser = "OP";
}


// Rollover/out
// Hide/Show Layer Scripts for Shows Div
function getLayer(id) {        
   	if (browser == "IE" || browser == "OP")
   		return document.all[id];
	else if (browser == "NN4")
		return document.layers[id];
	else
		return document.getElementById(id);
}
function showLayer(id) {        
   var get = getLayer(id)
   if (get != null)          
     	if (browser != "NN4")
         	get.style.visibility = "visible";
      	else
         	get.visibility = "show";
}
function hideLayer(id) {
	var get = getLayer(id)        
	if (get != null)        
      if (browser != "NN4")
         get.style.visibility = "hidden";
      else
         get.visibility = "hide";
}
function closeOBJ() {
	hideLayer('tourguide');
}
function openOBJ() {
	showLayer('tourguide');
}


// Map Pop Script to launch daughter win w/ image

// **********following the screen ********************

function setVariables() {
imgwidth = 250;
imgheight = 400;
if (navigator.appName == "Netscape") {
horz=".left";
vert=".top";
docStyle="document.";
styleDoc="";
innerW="window.innerWidth";
innerH="window.innerHeight";
offsetX="window.pageXOffset";
offsetY="window.pageYOffset";
}
else {
horz=".pixelLeft";
vert=".pixelTop";
docStyle="";
styleDoc=".style";
innerW="document.body.clientWidth";
innerH="document.body.clientHeight";
offsetX="document.body.scrollLeft";
offsetY="document.body.scrollTop";
}
}
function checkLocation() {
objectXY="tourguide";
var availableX=eval(innerW);
var availableY=eval(innerH);
var currentX=eval(offsetX);
var currentY=eval(offsetY);
x=availableX-(imgwidth+30)+currentX;
y=availableY-(imgheight+20)+currentY;
evalMove();
setTimeout("checkLocation()",10);
}
function evalMove() {
eval(docStyle + objectXY + styleDoc + horz + "=" + x);
eval(docStyle + objectXY + styleDoc + vert + "=" + y);
}

function mover(obj) {
	obj.style.backgroundColor = "#5690CD";
	obj.style.cursor = "hand";
}
function mover1(obj) {
	obj.style.backgroundColor = "#2A477A";
	obj.style.cursor = "hand";
}
		
function mout(obj) {
	obj.style.backgroundColor = "";
	obj.style.cursor = "default";
}

function newWIN (url,w,h,name,resizable,toolbar,left,top) { 
 var features ="location=no,menubars=no,"+"width="+w+"," +"height="+h+","+"resizable="+resizable+"," +"scrollbars=no," + "status=no," + "titlebar=no," +"toolbar="+toolbar+"," +"left="+left+"," +"top="+top; //var win = window.showModalDialog(url,"","dialogWidth:"+w+"px;dialogHeight:"+h+"px;help:no;status=no;dialogScrollbars=no"); 
 var win = window.open(url,name,features); 
 }


