jQuery.fn.formclick=function() {
	
	$(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","#fafafa").children('span').css('color','#9c0');
					   },function(){
						   $(this).css("background-color","transparent").children('span').css('color','#ccc');;
					   })
}
jQuery.fn.lihover1=function() {
$(this).hover(function(){
					   $(this).css("background-color","#E4EEF3").children('span').css('color','#660');
					   },function(){
						   $(this).css("background-color","transparent").children('span').css('color','#ccc');;
					   })
}

$(document).ready(function() {
	$(".tips").mousemove(function(e){
		$("#tipbox").css("visibility","visible");
		$("#tipbox").css("top",e.pageY+15);
		$("#tipbox").css("left",e.pageX);
		var rr=this;
	    if(rr.title){rr.rain=rr.title; rr.title="";} 
		$("#tipbox").html(rr.rain);
	}).mouseout(function(){
		$("#tipbox").css("visibility","hidden");
  })
	
	
	// do something here
//$(".proshow").ImageAutoSize(100,90);

$(".pro").hover(function() {
				$(this).css({"background":"#E1F3F9","border":"1px solid #09c"});},function(){
				$(this).css({"background":"#F8F8F8","border":"1px solid #ccc"});
							   });
$("form").formclick();
$(".feedback").formclick();
$("#leftside .list li,#leftside-index .list li,.sitemap li").lihover();
$("#rightside .list li,#rightside-index .list li").lihover1();
$(".zhengce li:odd").css('margin-right','0');
$(".fourcon:odd").css('margin-right','0');

$("#neishe li").click(function() {
				$(this).addClass("mbrmenuon");
				$(this).siblings("li").removeClass("mbrmenuon");
							   });
$('#rightside-index .column:last').height($('#leftside-index').height()-$('#rightside-index .column:eq(0)').height()-$('#rightside-index .column:eq(1)').height()-$('#rightside-index .column:eq(2)').height()-$('#rightside-index .column:eq(3)').height()-50)
$('.membertable tr:even').addClass('treven');
$('.membertable tr:not(:first)').hover(function(){$(this).addClass('on')},function(){$(this).removeClass('on')});

function getCurrentPage(){//得到当前页面
	var href,hrefArray,theCount,firstC,firstArray;
	href=location.href;
	hrefArray=href.split("/");
	theCount=hrefArray.length;
	theCount--;
	firstC=hrefArray[theCount];
	firstArray=firstC.split("?");
	theCount=firstArray.length;
	return firstArray[0];
}
aa=getCurrentPage();
 
	var lh=$('#leftside').height();
	var rh=$('#rightside').height();
	if(lh>rh){
$('#rightside .column:last').height($('#leftside').height()-$('#rightside .column:first').height()-20)
}
if(rh>lh){$('.enter').height($('#rightside').height()-10)}
});
