$(document).ready(function(){
	$("#v5,#v51").hover(function(){
		$("#v5Nav").slideDown('slow');
		$("#arenaNav,#aspireNav,#hqNav").slideUp('slow');
	});


	$("#arena,#arena1").hover(function(){
		$("#arenaNav").slideDown('slow');
		$("#v5Nav,#aspireNav,#hqNav").slideUp('slow');
	});

	
	$("#aspire,#apsire1").hover(function(){
		$("#aspireNav").slideDown('slow');
		$("#v5Nav,#arenaNav,#hqNav").slideUp('slow');
	});


	$("#hq,#hq1").hover(function(){
		$("#hqNav").slideDown('slow');
		$("#v5Nav,#arenaNav,#aspireNav").slideUp('slow');
	});
	
	
	$("#v5Nav,#arenaNav,#aspireNav,#hqNav").hover(function(){ },
		function(){$(this).slideUp('slow');}
	);
});

$(document).ready(function() {
	$("#discover").hover(function(){
		$(this).attr({src:"Images/discoverbutton.png"});},function(){$(this).attr({src:"Images/discoverbuttonul.png"});
    });
});


// Cache Images for Rollover
$(document).ready(function(){
  $.preloadCssImages();
}); 

//Rollover for Social Images
$(document).ready(function(){
	$("#facebookIMG").hover(function(){
		$(this).attr({src: "images/facebook_bw.png"});},function(){$(this).attr({src: "images/facebook.png"});
	});
	$("#linkedinIMG").hover(function(){
		$(this).attr({src: "images/linkedin_bw.png"});},function(){$(this).attr({src: "images/linkedin.png"});
	});
	$("#twitterIMG").hover(function(){
		$(this).attr({src: "images/twitter_bw.png"});},function(){$(this).attr({src: "images/twitter.png"});
	});
	$("#RSSIMG").hover(function(){
		$(this).attr({src: "images/rss_bw.png"});},function(){$(this).attr({src: "images/rss.png"});
	});
});


// Rotating Ads
$(document).ready(function(){
	$("#ad")
	.after('<div id="adnav">')
	.cycle({ 
		fx: 'fade',
		speed:  2500,
		timeout: 7000,
		pager: '#adnav'
	});
});



// Get Date for Copyright
var now = new Date();
var year= now.getYear();

// Hack for Gecko and Web-Kit Y2K  Bug
if (year >= 100 && year <= 1999)
	{ 
		year = year + 1900
	}
	else {
		year = year
	}
