pstatus = 'off';

//
// Used for "Highlights" Section
//
function showit(idnum)
{
	var newelem = document.getElementById(idnum);
	if (newelem.style.display == 'inline') 
    {
        newelem.style.display = 'none';
    }
    else
    {
    newelem.style.display = 'inline';
    }
}


//
// Sets the opacity of the given img to the given value.
// value should be set to 0-100 .
//
function lightImage(img, value)
{
    img.style.opacity = value/100;
    img.style.filter = 'alpha(opacity=' + value + ')';
}

//
//uses the imageid to find the image object then calls lightImage();
//
function lightup(imageid, value){
    var imageobject = document.getElementById(imageid);
    if (imageobject != null) lightImage(imageobject, value);
}

//
// Drop down menu 
//

function startList()
//startList = function() 
{
    if (document.all && document.getElementById) 
    {
        navRoot = document.getElementById('topnav');

        for (i=0; i<navRoot.childNodes.length; i++) 
        {
            node = navRoot.childNodes[i];
	  
            if (node.nodeName=='LI') 
            {
  	            node.onmouseover=function() 
  	            {
  		            this.className+=' navover';
                }
	  	        node.onmouseout=function() 
	  	        {
	  		        this.className=this.className.replace(' navover', "");
	   	        }
	    
	        } 
	    } 
	    navRoot = document.getElementById('bottomnav');
	    if (navRoot != null)
        {
            for (i=0; i<navRoot.childNodes.length; i++) 
            {
                node = navRoot.childNodes[i];
    	  
                if (node.nodeName=='LI') 
                {
  	                node.onmouseover=function() 
  	                {
  		                this.className+=' navover';
                    }
	  	            node.onmouseout=function() 
	  	            {
	  		            this.className=this.className.replace(' navover', "");
	   	            }
    	    
	            } 
	        } 
	    }
	    navRoot = document.getElementById('tile-wrap'); 
    }
}
