	// funzione per mostrare la warning page
	function my_warning_page() {
        var my_body  = document.body;
    
        var newdiv = document.createElement('div');
        newdiv.setAttribute('id','prehomewarningcontent');
        newdiv.setAttribute('class','off');
    
        var newdivbg = document.createElement('div');
        newdivbg.setAttribute('id','prehomewarningbg');
        newdivbg.setAttribute('class','off');
    
    	my_body.insertBefore(newdiv,document.getElementById('pagina'));
        my_body.insertBefore(newdivbg,document.getElementById('pagina'));
    
        var warning_div = "<table width=\"458\" bgcolor=\"#ffffff\"><tr><td><div class=\"prehomepage-immagine\"></div>" +
                          "<div class=\"h20\"></div><div class=\"t11\" align=\"center\">" + 
                          "Il contenuto di questo canale è consigliato ad un pubblico maggiorenne. Vuoi continuare?</div>" +
        			  	  "<div class=\"h50\"></div><table align=\"center\"><tr>" +
                          "<td><a href=\"javascript:hideWarningPrehome();\" class=\"prehome-bottone\">OK</a></td>" +
                          "<td class=\"w10\"></td><td><a href=\"http://www.vodafonefriends.it/warning_reset.php\" class=\"prehome-bottone\">Annulla</a></td>" +
                          "</tr></table><div class=\"h50\"></div>" +
                          "<div class=\"t11\" align=\"center\">Se lo desideri puoi bloccare l'accesso a questo contenuto cliccando su" +
                          "\"<a href=\"http://www.vodafonefriends.it/usage/filtro_famiglia_warning\" class=\"link11\"><strong>Filtro Famiglia</strong></a>\".<br>Per maggiori informazioni visita " + 
                          "<a href=\"http://www.vodafone.it\" class=\"link11\"><strong>www.vodafone.it</strong></a><br>o l'area Info 190 fai da te di Vodafone Live!</div>" +
                          "<div class=\"h20\"></div></td></tr></table>";
    
        newdivbg.innerHTML = "&nbsp";
        newdiv.innerHTML = warning_div;
        newdivbg.style.height = document.getElementById('pagina').offsetHeight;
		newdivbg.style.display = 'block';
		newdiv.style.display = 'block';
		var selects = document.getElementsByTagName("select");
        	for (i = 0; i != selects.length; i++) {
        		selects[i].style.visibility = "hidden";
        	}
		setTimeout("hideWarningPrehome()", 30000);
	}
	
	// funzione per agganciare un evento al DOM
	function addEvent(obj, evType, fn){ 
       if (obj.addEventListener){ 
           	obj.addEventListener(evType, fn, false); 
       		return true; 
        } else if (obj.attachEvent){ 
           var r = obj.attachEvent("on"+evType, fn); 
           return r; 
         } else { 
           return false; 
         } 
    }