$(document).ready(function(){
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
		&& location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length && $target
			|| $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body')
				.animate({scrollTop: targetOffset}, 1000);
				return false;
			}
		}
	});

	$("#search input[type=text]").focus(function() {
		$("#search").animate({'width':'276'},800).addClass('onClick');
		$("#search input[type=text]").animate({'width':'148'},800);
	}).blur(function() {
		$("#search").animate({'width':'188'},800).removeClass('onClick');
		$("#search input[type=text]").animate({'width':'60'},750);
	});

	$('a img:not(#logo,.noLightBox,.soc)').each(function() {
		el = $(this);
		el.after('<span><img src="/img/zoom.png" alt="zoom" /></span>');
		el.parent().addClass('zoomImg');
		el.parent().lightBox();
	});



});



