$(document).ready(function(){
						   
	$(".introProducts div, .clickable").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});

});



$(document).ready(function(){	
	$("#slider").easySlider({
		speed: 1000,
		auto: true, 
		pause: 5000,
		continuous: true
	});
});	


$(document).ready(function(){	
if ($.browser.msie && $.browser.version < 7) return;

$('#btnLogo')
    .removeClass('fade')
    .find('a')
    .append('<span class="hover" />').each(function () {
            var $span = $('> span.hover', this).css('opacity', 0);
            $(this).hover(function () {
                // on hover
                $span.stop().fadeTo(500, 1);
            }, function () {
                // off hover
                $span.stop().fadeTo(500, 0);
            });
        });
            
});


$(document).ready(function() {

	$("a.zoom").fancybox({
		'overlayOpacity'	:	0.78,
		'overlayColor'		:	'#76744E',
		'frameWidth'		:	660,
		'frameHeight'		:	560,
		'padding'			: 	0
	});
});


$(document).ready(function() {
	$('#nav').accordion({
		event: 'mouseover',
		autoHeight: false,
		active: 2
	});	
});


//$(document).ready(function() {
//	$("div.panelBtn").click(function(){
//		$("div#panel").animate({
//			height: "100px"
//		})
//		.animate({
//			height: "80px"
//		}, "fast");
//		$("div.panelBtn").toggle();
	
//	});	
	
//   $("div#hideBtn").click(function(){
//		$("div#panel").animate({
//			height: "10px"
//		}, "fast");
	
//   });	
	
//});


$(document).ready(function() {
	$(".drawerTrigger").click( function() {
		if ($("#openCloseIdentifier").is(":hidden")) {
			$("#drawer").animate({ 
				marginTop: "-70px"
				}, 500 );
			$("#openCloseIdentifier").show();
		} else {
			$("#drawer").animate({ 
				marginTop: "0"
				}, 500 );
			$("#openCloseIdentifier").hide();
		}
	});  
});
