jQuery(document).ready(function() {

/*	jQuery('#innerContainer').dropCurves({
	
			sColor:'#000', // shadow color
            sX:-2, // shadow offset X
            sY:2, // shadow offset Y
    });
*/

	var i = 0;

	//move the image in pixel
	var move = -15;
	
	//zoom percentage, 1.2 =120%
	var zoom = 1.2;

	//On mouse over those thumbnail
	jQuery('.item').hover(function() {
		
		//Set the width and height according to the zoom percentage
		//width = jQuery('.item').width() * zoom;
		//height = jQuery('.item').height() * zoom;
		
		//Move and zoom the image
		//jQuery(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});
		
		//Display the caption
		jQuery(this).find('div.caption').fadeIn(300);
		//jQuery(this).find('div.caption').fadeTo('slow', 0.7);
		//jQuery('.caption p').fadeTo('slow', 0.9);
	},
	function() {
		//Reset the image
		//jQuery(this).find('img').stop(false,true).animate({'width':jQuery('.item').width(), 'height':jQuery('.item').height(), 'top':'0', 'left':'0'}, {duration:100});	

		//Hide the caption
		jQuery(this).find('div.caption').fadeOut(200);
	});
	
	
	/*
	http://www.iofo.it/jquery/fonteffect/
	jQuery('.mirror').FontEffect({
    	mirror:true
	})*/
	
	
	//Lieferzeiten div
	jQuery("div#lieferzeit").css({'display':'none'});
	jQuery("div#lieferzeit_down").css({'display':'block'});
	jQuery("div#lieferzeit_down").click(function () {
		jQuery("div#lieferzeit_down").css({'display':'none'});
		jQuery("div#lieferzeit_up").css({'display':'block'});
		jQuery("div#lieferzeit").slideDown('slow',function(){
        	jQuery("div#lieferzeit_up").click(function () {
        		jQuery("div#lieferzeit_up").css({'display':'none'});
      			jQuery("div#lieferzeit_down").css({'display':'block'});
      			jQuery("div#lieferzeit").slideUp('slow');
      			
    		});
    	
			
		});
	});
	
	/*jQuery(".topMenuAction").click(function(){
		jQuery('.pick input').val('');
		//jQuery("#debug").slideToggle("slow");
		//jQuery(this).children(".pick").toggleClass("down");
		//jQuery(this).children(".pick").toggleClass("up"); return false;
	});
	*/
	
	jQuery('.pick input').keyup(function () {
		//jQuery('.pick input').val('');
		if(i==0){jQuery("#debug").slideToggle("slow"); i=1;} 
  		jQuery('.inputTEXT').val($(this).val());
	});

});
