if ( parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) == 7) {
        //Setto gli z-index dei footer a -10
        $('#footer-content .fascia-cerca').css('zIndex',-10);
        $('#footer-content .fascia-footer').css('zIndex',-10);

	$(function() {
		var zIndexNumber = 1000;
		$('div').each(function() {
			$(this).css('zIndex', zIndexNumber);
			zIndexNumber -= 10;
		});
	});

}

$(document).ready(function(){
	/*$(".main-menu li").hover(
		function(){
			$(this).children("ul").css("display", "block");
		},
		function(){
			$(this).children("ul").css("display", "none");
		}
	);*/
	

	//Cufon.replace('.din-regular');

//$('.din-regular').hide();
//$('.din-bold').hide();

	/*Cufon.replace('.din-regular', { fontFamily: 'DINregular' });*/
/*if(navigator.appName != 'Microsoft Internet Explorer' || navigator.appVersion.slice(0,3) != '5.0' ){
	Cufon.replace('.din-bold', { fontFamily: 'DINbold' });
	//Cufon.replace('.din-regular', { fontFamily: 'DINbold' });
}*/

$('.din-regular').css('display','block');
$('.din-bold').css('display','block');

	
	$(".cbox").colorbox({
		iframe: true,
		width:'650px',
		height:'450px'
	});

	$(".cbox-iframe").colorbox({
		iframe: true,
		width:'410px',
		height:'450px'
	});
});


function openWin(page) {
	window.open(page,"smallwin","width=350,height=500");
}


function handleSearchTextKeyPress(e,form,callback){
	var key=e.keyCode || e.which;
	if (key==13){
		callback();
		return false;
	}
	return true;
}




