//countdown
$(function () {
	//year, month, day, time, GMT timezone
	$('#eventCountdown').countdown({ until: new Date(2010, 9 - 1, 4, 19), timezone: -5});
});

//dropdown header menu
$(document).ready(function(){
			$("#nav li").hover(
				function(){ $("ul", this).fadeIn("fast"); }, 
				function() { } 
			);
	  	if (document.all) {
				$("#nav li").hoverClass ("sfHover");
			}
	  });
	  
		$.fn.hoverClass = function(c) {
			return this.each(function(){
				$(this).hover( 
					function() { $(this).addClass(c);  },
					function() { $(this).removeClass(c); }
				);
			});
};	  

$(document).ready(function(){
						   
	//contact pop
	$("#nav li.dropdown").hover(function() {
		$(this).addClass("over");
	}, function() {
		$(this).removeClass("over");
	});

}); //close doc ready



$(document).ready(function(){
						   
		$('#home-jcarousel ul').cycle({ 
			 fx:     'scrollHorz', 
			 speed:  'fast', 
			 timeout: 0, 
			 pause: 1,
			 next: '#mycarousel-next',
			 prev: '#mycarousel-prev',
			 pager:  '.jcarousel-control', 
			 pagerAnchorBuilder: function(idx, slide) { 
				  // return selector string for existing anchor 
				  return '.jcarousel-control a:eq(' + idx + ')'; 
			 } 
		});
		$('#mycarousel-pause').click(function() { $('#home-jcarousel ul').cycle('pause'); return false; });
		$('#mycarousel-resume').click(function() { $('#home-jcarousel ul').cycle('resume'); return false; });
		
	$('#product-comp').jcarousel({
		scroll:1
	});
	
    $('.faq p').hide();
	
    $('.faq h3').click(function(){
		$(this).next('p').slideToggle();
		return false;
    });
	

}); //close doc ready


