jQuery.fn.searchclick=function() {
	$(this).find("input:text,input:password").css({"border":"1px solid #8AAEC1","background-color":"#fff","color":"#999","padding":"2px 5px"})
	.each(function(){
        if(this.value == '')
      this.value = this.title;
    })
	.focus(
			function(){$(this).css({"border":"1px solid #09c","background-color":"#F0FCFD"})
			if(this.value == this.title) 
			this.value = '';
				})
	.blur(
			function(){
		   $(this).css({"border":"1px solid #8AAEC1","background-color":"#fff"});
		    if(this.value == '')
            this.value = this.title;
		   });
}

jQuery.fn.formclick=function() {
	$(this).find("input:submit,input:reset").css({"border":"1px solid #68BEE3","background-color":"#EEF5F7","padding":"3px 5px 1px 5px","margin-right":"10px"});
	$(this).find("input:text,input:password,textarea").css({"border":"1px solid #8AAEC1","background-color":"#fff","color":"#999","padding":"2px"})
	.each(function(){
        if(this.value == '')
      this.value = this.title;
    })
	.focus(
			function(){$(this).css({"border":"1px solid #09c","background-color":"#F0FCFD"})
			if(this.value == this.title) 
			this.value = '';
				})
	.blur(
			function(){
		   $(this).css({"border":"1px solid #8AAEC1","background-color":"#fff"});
		    if(this.value == '')
            this.value = this.title;
		   });
}

jQuery.fn.lihover=function() {
$(this).hover(function(){
					   $(this).css("background-color","#efefef");
					   },function(){
						   $(this).css("background-color","transparent");
					   })
}

$(document).ready(function() {
	// do something here
//$(".proshow").ImageAutoSize(100,90);


$('#header').pngFix();


$("#nav li:first").addClass("navon");
$(".pro").hover(function() {
				$(this).addClass('on');},function(){
				$(this).removeClass('on');
							   });
$(".pro:nth-child(4n)").css("margin-right","0");
$(".equi img:nth-child(2n)").css("margin-right","0");
$(".search").searchclick();
$(".feedback").formclick();
$(".prolist li").lihover();

$("#neishe li").click(function() {
				$(this).addClass("mbrmenuon");
				$(this).siblings("li").removeClass("mbrmenuon");
							   });

});
