
var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")

jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

function show_search() { 
	$('#show_search').hide();
	//$('#head .row1').css({paddingLeft:'310px'});
	$('#search_form').fadeIn('slow');
}

function openForm() {
	tb_remove();
	setTimeout("$('#email').trigger('click')", 1000);
}

function addItem(obj,idx) { thisMovie("playerID").addItem(obj,idx); };

function removeItem(idx) { thisMovie("playerID").removeItem(idx); };


function sendStop() {
	return document.getElementById('playerID').sendEvent('stop');
}

// This is a javascript handler for the player and is always needed.
function thisMovie(movieName) {
	if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
};

$(document).ready( function() {
	// var altezza = $(window).height();
	// if (altezza > 650 ) {
	// 	$('body,html').css({overflow:"hidden"});
	// }	
	$(".fancybox").fancybox({
			'zoomSpeedIn':		300, 
			'zoomSpeedOut':		300, 
			'overlayShow':		true,
			'overlayOpacity':   0.8
		});	
		jQuery(document).pngFix();
});


function quit() {
	if (confirm( "Vuoi davvero uscire ?")) {
		return true;
	}
	else {
		return false;
	}
}
