$(function() {
	$('.header li a').hover(function() {$(".header ul").addClass('header_hover');},function() {$(".header ul").removeClass('header_hover');});
	$('.header li:nth-child(2n) a').hover(function() {$(".header ul").addClass('header_hover2');},function() {$(".header ul").removeClass('header_hover2');});
	$('.header li:nth-child(3n) a').hover(function() {$(".header ul").addClass('header_hover3');},function() {$(".header ul").removeClass('header_hover3');});
	$('.header li:nth-child(4n) a').hover(function() {$(".header ul").addClass('header_hover4');},function() {$(".header ul").removeClass('header_hover4');});
	$('.header li:nth-child(5n) a').hover(function() {$(".header ul").addClass('header_hover5');},function() {$(".header ul").removeClass('header_hover5');});
	$('.header li:nth-child(6n) a').hover(function() {$(".header ul").addClass('header_hover6');},function() {$(".header ul").removeClass('header_hover6');});
	$('.header li:last a').hover(function() {$(".header ul").addClass('header_hover7');},function() {$(".header ul").removeClass('header_hover7');});
	$(".header li:nth-child(2n)").addClass("link2");
	$(".header li:nth-child(3n)").addClass("link3");
	$(".header li:nth-child(4n)").addClass("link4");
	$(".header li:nth-child(5n)").addClass("link5");
	$(".header li:nth-child(6n)").addClass("link6");
	$(".header li:last").addClass("last");
	$(".footer li:nth-child(2n)").addClass("link2");
	$(".footer li:nth-child(3n)").addClass("link3");
	$(".footer li:nth-child(4n)").addClass("link4");
	$(".footer li:nth-child(5n)").addClass("link5");
	$(".footer li:nth-child(6n)").addClass("link6");
	$(".faq_list li").each(function(){
		var abs = $(this).prepend("<div class='abs_info'></div>")
		var faq_info = $(".info p", this).clone();
		$(".abs_info", this).prepend(faq_info);
	});
	$(".signup_block table tr td:even").addClass("width");
	$("#tabl_hov tr:even").addClass("even");
	$("#tabl_hov tr:first").addClass("first");
	$("#stbr tr:first").addClass("first");
	$("#tabl_hov2 tr:first").addClass("first");
	$("#tabl_hov2 tr:last").addClass("last");
	$(".footer li:last").addClass("last");
	if ($.browser.mozilla && $.browser.version == 5) {
    $('.header .login_block p input').css({'height':'28px','padding-top':'0'});
    $('.header .login_block p input.button').css({'height':'19px'});
    $('.signup_block table td input').css({'height':'52px','padding-top':'0'});
    $('.signup_block table td input.button').css({'height':'102px','padding-top':'0','padding-top':'4px'});
	}
	if ($.browser.mozilla && $.browser.version == 6) {
    $('.header .login_block p input').css({'height':'28px','padding-top':'0'});
    $('.header .login_block p input.button').css({'height':'19px'});
    $('.signup_block table td input').css({'height':'52px','padding-top':'0'});
    $('.signup_block table td input.button').css({'height':'102px','padding-top':'0','padding-top':'4px'});
	}
	if ($.browser.msie && $.browser.version == 9) {
    $('.header .login_block p input').css({'height':'28px','padding-top':'0'});
    $('.header .login_block p input.button').css({'height':'19px'});
    $('.signup_block table td input').css({'height':'52px','padding-top':'0'});
    $('.signup_block table td input.button').css({'height':'102px','padding-top':'0','padding-top':'4px'});
	}
}); 

