//var prev=this.parentNode;
var prev="null";

window.onload=function(){	
	
	
	
if(document.getElementsByTagName && document.getElementById)
{ 	
	//getRequestParameter('id');
	//BuildList(); 
	}    	
}
function BuildList(){		
var hs=document.getElementsByTagName("h3");
for(var i=0;i<hs.length;i++){
    hs[i].onclick=function(){
        if(this.parentNode.className!="show"){
            this.parentNode.className="show";
            if(prev && prev!=this.parentNode) prev.className="hide";
            prev=this.parentNode;
            }
        else this.parentNode.className="hide";
        }
    }
}

function getRequestParameter (name)
{ 
loc = window.location.toString(); 
var ind=loc.indexOf(name); 
if (ind==-1 || name=="") return null; 
var ind1=loc.indexOf('&',ind); 
if (ind1==-1) ind1=loc.length; 
var valore= unescape(loc.substring(ind+name.length+1,ind1)); 
alert(valore); 
document.getElementById(valore).className="show";
} 


