// JavaScript Document
$(document).ready(function() {
						   
			var size = $.cookie('textSize');
			
			switch (size)
			{
			
			case "normal":
			$("#right").css("font-size", "100%");
			$("#textSizer").css("background-image","url('/Media/Images/graphics/toolbar-TextSmall.gif')");
			break;
			
			case "large":
			$("#right").css("font-size", "110%");
			$("#textSizer").css("background-image","url('/Media/Images/graphics/toolbar-TextMedium.gif')");
			break;
			
			case "larger":
			$("#right").css("font-size", "120%");
			$("#textSizer").css("background-image","url('/Media/Images/graphics/toolbar-TextLarge.gif')");
			break;
			}
		
         $('a.normal').click(function()
        {		var size = "normal"
                $("#right").css("font-size", "100%");
				$("#textSizer").css("background-image","url('/Media/Images/graphics/toolbar-TextSmall.gif')");
              
				$.cookie('textSize', size, {expires: 365, domain: 'www.ceoe.udel.edu', path: '/'} );
				return false;
				
        });
		$('a.large').click(function()
        {		var size = "large"
                $("#right").css("font-size", "110%");
				$("#textSizer").css("background-image","url('/Media/Images/graphics/toolbar-TextMedium.gif')");
                
				$.cookie('textSize', size, {expires: 365, domain: 'www.ceoe.udel.edu', path: '/' } );
				return false;
				
        });
		
		$('a.larger').click(function()
        {		var size = "larger"
                $("#right").css("font-size", "120%");
				$("#textSizer").css("background-image","url('/Media/Images/graphics/toolbar-TextLarge.gif')");
                
				$.cookie('textSize',  size, {expires: 365, domain: 'www.ceoe.udel.edu', path: '/'});
				return false;
        });
   
});

