$(function() {
	$(".picesFiles").hide();
	$("#prices h3 a").click(function() {
		var pid = $(this).attr("href");
		$(pid).toggle();
		return false;
	});

	$('#motto').innerfade({
	    animationtype: 'fade',
	    speed: 2700,
	    timeout: 7000,
	    type: 'sequence',
	    containerheight: '31px'
	});
	
	$('#descRight .catImg a').lightBox();
	$('.gallery a').lightBox();
	$('.newsGallery a').lightBox();
	$('#prodFoto a').lightBox();

	$("#descRight .catImg").hover(
	  function () {
	    var img = $(this).find('a').attr("href");
	    $("#prod_foto_main").attr({src: "include/getimg.php?src=../" + img + "&w=300&h=244"});
	    $('#prodFoto a').attr({href: img});
	  },
	  function () {

	  }
	);
	
	$(".scrollable").scrollable();
	$(".tabs").tabs(".slide", {

	    // enable "cross-fading" effect
	    effect: 'fade',
	    fadeOutSpeed: "slow",

	    // start from the beginning after the last tab
	    rotate: true

	// use the slideshow plugin. It accepts its own configuration
	}).slideshow();

	var myTimer = window.setTimeout(play2, 3500);
	function play2() {
	    $('.forward').trigger('click');
	    myTimer = window.setTimeout(play2, 3500);
	}



});


