
//页面访问的计数
function getXmlhttp(){ 
        var http_request; 
        
        if (window.XMLHttpRequest) { 
            http_request = new XMLHttpRequest(); 
            if (http_request.overrideMimeType) { 
                http_request.overrideMimeType("text/xml"); 
            } 
        } 
        else 
            if (window.ActiveXObject) { 
                try { 
                    http_request = new ActiveXObject("Msxml2.XMLHTTP"); 
                } 
                catch (e) { 
                    try { 
                        http_request = new ActiveXObject("Microsoft.XMLHTTP"); 
                    } 
                    catch (e) { 
                    } 
                } 
            } 
        if (!http_request) { 
           // window.alert("can't create XMLHttpRequest object."); 
            return null; 
        } 
        return http_request; 
}

function getFileName(){
	if (location.href.indexOf(".htm")!=-1)
		return (location.href.substring(location.href.lastIndexOf("/")+1,location.href.indexOf(".htm")))
	else
		return "index";
}

function getVisitNum(){
     //获取数据 
       var XmlHttp = getXmlhttp(); 
	XmlHttp.open("post", "/admin/Article/fixeddocAvisit.asp?doc_filename=" + getFileName(), false); 

	XmlHttp.send(null); 
	var t  = unescape(XmlHttp.responseText);
	if( t != "no" && t.indexOf("ADODB")==-1) 
	{
		document.getElementById("avisie_div").innerText = "访问数:"+t;
	}
	XmlHttp.abort();
}





//判断相关产品、组件、文章、视频
function xiangguan(s,str)
{
	if(document.getElementById(s))
	{
		if(document.getElementById(s).hasChildNodes() == false)
		document.getElementById(s).innerHTML = "<B>没有"+str+"<B>";
	}
	
}

function gotodemo()
{
	window.open("http://www.winfreeinfo.com:8900");
}

function listhead(itemvalue)
{
document.write('<div class="m900">')
document.write('   <div class="main_left" style="width:330px;"><a href="../index.html"><img src="../images/logo.gif" width="330" height="52" border="0"/></a></div>')
document.write('    <div class="main_right linkstyle3" style="width:600px;text-align:right;padding-top:1px;"><div align="center" style="width:600px;height:25px;text-align:right;padding-top:10px;"><div align="right" class="STYLE4">伟峰协同软件 国内领先的<strong><a href="http://www.winfreeinfo.com/">OA</a></strong>办公系统软件 移动OA 随时处理工作 进入移动商务时代</div></div><div align="right"><font style="color:#FB7E00;font-size:16px;font-weight:bold">咨询热线：400-77-96963　(0755)26487596</font>　<a href=tencent://message/?uin=12416043&Site=伟峰科技有限公司&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:12416043:10 alt=[产品咨询1]></a>　<img src="images/contactus.gif" width="20" height="24" align="texttop" /><a href="contactus.htm">联系我们</a></div></div>')
document.write('</div>')


document.write('<div class="m900" style="margin-top:5px;">')
document.write('   <div class="menubg_left"><div class="menubg_right">')
document.write('   <ul class="menuitem">')
document.write('   <li><a href="/" ')
if (itemvalue==1) document.write('class="active"')
document.write('>首页</a></li>')

document.write('   <li><a href="/news.html"')
if (itemvalue==2) document.write('class="active"')
document.write('>文库与动态</a></li>')

document.write('   <li><a href="/products.htm"')
if (itemvalue==3) document.write('class="active"')
document.write('>OA产品介绍</a></li>')

document.write('   <li><a href="/price.htm"')
if (itemvalue==4) document.write('class="active"')
document.write('>OA产品报价</a></li>')

document.write('   <li><a href="/service.htm"')
if (itemvalue==5) document.write('class="active"')
document.write('>售后服务</a></li>')

document.write('   <li><a href="/Stories.htm"')
if (itemvalue==6) document.write('class="active"')
document.write('>方案与案例</a></li>')

document.write('   <li ><a style="width:80px" href="/download.htm"')
if (itemvalue==7) document.write('class="active"')
document.write('>免费下载试用</a></li>')

document.write('   <li><a href="/cooperate.htm"')
if (itemvalue==8) document.write('class="active"')
document.write('>合作加盟</a></li>')

document.write('   <li><a href="/aboutus.htm"')
if (itemvalue==9) document.write('class="active"')
document.write('>关于伟峰</a></li>')

document.write('   </ul>')
document.write('   </div></div>')
document.write('</div>')
document.write('<table width="950px" align=center border="0"><tr><td id="avisie_div">访问数:</td></tr></table>')
}


