/* Script name:	nav.inc.js
 * Description:	java functions for nav.class.php
 *
 * Copyright:	copyright nocode.se (c) 2005-2008
 *
 * Author:	Andreas Bondesson xyphax(at)nocode(dot)se
 *
 * This header information must remain intact at all times!
 */

function displayElement(id){
	element=document.getElementById(id);
	if(element.style.display=='none'){
		element.style.display='inline';
	}else{
		element.style.display='none';
	}
	if(element=='navhead'){
		element.style.color='#f80';
	}
}

// gets or sets element attribute value
function getAttributeValue(elementId,attribute){
    var eid=document.getElementById(elementId);
    var cval=eid.getAttribute(attribute);
    return(cval);
}
function setAttributeValue(elementId,attribute,value){
    var eid=document.getElementById(elementId);
    eid.setAttribute(attribute,value);
}
//setAttributeValue('element','attribute','value');
//var showElementAttributeValue=getAttributeValue('element','attribute');
//document.write(showElementAttributeValue);

