jQuery.noConflict();

jQuery(document).ready(function(){
	
	jQuery("#nav a, #sidebar-left-navigation a").each(function() {
		if(this.href == window.location || this.href == document.location.protocol + "//" + window.location.hostname + window.location.pathname)
			jQuery(this).addClass("active");
	}); 
	
	
	
	jQuery('#slideshow').slides({
		preload: true,
		pagination: true,
		generatePagination: true,
		effect: 'fade',
		//preloadImage: 'img/loading.gif',
		animationStart: function(current){
			jQuery('.caption').animate({
				bottom:-40
			},30);
			if (window.console && console.log) {
				// example return of current slide number
				console.log('animationStart on slide: ', current);
			};
		},
		animationComplete: function(current){
			jQuery('.caption').animate({
				bottom:-5
			},30);
			if (window.console && console.log) {
				console.log('animationComplete on slide: ', current);
			};
		},
		slidesLoaded: function() {
			jQuery('.caption').animate({
				bottom:-5
			},30);
		}
	});
	  
    jQuery("#nav li").hover(function() { 
        jQuery(this).find("ul.subnav").slideDown('fast').show();
		jQuery(this).parent().hover(function() {  
		}, function(){  
			jQuery(this).find("ul.subnav").slideUp('fast'); 
		}); 
		jQuery("#nav li").not(this).hover(function() {  
		}, function(){  
			jQuery(this).find("ul.subnav").slideUp('fast');
		});  
    });  
	
	jQuery('#sidebar-left-announcement .divider:first').css('display','none');
	
});
