
$(function(){
  $("#slides").slides({
  	effect: 'fade, fade',
	crossfade: true,
	preload: true,
	preloadImage: 'img/loading.gif',
	play: 5000,
	pause: 2500,
	hoverPause: false
  });
});
 
//Captify
$(document).ready(function(){
    $('img.captify').captify({
    // all of these options are... optional
    // speed of the mouseover effect
    speedOver: 'fast',
    // speed of the mouseout effect
    speedOut: 'normal',
    // how long to delay the hiding of the caption after mouseout (ms)
    hideDelay: 500,
    // 'fade', 'slide', 'always-on'
    animation: 'always-on',
    // text/html to be placed at the beginning of every caption
    prefix: '',
    // opacity of the caption on mouse over
    opacity: '0.7',
    // the name of the CSS class to apply to the caption box
    className: 'caption-bottom',
    // position of the caption (top or bottom)
    position: 'bottom',
    // caption span % of the image
    spanWidth: '100%'
    });
    
    $('#cssdropdown li').hover(
			function() { $('ul', this).css('display', 'block'); 
						 $('.sub', this).css('display', 'none'); },
			function() { $('ul', this).css('display', 'none'); });
			
	$('.sub').hide();
		
	
		
	$('#cssdropdown li').hover(
		function() { $('a', this).css({'background-image': 'url("img/menu_element.png")', 'color': '#FFF'}); },
		function() { $('a', this).css({'background-image': 'none', 'color': '#80786E'}); });
		
	$('#cssdropdown li ul li').hover(
		function() { $('a', this).css('color', '#FFF');  });


				
});



