$(document).ready(function () {
	$('a[href*=#design], a[href*=#contacts], a[href*=#about], a[href*=#top]').click(function () {
		if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
			$("img#img_design").attr({
				src: $imgpath + "design_nm.jpg"
			});
			$("img#img_top").attr({
				src: $imgpath + "top_nm.jpg"
			});
			$("img#img_about").attr({
				src: $imgpath + "about_nm.jpg"
			});
			$("img#img_contacts").attr({
				src: $imgpath + "contacts_nm.jpg"
			});
			var a = $(this.hash);
			var b = this.hash.split("#")[1];
			$("img#img_" + b).attr({
				src: $imgpath + "" + b + "_hv.jpg"
			});
			$("div#selected").text(b);
			a = a.length && a || $('[name=' + this.hash.slice(1) + ']');
			if (a.length) {
				var c = a.offset().top;
				$('html,body').animate({
					scrollTop: c
				},
				600);
				return false
			}
		}
	})
});
function stop() {
	return false
}
document.onmousewheel = stop;
