$().ready(function(){	
									 
	$('.hp-accordion h2').click(function(){ 
		$('.hp-accordion h3').slideUp();															 	
		$(this).next().slideDown();
		return false;
	});
	
	$('.product-inner')
		.bind('mouseover', function (e) {
			$(this).stop().animate({backgroundColor: '#fff1c9'}, {queue: false, duration: 400});
			$('.product-img', this).stop().animate({borderColor: '#d96e00'}, {queue: false, duration: 400});
		})
		.bind('mouseout', function () {
			$(this).stop().animate({backgroundColor: '#ffffff'}, {queue: false, duration: 400});
			$('.product-img', this).stop().animate({borderColor: '#fff'}, {queue: false, duration: 400});
		});
	
	$('#thumbs a')
		.bind('mouseover', function (e) {
			$(this).css({borderColor: '#e8e8e8'}).stop().animate({borderColor: '#f6b600'}, {queue: false, duration: 400});
		})
		.bind('mouseout', function () {
			$(this).stop().animate({borderColor: '#d1d1d1'}, {queue: false, duration: 400});
		});
	
	$('table.hover tr')
		.bind('mouseover', function (e) {
			$(this).stop().animate({backgroundColor: '#fef7e8'}, {queue: false, duration: 400});
		})
		.bind('mouseout', function () {
			$(this).stop().animate({backgroundColor: '#fff'}, {queue: false, duration: 400});
		});
		
	$('.product-img a, #thumbs a, .nove-img a, .akce-img a, .lvisit-box div a').imgCenter();
	
	$('.tip[title]').tipsy({fade: true, gravity: 'w'});
	$('.tip2[title]').tipsy({fade: true, gravity: 'n'});
	
	$('.tabs-det').find('a').click(function(){
		var href = $(this).attr("href");
		$.scrollTo( href, 1000, {offset:-40} );
		$('span', href).css("color", "#CF0000").fadeIn("slow").fadeOut("slow").fadeIn("slow").fadeOut("slow").fadeIn("slow").fadeOut("slow").fadeIn("slow").fadeOut("slow");
		return false;
	});

});