/**************************
 * AddCSS
 **************************/ 
function AddCSS(fn){
var head = document.getElementsByTagName("head"),
    s=head[0] ? document.createElement("link") : null;
if(s){
    s.setAttribute("href",fn);
    s.setAttribute("rel", "stylesheet");
    s.setAttribute("type", "text/css");
    head[0].appendChild(s);
    }
else
    setTimeout(function(){AddCSS3(fn)},10);
}


/**************************
 * Animated Collapse var
 **************************/ 
    //Graphics

    //Recupero Dati
    animatedcollapse.addDiv('recdat','fade=1')
    animatedcollapse.addDiv('cansic','fade=1')
    animatedcollapse.addDiv('confil','fade=1')
    animatedcollapse.addDiv('ripfil','fade=1')

    animatedcollapse.init()

/**************************
 * CheckFormBoxes
 **************************/ 
function CheckFormBoxes(theForm) {
	if (
  	theForm.nome.value == false ||
    theForm.cognome.value == false ||
    theForm.email.value == false ||
    theForm.captcha.value == false ||
    theForm.holetto.checked == false ||
  	theForm.acconsento.checked == false) 
	{
		alert ('Si prega di compilare tutti i campi obbligatori e di confermare di aver letto l\'informativa e di accettare le condizioni relative alla privacy prima di inviare i propri dati!');
		return false;
	} else { 	
		return true;
	}
}


/**************************
 * Highlighter
 **************************/
SyntaxHighlighter.config.clipboardSwf = 'js/highlighter/clipboard.swf';
SyntaxHighlighter.all();  

