$(document).ready(function() {

	/*$("ul.menu_landing li").hover(function() { 

		var thumbOver = $(this).find("img").attr("src"); 

		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});

		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			
			$(this).hide() 
		});
	} , function() { 
	
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});*/
		
		
		
	
	// set opacity to nill on page load
		$("ul.menu_landing span").css("opacity","0");
		// on mouse over
		$("ul.menu_landing span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "slow");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});
	
	$('#frontpage-slider').aviaSlider({	blockSize: {height: 80, width:80},
		transition: 'slide',
		display: 'all',
		showText: false,
		autorotationSpeed:2,
		animationSpeed: 600,
		transitionOrder: ['diagonaltop', 'diagonalbottom','topleft', 'bottomright', 'random']
		});
		
	
	 $('#accordion dd').hide();
       $('#accordion dt a').click(function(){
          if ($(this).hasClass('selected')) {
               $(this).removeClass('selected');
               $(this).parent().next().slideUp();
          } else {
               $('#accordion dt a').removeClass('selected');
               $(this).addClass('selected');
               $('#accordion dd').slideUp();
               $(this).parent().next().slideDown();
          }
          return false;
       });


});
