function fontResize() {
        //Set default resolution and font size
        var resolution = 1024;
        var font = 9;

        //Get window width
        var width = $(window).width();
        if (width > resolution) {
        //Set new font size
        console.log('Risoluzione Maggiore');
        var newFont = font * (width/resolution);
        $('body').css('font-size', newFont);
        }
	else {
        console.log('Risoluzione Minore');
        }
};

function LinkSitiResize() {
        //Set default resolution and font size
        var resolution = 2048;

        //Get window width
        var width = $(window).width();

        var newPadding = 1.1 * (width/resolution);
	var padText = "" + newPadding;
	var pad = padText.substring(0,3) + 'em';
	console.log(pad);
      $('#link_siti > a > img').css({'padding': '0em '+pad});
};

function imgTitoloResize() {
        //Set default resolution and font size
        var resolution = 2048;

        //Get window width
        var width = $(window).width();

        var titleWidth = (width * 100) / resolution;
		var titWidth = ("" + titleWidth).substring(0,4) + "%";
	console.log(titWidth);
      $('#titolo').css({'width': titWidth});
};


