if(document.getElementById && document.createElement){
document.write('<style type="text/css">*.toggle{display:none}</style>');
window.onload=function(){
    /*le modifiche allo script vanno solo fatte qui*/
      Attiva("def","PART I : GENERAL CONDITIONS : DEFINITIONS","hide");
      Attiva("app","APPLICATION","hide");
      Attiva("company","THE COMPANY ACTS AS CARRIER IF","hide");
	  Attiva("without","WITHOUT PREJUDICE TO THE GENERALY OF CLAUSE 3 ABOVE","hide");
	  Attiva("carrier","PART II: COMPANY AS CARRIER","hide");
	  Attiva("agent","PART III: COMPANY AS AGENT","hide");
	  Attiva("customer","THE CUSTOMER 'S OBLIGATIONS AND RESPONSABILITIES","hide");
	  Attiva("ser","SPECIAL INSTRUCTIONS AND SERVICES","hide");
	  Attiva("libe","LIBERTIES AND RIGHTS OF THE COMPANY","hide");
	  Attiva("ch","CHARGES","hide");
	  Attiva("lim","GENERAL LIABILITY AND LIMITATION","hide");
	  Attiva("gen","GENERAL INDEMNITIES","hide");
	  Attiva("lien","LIEN","hide");
	  Attiva("ave","GENERAL AVERAGE","hide");
	  Attiva("misc","MISCELLANEOUS","hide");
      Attiva("law","JURISDICTION AND LAW","hide");  

    
    }
}

function Attiva(id,s1,s2){
var el=document.getElementById(id);
el.style.display="none";
var c=document.createElement("div");
var link=document.createElement("a");
link.href="#";
link.appendChild(document.createTextNode(s1));
link.onclick=function(){
    link.firstChild.nodeValue = (link.firstChild.nodeValue==s1) ? s2 : s1;
    el.style.display=(el.style.display=="none") ? "block" : "none";
    return(false);
    }
c.appendChild(link);
el.parentNode.insertBefore(c,el);
}
