// LOGO FADEIN

$(document).ready(function(){
	$("#logo").hide();
	setTimeout(function(){$("#logo").fadeIn(2000);}, 500);
});

// MENU-CONTENT MANAGEMENT

$(document).ready(function(){
	$('#nav-bar-new li').children('span:not(.current_page_item):not(.current_page_ancestor)').css({opacity: '0', display: 'block'});
	$('#nav-bar-new li').hover(
		function(){$(this).children('span:not(.current_page_item):not(.current_page_ancestor)').stop().animate({opacity:"1"}, 300, "easeInOutQuad");},
		function(){$(this).children('span:not(.current_page_item):not(.current_page_ancestor)').stop().animate({opacity:"0"}, 300, "easeInOutQuad");}
	);
});

// PLUGIN INITIALIZATION

$().ready(function() {
	$('#coda-slider-1').codaSlider({
		dynamicArrows: false,
		dynamicTabs: false,
		autoHeight: false // If removed, the expand/collapse feature will not be visible - Tom
	});
	$(document).ready(function(){ 
        $(document).pngFix(); 
    });
});

// NEWS PAGE EXPAND-COLLAPSE

$(document).ready(function() {

	$("div.news-info").hide();
	
	$("div.news-item").click(function() {
	
		// Get associated div
		var newsInfo = $(this).next('div.news-info');
		
		if($(newsInfo).is(':hidden')) {
			//alert('hidden');
			$("div.news-info:visable").slideUp({
				duration: 400,
				easing: 'easeInOutSine'});
			$(newsInfo).slideDown({
				duration: 400,
				easing: 'easeInOutSine'});						
		}else{
			$(newsInfo).slideUp({
			duration: 400, 
			easing: 'easeInOutSine'});
			//alert('visable');		
		}				
											
	});

});

