var gObj,gHex,timer;
function NN_tr_start(obj,hex,type){
	var isMoz=parseInt(navigator.appVersion)>=5&&navigator.appName=='Netscape'?true:false;
	if (type=='fade'&&!isMoz){gHex=hex;gObj=obj;NN_tr_fadeIn();
	}else{obj.style.backgroundColor=hex;}
	obj.style.cursor='hand';
}
function NN_tr_fadeIn(){
	var cntr=0,pObj=gObj.style.backgroundColor;
	var r=parseInt(gHex.substring(1,3),16),g=parseInt(gHex.substring(3,5),16),b=parseInt(gHex.substring(5,7),16);
	var rr=parseInt(pObj.substring(1,3),16),gg=parseInt(pObj.substring(3,5),16),bb=parseInt(pObj.substring(5,7),16);
	if (r!=rr){if(rr<r){rr++;}else{rr--;}}else{cntr++;}
	if (g!=gg){if(gg<g){gg++;}else{gg--;}}else{cntr++;}
	if (b!=bb){if(bb<b){bb++;}else{bb--;}}else{cntr++;}
	rr=rr.toString(16);gg=gg.toString(16);bb=bb.toString(16);
	rr=rr.length==1?'0'+rr:rr;gg=gg.length==1?'0'+gg:gg;bb=bb.length==1?'0'+bb:bb;
	gObj.style.backgroundColor='#'+rr.toUpperCase()+gg.toUpperCase()+bb.toUpperCase();
	if (cntr!=3){timer=setTimeout('NN_tr_fadeIn()',1);}
}
function NN_tr_reset(obj,hex){obj.style.backgroundColor=hex;clearTimeout(timer);}
function win(fileName){
  myFloater=window.open('','myWindow','scrollbars=yes,status=no,width=600,height=550')
  myFloater.location.href=fileName;
}
if ((!(navigator.appVersion.indexOf('MSIE')!=-1)&&(parseInt(navigator.appVersion)==4))){
	document.write("<STYLE TYPE=\"text/css\">BODY {margin-top:-8px;margin-left:-8px;}</style>");
};
function changeImage(where,what){document.images[where].src=eval(what+".src");}
var bV=parseInt(navigator.appVersion);NS4=(document.layers)?true:false;IE4=((document.all)&&(bV>=4))?true:false;hasDOM=(document.getElementById)?true:false;
if (NS4){origWidth=innerWidth;origHeight=innerHeight;}
function reDo(){if (innerWidth!=origWidth||innerHeight!=origHeight) location.reload();}
function MM_validateForm(){
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3){test=args[i+2];val=MM_findObj(args[i]);
    if (val) {nm=val.name;if ((val=val.value)!=""){
      if (test.indexOf('isEmail')!=-1){p=val.indexOf('@');
        if (p<1||p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      }else if (test!='R'){num=parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange')!=-1){p=test.indexOf(':');
          min=test.substring(8,p);max=test.substring(p+1);
          if (num<min||max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    }}} else if (test.charAt(0)=='R') errors+='- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue=(errors=='');
}
if (NS4) onresize=reDo;
SECTION='<%=section%>';TOPIC='[none]';SUBTOPIC='[none]';var loc=window.location.pathname;var pageName=loc.substr(loc.lastIndexOf('/')+1);TITLE=pageName.substr(0,pageName.indexOf('.'));isExpanded=false;
function getIndex(el){
  ind=null;
  for (i=0;i<document.layers.length;i++){
	whichEl=document.layers[i];
	if (whichEl.id==el){ind=i;break;}
  }
  return ind;
}
function arrange(){
  nextY=document.layers[firstInd].pageY+document.layers[firstInd].document.height;
	for (i=firstInd+1;i<document.layers.length;i++){
	  whichEl=document.layers[i];
	  if (whichEl.visibility!="hide"){whichEl.pageY=nextY;nextY+=whichEl.document.height;}
	}
}
function AnyVisible(){
	if (NS4){
		for (i=0;i<document.layers.length;i++){
			whichEl=document.layers[i];
				if ((whichEl.id.indexOf("Menu")!=-1)&&(whichEl.visibility=="show")){return(true);}
		}
		arrange();
	}else{
		tempColl=hasDOM?document.getElementsByTagName("DIV"):document.all.tags("DIV");
		for (i=0;i<tempColl.length;i++){
			if ((tempColl[i].className=="child")&&(tempColl[i].style.display=="block")){return(true);}
		}
	}
	return(false);
}
function hiliteIt(el,no_img){
    if (!IE4&&!hasDOM) return;
	var text=getElem(el);
	if (text) text.className='SUBHILITE';
	if (!no_img){
		var img=getElem(el+'_image');
		if (img) img.src='images/orange-bullet.gif';
	}
}
function getElem(el){
    var elem;
	if (NS4) return eval('document.'+el);
    else if (hasDOM) return document.getElementById(el);
    else if (IE4) return document.all[el];
}
function expandIt(el){
	if (!(hasDOM||IE4||NS4)) return;
	if (hasDOM||IE4) {expandDOM(el)}
	else if (hasDOM||NS4){expandNS(el)}
}
function expandDOM(el){
	whichEl=hasDOM?document.getElementById(el):document.all[el];
	if (!whichEl) return;
	if (whichEl.style.display=="none") whichEl.style.display="block";
	else whichEl.style.display="none";
}
function expandNS(el){
  whichEl=hasDOM?document.getElementById(el):document.all[el];
	if (!whichEl) return;
	if (whichEl.style.display=="none") whichEl.style.display="block";
	else whichEl.style.display="none";
}
function showAll(){for (i=firstInd;i<document.layers.length;i++){whichEl=document.layers[i];whichEl.visibility="show";}}
function expandAll(isBot){
	Contract=AnyVisible();
	if (NS4){
		for (i=firstInd;i<document.layers.length;i++){
			whichEl=document.layers[i];
			if (whichEl.id.indexOf("Menu")!=-1) whichEl.visibility=(Contract)?"hide":"show";
		}
		arrange();
		if (isBot&&Contract) scrollTo(0,document.layers[firstInd].pageY);
	}else{
		divColl=hasDOM?document.getElementsByTagName("DIV"):document.all.tags("DIV");
		for (i=0;i<divColl.length;i++)
			if (divColl[i].className=="child") divColl[i].style.display=Contract?"none":"block";
	}
}
with (document){
  write("<STYLE TYPE='text/css'>");
  if (NS4){
	write(".parent{position:absolute;visibility:visible} .parentTop{position:absolute;visibility:visible;margin-top:104px;} .child{position:absolute;visibility:hidden} .regular{position:absolute;visibility:visible}")
  }else{write(".child{display:none}")}
  write("</STYLE>");
}
function doWindow(theURL,winName,features){window.open(theURL,winName,features);}
function MM_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;}
function MM_preloadImages(){ 
  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 MM_findObj(n,d){ 
  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_swapImage(){
  var i,j=0,x,a=MM_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];}
}
function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
