// JavaScript Document

function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}


<!--campi testo-->




$(document).ready(function() {
			$('.testo_email').addClass("testo_email");
       		$('.testo_email').focus(function() {
       			$(this).removeClass("testo_email").addClass("testoOn");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.testo_email').blur(function() {
    			$(this).removeClass("testoOn").addClass("testo_email");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("testo_email").addClass("testoOn");
				}
    		});
		});		



$(document).ready(function() {
			$('.testo_password').addClass("testo_password");
       		$('.testo_password').focus(function() {
       			$(this).removeClass("testo_password").addClass("testoOn");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.testo_password').blur(function() {
    			$(this).removeClass("testoOn").addClass("testo_password");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("testo_password").addClass("testoOn");
				}
    		});
		});	









		$(document).ready(function() {
			$('.textLoginPWD').addClass("textLoginPWD");
       		$('.textLoginPWD').focus(function() {
       			$(this).removeClass("textLoginPWD").addClass("textLoginPWDon");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.textLoginPWD').blur(function() {
    			$(this).removeClass("textLoginPWDon").addClass("textLoginPWD");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("textLoginPWD").addClass("textLoginPWDon");
				}
    		});
		});			
		
		$(document).ready(function() {
			$('.textLoginEMAIL').addClass("textLoginEMAIL");
       		$('.textLoginEMAIL').focus(function() {
       			$(this).removeClass("textLoginEMAIL").addClass("textLoginEMAILon");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.textLoginEMAIL').blur(function() {
    			$(this).removeClass("textLoginEMAILon").addClass("textLoginEMAIL");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("textLoginEMAIL").addClass("textLoginEMAILon");
				}
    		});
		});		
		
		$(document).ready(function() {
			$('.cerca').addClass("cerca");
       		$('.cerca').focus(function() {
       			$(this).removeClass("cerca").addClass("cercaOn");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.cerca').blur(function() {
    			$(this).removeClass("cercaOn").addClass("cerca");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("cerca").addClass("cercaOn");
				}
    		});
		});	
		
		$(document).ready(function() {
			$('.email').addClass("email");
       		$('.email').focus(function() {
       			$(this).removeClass("email").addClass("emailOn");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.email').blur(function() {
    			$(this).removeClass("emailOn").addClass("email");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("email").addClass("emailOn");
				}
    		});
		});			
		
		$(document).ready(function() {
			$('.sito').addClass("sito");
       		$('.sito').focus(function() {
       			$(this).removeClass("sito").addClass("sitoOn");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.sito').blur(function() {
    			$(this).removeClass("sitoOn").addClass("sito");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("sito").addClass("sitoOn");
				}
    		});
		});			
	
    $(document).ready(function() {
			$('.nome').addClass("nome");
       		$('.nome').focus(function() {
       			$(this).removeClass("nome").addClass("nomeOn");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.nome').blur(function() {
    			$(this).removeClass("nomeOn").addClass("nome");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("nome").addClass("nomeOn");
				}
    		});
		});				
		
		$(document).ready(function() {
			$('.commento').addClass("commento");
       		$('.commento').focus(function() {
       			$(this).removeClass("commento").addClass("commentoOn");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.commento').blur(function() {
    			$(this).removeClass("commentoOn").addClass("commento");
    		    if ($.trim(this.value) != ''){
			    	$(this).removeClass("commento").addClass("commentoOn");
				}
    		});
		});		
  
           
 <!--visore-->
 
function animationCOLS() {
	//alert("animationCOLS");
	
	//swfResize();
	if (flashone_open) {
		$('#flashone').animate({height: '99px'}, 1000, 'swing', function() { flashone_open = false });
	} else {
		$('#flashone').animate({height: '459px'}, 900, 'swing', function() { flashone_open = true });
	}	

	if (col1_open) {
		$('#col1').animate({height: '1275px'}, 'normal', 'linear', function() { col1_open = false });
	} else {
		$('#col1').animate({height: '913px'}, 'normal', 'linear', function() { col1_open = true });
	}

	if (col2_open) {
		$('#col2').animate({height: '1275px'}, 'normal', 'linear', function() { col2_open = false });
	} else {
		$('#col2').animate({height: '913px'}, 'normal', 'linear', function() { col2_open = true });
	}
} 
 
var flashone_open = true;
$(document).ready( function() {
	$('.toggler').click( function() {
		if (flashone_open) {
			$('#flashone').animate({height: '90px'}, 'normal', 'linear', function() { flashone_open = false });
		} else {
			$('#flashone').animate({height: '372px'}, 'normal', 'linear', function() { flashone_open = true });
		}
	});
});	


var col1_open = true;
$(document).ready( function() {
	$('.togglerCol1').click( function() {
		if (col1_open) {
			$('#col1').animate({height: '1200px'}, 'normal', 'linear', function() { col1_open = false });
		} else {
			$('#col1').animate({height: '950px'}, 'normal', 'linear', function() { col1_open = true });
		}
	});
});	

var col2_open = true;
$(document).ready( function() {
	$('.togglerCol2').click( function() {
		if (col2_open) {
			$('#col2').animate({height: '1200px'}, 'normal', 'linear', function() { col2_open = false });
		} else {
			$('#col2').animate({height: '950px'}, 'normal', 'linear', function() { col2_open = true });
		}
	});
});	



var flashoneEventi_open = true;
$(document).ready( function() {
	$('.togglereventi').click( function() {
		if (flashoneEventi_open) {
			$('#flashoneeventi').animate({height: '387px'}, 'normal', 'linear', function() { flashoneEventi_open = false });
		} else {
			$('#flashoneeventi').animate({height: '0px'}, 'normal', 'linear', function() { flashoneEventi_open = true });
		}
	});
});	

var col3Eventi_open = true;
$(document).ready( function() {
	$('.togglereventi2').click( function() {
		if (col3Eventi_open) {
			$('#col3_eventi').animate({height: '848px'}, 'normal', 'linear', function() { col3Eventi_open = false });
		} else {
			$('#col3_eventi').animate({height: '473px'}, 'normal', 'linear', function() { col3Eventi_open = true });
		}
	});
});	

 <!--rounded corners-->
$(document).ready( function(){
  $('.rounded').corners();
});

<!--rollover menu-->
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

<!--paginazione-->
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}



