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

	// f-UGhWj1xww cool sepia hd
	// 49SKbS7Xwf4 beautiful barn sepia
	
	// Play/Pause
	$('#videoPause').click(function() {
		if ($(this).hasClass('videoPaused')) {
			ytplayer.playVideo();
			$(this).removeClass('videoPaused');
		} else {
			ytplayer.pauseVideo();
			$(this).addClass('videoPaused');
		}
		return false;
	});
	
	// Mute/Unmute
	$('#videoMute').click(function() {
		if ($(this).hasClass('videoMute')) {
			ytplayer.mute();
			$(this).removeClass('videoMute');
			$('#theUn').removeClass('none');
		} else {
			ytplayer.unMute();
			$(this).addClass('videoMute');
			$('#theUn').addClass('none');
		}
		return false;
	});
	
	// Nuke video (for slow connections -- stops loading entirely)
	$('#videoStop').click(function() {
		ytplayer.stopVideo();
		ytplayer.clearVideo();
		$('#yt-container').hide();
		return false;
	});
	
	 $('#menu-item-2188').mouseenter(function() {
        jQuery('#recentPosts').fadeIn(200) ;
		if ($("#sponsorsWall").is(":visible") == true) {
                $('#sponsorsWall').fadeOut('fast')
            };
		if ($("#uEvents").is(":visible") == true) {
                $('#uEvents').fadeOut('fast')
            };	
    });

    $('#recentPosts').mouseleave(function() {
        jQuery('#recentPosts').fadeOut(200) ;
		
    });
	
	 $('#menu-item-2187').mouseenter(function() {
        jQuery('#sponsorsWall').fadeIn(200) ;
		if ($("#recentPosts").is(":visible") == true) {
                $('#recentPosts').fadeOut('fast')
            };
		if ($("#uEvents").is(":visible") == true) {
                $('#uEvents').fadeOut('fast')
            };	
    });

    $('#sponsorsWall').mouseleave(function() {
        jQuery('#sponsorsWall').fadeOut(200) ;
    });
	
	$('#menu-item-2189').mouseenter(function() {
        jQuery('#uEvents').fadeIn(200) ;
		if ($("#recentPosts").is(":visible") == true) {
                $('#recentPosts').fadeOut('fast')
            };
		if ($("#sponsorsWall").is(":visible") == true) {
                $('#sponsorsWall').fadeOut('fast')
            };	
    });

    $('#uEvents').mouseleave(function() {
        jQuery('#uEvents').fadeOut(200) ;
    });
		
	$('#vbg').hide();
	
	$('footer').css('position','absolute').css('z-index','10000').css('width','100%');
});
