cN=initN;
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 showSub(wN) {
	
	if (wN != cN) {
		MM_findObj('nav-'+cN).className="navoff";
	}
	
	if (MM_findObj('sub-'+wN)) {
		MM_findObj('nav-'+wN).className="navon";
	}
	else {
		MM_findObj('nav-'+wN).className="navon";	
	}
	
	if (MM_findObj('sub-'+cN)) { MM_findObj('sub-'+cN).className="suboff"; }
	if (MM_findObj('sub-'+wN)) { MM_findObj('sub-'+wN).className="subon"; }

	cN = wN;
	MM_findObj('turnsubsoff').className="vis";
}
function hideSubAll() {
	MM_findObj('turnsubsoff').className="invis";
	if (MM_findObj('sub-'+cN)) { MM_findObj('sub-'+cN).className="suboff"; }
	MM_findObj('nav-'+cN).className="navoff";
	showInit();
}
window.onload = hideSubAll;
function showInit() { 
	MM_findObj('nav-'+initN).className="navperm";
}

// used throughout the web site
function openViewLarger(theURL,sWidth,sHeight) {
	//the following for parameter validation only. if parameters sent don't match with axpected number or type then set them to default value
	for (var count = 0 ; count < openViewLarger.arguments.length ; count ++)
		{
			switch (count) 
			{
			case 0: 
				if ((theURL == "")||(!isNaN(theURL))) theURL = "";
			case 1: 
				if ((sWidth == "")||(isNaN(sWidth))) sWidth = "725";
			case 2: 
				if ((sHeight == "")||(isNaN(sHeight))) sHeight = "500";
			}
		}
	if (theURL != "") {
			window.open(theURL,'viewLarger','scrollbars=yes,resizable=yes,top=50,left=200,width='+sWidth+',height='+sHeight+'');
		} else {
			return;
		}
}

function openGlamorShot(theURL) {
	//the following for parameter validation only. if parameters sent don't match with axpected number or type then set them to default value
	if ((theURL == "")||(!isNaN(theURL))) theURL = "";

	if (theURL != "") {
			window.open(theURL,'viewLarger','scrollbars=no,resizable=no,top=50,left=100,width=325,height=325');
		} else {
			return;
		}
}

function openWindow(url, title, params) {
  popupWin = window.open(url, title, params)
}

function openHelp(theURL) {
	//the following for parameter validation only. if parameters sent don't match with axpected number or type then set them to default value
	if ((theURL == "")||(!isNaN(theURL))) theURL = "";

	if (theURL != "") {
			window.open(theURL,'viewHelp','scrollbars=no,resizable=no,top=50,left=100,width=720,height=430');
		} else {
			return;
		}
}


