

$(document).ready(function(){
			
	//Hover event for main navigation
	$('div[class^=mainNavItem]').hover(
		function() {
			var $this = $(this);
			var x = $this.attr("id");
			$('#'+x+'_Menu' ).show("fast");
		},
		function() {
			var $this = $(this);
			var x = $this.attr("id");
			var y = document.getElementById(x+"_Menu")
			$('#'+x+'_Menu' ).hide("fast");
		}
	);
	
	var first = 0;
	var speed = 700;
	var pause = 6000;
	
//		function removeFirst(){
//			first = $('ul#listticker li:first').html();
//			$('ul#listticker li:first')
//			//.animate({opacity: 0}, speed)
//			.slideUp('slow', function() {$(this).remove();});
//			//.fadeOut('slow', function() {$(this).remove();});
//			addLast(first);
//		}
//		
//		function addLast(first){
//			last = '<li style="display:none">'+first+'</li>';
//			$('ul#listticker').append(last)
//			$('ul#listticker li:last')
//			.animate({opacity: 1}, speed)
//			.fadeIn('slow')
//		}
//	
//	interval = setInterval(removeFirst, pause);
	
	//Hover event for main navigation
	//$('#enews_link').click(
//		function() {
//			$('div[id^=corporate]').fadeTo("slow",0.2);
//			$('div[id^=small]').fadeTo("slow",0.2);
//			
//			$('div[id^=enews]').fadeTo("slow",1);
//			
//	});
//	
//	$('#corporate_link').click(
//		function() {
//			$('div[id^=enews]').fadeTo("slow",0.2);
//			$('div[id^=small]').fadeTo("slow",0.2);
//			
//			$('div[id^=corporate]').fadeTo("slow",1);
//	});
//	
//		$('#small_link').click(
//		function() {
//			$('div[id^=enews]').fadeTo("slow",0.2);
//			$('div[id^=corporate]').fadeTo("slow",0.2);
//			
//			$('div[id^=small]').fadeTo("slow",1);
//	});
		
 });