function listbottom()
{
document.write('<div class="m900" style="margin-top:10px;">')
//document.write('    <div class="footbg" > ')
//document.write('	   <div style="float:left;color:#646464;line-height:150%;"><a href="contactus.htm">联系我们</a> | <a href="http://oa.winfreeinfo.com/weboa/bbs.nsf" target="_blank">论坛</a><br>Copyright @ 2009 深圳市伟峰科技有限公司. All rights reserved. </div>')
//document.write('       <div style="float:center;color:#646464;"><a href="http://www.51.la/?2148997" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/2148997.asp" style="border:none" /></a></div>')

//document.write('       <div style="float:right;color:#646464;"><select name="select" style="font-size:12px;"><option>--- 友情链接 ---</option></select></div>')
//document.write('	</div>')


document.write(' <hr style="width: 950px; height: 2px; padding: 0px; margin: 0px; border:1px #6f6f6f;line-height: normal;" />');
document.write(' <BR><table align="center"  border="0" > <tr>');
document.write(' <td align="center"><a href="contactus.htm">联系我们</a> | <a href="http://oa.winfreeinfo.com/weboa/bbs.nsf" target="_blank">论坛</a> | <a href="sitemap.htm">网站地图</a> | Copyright @ 2009 深圳市伟峰科技有限公司 粤ICP备06046193号</td>');
document.write(' </tr><tr><td align="center">主营：<a href="http://www.winfreeinfo.com/"><strong>OA系统</strong></a> <a href="http://www.winfreeinfo.com/"><strong>OA软件</strong></a> <a href="http://www.winfreeinfo.com/"><strong>移动OA </strong></a>等企业协同办公软件');
document.write('<noscript><a href="http://www.51.la/?2148997" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/2148997.asp" style="border:none" /></a></noscript></td>');
document.write(' </tr></table>');




document.write(' <hr style="width: 950px; height: 1px; padding: 0px; margin: 0px; border: dashed 1px #6f6f6f;line-height: normal;" />');
document.write(' <div style="color: #6f6f6f; font-size: 12px; margin: 0px; text-align: justify; padding-top: 5px;line-height: normal;">');
document.write(' 专业的企业管理软件提供商－伟峰科技！我们专业提供适合中小企业的管理软件(OA软件)，帮助企业低成本地提高信息化管理水平，解决总部和分公司、办事处之间的异地沟通和协作问题。我们还同时提供OA软件的免费下载试用和租用服务。</div>');

document.write('<hr style="width: 950px; height: 1px; padding: 0px; margin: 0px; border: dashed 1px #6f6f6f;');
document.write('line-height: normal;" />');
document.write(' <div style="color: #6f6f6f; font-size: 12px; margin: 0px; text-align: justify; padding-top: 5px;');
document.write('               line-height: normal;">');
document.write('                想找企业内部管理方面的<strong><a href="http://www.winfreeinfo.com/">OA软件</a></strong>、<strong><a href="http://www.winfreeinfo.com/">OA系统</a></strong>、<a href="http://www.winfreeinfo.com/">手机移动OA</a></strong>、<a href="http://www.winfreeinfo.com/">协同办公软件</a></strong>、<a href="http://www.winfreeinfo.com/">沟通协作</a></strong>、电子邮件系统、文档管理(资料管理)、预算及采购管理、项目管理、固定资产、请休假(请假及休假)管理、CRM客户管理、行政管理、公文管理、会议管理、绩效考核、工时管理、开票收款、收票付款、销售合同管理、费用报销、库存管理、电子论坛、通知公告、信息发布、网上考试、工作日志、办公用品、投票调查、自定义表单、工作流(流程审批)，以及企业信息化建设方面的文档、方案、技术、方法、信息、观点、理论、工具、咨询、服务吗？请找伟峰科技！</div>');
document.write('            <hr style="width: 950px; height: 1px; padding: 0px; margin: 0px; border: dashed 1px #6f6f6f;');
document.write('                line-height: normal;" />');
document.write('            <div style="color: #6f6f6f; font-size: 12px; margin: 0px; text-align: justify; padding-top: 5px;');
document.write('                line-height: normal;">');
document.write('                诚征下列地区OA销售代理招商加盟伙伴：<br />');
document.write('深圳 北京 广州 上海 重庆 天津 东莞 佛山 中山 顺德 珠海 石家庄 太原 呼和浩特 沈阳 长春 哈尔滨 南京 苏州 无锡 杭州 温州 湖州 嘉兴 舟山 宁波 绍兴 衢州 金华 台州 武汉 长沙 合肥 福州 厦门 南昌 九江 景德镇 鹰潭 新余 萍乡 赣州 上饶 抚州 宜春 吉安 济南 郑州 南宁 桂林 柳州 海口 成都 贵阳 昆明 西安 大连 青岛 兰州 西宁 银川 乌鲁木齐 香港 美国 新加坡 马来西亚 台湾 澳门');
document.write('</div>');





document.write('</div>')
document.write('<div class="m900" style="height:20px"></div>')
try{
	
//	ShowMove_QQ();
//	initFloatTips();
	setInterval("getcurrtiem()",1000);
	
	}catch(e){}	

}

  function selectTab1dSyn(aid,div_id,allnum,now){
	var waitInterval;
		
		var MouseDelayTime=150;//鼠标感应延迟300毫秒
		
						aid.onmouseout=function(aEvent)
						{					
							  
							  clearTimeout(waitInterval);
						}
						clearTimeout(waitInterval);
						
						var str="selectTab0dSyn('"+div_id+"',"+allnum+","+now+")";
						//alert(str);
						
						waitInterval=setTimeout(str,MouseDelayTime);
	
	}	

