menu_status = new Array();
function showHide(theid){
if (document.getElementById) {
var switch_id = document.getElementById(theid);

if(menu_status[theid] != 'show') {
switch_id.className = 'show';
menu_status[theid] = 'show';
}else{
switch_id.className = 'hide';
menu_status[theid] = 'hide';
}
}
}


function readPage(keyPage) {

    // Use AJAX to load other pages
   var pageContent;
    
    // Check if the browser knows the standard request
    if(window.XMLHttpRequest) {
        
        // Mozilla etc
        pageContent = new XMLHttpRequest();
    
    // If it does not know the standard object, check if
    // it knows the activeX object.
    } else if(window.ActiveXObject) {
    
        // Internet Explorer 6
        pageContent = new ActiveXObject("Microsoft.XMLHTTP");            
    
    // It doesn't know any, so give an error    
    } else {
    
        alert('Browser doesn\'t support AJAX'); 
    
    }

    // Open the file
    pageContent.onreadystatechange = StateChange;
    pageContent.open('GET', keyPage, true);
    pageContent.send(null);

    // Listen for a change state
    function StateChange() {
    
        // The state is changed, but is it 4?
        if(pageContent.readyState == 4) {
        
            // yeah the state is 4; we can now use the response text!
            // I will save it in a division with the id "leftCol"
			document.getElementById('leftCol').innerHTML = pageContent.responseText;

        }
	}

}