$(function() {
    
          $("h2#teaser").click(function() {
          $("div#carousel").addClass('hide');
          $("div#popup").removeClass('hide');          
          $("div#popup").addClass('show');                    

      });
      
    $("span#close_btn").click(function() {
          $("div#popup").addClass('hide');  
          $("div#carousel").removeClass('hide');          
          $("div#carousel").fadeIn("1000"); 
                    

      });

	
});

jQuery.fn.fadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle'}, speed, easing, callback); 
};

jQuery(document).ready(function() {

// accordion	
	$('div.more').hide();
	//$('dl#news-list dd.first').show();
	$('p.show-more-btn').click(
	
	function() {
		$(this).next().fadeToggle('normal');	
		$(this).toggleClass("active");
$(this).text($(this).text() == 'Show more information' ? 'Hide information' : 'Show more information');
	});


// klassikko hover
    $("ul#product-secondary li a").hover(function () {
        $(this).append($("<img src=\"http://www2.finlayson.fi/files/finlayson/klassikko/icon-lue-lisaa.gif\" class=\"hover\" />"));
      },function () {
        $(this).find("img.hover").remove();
      });

    $("div#product-main a").hover(function () {
        $(this).append($("<img src=\"http://www2.finlayson.fi/files/finlayson/klassikko/icon-lue-lisaa.gif\" class=\"hover\" />"));
      },function () {
        $(this).find("img.hover").remove();
      });


});