function myprint() {
myWin=open("","","top=200,left=320,width=480,height=720");
myWin.document.write("<html><head><title>print</title><script>window.print();</script></head><body onload='myprint();'><h1 style='font-size:16px;'>http://silver-string.ru</h1><table style='font-size:12px;'><tr><td width='150px'><b>Телефон:</b></td><td>+7 (495) 926-17-20, 601-25-00, 601-27-00, 601-27-27</td></tr><tr><td width='150px'><b>Факс:</b></td><td>+7 (495) 601-27-00</td></tr> <tr><td><b>E-mail:</b></td> <td>info@silver-string.ru</td></tr><tr><td><b>Режим работы:</b></td><td>понедельник - суббота, с 09:00 - 18:00</td></tr><table><p style='font-size:12px;'>127572, Москва, ул. Новгородская, д.38. Помещение 9.</p><br><img src='/i/map.jpg'></body></html>");

}


$(document).ready(function() {
    $(".example").hover(
		function () {

		},
		function () {

		}
    );

    $(".teasers .navigation li").click(function () {
        if (!$(this).hasClass("active")){
            $(".teasers .item").hide();
            $(".teasers .navigation li").removeClass("active");
            $(".teasers .item:eq("+$(this).index()+")").show();
            $(this).addClass("active");
        }
	});

	$(".tf").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});

	$(".tf").focus(function(){
		$(this).next("label").hide();
	});

	$("#userlogin").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$("#userlogin").focus(function(){
		$(this).next("label").hide();
	});

	$("#userpass").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$("#userpass").focus(function(){
		$(this).next("label").hide();
	});

	$("#username").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$("#username").focus(function(){
		$(this).next("label").hide();
	});

	$("#usermail").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$("#usermail").focus(function(){
		$(this).next("label").hide();
	});

	$("#usertext").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$("#usertext").focus(function(){
		$(this).next("label").hide();
	});

	$(".search_wrap input").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$(".search_wrap input").focus(function(){
		$(this).next("label").hide();
	});

	$("#feed_name").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$("#feed_name").focus(function(){
		$(this).next("label").hide();
	});

	$("#feed_email").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$("#feed_email").focus(function(){
		$(this).next("label").hide();
	});

	$("#feed_message").blur(function(){
		if(this.value == '') $(this).next("label").show();
	});
	$("#feed_message").focus(function(){
		$(this).next("label").hide();
	});

    $(".mcarousel").jCarouselLite({
        btnNext: ".jc_next",
        btnPrev: ".jc_prev",
        visible: 4,
        scroll:4
    });

    $(".ocarousel").jCarouselLite({
        btnNext: ".oc_next",
        btnPrev: ".oc_prev",
        visible: 4,
        scroll:4
    });

    $("#login_call").click(function () {
        $(".pw_login").show();
	});

    $(".pw_login .login").click(function () {
        $(".pw_login").hide();
	});

    $("#scheme").click(function () {
        $(".pw_map").show();
	});

    $(".pw_map .close").click(function () {
        $(".pw_map").hide();
	});

    $(".pw_map .scheme").click(function () {
        $(".pw_map").hide();
	});

    $("#callme").click(function () {
        $(".pw_callme").show();
	});

    $(".pw_callme .close").click(function () {
        $(".pw_callme").hide();
	});

    $(".pw_callme .callback").click(function () {
        $(".pw_callme").hide();
	});

    $("#kupit_opt").click(function () {
        $(".pw_callme").show();
	});

    $(".print").click(function () {
        myprint();
	});

});

