	$(document).ready(function() {
		Cufon.replace('h2', { fontFamily: 'BetaSans' });
		Cufon.replace('h3', { fontFamily: 'BetaSans' });
		
		var EOSWorldVisible = false;
		
		/* #######################*/
		/*      WORLD OF EOS      */
		/* #######################*/

		$('#EOSworld a').toggle(function(){
			$(this).addClass('openTray');

			EOSWorldShow();
			buildblocker();
			 
		},function(){
			$(this).removeClass('openTray');
			
			EOSWorldHide();
			removeBlocker();
		
		});
	
	
		function EOSWorldShow()
		{
			EOSWorldVisible = true;
	
			$('#EOSworld').css('height','332px');
			$('#EOSworld').css('width','995px');
			$('#EOSworld').css('margin-left','-497px');
			

			//OMNITURE
			var s=s_gi(s_account);
			s.linkTrackEvents='event14';
			s.events='event14';
			s.eVar13='worldofeos_tray_Open';
			s.tl(this,'o','worldofeos_tray_Open');
		}
	
		function EOSWorldHide()
		{
			EOSWorldVisible = false;
			
			$('#EOSworld').css('height','25px');
			$('#EOSworld').css('width','152px');
			$('#EOSworld').css('margin-left','-76px');

			//OMNITURE
			var s=s_gi(s_account);
			s.linkTrackEvents='event14';
			s.events='event14';
			s.eVar13='worldofeos_tray_Closed';
			s.tl(this,'o','worldofeos_tray_Closed');
		}
		
		function buildblocker()
		{
			$('<div id="blocker"></div>').insertAfter("#EOSworld");
			$("#blocker").css({
				'height': $(window).height()
			})
			$('#blocker').fadeTo('slow', 0.5);
		}
		
		function removeBlocker()
		{
			$('#blocker').fadeTo('slow', 0, function(){
				$('#blocker').remove();										 
			});
			
		}
	
	});
