$(function(){
		   
	//按钮状态
	if($(".btn-com-01")){
	$(".btn-com-01").mouseover(function(){
		$(this).addClass("btn-com-up01");}).mouseout(function(){
		$(this).removeClass("btn-com-up01");});
	}
	if($(".btn-unimp-01")){
	$(".btn-unimp-01").mouseover(function(){
		$(this).addClass("btn-unimp-up01");}).mouseout(function(){
		$(this).removeClass("btn-unimp-up01");});
	}
	if($(".btn-com-02")){	
	$(".btn-com-02").mouseover(function(){
		$(this).addClass("btn-com-up02");}).mouseout(function(){
		$(this).removeClass("btn-com-up02");});
	}
	if($(".btn-unimp-02")){	
	$(".btn-unimp-02").mouseover(function(){
		$(this).addClass("btn-unimp-up02");}).mouseout(function(){
		$(this).removeClass("btn-unimp-up02");});
	}
	if($(".btn-com-03")){	
	$(".btn-com-03").mouseover(function(){
		$(this).addClass("btn-com-up03");}).mouseout(function(){
		$(this).removeClass("btn-com-up03");});
	}
	if($(".btn-unimp-03")){	
	$(".btn-unimp-03").mouseover(function(){
		$(this).addClass("btn-unimp-up03");}).mouseout(function(){
		$(this).removeClass("btn-unimp-up03");});
	}
	if($(".btn-imp-01")){	
	$(".btn-imp-01").mouseover(function(){
		$(this).addClass("btn-imp-up01");}).mouseout(function(){
		$(this).removeClass("btn-imp-up01");});
	}
	if($(".btn-imp-02")){	
	$(".btn-imp-02").mouseover(function(){
		$(this).addClass("btn-imp-up02");}).mouseout(function(){
		$(this).removeClass("btn-imp-up02");});
	}
	if($(".btn-com-04")){	
	$(".btn-com-04").mouseover(function(){
		$(this).addClass("btn-com-up04");}).mouseout(function(){
		$(this).removeClass("btn-com-up04");});
	}
	if($(".btn-unimp-04")){	
	$(".btn-unimp-04").mouseover(function(){
		$(this).addClass("btn-unimp-up04");}).mouseout(function(){
		$(this).removeClass("btn-unimp-up04");});
	}
	if($(".btn-com-05")){	
	$(".btn-com-05").mouseover(function(){
		$(this).addClass("btn-com-up05");}).mouseout(function(){
		$(this).removeClass("btn-com-up05");});
	}
	//文本框输入状态
	if($(".input")){	
	$(".input").mouseover(function(){
		$(this).addClass("input-up");}).mouseout(function(){
		$(this).removeClass("input-up");});
	}
})
String.prototype.trimz = function() {
  var str = this,
  whitespace = ' \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000';
  for (var i = 0,len = str.length; i < len; i++) {
    if (whitespace.indexOf(str.charAt(i)) === -1) {
      str = str.substring(i);
      break;
    }
  }
  for (i = str.length - 1; i >= 0; i--) {
    if (whitespace.indexOf(str.charAt(i)) === -1) {
      str = str.substring(0, i + 1);
      break;
    }
  }
  return whitespace.indexOf(str.charAt(0)) === -1 ? str : '';
}
