var init = false;
$(document).ready(initFunction);
$(window).load(initFunction);

function initFunction()
{
	 var height = Math.max($("#contentcontainer").height(),$("#leftBar").height());

	if($("#contentcontainer").height() != height)
	{
	 	$("#content").css("height",height);
	}

  $("#leftEnd").css("height",height+33);
  $("#contentEnd").css("height",height+33);

  if(true == init)
     return;

   init = true;
   
	$("#incFont").hoverIntent({
		interval:50,
		over:showTip,
		timeout:50,
		out:hideTip
	});
   $("#decFont").hoverIntent({
		interval:50,
		over:showTip,
		timeout:50,
		out:hideTip
	});
}

function showTip()
{
	$(this).find(".tip").show();
}

function hideTip()
{
	$(this).find(".tip").hide();
}

function decFont()
{
  $("*").each(function(e,c){
      $(c).css("font-size",(parseInt($(this).css("font-size"))-2)+"px");
    });
  //$("body").css("font-size",(parseInt($(this).css("font-size"))-2)+"px");
}
