<!--
//Popup centrata
function aprialcentro(url,larghezza,altezza) {
 open(url, "popup", "width="+larghezza+",height="+altezza+", left="+((screen.width-larghezza)/2)+",top="+((screen.height-altezza)/2)+"");
}

// Popup normale
function openWindow(url, name, w, h,scroll ) {
  popupWin = window.open(url, name, 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars='+scroll+',resizable=no,width='+ w + ',height='+ h + ',top=100,left=100')
}

function openWindowGallery(url, name) {
  popupWin = window.open(url, name, 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,width=620,height=580,top=5,left=5');
  popupWin.focus();
}

//Popup per immagini
function ingrandisci(immagine,descrizione,larghezza,altezza)
{ 
eval("NewWin=window.open('','popup','resizable=no,scrollbars=no,status=no,width='+larghezza+',height='+altezza+',left=5,top=5');"); 
NewWin.document.write ("<HTML><HEAD><TITLE>");
NewWin.document.write (".:: B&B HAPPY DAYS ::. ");
NewWin.document.write (descrizione + "</TITLE>");
NewWin.document.write ("</HEAD>\n"); 
NewWin.document.write ("<BODY Onload='top.window.focus()' MARGINWIDTH='0' MARGINHEIGHT='0' TOPMARGIN='0' LEFTMARGIN='0'>\n"); 
NewWin.document.write ("<a href='javascript:this.close();'><IMG SRC='");
NewWin.document.write (immagine);
NewWin.document.write ("' WIDTH='");
NewWin.document.write (larghezza);
NewWin.document.write ("' HEIGHT='");
NewWin.document.write (altezza);
NewWin.document.write ("' BORDER='0'  ALT='Clicca per chiudere' STYLE=position:absolute;left=0px;top=0px></a>"); 
NewWin.document.write ("</BODY></HTML>"); 
NewWin.document.close();
} 


// Controllo Checkbox form
var checkobj

function accetta(el){
checkobj=el
	if (document.all||document.getElementById){
		for (i=0;i<checkobj.form.length;i++){  
var tempobj=checkobj.form.elements[i]
	if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
							}
						}
					}

function disabilita(el){
	if (!document.all&&!document.getElementById){
			if (window.checkobj&&checkobj.checked)
return true
		else{
alert("Per favore accetta i termini del contratto")
return false
						}
					}
				}

// Effetti menù 
var ie55up=true;
var cookie={
Get:function(n){var re=new RegExp(n+'=([^;]*);?','gi');var r=re.exec(document.cookie)||[];return unescape(r.length>1?r[1]:null)},
Set:function(n,v,e,p,d,s){var t=new Date;if(e)t.setTime(t.getTime()+(e*8.64e7));document.cookie=n+'='+escape(v)+'; '+(!e?'':'; expires='+t.toUTCString())+(!p?'':'; path='+p)+(!d?'':'; domain='+d)+(!s?'':'; secure')}
};
function setStyleSheet(theme) {
for ( i = 0; i < document.styleSheets.length; i++ )
{
if ( document.styleSheets[i].title )
{
if (document.styleSheets[i].title == theme)
{
document.styleSheets[i].disabled = false;
}
else
{
document.styleSheets[i].disabled = true;
}
}
}
cookie.Set('style',theme,true,'/');
}
var csslist='Blue;Red';
var arrcss=csslist.split(';');
var csst;
var theme=cookie.Get('style');
for (jjj=0;jjj<arrcss.length;jjj++)
{
sstyle=arrcss[jjj];
csst='<link ';
if ((typeof theme =='string')&&(theme!='null'))
{
if (sstyle==theme)
{
csst+='rel="stylesheet" ';
}
else
{
csst+='rel="alternate stylesheet" ';
}
}
else
{
if (jjj==0)
{
csst+='rel="stylesheet" ';
}
else
{
csst+='rel="alternate stylesheet" ';
}
}
csst+='href="/'+sstyle+'1.css" type="text/css" title="';
csst+=sstyle+'">';
document.writeln(csst);
}
function appfil(img){
if (ie55up){
if(img && img.filters && img.filters[0])
{
img.filters[0].apply();
img.filters[0].play();
}}}
function apfty(x) {
if (ie55up){
x.filters[0].apply();
x.filters[0].play();
}}

// Clear Focus
function clearFocus() 
{ 
no_bordo = function(){this.blur()} 
for(i=0;i<document.links.length;i++) 
{ 
document.links[i].onfocus=no_bordo; 
} 
} 
onload=clearFocus; 


// Richiama tutti gli OnLoad
function richiamaOnload() {
clearFocus();
}
onload=richiamaOnload;

// --> 