function popWindow(url,target,w,h,sx,sy,rs,sb,mb,tb,dir,loc,s,ar,d) {
	var wf = "";	
	wf = wf + "width=" + w;
	wf = wf + ",height=" + h;
	wf = wf + ",screenX=" + sx;
	wf = wf + ",screenY=" + sy;
	wf = wf + ",resizable=" + rs;
	wf = wf + ",scrollbars=" + sb;
	wf = wf + ",menubar=" + mb;
	wf = wf + ",toolbar=" + tb;
	wf = wf + ",directories=" + dir;
	wf = wf + ",location=" + loc;
	wf = wf + ",status=" + s;
	wf = wf + ",alwaysRaised=" + ar;		
	wf = wf + ",dependent=" + d;		
	return(window.open(url,target,wf));
}

function popContent(file,w,h) {
  this.ver=navigator.appVersion;
  this.agent=navigator.userAgent;
  this.dom=document.getElementById?1:0;
	if(!(this.agent.indexOf("Mac")>-1 && this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)) {
		if(window.popWin && !window.popWin.closed) { popWin.close(); }
	}
  popWin=popWindow(file,"popWin",w,h,50,150,0,0,0,0,0,0,0,1,0);
  popWin.focus();
  return false;
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function loadPix() {
  var d=document; if(d.images){ if(!d.pixA) d.pixA=new Array();
    var i,j=d.pixA.length,a=loadPix.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.pixA[j]=new Image; d.pixA[j++].src=a[i];}}
}

function mnav(id,color) {
	//document.getElementById(id).bgColor = color;
	if(color==0)
		document.getElementById(id).style.backgroundColor = "";
	else 
		document.getElementById(id).style.backgroundColor = color;
}

function snav(id,action) {
	//document.getElementById(id).bgColor = color;
	if(action==0)
		document.getElementById(id).style.backgroundImage = "url(../images/navi_sub_off.gif)";
	else 
		document.getElementById(id).style.backgroundImage = "url(../images/navi_sub_on.gif)";
}