
if (document.layers) {
  visible = 'show';
  hidden = 'hide';
  self.setResizable(false);
} else if (document.all) {
  visible = 'visible';
  hidden = 'hidden';
}
var expired = 0;
var TimeoutID=0;
function waitCheck()
{	
	if(TimeoutID == 1)
	{
		clearTimeout();
	}	
	TimeoutID=1;
	//alert("bye");
	setTimeout(checkExpired,500);
	
}
function checkExpired()
{
	//alert(TimeoutID + " " + expired);
	if(expired==1)
	{
		//allOff();
	//	allTabOff();
	}
}
function expire()
{
	expired=1;
}
function renew()
{
	if(TimeoutID == 1)
	{
		clearTimeout();
	}	
	expired=0;
	TimeoutID=0;
}
function checksize()
{
	if(window.innerHeight<360 || window.innerWidth<620)
	{
		self.resizeTo(620,360);
		document.location=self.location
	}
	
}
function change(menu, type, LeftOffset, TopOffset) {
  //alert("Layer=" + menu)
  if (type == 'off') {
	if (document.layers) {						//netscape
	  document.layers[menu].visibility = hidden
	} else if (document.all) {					//ie
	  document.all(menu).style.visibility=hidden 
	}  	
  } else {
	//allOff();
	if (navigator.appName == 'Microsoft Internet Explorer')
	{
		document.all(menu).style.pixelLeft=LeftOffset;
		document.all(menu).style.pixelTop=TopOffset;
	}
	if (document.layers) {
	  document.layers[menu].visibility = visible
	} else if (document.all) {
	  document.all(menu).style.visibility = visible;
	}    
  }
}
function changebg(layer,id,hilite) {
    if (document.layers) {
		//alert(document.layers.length)
		//alert(document.layers[layer].document.layers.length)
		//alert(document.layers[layer].document.layers.length)
		document.layers[layer].document.layers[id].bgColor = hilite;
    }
    else if (document.all) {
        document.all[id].style.background = hilite;
    }
}
function changenav(id,hilite) {
	//alert(id)
    if (document.layers) {
		document.layers[id].bgColor = hilite;
    }
    else if (document.all) {
        document.all[id].style.background = hilite;
    }
}


if (document.images)
{
var financial = new Image()
financial.src="../images/financial.gif"

var financialon = new Image()
financialon.src="../images/financialon.gif"

var taxation = new Image()
taxation.src="../images/taxation.gif"

var taxationon = new Image()
taxationon.src="../images/taxationon.gif"

var management = new Image()
management.src="../images/management.gif"

var managementon = new Image()
managementon.src="../images/managementon.gif"

var investigative = new Image()
investigative.src="../images/investigative.gif"

var investigativeon = new Image()
investigativeon.src="../images/investigativeon.gif"

var development = new Image()
development.src="../images/development.gif"

var developmenton = new Image()
developmenton.src="../images/developmenton.gif"
}


function turnOn(imageName) {
   if (document.images) {
         document[imageName].src = eval(imageName + "on.src");
   }
}

function turnOff(imageName) {
   if (document.images) {
         document[imageName].src = eval(imageName + ".src");
   }
}
function allTabOff()
{
//	turnOff('financial');
//	turnOff('taxation');
//	turnOff('management');
//	turnOff('investigative');
//	turnOff('development');
}
function popUpURL(location,props)
{
	window.open(location,"",props);
}
function allOff()
{
}