// JavaScript Document

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function OpenWin(FileToOpen,w,h){
      if (w=='' || w < 0 || w==null) w=760;
      if (h=='' || h < 0 || h==null) h=420;
	  if (h >= window.screen.availHeight) h = window.screen.availHeight-100;
	  if (w >= window.screen.availWidth) h = window.screen.availWidth-100;
  	  myWin=open(FileToOpen,"DisplayWidnow", "status=no,toolbar=no,menubar=no,Directories=no,resizable=yes,ScrollBars=yes,location=no,width="+w+",height="+h);
	  myWin.focus();	
}
