
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


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_openBrWindow(theURL,winName,features) { 
  
if(!window.open(theURL,winName,features)) {alert('You must disable your popup blocker to use this feature.\n Alternately you can try holding the \"ctrl"\ key while clicking this link.')}
}

var state = 'none'; 
function showhide(layer_ref) { if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}

function setActive() {
aObj = document.getElementById('topNav').getElementsByTagName('a');
for(i=0;i<aObj.length;i++) {
if(document.location.href.indexOf(aObj[i].href)> -1) {
aObj[i].className = "topdown";
 }
 }
}

window.onload = setActive;
function showselectedleftnav()
		{
		
			try {
					var ldiv=document.getElementById("leftnavc");
					var a = ldiv.getElementsByTagName("a");
					for (var i=0; i < a.length; i++)	{
						if (document.location.href.indexOf(a[i].href) > -1) {
							a[i].style.color = "#009933";
							a[i].style.fontWeight = "700";
						}
					}
					window.clearTimeout(selecttimer);
					selecttimer=null;
				} catch (ex) {
					window.clearTimeout(selecttimer);
					selecttimer = window.setTimeout(showselectedleftnav, 100);
			}
		}
	var selecttimer = window.setTimeout(showselectedleftnav, 100);
