jQuery(document).ready(function() {
	if (jQuery('.slide-carousel').length)
		jQuery('.slide-carousel').slideCarousel ();
	
	if (jQuery('.color-switcher').length) {
		jQuery('.color-switcher').click(function () {
			var colorStylesheet = jQuery ('#colors-stylesheet'),
				chosenColor = jQuery(this).attr('id').substr(0, jQuery(this).attr('id').indexOf('-')),
				chosenCSS = colorStylesheet.attr('href').substr(0, colorStylesheet.attr('href').lastIndexOf('/')) + '/' + chosenColor + '.css';
				
			colorStylesheet.attr('href', chosenCSS);
		});
	}
	
	jQuery('header .menu').superfish ({ 
		hoverClass: 	'active',
		autoArrows: 	false,
		speed: 			'fast',
		animation: 		{height:'show'},  
		delay:     		800
	});
	
	/*jQuery('header .menu > li:has(ul)').mouseover(function () {
		$(this).addClass('active');
	});
	
	jQuery('header .menu > li:has(ul)').mouseout(function () {
		$(this).removeClass('active');
	});*/
});

