var lastRegion = null;
var lastCustomer = document.getElementById(details_1);

function displayCustomers(region){
  var r = document.getElementById(region);
  if (lastRegion) 
    lastRegion.style.display = "none";
  r.style.display = "block";
  lastRegion = r;
hideCustInfo(lastCustomer);
	}
	
function MakeMe(customer){
  var c = document.getElementById(customer);
  lastCustomer = c;
}


	
function displayCustInfo(customer){
  var c = document.getElementById(customer);
  if (lastCustomer) 
  lastCustomer.style.display = "none";
  	c.style.display = "block";
  	lastCustomer = c;
}


	
function displayCase3(div1,div2,div3){
  var a = document.getElementById(div1);
  var b = document.getElementById(div2);
  var c = document.getElementById(div3);

  a.style.display = "none";
  b.style.display = "none";
  c.style.display = "block";
}



function hideCustInfo(lastCustomer){
    if (lastCustomer)
	lastCustomer.style.display = "none";
}

function hideInfo(region){
  var f = document.getElementById(region);
    if (f)
	f.style.display = "none";
}


function launchsmall(url) {
  self.name = "opener";
  remote = open(url, "remote", "width=540,height=180,left=150,top=100");
}


function PopUp(fileName,howhigh,howwide) {
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (200 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (150 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open("","spawn","status,height=" + howhigh + ",width=" + howwide + ",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
	  	win2.location.href = fileName;
		win2.focus();
}

function swapPages(page,profile) {
//	parent.document.location.href= page;
	MyWindow=window.open(profile,'MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=285,height=270');
}




 function goto_URL(object) {
     top.location.href = object.options[object.selectedIndex].value;
 }


function CloseMe() {

  setTimeout("window.top.close();", 100);

}



    var agt=navigator.userAgent.toLowerCase(); 
    var is_major = parseInt(navigator.appVersion); 
    var is_minor = parseFloat(navigator.appVersion); 
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
                && (agt.indexOf('webtv')==-1)); 
    var is_nav2 = (is_nav && (is_major == 2)); 
    var is_nav3 = (is_nav && (is_major == 3)); 
    var is_nav4 = (is_nav && (is_major == 4)); 
    var is_nav4up = (is_nav && (is_major >= 4)); 
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) || 
                          (agt.indexOf("; nav") != -1)) ); 
    var is_nav5 = (is_nav && (is_major == 5)); 
    var is_nav5up = (is_nav && (is_major >= 5)); 
    var is_ie   = (agt.indexOf("msie") != -1); 
    var is_ie3  = (is_ie && (is_major < 4)); 
    var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) ); 
    var is_ie4up  = (is_ie  && (is_major >= 4)); 
    var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 
    var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4); 
    var is_aol   = (agt.indexOf("aol") != -1); 
    var is_aol3  = (is_aol && is_ie3); 
    var is_aol4  = (is_aol && is_ie4); 
    var is_opera = (agt.indexOf("opera") != -1); 
    var is_webtv = (agt.indexOf("webtv") != -1); 
    var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
    var is_mac    = (agt.indexOf("mac")!=-1);
