$(document).ready(function(){
    
	//Rollover nav panels
   $("#navigation li").hover(
      function () {
        $(this).children(".bigNavPanel").show();
		$(this).children("a").addClass("navover");
      }, 
      function () {
        $(this).children(".bigNavPanel").hide();
		$(this).children("a").removeClass("navover");
      }
    );
   $("#navigation li").hover(
      function () {
        $(this).children(".smallNavPanel").show();
		$(this).children("a").addClass("navover");
      }, 
      function () {
        $(this).children(".smallNavPanel").hide();
		$(this).children("a").removeClass("navover");
      }
    );


	//Main boxes
	$(".mainpromoboxes div").hover(
      function () {
		$(this).addClass("darkplus");
        $(this).children(".mainboxcontent1").stop().animate({ bottom: "165px"}, 500 );
		$(this).children(".mainboxcontent2").stop().animate({ opacity: 1},'slow');
		$(this).children(".mainboxcontent3").stop().animate({ opacity: 1},'slow');
      }, 
      function () {
		$(this).removeClass("darkplus");
	 	$(this).children(".mainboxcontent1").stop().animate({ bottom: "10px"}, 500 );
        $(this).children(".mainboxcontent2").stop().animate({ opacity: 0});
		$(this).children(".mainboxcontent3").stop().animate({ opacity: 0});
      }
    );


	//Accordian
	$(".accordianmenu div div").click(
	  function(){
		$(this).parent().siblings().children().filter(":first").removeClass("switcharrow");
		$(this).addClass("switcharrow");
		$(this).parent().siblings().children(".accordianitemlist").slideUp();
		$(this).siblings(".accordianitemlist").slideDown();
	  }
	);
	$("#listnews ul li div").hover(
      function() { 
		$(this).children("#fullTitle").show();
      },
      function() { 
		$(this).children("#fullTitle").hide();
      }
    ); 
	$("#listevents ul li div").hover(
      function() { 
		$(this).children("#fullEvent").show();
      },
      function() { 
		$(this).children("#fullEvent").hide();
      }
    ); 
	
	
	//Tabs
	$('#navTabs').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'fast', remote: true  });
	$('#navTabs span').click(function() {
		$("span").removeClass("tab_on");
		$(this).addClass("tab_on");
	});
  });