// JavaScript Document

<!-- hide script from non compliant broswers
if (top.frames.length!=0)
top.location=self.document.location;
// unhide -->

<!--
// Window Pop-up

function OpenWin(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

/*pop-up window functionality*/

window.onerror=null;
var win = null;

function PrivacyWindow(mypage, myname, w, h, scroll) {
closePopWin();

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize';

win = window.open(mypage, myname, winprops);
//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function closePopWin() {
	if(win != null) { 
		if(!win.closed) { 
			win.close();
			win = null;
		} else {
			win = null;
		}
	}
}

<!-- COLLAPSIBLE TEXT -->
//preload image
var collimg = new Image();
collimg.src = "imgs7/collapse.gif";
var expimg = new Image();
collimg.src = "imgs7/expand.gif";

function ShowHideLayer(boxID) {
	/* Obtain reference for the selected boxID layer and its button */
	var box = document.getElementById("box"+boxID);
	var boxbtn = document.getElementById("btn"+boxID);
	
	/* If the selected box is currently invisible, show it */
	if(box.style.display == "none" || box.style.display=="") {
		box.style.display = "block";
 		boxbtn.src = "imgs7/collapse.gif";
	}
	/* otherwise hide it */
	else {
		box.style.display = "none";
		boxbtn.src = "imgs7/expand.gif";
	}
}

