
function setDelay(tab_id,tab_count) {
	for (var i = 1; i <= tab_count; i++)
	{
		tmp_obj = document.getElementById('TabTitle' + i);
		if (i == tab_id)
		{
			tmp_obj.className += ' TabTitleCurrent';
			document.getElementById('TabItemTitle').className = 'TabItemTitle' + i;
			document.getElementById('TabItemContent' + i).style.display = 'block';
			switch  (i) {
				case  1 ://第一个标签
				tmp_obj.style.borderTopColor = '#FFF';//鼠标经过时的上边线颜色
				tmp_obj.style.background = '#FFF';//鼠标经过时的背景颜色
				break;
				
				case 2 ://第二个标签
				tmp_obj.style.borderTopColor = '#FFF';
				tmp_obj.style.background = '#FFF';
				break;
				
				case  3 :
				tmp_obj.style.borderTopColor = '#FFF';
				tmp_obj.style.background = '#FFF';
				break;
				
				case 4 :
				tmp_obj.style.borderTopColor = '#FFF';
				tmp_obj.style.background = '#FFF';
				break;
			}
		}
		else
		{
			tmp_obj.className = 'TabTitle' + i;
			document.getElementById('TabItemContent' + i).style.display = 'none'; 
			switch  (i) {
				case  1 ://第一个标签
				tmp_obj.style.borderTopColor = '#F3D4D4'; //鼠标离开后前的上边线颜色
				tmp_obj.style.background = '#F3F3F3';//鼠标离开后前的背景颜色
				break;
				
				case 2 ://第二个标签
				tmp_obj.style.borderTopColor = '#FFE7B3';
				tmp_obj.style.background = '#F3F3F3';
				break;
				
				case  3 :
				tmp_obj.style.borderTopColor = '#AAE9AA';
				tmp_obj.style.background = '#F3F3F3';
				break;
				
				case 4 :
				tmp_obj.style.borderTopColor = '#9BC1E6';
				tmp_obj.style.background = '#F3F3F3';
				break;
			}
		}
	}
}

function stopInterval() {
	if(stt) {
		clearTimeout(stt);
	}
}
function setTabContent(tab_id, tab_count)
{
	stt = setTimeout("setDelay('" + tab_id + "','" + tab_count + "')",500);//第一个转换的响应秒数
}

function stopImgInterval() {
	if(img_sst) {
		clearTimeout(img_sst);
	}
}

function setImgContent(tab_id,tab_count) 
{
	img_sst = setTimeout("setImgDelay('" + tab_id + "','" + tab_count + "')",500);//第二个转换的响应秒数
}
function setImgDelay(tab_id,tab_count) {
	var tmp_obj;
	for(var i = 1;i<= tab_count;i++) {
		tmp_obj = document.getElementById('TitleFont' + i);
		if(i == tab_id) {
			tmp_obj.style.display = 'block';
		} else {
			tmp_obj.style.display = 'none';
		}
	}
}

/**
//关于邮件订阅
function checkSubscribeForm()
{
	if ('' != document.forms['subscribe'].elements['email'].value)
	{
		document.forms['subscribe'].elements['emailconfirm'].value = document.forms['subscribe'].elements['email'].value;
	}
	document.forms['subscribe'].submit();
}
**/

function checkSubscribeForm()
{
	if ('' != document.subscribe.elements['email'].value)
	{
		document.subscribe.elements['emailconfirm'].value = document.subscribe.elements['email'].value;
	}
	document.subscribe.submit();
}

//关于drw首页的层背景颜色和层内响应图片变换
function changeDivStyle(id,color) {
 	var cns,agent,version,pos;
 	var o = document.getElementById(id);
	agent = navigator.userAgent;
	pos = agent.indexOf('MSIE');
	if( pos != -1) {
		version = parseFloat(agent.substr(pos+5,3));
		if(version < 7) {
			return;
		}
	}
	o.style.backgroundColor = color;
 }

 //跟踪销售数据
 var pu="";
//var pf="51la";
var su=window.location;
var sf=document.referrer;
var of="";
var op="";
var ops=1;
var ot=1;
var d=new Date();
var color="";
if (navigator.appName=="Netscape"){color=screen.pixelDepth;} else {color=screen.colorDepth;}
try{tf=top.document.referrer;}catch(e){}
try{pu =window.parent.location;}catch(e){}
try{pf=window.parent.document.referrer;}catch(e){}
try{ops=document.cookie.match(new RegExp("(^| )AJSTAT_ok_pages=([^;]*)(;|$)"));ops=(ops==null)?1: (parseInt(unescape((ops)[2]))+1);
var oe =new Date();
oe.setTime(oe.getTime()+60*60*1000);
document.cookie="AJSTAT_ok_pages="+ops+ ";path=/;expires="+oe.toGMTString();
ot=document.cookie.match(new RegExp("(^| )AJSTAT_ok_times=([^;]*)(;|$)"));
if(ot==null){ot=1;}else{ot=parseInt(unescape((ot)[2])); 
ot=(ops==1)?(ot+1):(ot);}oe.setTime(oe.getTime()+365*24*60*60*1000);
document.cookie="AJSTAT_ok_times="+ot+";path=/;expires="+oe.toGMTString();}catch(e){}
of=sf;
if(pf!=="51la"){of=pf;}
if(tf!=="51la"){of=tf;}op=pu;
try{lainframe}catch(e){op=su;}
document.write('<img style="width:0px;height:0px" src="http://support.easeus.com/ordertrack/go.php?svid=9&id=2697629&tpages='+ops+'&ttimes='+ot+'&tzone='+(0-d.getTimezoneOffset()/60)+'&tcolor='+color+'&sSize='+screen.width+','+screen.height+'&referrer='+escape(of)+'&vpage='+escape(op)+'" />');