jQuery.fn.formclick=function() {
	$(this).find("input:submit,input:reset").css({"border":"1px solid #c60","background-color":"#FFEFDF","padding":"3px 5px 1px 5px","margin-right":"10px"});
	$(this).find("input:text,input:password,textarea").css({"border":"1px solid #E6D2BD","background-color":"#fff","color":"#999"})
	.each(function(){
        if(this.value == '')
      this.value = this.title;
    })
	.focus(
			function(){$(this).css({"border":"1px solid #c60","background-color":"#FFEFDF"})
			if(this.value == this.title) 
			this.value = '';
				})
	.blur(
			function(){
		   $(this).css({"border":"1px solid #E6D2BD","background-color":"#fff"});
		    if(this.value == '')
            this.value = this.title;
		   });
}

jQuery.fn.lihover=function() {
$(this).hover(function(){
					   $(this).addClass("cur");
					   },function(){
						   $(this).removeClass("cur");
					   })
}

jQuery.fn.imgtoggle=function() {
	//var src=$(this).find('li img:first').attr("src");
	//var alt=$(this).find('li img:first').attr("alt");
	 //$("#bimg").attr("src", src );//自动获取第一个图片地址给大图
	//$(this).prepend("<img src='"+ src +"' alt='"+ alt +"' id='bimg' />");		
	 $(this).children("li").css("cursor","pointer").animate({ opacity: '0.5'}, 500).hover(
						function(){$(this).animate({opacity: '1'}, 400);},
						function(){$(this).animate({ opacity: '0.5'}, 400); }
						)
	 .click(function(){$(this).children('img').css('background','#91181F').end().siblings('li').children('img').css('background','#1B4B6F')})
						

		$(this).find("li img").click(function() {
				var src1=$(this).attr("src");
				$("#bimg").attr("src",src1);
							   });
		}


$(document).ready(function() {
	// do something here
	

//$(".proshow").ImageAutoSize(100,90);

$(".pro").hover(function() {
				$(this).css("background","#AC9175");},function(){
				$(this).css("background","#F8F4EF");
							   });


//$("form").formclick();
$(".prolist li").lihover();
$(".procat span").animate({ opacity: '0.4'}, "500")
$(".procat").hover(function(){$(this).children('span').animate({bottom: '15px', opacity: '0.6'}, "200"); },
				function(){$(this).children('span').animate({bottom: '5px', opacity: '0.4'}, "200")})
$('a').focus(function(){$(this).blur();})
$('.index span').animate({opacity: '0.3'}); 
$('.simg').imgtoggle()
});
