browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion); 

if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true';}
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0) { roll = 'true'; }
else { roll = 'false'; }

if (roll == 'true') 
{
var imglist = new Array (
"images/mnavbgwith-trans.png",
"images/wnavbgwith-trans.png",

"images/mnav2-o.gif",
"images/mnav3-o.gif",
"images/mnav4-o.gif",
"images/mnav5-o.gif",
"images/mnav6-o.gif",
"images/mnav7-o.gif",
"images/mnav8-o.gif",
"images/mnav9-o.gif",
"images/mnav10-o.gif",
"images/mnav11-o.gif",
"images/mnav12-ogif",

"images/wnav2-o.gif",
"images/wnav3-o.gif",
"images/wnav4-o.gif",
"images/wnav5-o.gif",
"images/wnav6-o.gif",
"images/wnav8-o.gif",
"images/wnav9-o.gif",
"images/wnav10-o.gif",

"images/inside/topnav_0o.gif",
"images/inside/topnav_1o.gif",
"images/inside/topnav_2o.gif",
"images/inside/topnav_3o.gif",
"images/inside/topnav_4o.gif"
);
var imgs = new Array();

var count;
if (document.images)
for (count=0; count<imglist.length; count++)
 {imgs[count]=new Image(); imgs[count].src=imglist[count];}
}


function swapImage() { 
  var i,theObj,j=0,swapArray=new Array,oldArray=document.swapImgData;
  for (i=0; i < (swapImage.arguments.length-2); i+=3) {
	theObj = eval(swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1])
	if (theObj != null) {
	  swapArray[j++] = theObj;
	  swapArray[j++] = (oldArray==null || oldArray[j-1]!=theObj)?theObj.src:oldArray[j];
	  theObj.src = swapImage.arguments[i+2];
  } }
  document.swapImgData = swapArray; //used for restore
}

function openDetail(url, thiswidth, thisheight, scroll) 
{
	if(scroll == '')
		scroll = 'auto';
	detailWindow=window.open(url,'detailWin','width=' + thiswidth + ',height=' + thisheight + ',toolbar=no,location=no,scrollbars=' + scroll);
	detailWindow.focus();
}	



function toggle(id) 
{

	if( document.getElementById(id).style.display=='none' )
	{
		//show selected drop down
		//alert(document.getElementById(id).style.display);
		document.getElementById(id).style.display = '';
		//reload image for IE tran PNG work-around
		document.getElementById(id + 'bg').src = 'images/' + id + 'bgwith-trans.png';		
		if("mnav" == id)
		{
			document.getElementById('contenttext').style.overflow = 'hidden';
			document.getElementById('contenttext').style.width = '180px';
		}
		if("wnav" == id)
		{
			if(document.getElementById('locatoriframe') !== null)
				document.getElementById('locatoriframe').scrolling = 'no';
		}
		if(document.recalc)
			document.recalc();
	}
	else
	{
		//alert(document.getElementById('hidethis' + id).style.display);
		document.getElementById(id).style.display = 'none';
		document.getElementById(id + 'bg').src = 'images/clear.gif';
		if("mnav" == id)
		{
			document.getElementById('contenttext').style.overflow = 'auto';
			document.getElementById('contenttext').style.width = '200px';
		}
		if("wnav" == id)
		{
			if(document.getElementById('locatoriframe') !== null)
				document.getElementById('locatoriframe').scrolling = 'auto';
		}
	}
}

function toggle2(id) 
{

	if( document.getElementById(id).style.display=='none' )
	{
		//show selected drop down
		//alert(document.getElementById(id).style.display);
		document.getElementById(id).style.display = '';
		//reload image for IE tran PNG work-around
		document.getElementById(id + 'bg').src = 'images/' + id + 'bgwith2-trans.png';		
		if("mnav" == id && document.getElementById('contenttext'))
		{
			document.getElementById('contenttext').style.overflow = 'hidden';
			document.getElementById('contenttext').style.width = '180px';
		}
		if("wnav" == id)
		{
			if(document.getElementById('locatoriframe') !== null)
				document.getElementById('locatoriframe').scrolling = 'no';
		}
		if(document.recalc)
			document.recalc();
	}
	else
	{
		//alert(document.getElementById('hidethis' + id).style.display);
		document.getElementById(id).style.display = 'none';
		document.getElementById(id + 'bg').src = 'images/clear.gif';
		if("mnav" == id && document.getElementById('contenttext'))
		{
			document.getElementById('contenttext').style.overflow = 'auto';
			document.getElementById('contenttext').style.width = '200px';
		}
		if("wnav" == id)
		{
			if(document.getElementById('locatoriframe') !== null)
				document.getElementById('locatoriframe').scrolling = 'auto';
		}
	}
}



function changebig(img)
{
	document.getElementById('centerimage').src = 'images/' + img;
}


function popup(theurl, winname, features) {
window.open(theurl,winname,features);
if (!opener) opener = self;
}







