$(function(){ 
	$(".light").bind("mousemove",function(){ 
        $(this).css("border","1px solid #77BBFF"); 
    })
	$(".light").bind("mouseout",function(){ 
        $(this).css("border","1px solid #e4e4e4"); 
    })
	
	$(".colorinput").bind("mousemove",function(){ 
        $(this).css("border","1px solid #A6D2FF"); 
    })
	$(".colorinput").bind("mouseout",function(){ 
        $(this).css("border","1px solid #e4e4e4"); 
    })
	$(".colorinput2").bind("mousemove",function(){ 
        $(this).css("border","1px solid #A6D2FF"); 
    })
	$(".colorinput2").bind("mouseout",function(){ 
        $(this).css("border","1px solid #BBB"); 
    })
	
	$(".colortextarea").bind("mousemove",function(){ 
        $(this).css("border","1px solid #A6D2FF"); 
    })
	$(".colortextarea").bind("mouseout",function(){ 
        $(this).css("border","1px solid #BBB"); 
    })
	$("#nav ul li").bind("mousemove",function(){ 
        $(this).css("background","url(/public/yellow/Images/hot_bg.gif) no-repeat"); 
    })
	$("#nav ul li").bind("mouseout",function(){ 
        $(this).css("background",""); 
		$("#MenuHot").css("background","url(/public/yellow/Images/hot_bg.gif) no-repeat"); 
    })
})

function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
  if (i == Num)
  {
   thisObj.className = "active"; 
      document.getElementById(tabObj+"_Content"+i).style.display = "block";
  }else{
   tabList[i].className = "normal"; 
   document.getElementById(tabObj+"_Content"+i).style.display = "none";
  }
} 
}
function ResumeError() { 
return true; 
}
window.onerror = ResumeError;
jQuery(function(){
jQuery(".focusad>strong>a").eq(0).show();
     var len  = jQuery(".focusadin>p>i").length;
	 var index = 1;
	 if(len!=0){
	 jQuery(".focusadin>p>i").click(function(){
		index  =   jQuery(".focusadin>p>i").index(this);
		showImg(index);
	});	
	 jQuery('.focusadin').hover(function(){
			  if(MyTime){
				 clearInterval(MyTime);
			  }
	 },function(){
			  MyTime = setInterval(function(){
			    showImg(index)
				index++;
				if(index==len){index=0;}
			  } , 6000);
	 });
	 var MyTime = setInterval(function(){
		showImg(index)
		index++;
		if(index==len){index=0;}
	 } , 6000);
	 }

})
function showImg(i){
		jQuery(".focusimgs>a>img").hide();
		jQuery(".focusimgs>a>img").stop(true,false).eq(i).fadeIn(800);
		 jQuery(".focusadin>p>i")
			.eq(i).addClass("current")
			.siblings().removeClass("current");
		jQuery(".focusad>strong>a").eq(i).show()
		.siblings().hide();
};
