//recupero lingua del self

function getCookie(NameOfCookie)
{
 if (document.cookie.length > 0)  // Controllo se c' un cookie memorizzato.
 { 
  // Se il nome del cookie non  presente, verr memorizzato il valore -1 nella variabile chiamata "begin".
  begin = document.cookie.indexOf(NameOfCookie+"="); 
  if (begin != -1)
  { 
   // Cookie Trovato.
   begin += NameOfCookie.length+1; 
   end = document.cookie.indexOf(";", begin);
   if (end == -1) end = document.cookie.length; 
       return unescape(document.cookie.substring(begin, end)); 
      } 
 }
 return null;
}

//lingua selfcomposer
var linguaSelf=getCookie("ling")
//inizializzo shadowbox
Shadowbox.init({	   
   		language: linguaSelf,
   		players:   ['iframe','img','html','qt'],
		resizeDuration: 0.2,
		fadeDuration:0.2

		//skipSetup: true

});


function messaggiShadow(tipo,elemento){

    // apre shadowbox
    Shadowbox.open({
        content:    elemento,
        player:     tipo,
        height:     500,
        width:      500
    });

};

