function change_input() {
	var inp=$('#search .wrap input');
	inp.focus(
	function() {
		$(this).css({background:"#576178",border:"2px solid #b6b7c2"});			   
	}
	);
	inp.blur(
	function() {
		$(this).css({background:"#72809f",border:"2px solid #a2a3b3"});			   
	}
	);
}

/* Main gallery transition */
$(function() {
	/*alert($('#main-gallery .images').css('overflow'));*/
	$('#main-gallery .images').css('position', 'absolute');
	
	if(window.opera) return;
	
	$('#main-gallery .images')
		.cycle({
			fx: 'scrollHorz',
			prev: '#main-gallery .prev',
			next: '#main-gallery .next',
			timeout: 0,
			before: function() {
				var $p = $('#main-gallery .descr p');
				if($p.html() != this.alt) {
					$p.get(0).nextTitle = this.alt;
					$p
						.animate({color: '#bb5051'}, 200, function() {
							$(this).html(this.nextTitle);
						})
						.animate({color: '#fff'}, 200);
				}
			}
		});
		/*.animate({opacity: 1}, 10000, function() {
			$(this).cycle({
				fx: 'scrollHorz',
				prev: '#main-gallery .prev',
				next: '#main-gallery .next',
				timeout: 0,
				before: function() {
					var $p = $('#main-gallery .descr p');
					if($p.html() != this.alt) {
						$p.get(0).nextTitle = this.alt;
						$p
							.animate({color: '#bb5051'}, 200, function() {
								$(this).html(this.nextTitle);
							})
							.animate({color: '#fff'}, 200);
					}
				}
			})
			.css('overflow', 'hidden');
		});*/
});
