$(document).ready(function() {
	// menu drop downs
	$("li.menu-item").hover(
		function () {
			$('ul', this).stop(true,true).slideDown(200);
		}, 
		function () {
			$('ul', this).stop(true,true).slideUp(100);
		}
	);
	
	// menu link highlightint
	$(".menu-main-navigation-container ul li, .specifications h3").hover(
		function () {
			$(this).addClass('hover');
		}, 
		function () {
			$(this).removeClass('hover');
		}
	);
	
	// sam's acordian thingy
	$(".specifications ul").hide();
	$(".specifications div:first-child ul").slideDown('fast');
	$(".specifications div:first-child h3").addClass('active');
	
	$(".specifications h3").click( function () {
		$(".specifications h3").not(this).removeClass('active');
		if($(this).hasClass('active')) {  
				$(this).removeClass('active');
			}
			else {  
				 $(this).addClass('active'); 
		};
		$(".specifications h3").not(this).next("ul").stop(true,true).slideUp('fast');
		$(this).next("ul").stop(true,true).slideToggle('fast');
	});
	
		
	$('ul.sub-menu li:first-child').addClass('firstitem');
	
	$("ul li:first-child").addClass("first");
	$("ul li:last-child").addClass("last");
	
	$('ul.featured li:nth-child(3n)').addClass("last");
	$('ul.featured li:nth-child(4n)').addClass("clear first");
	$('ul.featured li:nth-child(4n)').removeClass("last");
	
	// home page slide show
	$('.slideshow').cycle({
		fx: 'fade',
    speed:    1000, 
    timeout:  5000, 
    pause:  1,
    next:   '#slide-next', 
    prev:   '#slide-prev', 
    pager:  '#slide-nav', 
    sync:   1
	});
	
/*	blindX
		blindY
		blindZ
		cover
		curtainX
		curtainY
		fade
		fadeZoom
		growX
		growY
		scrollUp
		scrollDown
		scrollLeft
		scrollRight
		scrollHorz
		scrollVert
		shuffle
		slideX
		slideY
		toss
		turnUp
		turnDown
		turnLeft
		turnRight
		uncover
		wipe
		zoom
*/	
	
	$('option').each(function() {
		var value = $(this).val();
		if (value == '-disabled') {
			$(this).attr('disabled','disabled');
		}
	});
	
});
