

function footerRelFix(content){
    var heightWind=$(document).height();
    var heightContainer=$('#container').height();
	var heightHeader=$('#header').height();
	var heightFooter=$('#footer').height();
	
	var  heightBody=heightWind - heightHeader - heightFooter;
	var heightCont=$('#'+content).height();
	if(heightBody>=heightContainer){
	    $('#footer').css({position:'fixed',bottom:'0',left:'0'});
            var marginTopBotto= heightBody- heightCont;
            $('#'+content).css({marginTop:marginTopBotto/2});
	    //$('#content').css({marginTop:'10%'});
	}else if(heightBody<heightContainer){
	    $('#footer').css({position:'relative',bottom:'0',left:'0'});
            $('#'+content).css({marginTop:'20px'});
	}
	//document.title='heightBody='+heightBody + ' heightContent=' + heightCont + ' footer=' + heightFooter + ' header=' +heightHeader + ' container='+ heightContainer;
}

function roll_over() {
    $(".foot_box").hover(
                    //var attr=$(this).attr('src');
        function() { //RollOver
                //if(!$(this).hasClass('active')){
                               $(this).attr('src',$(this).attr('src').replace("_off","_on"));
                               //this.src = this.src.replace("_off","_on");
                               //alert(this.src);
                //}
        },
        function() { //RollOut
                if(!$(this).hasClass('active')){
         //this.src = this.src.replace("_on","_off");
                        $(this).attr('src',$(this).attr('src').replace("_on","_off"));
                }
        }
            
    );
}// chiude function  roll_over
