// Gestione blank
function xblank() {
	for(var i=0; i<document.links.length; i++){
		var anchor = document.links[i];
		if (anchor.className!="blank") {
			anchor.target="_top";
		}
	}
	for(var i=0; i<document.links.length; i++) {
		var anchor = document.links[i];
		if (anchor.className=="blank") {
			anchor.target="_blank";
			if (anchor.title) anchor.title += " [Il link apre una nuova finestra]";
			if (!anchor.title) anchor.title = "Il link apre una nuova finestra";
		}
	}
}
window.onload = xblank;

// Regolo la posizione in relazione alla risoluzione dello schermo
$(document).ready(function(){
    
	if($(document).height() < 620){
		$("#contenitore").css({'top':'0px', 'margin-top':'0px'});
	}
	
	if($(document).width() < 980){
		$("#contenitore").css({'left':'0px', 'margin-left':'0px'});
	}

});


