/* --------------------------
/* ---------- respectful.js
/* ----------
/* ---------- version 0.91
/* ---------------------------------------------------------- */

/*
$(document).ready(function(){
	reSizeFonts();
	$("#TextFrame").load("index.php?o=respectful_tv", function() {
		$("#TextFrame").fadeTo(500, 1);
		});				
});
*/

$(document).ready(function(){
	reSizeFonts();			
});

$(window).resize(function() {
	reSizeFonts();						
});

function reSizeFonts()
{
	
	normalizedWidth = $(window).width() / 2048 * 100;

	if (normalizedWidth < 20) { normalizedWidth = 20;
	} else if (normalizedWidth > 140) {normalizedWidth = 140;
		} else { normalizedWidth = Math.round(normalizedWidth);}
		
	$('#Mainframe').css('font-size', normalizedWidth + '%'); 				
	
}	
