$(function(){
	/*WindowOpen*/
	 $("a.newopen").click(function(){
		window.open($(this).attr("href"));
		return false;
	});

	/*smoothscroll*/
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var target = $(this.hash);
			target = target.length && target;
			if (target.length) {
				var targetOffset = target.offset().top - 10;
				$('html,body')
					.animate({scrollTop: targetOffset}, 1000);
				return false;
			}
		}
	});
	/*zipserach */
	$('form :button').click(function() {
			AjaxZip2.zip2addr('zip','pref','add1');
	});
});
