function mouseOut(num,type){
	var test = getElementsByClassName(document, "li", type);			
		for(var i=0;i<test.length;i++){
			var anc = test[i].getElementsByTagName("a");
			if (i == num) {      
				test[i].style.backgroundImage='url(images/navover_clear.jpg)';
				test[i].style.backgroundRepeat= 'no-repeat';
				
				anc[0].style.backgroundImage='url(images/navover_clear.jpg)';
				anc[0].style.backgroundRepeat= 'no-repeat';
				
				}
			}  
		}

function getElementsByClassName(oElm, strTagName, strClassName){
	var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName);
	var arrReturnElements = new Array();
		strClassName = strClassName.replace(/\-/g, "\\-");
	var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
	var oElement;
		for(var i=0; i<arrElements.length; i++){
			oElement = arrElements[i];
	        if(oRegExp.test(oElement.className)){
				arrReturnElements.push(oElement);
	        }
	    }
	    return (arrReturnElements)
	    }

	    
function mouseOver(num,type)	{ 
  
	var test = getElementsByClassName(document, "li",type);			
	 
	for(var i=0;i<test.length;i++){
		var anc = test[i].getElementsByTagName("a");
		
		if (i == num) {      
			if (type == "notcurrent")	{
			     
				test[i].style.backgroundImage='url(images/navover_left.gif)';
				test[i].style.backgroundRepeat= 'no-repeat';
				test[i].style.backgroundPosition= 'left top';
				
				anc[0].style.backgroundImage='url(images/navover_right.gif)';
				anc[0].style.backgroundRepeat= 'no-repeat';
				anc[0].style.backgroundPosition= 'right top';
				}
				
				else  {
				
				test[i].style.backgroundImage='url(images/level3_notcurrent_left.gif)';
				test[i].style.backgroundRepeat= 'no-repeat';
				test[i].style.backgroundPosition= 'left top';
				
				anc[0].style.backgroundImage='url(images/level3_notcurrent_right.gif)';
				anc[0].style.backgroundRepeat= 'no-repeat';
				anc[0].style.backgroundPosition= 'right top';				
				}
            }
		}   
	}
	
	
	function ShowHiddenText() {
		var text = document.getElementById("hiddenText");
		var Gallery = document.getElementById("GalleryContainer");
		var context = document.getElementById("pagecontenttext");
		text.style.visibility="visible";
		Gallery.style.display="none";
		context.style.display="none";	
	}	
	
	