$(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() {
	$("#signup").hover(function(){
		$(this).attr({src:"Images/signupbuttonul.png"});},function(){$(this).attr({src:"Images/signupbutton.png"});
    });
	
	$(".register").hover(function(){
		$(this).attr({src:"Images/registerbutton.png"});},function(){$(this).attr({src:"Images/registerbuttonul.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(){
	$(".sag1")
	.cycle({  
		cleartype: false,
		cleartypeNoBg: false,
		fx: 'fade',
		speed:  5000,
		timeout: 2000
	});
});*/

$(document).ready(function(){
	$(".saginfo")
	.cycle({ 
		cleartype: false,
		cleartypeNoBg: false,
		fx: 'fade',
		speed:  1500,
		timeout: 10000
	});
});

$(document).ready(function(){
	$("#reviews")
	.cycle({ 
		cleartype: false,
		cleartypeNoBg: false,
		fx: 'fade',
		speed:  1500,
		timeout: 10000
	});
});

$(document).ready(function() {
  $('#saginfo').hide();
});

$(document).ready(function(){				
	$('#slider-code')
	.tinycarousel({ 
		controls: false,
		pager: true,
		animation: false
	});
});

this.vtip = function() {    
    this.xOffset = -10; // x distance from mouse
    this.yOffset = 10; // y distance from mouse       
    
    $(".vtip").unbind().hover(    
        function(e) {
            this.t = this.title;
            this.title = ''; 
            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
            
            $('body').append( '<p id="vtip"><img id="vtipArrow" />' + this.t + '</p>' );
                        
            $('p#vtip #vtipArrow').attr("src", 'Images/vtip_arrow.png');
            $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
            
        },
        function() {
            this.title = this.t;
            $("p#vtip").fadeOut("slow").remove();
        }
    ).mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);
                         
            $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
        }
    );            
    
};

jQuery(document).ready(function($){vtip();}) 


// 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
	}