function setTab0dSyn(i,classnamebef,idbef,idall,tabtabbef)
{
changDivClass(idbef,idall,i,classnamebef)
selectTab0dSyn(tabtabbef,idall,i);
}
function selectTab0dSyn(div_id,allnum,now)
{
for(var i= 1; i<= allnum;i++)
{
	if(i==now)
	{
		_gObj(div_id+i).style.display="block";
	}else
	{
		_gObj(div_id+i).style.display="none";
	}
}
}	

function _gObj(id)
{
return document.getElementById(id);
}
function changDivClass(div_id,all,now,classnamebef)
{
for(var i= 1; i<= all;i++)
{
if(i==now)
{
_gObj(div_id+i).className = classnamebef+"_0"+i;
}else
{
//_gObj(div_id+i).className = "dj4_"+i;
_gObj(div_id+i).className = classnamebef+"_"+i;
}
}
}

function ShowMove_QQ()
{
	return;
	document.write('<div id="QQFloat" style="Z-INDEX:20;RIGHT:0px;VISIBILITY:visible;WIDTH:114px;POSITION:absolute;TOP:60px;HEIGHT:150px;">');
	document.write('<table width="102" cellpadding="0" cellspacing="0" >');
 	document.write('<tr><td width="100"><img src="images/top.gif"></td></tr>');
  	document.write('<tr>');
    document.write('<td valign="center" align="middle" background="images/middle.gif">');
	document.write('<table cellspacing="0" cellpadding="0">');
    document.write('<tr title="伟峰科技在线服务">');
    document.write('<td width="130" colspan="2">伟峰科技 </td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td align="middle" colspan="2" ><img alt="在线服务" src="images/kf_icon.jpg"></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td colspan="2"></td>');
    document.write('</tr>');
    document.write('</table>');
    document.write('<table width="93" cellpadding="0" cellspacing="0">');
		 
	document.write('<tr title="留言给[产品咨询1]"><td valign="center" align="middle" width="16" id="oa_01"></td><td valign="center" align="left" width="82" id="oa_02"></td></tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');

    document.write('<tr title="留言给[产品咨询2]">');
    document.write('<td valign="center" align="middle" width="16" id="hr_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="hr_02" ></td>');				
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');

	document.write('<tr title="留言给[产品咨询3]">');
    document.write('<td valign="center" align="middle" width="16" id="crm_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="crm_02" ></td>');				
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');

	document.write('<tr title="留言给[产品咨询4]">');
    document.write('<td valign="center" align="middle" width="16" id="erp_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="erp_02" ></td>');				
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');

	document.write('<tr title="留言给[产品咨询5]">');
    document.write('<td valign="center" align="middle" width="16" id="sjoa_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="sjoa_02" ></td>');				
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');

	document.write('<tr title="留言给[产品咨询6]">');
    document.write('<td valign="center" align="middle" width="16" id="rjzy_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="rjzy_02"></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');  


	document.write('<tr title="留言给[产品咨询7]">');
    document.write('<td valign="center" align="middle" width="16" id="zx7_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="zx7_02"></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');  

	document.write('<tr title="留言给[产品咨询8]">');
    document.write('<td valign="center" align="middle" width="16" id="zx8_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="zx8_02"></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');  

	document.write('<tr title="留言给[产品咨询9]">');
    document.write('<td valign="center" align="middle" width="16" id="zx9_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="zx9_02"></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');  

    document.write('<tr title="留言给[渠道代理]">');
    document.write('<td valign="center" align="middle" width="16" id="qddl_01"></td>');
    document.write('<td valign="center" align="left" width="82" id="qddl_02"></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#eeeeee" colspan="2"></td>');
    document.write('</tr>');   
	
      
  
    document.write('</table></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write(' <td width="100"><img src="images/bottom.gif"></td>');
    document.write('</tr>');
    document.write('</table>'); 
    document.write('</div>');
}
//直接调用initFloatTips();

var tips; var theTop = 60; var old = theTop;

function initFloatTips()
{
  tips = document.getElementById('QQFloat');
  if (tips)
  {
	moveTips();
  }
};
function moveTips()
{
  var tt=50;
  if (window.innerHeight) 
  {
    pos = window.pageYOffset
  }
  else if (document.documentElement && document.documentElement.scrollTop)
  {
    pos = document.documentElement.scrollTop
  }
  else if (document.body) {
    pos = document.body.scrollTop;
  }

  pos=pos-tips.offsetTop+theTop;
  pos=tips.offsetTop+pos/10;
    
  if (pos < theTop) pos = theTop;
  if (pos != old) {
    tips.style.top = pos+"px";
    tt=10;
       //alert(tips.style.top);
  }
    
  old = pos;
  setTimeout(moveTips,tt);
}
function CloseQQ()
{
QQFloat.style.display="none";
return true; 
}

//QQ自动上线和下线功能
function getcurrtiem()
{
	try{

		var d = new Date();	
		var intHours=d.getHours();
		var intMinutes=d.getMinutes();
		var intSeconds=d.getSeconds();
		var intday = '星期'+'日一二三四五六'.charAt(new Date().getDay());

		var s = intHours +":"+ intMinutes+":" +intSeconds;
		
		if(intHours >= 9 && intHours <= 17 && intday !="星期六" && intday !="星期日" )
		{
			//产品咨询1
			document.getElementById("oa_01").innerHTML= "<a href=tencent://message/?uin=664380110  &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
			document.getElementById("oa_02").innerHTML= "<a href=tencent://message/?uin=664380110  &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询1<br></a>";
			//产品咨询2
			document.getElementById("hr_01").innerHTML= "<a href=tencent://message/?uin=760141106  &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
		    document.getElementById("hr_02").innerHTML= "<a href=tencent://message/?uin=760141106  &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询2 <br></a>";			
			
			//产品咨询3
			document.getElementById("crm_01").innerHTML= "<a href=tencent://message/?uin=402114177  &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
		    document.getElementById("crm_02").innerHTML= "<a href=tencent://message/?uin=402114177  &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询3 <br></a>";			
			
			//产品咨询4
			document.getElementById("erp_01").innerHTML= "<a href=tencent://message/?uin=872557325  &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
		    document.getElementById("erp_02").innerHTML= "<a href=tencent://message/?uin=872557325  &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询4 <br></a>";			
			
			//产品咨询5
			document.getElementById("sjoa_01").innerHTML= "<a  href=tencent://message/?uin=740927822 &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
			document.getElementById("sjoa_02").innerHTML= "<a  href=tencent://message/?uin=740927822 &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询5 <br></a>";
					
			//产品咨询6
			document.getElementById("rjzy_01").innerHTML= "<a  href=tencent://message/?uin=515011261 &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
			document.getElementById("rjzy_02").innerHTML= "<a  href=tencent://message/?uin=515011261 &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询6 <br></a>";
			
			//产品咨询7
			document.getElementById("zx7_01").innerHTML= "<a  href=tencent://message/?uin=406011869 &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
			document.getElementById("zx7_02").innerHTML= "<a  href=tencent://message/?uin=406011869 &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询7 <br></a>";
			
			//产品咨询8
			document.getElementById("zx8_01").innerHTML= "<a  href=tencent://message/?uin=15242901 &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
			document.getElementById("zx8_02").innerHTML= "<a  href=tencent://message/?uin=15242901 &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询8 <br></a>";
			
			//产品咨询9
			document.getElementById("zx9_01").innerHTML= "<a  href=tencent://message/?uin=275898179 &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
			document.getElementById("zx9_02").innerHTML= "<a  href=tencent://message/?uin=275898179 &Site=http://www.winfreeinfo.com/&Menu=yes>产品咨询9 <br></a>";
			

			//渠道代理
			document.getElementById("qddl_01").innerHTML= "<a href=tencent://message/?uin=16431546 &Site=http://www.winfreeinfo.com/&Menu=yes><img border=\"0\" src=\"images/online.gif\"></a>";
            document.getElementById("qddl_02").innerHTML= "<a href=tencent://message/?uin=16431546 &Site=http://www.winfreeinfo.com/&Menu=yes>渠道代理 <br></a>";
        				
			
		}
		else
		{			
			//办公自动化OA
			document.getElementById("oa_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
			document.getElementById("oa_02").innerHTML= "产品咨询1";
			//人事HR
			document.getElementById("hr_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
		    document.getElementById("hr_02").innerHTML= "产品咨询2";			
			
			//客户管理CRM
			document.getElementById("crm_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
		    document.getElementById("crm_02").innerHTML= "产品咨询3";			
			
			//商务财务ERP
			document.getElementById("erp_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
		    document.getElementById("erp_02").innerHTML= "产品咨询4";			
			
			//手机OA
			document.getElementById("sjoa_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
			document.getElementById("sjoa_02").innerHTML= "产品咨询5";
					
			//软件租用
			document.getElementById("rjzy_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
			document.getElementById("rjzy_02").innerHTML= "产品咨询6";

			//产品咨询7
			document.getElementById("zx7_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
			document.getElementById("zx7_02").innerHTML= "产品咨询7";

			//产品咨询8
			document.getElementById("zx8_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
			document.getElementById("zx8_02").innerHTML= "产品咨询8";

			//产品咨询9
			document.getElementById("zx9_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
			document.getElementById("zx9_02").innerHTML= "产品咨询9";
			
			//渠道代理
			document.getElementById("qddl_01").innerHTML= "<img border=\"0\" src=\"images/offline.gif\">";
            document.getElementById("qddl_02").innerHTML= "渠道代理";
                 
			
			
		}
		}
		catch(e){}	
}




