// JavaScript Document
// <![CDATA[

var getById = (typeof document.getElementById != "undefined");		

function toggleClassName(obj, class1, class2){
    obj= getRef(obj);
    
        // obj.isClass1 will be false the first time.
    if(!obj.isClass1){
        obj.className= class1;
        obj.isClass1= true;
    }
    else{
        obj.className= class2;
        obj.isClass1= false;
    }
    // repaintFix(obj.parentNode);
}

function getRef(obj){
    if(getById)
    	return(typeof obj == "string") ? document.getElementById(obj) : obj;
}

function repaintFix(obj){ 
	
	if("undefined" == typeof document.body
	  || "undefined" == typeof document.body.style) return;
	
	if(obj == null)
		obj == document.body;
	else obj = getRef(obj);
	
	document.body.style.visibility = "hidden";
	document.body.style.visibility = "visible";
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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);
// ]]>