/************************************/
/****** GO DETAIL PAGE PRODUCT ******/
/************************************/
function goToPage (who) {	
	if(global.productSelected == who){
		document.location.href = who+".html";
	}
}


/************************************/
/******** OPEN POPOUP FOOTER ********/
/************************************/
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}


/************************************/
/********* POSITION FOOTER **********/
/************************************/

$(window).resize(function() {
	var heightWindows = 0,
	heightWindows = $(window).height();
	setPositionFooter(heightWindows);
	
});

function setPositionFooter(heightWindows) {

	var 	footerBoxInner = null,
			heightFooter = 0,
			heightContent = 0,
			heightMin = 0;
	
	if(!heightWindows) {
		heightWindows = $(window).height();
	}
	
	footerBoxInner = storedjQuery('#footer-box');	
	heightFooter = storedjQuery('#footer-box').height();
	
	heightContent = heightWindows - heightFooter ;	
	
	if(global.consumatori == true) {
		heightMin =600;		
	}
	else if(global.homePage == true) {
		heightMin =575;		
	}
	else{
		heightMin =400;
	}
	//alert(heightMin +"--"+"--"+ heightWindows);
	//Position footer	
	if(heightContent < heightMin) {
		heightContent = heightMin;		
		footerBoxInner.css('top',heightContent +"px");
	} else {
		footerBoxInner.css('top',heightContent +"px");	

	}	
	
	//console.log(heightContent);
	
}

/************************************/
/********* POSITION FOOTER **********/
/************************************/
function animationHP(heightWindows) {
	$("#belte-home").fadeIn(3000);
}

