$(function(){
	$(".s_suit li,.s_bodily li").hover(
			   function(){
				  $(this).toggleClass("hover")
			 });
	
	
	$(".buy_login strong").click(
					function(){
				  $(".buy_login table").slideToggle("slow");
			 });
	$(".other_bu ul:eq(1)").hide();
	$(".other_bu").hover(
					function(){
				  		$(this).height(410);
						$(".other_bu ul:eq(1)").show();
					},
					function(){
				  		$(this).height(170);
						$(".other_bu ul:eq(1)").hide();
					}
					);
	$("#other_color li div").hide();
	$("#other_color li").click(
					function(){
					$("div",this).show();
						});
});

function tools(){
var top=$(document).scrollTop();
if(($.browser.msie==true)&&($.browser.version==6.0)){
if(top>158)$("#box1_1").css({position:"absolute",top:top-158});
}else{
if(top>158)$("#box1_1").css({position:"fixed",top:0});
}
if(top<=158)$("#box1_1").css({position:"static",top:0});
}
$(function(){
window.onscroll=tools;
window.onresize=tools;
});

/*
* jQuery.focusInput
* 文本框得到焦点,失去焦点.
*/
jQuery.fn.extend({
    "focusInput":function(){
        return this.each(function(){
            $(this).focus(function(){
                if( $(this).val() == $(this).get(0).defaultValue ){
                    $(this).val("");
                }
            });
            $(this).blur(function(){
                if( $(this).val() == "" ){
                    $(this).val( $(this).get(0).defaultValue );
                }
            })
        })
    }
});
 $(function(){
        $(".focus_input").focusInput();
    })
$(function(){
	//文本框样式
    $("input[type='text']").hover(function(){
						$(this).addClass("input_text_hover")},function(){
							$(this).removeClass("input_text_hover")
							});
	$("input[type='text']").focus(function(){
			$(this).addClass("input_text_focus");    //获得焦点样式
		}).blur(function(){
			$(this).removeClass("input_text_focus")   //失去焦点样式
		});
		});
