// JavaScript Document

$(document).ready(function()
{	
	$(".hasSub ul").hide();
	$(".hasSub").hover(
    	function () {
    		$(this).find("ul").show();
    	}, 
    	function () {
    		$(this).find("ul").hide();
    	}
    );
	
	$("#font_size").append("<div id='font_inc'>A++</div><div id='font_reset'>A</div><div id='font_dec'>A--</div>");
	var old_font_size = 11;
	var new_font_size = old_font_size;
	
	$("#font_inc").click(function(){
		if (new_font_size+1<=14) {
			new_font_size = new_font_size + 1;
			
			$(".content").animate({
				fontSize : new_font_size								
			});
		}
	});
	
	$("#font_reset").click(function(){
		new_font_size = old_font_size;
									
		$(".content").animate({
			fontSize : new_font_size								
		});
	});
	
	$("#font_dec").click(function(){
		if (new_font_size-1>=10) {
			new_font_size = new_font_size - 1;
			
			$(".content").animate({
				fontSize : new_font_size								
			});
		}
	});
	
	/*$(".calender_popup").parent("div").hover(function(){
		$(this).css({position: "absolute", overflow: "visible", zIndex: "10"});
		$(this).parent("div").css({zIndex: "10", overflow: "visible"});
		$(this).parent("div").parent("td").css({zIndex: "10", overflow: "visible"});
	},function(){
		$(this).css({position: "relative", overflow: "hidden", zIndex: "1"});
		$(this).parent("div").css({zIndex: "5", overflow: "hidden"});
		$(this).parent("div").parent("td").css({zIndex: "5", overflow: "hidden"});
	});*/

});
