$(function() {
		$(window).bind('resize', resizeText);
		resizeText();
		
  // Reset Font Size
	var originalFontSize = $('html').css('font-size');
	$(".resetFont").click(function(){
		$('html').css('font-size', originalFontSize);
	});
	
	$(".increaseFont").click(function(){
		$('html').css('font-size', $('html').css('font-size') * 1.1);
		return false;
	});
  
  $(".decreaseFont").click(function(){
		$('html').css('font-size', $('html').css('font-size') * 0.91);
		return false;
	});
});

$(function() {
	return;
	$('div').each(function(e) {
		var color = getRandomColor();
		
		$(this).bind('mouseover', function(e) { $(this).log('mouseover')});
		$(this).css('border', '1px dashed '+color);
	});
	
	//alert(offset.top);

});

function getRandomColor()
{
	var r = Math.floor(Math.random()*256);
 	var g = Math.floor(Math.random()*256);
 	var b = Math.floor(Math.random()*256);
	return '#'+intToHex(r)+intToHex(g)+intToHex(b);
}

 function intToHex(n){
 	n = n.toString(16);
 	if( n.length < 2)
 		n = "0"+n;
 	return n;
 }

jQuery.fn.log = function (msg) {
	console.log("%s: %o", msg, this);
	return this;
};

