function init () 
{
	$("div.manu_n").hover(
		function () 
		{
			$(this).attr('class', 'manu_h');
		}, 
		function () 
		{
			$(this).attr('class', 'manu_n');
		}

	);
	$("div.manu_n").click(
		function () 
		{
			var link=$($(this).children()[0]).attr("href");
			top.location.href = link;
		}
	);
	$("#reg").click(
		function () 
		{
			var link=$("#reg p a").attr("href");
		//	alert(link);
			top.location.href = link;
		}
	);
	$("#button_order_bg").hover(
		function () 
		{
			$(this).attr('src', '/images/button_order_hover_bg.gif');
		}, 
		function () 
		{
			$(this).attr('src', '/images/button_order_bg.gif');
		}

	);
	$('#submit_q').click(
		function()
		{
			$("#q").submit();
		}
	);
	 $('#header').coinslider({ width: 747, height: 190, navigation: false, delay: 3000 });
	$(".button_buy").hover(
		function () 
		{
			$(this).attr('src', '/images/r_button_buy.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/button_buy.png');
		}

	);
	$("#b_buy_other").hover(
		function () 
		{
			$(this).attr('src', '/images/r_b_buy_other.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/b_buy_other.png');
		}

	);
	$("#submit_q").hover(
		function () 
		{
			$(this).attr('src', '/images/r_b_res.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/b_res.png');
		}

	);
	$(".opinion").hover(
		function () 
		{
			$(this).attr('src', '/images/r_opinion.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/opinion.png');
		}

	);
	$("#b_proceed").hover(
		function () 
		{
			$(this).attr('src', '/images/r_b_proceed.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/b_proceed.png');
		}

	);
	$(".next_step").hover(
		function () 
		{
			$(this).attr('src', '/images/r_next_step.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/next_step.png');
		}

	);
	$("#confirm").hover(
		function () 
		{
			$(this).attr('src', '/images/r_confirm.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/confirm.png');
		}

	);
	$("#send").hover(
		function () 
		{
			$(this).attr('src', '/images/r_send.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/send.png');
		}

	);
	$("#clean").hover(
		function () 
		{
			$(this).attr('src', '/images/r_clean.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/clean.png');
		}

	);
	$("#close").hover(
		function () 
		{
			$(this).attr('src', '/images/r_close.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/close.png');
		}

	);
	$("#sent").hover(
		function () 
		{
			$(this).attr('src', '/images/r_sent.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/sent.png');
		}

	);
	$("#clean1").hover(
		function () 
		{
			$(this).attr('src', '/images/r_clean1.png');
		}, 
		function () 
		{
			$(this).attr('src', '/images/clean1.png');
		}

	);
	$("#clean").click(
		function () 
		{
			$(':input','#opin').not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected');
		}
	);
	
	$("#show_form_div").click(
		function()
		{
			var agent= navigator.userAgent.toLowerCase();
			var ie = agent.indexOf("msie")>=0;
			
			$('div#bestprice').css({'display' : 'block'});
			if(!ie)
			{
				$("#shadow").css("height", $(document).height()).hide();
				$("#bestprice").css("z-index:103");
				$("#shadow").toggle();
			}
		}
	);
	$('#contakt_clean_form').click(
		function()
		{
			$("#names").val("");
			$("#phones").val("");
			$("#e_mail").val("");
			$("#request").val("");
		}
	);
	$('#contakt_link_form').click(
		function()
		{
			$("#contakt_form").submit();
		}
	);
	$("a#close_div").click(
		function()
		{
			$('div#bestprice').css({'display' : 'none'});
			$("#shadow").css("height", $(document).height()).hide();
		}
	);

    $('input[numeric]').keyup(function(){
    	//console.log(1);
    	var value=$(this).val();
        var d=$(this).attr('numeric');
       	if (d=='integer') {
			$(this).val(value.replace(/([^1-9].*)/g, ""));
        }
    });

}
