$(document).ready(function() 
{
	var gallery_current;
	
	$("a.fancy").fancybox(
	{ 	
		'overlayShow' : false,
		'zoomSpeedIn' : 600,
		'zoomSpeedOut' : 300,
		'easingIn' : 'easeOutBack',
		'easingOut' : 'easeInBack' 
	}); 
	
	
	/* input field script */
	
	$('.textfield').mouseover(function(){$(this).css({"background":"#e0e0e0","border-color":"#d4d4d4"});}); 
	$('.content-search-field').mouseover(function(){$(this).css({"background":"#e0e0e0","border-color":"#d4d4d4"});});
	$('.textbox').mouseover(function(){$(this).css({"background":"#e0e0e0","border-color":"#d4d4d4"});});	
	$('.textbox').mouseout(function(){$(this).css({"background":"#EDEDED","border-color":"#EDEDED"});}); 
	$('.content-search-field').mouseout(function(){$(this).css({"background":"#EDEDED","border-color":"#EDEDED"});});
	$('.textfield').mouseout(function(){$(this).css({"background":"#EDEDED","border-color":"#EDEDED"});});			
	
	/**/
	
	/*$("#interface-streamer-content").css({"opacity":"0"});
	$("#interface-streamer-content").css({"display":""});
	$("#interface-streamer-content").animate({opacity: 1},1500);
	*/
	
	$('#interface-streamer-content-close').bind("click", function()
	{
		//$("#interface-streamer-content").animate({opacity: 0},1000);
		$("#interface-streamer-content").animate({opacity: 0},0);
		$("#interface-streamer-content-right").animate({opacity: 0},0);
	});
	
	$('#product-gallery-left-collector div:first').fadeIn('slow');
	gallery_current = $('#gallery_0');
	$(".gallery-item-small").bind('click',function()
	{
		if(gallery_current)
			$(gallery_current).fadeOut('fast');
		
		number_i = parseInt($(this).attr('id').replace('gallery_small_',''));
		$('#gallery_'+number_i).fadeIn('fast');
		gallery_current = $('#gallery_'+number_i);
		
	});
	
	$('.interface-logo-image-1').hover(
		function() 
		{  
			$(this).animate({"opacity": "0"}, "slow");  
		},  
		function() 
		{  
			$(this).animate({"opacity": "1"}, "slow");  
		} 
	);	
	
}); 
