$j(document).ready(function(){
							

	$j("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav

	$j("ul#nav li").hover(function() { //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$j(this).find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

		$j(this).hover(function() {
		}, function(){
			$j(this).find("ul.subnav").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
			$j(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$j(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});

	(function ($) {
		// VERTICALLY ALIGN FUNCTION
		$.fn.vAlign = function() {
			return this.each(function(i){
			var ah = $j(this).height();
			var ph = $j(this).parent().height();
			var mh = (ph - ah) / 2;
			$j(this).css('margin-top', mh);
			});
		};
		})(jQuery);

	$j('.list_thumb a img').vAlign();
	$j('#additional a img').vAlign();
	$j('.rec_thumb').vAlign();
	$j('#featured a img').vAlign();
	$j('.players_recommended_tmb a img').vAlign();
	$j('#gioca_recommended a img').vAlign();
	$j('#news_preview dl dt a img').vAlign();


});
