		$(document).ready(function() {
		
			/// wrap inner content of each anchor with first layer and append background layer
			$("#BMenu li a").wrapInner( '<span class="out"></span>' ).append( '<span class="bg"></span>' );

			// loop each anchor and add copy of text content
			$("#BMenu li a").each(function() {
				$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
			});

			$("#BMenu li a").hover(function() {
				// this function is fired when the mouse is moved over
				$(".out",	this).stop().animate({'top':	'28px'},	250); // move down - hide
				$(".over",	this).stop().animate({'top':	'0px'},		250); // move down - show
				$(".bg",	this).stop().animate({'top':	'0px'},		120); // move down - show

			}, function() {
				// this function is fired when the mouse is moved off
				$(".out",	this).stop().animate({'top':	'0px'},		250); // move up - show
				$(".over",	this).stop().animate({'top':	'-28px'},	250); // move up - hide
				$(".bg",	this).stop().animate({'top':	'-28px'},	120); // move up - hide
			});

			});


			$(document).ready(function(){
				$('#fulldate').load('date.php', function() {
			
				});
			});

			$(function()
			{
				$(".tab_content").hide();
				$("ul.tabs li:first").addClass("sel").show();
				$(".tab_content:first").show();
				$("ul.tabs li").click(function()
				{
					$("ul.tabs li").removeClass("sel");
					$(this).addClass("sel");
					$(".tab_content").hide();
					var activeTab = $(this).find("a").attr("href");
					$(activeTab).fadeIn('slow');
					return false;
				});
			});

			
			
			// link login
			
	//<![CDATA[
$(document).ready(function () {

	//Append a div with hover class to all the LI
	$('#login-links li').append('<div class="hover"><\/div>');


	$('#login-links li').hover(
		
		//Mouseover, fadeIn the hidden hover class	
		function() {
			
			$(this).children('div').fadeIn('1000');	
		
		}, 
	
		//Mouseout, fadeOut the hover class
		function() {
		
			$(this).children('div').fadeOut('1000');	
		
	}).click (function () {
	
		//Add selected class if user clicked on it
		$(this).addClass('selected');
		
	});

});
//]]>		
// end link login	



		

  $(function() {
    $('.nord').tipsy({gravity: 'n'});
    $('.sud').tipsy({gravity: 's'});
    $('.est').tipsy({gravity: 'e'});
    $('.ouest').tipsy({gravity: 'o'});
    $('.fade').tipsy({ gravity: 's' , fade: true});
    });
	 $(window).load(function() {
     $('#slider').nivoSlider({directionNavHide:false});
    });

			
			
			
			
