﻿//верхнее_меню
$(document).ready(function() {
//	$(".add_to_favorite").hover(function() {
//		$(".add_to_favorite").stop().animate({ top: "-15px" }, 200).animate({ top: "0px" }, 400).animate({ top: "-12px" }, 300).animate({ top: "0px" }, 300).animate({ top: "-5px" }, 200).animate({ top: "0px" }, 200).stop();
//	}, function() {
//	});
	$(".error_sochetanie").click(function() {
		$(this).animate({ opacity: "hide" }, "slow");
	});

	$(".login_TextBox0 .login").val('логин');
	$(".login_TextBox0 .login").focus(function() {
		if ($(this).val() == '' || $(this).val() == 'логин') {
			$(this).val('');
		}
	});
	$(".login_TextBox0 .login").blur(function() {
		if ($(this).val() == '' || $(this).val() == 'логин') {
			$(this).val('логин');
		}
	});

	$(".login_TextBox0 .psw").val('******');
	$(".login_TextBox0 .psw").focus(function() {
		if ($(this).val() == '' || $(this).val() == '******') {
			$(this).val('');
		}
	});
	$(".login_TextBox0 .psw").blur(function() {
		if ($(this).val() == '' || $(this).val() == '******') {
			$(this).val('******');
		}
	});


	$(".menu_top_t_active").next("div").animate({ top: "-2px", height: "7px" }, 200);

	$(".menu_but").hover(function() {
		$(this).children("div").animate({ top: "-2px", height: "7px" }, 200);
	}, function() {
		$(this).children("div").animate({ top: "0px", height: "5px" }, 200);
		$(".menu_top_t_active").next("div").animate({ top: "-2px", height: "7px" }, 200);
	});



	//It's here for partners block! Floating menu
	$(".menu_bot_other").hover(function() {
		$(".menu_bot_other").css("color", "#F33F30");
		$(".menu_bot_other").css("font-weight", "bold");
		$(".menu_bot_other").css("background", "transparent");
		$(".menu_bot_other").css("padding-right", "0px");
		//$(".third_menu_top_img").animate({ opacity: "show" }, "slow");
		//$(".third_menu_top").slideDown();
	}, function() {

		$(".menu_bot_other").css("color", "#3E3E3E");
		$(".menu_bot_other").css("font-weight", "normal");
		$(".menu_bot_other").css("background", "url(/Layout/shablon/img/header/a_u_menya_otpusk_8P.gif) no-repeat 100% 4px");
		$(".menu_bot_other").css("padding-right", "13px");
	});

	$(".menu_bot_other").click(function() {
		$(".menu_bot_other").css("color", "#F33F30");
		$(".menu_bot_other").css("font-weight", "bold");
		$(".menu_bot_other").css("background", "transparent");
		$(".menu_bot_other").css("padding-right", "0px");
		$(".third_menu_top_img").animate({ opacity: "show" }, "slow");
		$(".third_menu_top").slideDown();
		return false;
	});



	$(".third_menu_top_img").click(function() { 
		$(".third_menu_top_img").animate({ opacity: "hide" }, "slow");
		$(".menu_bot_other").css("color", "#3E3E3E");
		$(".menu_bot_other").css("font-weight", "normal");
		$(".menu_bot_other").css("background", "url(/Layout/shablon/img/header/a_u_menya_otpusk_8P.gif) no-repeat 100% 4px");
		$(".menu_bot_other").css("padding-right", "13px");
		$(".third_menu_top").slideUp();
		return false;
	});

});
//верхнее_меню

$("#one-page-stars_picture").css('display', 'none');

//sunsilk toolbar
//$.preloadImages("/storage/_design/nokia_gold/toolbar/bg_small.png", "/storage/_design/nokia_gold/toolbar/bg_small_start.png", "/storage/_design/nokia_gold/toolbar/bg_big.png", "/storage/_design/nokia_gold/toolbar/bg_big_start.png", "/storage/_design/nokia_gold/toolbar/close.png");
$("#sunsilk_small_start").animate({ opacity: "show", bottom: "0" }, "slow");
$("#sunsilk_small").animate({ opacity: "show", bottom: "0" }, "slow");
$(".sunsilk_secret").click(function() {
	$(this).effect("transfer", { className: "sunsilk_transfer", to: "#SunsilkSmall1" }, 1000);
	$("#sunsilk_big").fadeTo(1000, 1).animate({ opacity: "show", bottom: "0" }, "slow").fadeTo(5000, 1).animate({ opacity: "hide", bottom: "-220" }, "slow");
});
$(".x").click(function() {
	$("#sunsilk_big_start").css('display', 'none');
	$("#sunsilk_big").css('display', 'none');
});
//sunsilk toolbar
