
function popJob(popFileName){
  window.open(popFileName, "_blank","resizable=yes,height=480,width=500,menubar=no,status=no,scrollbars=yes" );
}


function popNews(newsFileName){
  window.open(newsFileName, "_blank","resizable=yes,height=480,width=500,menubar=no,status=no,scrollbars=yes" );
}

function popPart(imageFileName){
  url = "image.html?Image=" + imageFileName;
  window.open(url, "_blank","resizable=yes,height=480,width=500,menubar=no,status=no,scrollbars=yes" );
}

function popMovie(movieFileName){
  window.open(movieFileName, "_blank","resizable=yes,height=300,width=400,menubar=no,status=no,scrollbars=no" );
}


function URLDecode(URLString) {
var re = /\+/g;

  // Return the decoded string
  return unescape(String(URLString).replace(re, " ")); 
}

var queryString = unescape(location.search.substring(1));
var queryArray = new Array();
  
if (queryString){
  var nameValuePairs = queryString.split("&");
  var nameValue = new Array();
  
  for (idx = 0; idx < nameValuePairs.length; idx++){
    nameValue = nameValuePairs[idx].split("=");
    queryArray[ URLDecode(nameValue[0])]= nameValue[1];
  }
}

if (document.layers){

  docObj =  'document.';
  docObjEnd = '';
  styleObj ='';

} else if (document.all) {

  docObj =  'document.all.';
  docObjEnd = '';
  styleObj ='.style';

}else if (document.getElementById){
  docObj = "document.getElementById('";
  docObjEnd = "')";
  styleObj = ".style";
}


function divObjectStyle( divName){
  return(eval (docObj  + divName + docObjEnd  + styleObj));
}

function divObject( divName){
  return(eval (docObj  + divName + docObjEnd  ));
}

function Menu(parmName){
  this.name = parmName;
  this.subMenus = new Array();
  this.parent;

  this.close = function(){
	this.closeSubMenus()
    divObjectStyle(this.name).visibility="hidden";
  }
  
  this.show = function(){
	MU_ClearTimer()
	this.parent.closeSubMenus();
    divObjectStyle(this.name).visibility="visible";
  }
  
  this.addSubMenu = function(parmSubMenu){
    this.subMenus[parmSubMenu.name] = parmSubMenu;
	parmSubMenu.parent = this;
  }
  
  this.closeSubMenus = function(){
	for(menu in this.subMenus){
	  this.subMenus[menu].close();
	}
  }
  
}


function MU_hideAll(){
  root.closeSubMenus();
}

var MU_timer;
function MU_SetTimer(){
    MU_timer = window.setTimeout("MU_hideAll()", 200);
}

function MU_ClearTimer(){
  if (MU_timer){
    window.clearTimeout(MU_timer);
    MU_timer=0
  }
}

function MU_swapImage() {
  var i,j=0,x,a=MU_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  MU_ClearTimer()
}
function MU_swapImgRestore(){
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  MU_SetTimer() 
}