// JavaScript Document


	window.onload =function CM_getItem(id)
    {
        var itm = false;
        if(document.getElementById)
            itm = document.getElementById(id);
        else if(document.all)
            itm = document.all[id];
        else if(document.layers)
            itm = document.layers[id];

        return itm;
    }
    	function visibilityOver(ns) {
		var x=document.getElementById(ns);
		if (x.style.visibility == 'hidden')
			x.style.visibility = 'visible';
		}
		function visibilityClick(ns) {
		var x=document.getElementById(ns);
		if (x.style.visibility == 'hidden')
			x.style.visibility = 'visible';
		}
		
		function visibilityOut(ns, nx) {
			var a = ns;
			var b = nx;
			if(a != b){
		var x=document.getElementById(ns);
		x.style.visibility = 'hidden';
			}
		}

    
	function backgroundColor(nd) {
		var x=document.getElementById(nd);
		if (x.style.backgroundColor == '')
			x.style.backgroundColor = '#43A115';
		else
			x.style.backgroundColor = '';
			
		if (x.style.backgroundColor == '#FFE57D')
			x.style.backgroundColor = '#43A115';
			
		}
    function CM_toggleItem(id, nd)
    {
    	
        itm = CM_getItem(id);
		
        if(!itm)
            return false;

        if(itm.style.display == 'none')
            itm.style.display = '';
        else
            itm.style.display = 'none';
		
    	backgroundColor(nd);
        return false;
    }