<!--
function copyright() {
	searchWin = window.open('http://www.valtnet.com/diritto_autore','Copyright','scrollbars=yes,resizable=yes,width=330,height=500,status=no,location=no,toolbar=no');
}
function email(p1, p2) {
	var a=p1;
	var b=p2;
	document.write("<a href=\"mailto:"+a+"@"+b+"\">"+a+"@"+b+"</a>");
}
function privacy(lingua) {
	finestra = window.open('privacy.php?lingua='+lingua,'Privacy','scrollbars=yes,resizable=no,width=400,height=350,status=no,location=no,toolbar=no');
}

function browserWindowSize() {
	var browserWinWidth = 0, browserWinHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		browserWinWidth = window.innerWidth;
		browserWinHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		browserWinWidth = document.documentElement.clientWidth;
		browserWinHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		browserWinWidth = document.body.clientWidth;
		browserWinHeight = document.body.clientHeight;
	}
	return browserWinWidth;
}
function setBg() {
	ww = browserWindowSize();
	if(ww<1280) ww=1280;
	else if(ww>=1280 && ww<1440) ww=1440;
	else if(ww>=1400 && ww<1920) ww=1920;
	else ww=3000;
	jQuery.preLoadImages("grafica/bg_content_"+ww+".jpg");
	$("#content").css("background", "#c7deec url(grafica/bg_content_"+ww+".jpg) center center no-repeat");
}

function changePhoto(o) {
	var obj = o;
	src = $(obj).attr("src");
	$("#real_imm_grande").attr("src", src);
}

(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)
//-->

