//Global javascript file
/*$(document).ready(function(){
    $(".menu_clickable").mouseover(function(){
	var t = $(this);
	if (!t.hasClass("clicked")) {
	    t.addClass("mouseover");	    
	}
    }).mouseout(function() {
	$(this).removeClass('mouseover');	
    });
    
    $(".menu_clickable").click(function() {
	var t = $(this);
	t.toggleClass("clicked");
	if (t.hasClass("clicked")) {
	    t.removeClass('mouseover');
	} else {
	    t.addClass('mouseover');
	}	
    });
});*/
function toggleView (objDiv)
{
    var objElement = document.getElementById(objDiv);        
    
    //if (!objElement) return true;
    
    if (objElement.style.display == "none")
    {
        objElement.style.display = "block";
    } else {
        objElement.style.display = "none";
    }
    return true;
}

function setCurrent(objCurrent)
{
    var objOld = document.getElementsByClassName('current');
    if (objOld[0])
    {
	objOld = objOld[0];
	objOld.setAttribute('class', '');
    }
    
    objCurrent.setAttribute('class', 'current');
}

function setCurrentPage(strPage)
{
    document.getElementById(strPage).setAttribute('class', 'current');    
}
