<!--

var DedeXHTTP = null;
var DedeXDOM = null;
var DedeContainer = null;
var DedeShowError = false;
var DedeShowWait = false;
var DedeErrCon = "";
var DedeErrDisplay = "Download false!";
var DedeWaitDisplay = "Loading...";

function $DE(id)
{
	return document.getElementById(id);
}

function DedeAjax(gcontainer,mShowError,mShowWait,mErrCon,mErrDisplay,mWaitDisplay)
{

DedeContainer = gcontainer;
DedeShowError = mShowError;
DedeShowWait = mShowWait;
if(mErrCon!="") DedeErrCon = mErrCon;
if(mErrDisplay!="") DedeErrDisplay = mErrDisplay;
if(mErrDisplay=="x") DedeErrDisplay = "";
if(mWaitDisplay!="") DedeWaitDisplay = mWaitDisplay;


this.keys = Array();
this.values = Array();
this.keyCount = -1;

this.rkeys = Array();
this.rvalues = Array();
this.rkeyCount = -1;

this.rtype = 'text';

if(window.ActiveXObject)
{
	 try { DedeXHTTP = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) { }
   if (DedeXHTTP == null) try { DedeXHTTP = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) { }
}
else
{
	 DedeXHTTP = new XMLHttpRequest();
}

this.AddKey = function(skey,svalue)
{
	this.keyCount++;
	this.keys[this.keyCount] = skey;
	svalue = svalue.replace(/\+/g,'$#$');
	this.values[this.keyCount] = escape(svalue);
};

this.AddHead = function(skey,svalue)
{
	this.rkeyCount++;
	this.rkeys[this.rkeyCount] = skey;
	this.rvalues[this.rkeyCount] = svalue;
};

this.ClearSet = function()
{
	this.keyCount = -1;
	this.keys = Array();
	this.values = Array();
	this.rkeyCount = -1;
	this.rkeys = Array();
	this.rvalues = Array();
};


DedeXHTTP.onreadystatechange = function()
{
	if(DedeXHTTP.readyState == 4){
    if(DedeXHTTP.status == 200){
       if(DedeXHTTP.responseText!=DedeErrCon){
         DedeContainer.innerHTML = DedeXHTTP.responseText;
       }else{
       	 if(DedeShowError) DedeContainer.innerHTML = DedeErrDisplay;
       }
       DedeXHTTP = null;
    }else{ if(DedeShowError) DedeContainer.innerHTML = DedeErrDisplay; }
  }else{ if(DedeShowWait) DedeContainer.innerHTML = DedeWaitDisplay; }
};

this.BarrageStat = function()
{
	if(DedeXHTTP==null) return;
	if(typeof(DedeXHTTP.status)!=undefined && DedeXHTTP.status == 200)
  {
     if(DedeXHTTP.responseText!=DedeErrCon){
         DedeContainer.innerHTML = DedeXHTTP.responseText;
     }else{
       	if(DedeShowError) DedeContainer.innerHTML = DedeErrDisplay;
     }
  }
};

this.SendHead = function()
{
	if(this.rkeyCount!=-1){
  	for(;i<=this.rkeyCount;i++){
  		DedeXHTTP.setRequestHeader(this.rkeys[i],this.rvalues[i]); 
  	}
  }
　if(this.rtype=='binary'){
  	DedeXHTTP.setRequestHeader("Content-Type","multipart/form-data");
  }else{
  	DedeXHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  }
};

this.SendPost = function(purl)
{
	var pdata = "";
	var i=0;
	this.state = 0;
	DedeXHTTP.open("POST", purl, true); 
	this.SendHead();
  if(this.keyCount!=-1){
  	for(;i<=this.keyCount;i++){
  		if(pdata=="") pdata = this.keys[i]+'='+this.values[i];
  		else pdata += "&"+this.keys[i]+'='+this.values[i];
  	}
  }
  DedeXHTTP.send(pdata);
};

this.SendGet = function(purl)
{
	var gkey = "";
	var i=0;
	this.state = 0;
	if(this.keyCount!=-1){
  	for(;i<=this.keyCount;i++){
  		if(gkey=="") gkey = this.keys[i]+'='+this.values[i];
  		else gkey += "&"+this.keys[i]+'='+this.values[i];
  	}
  	if(purl.indexOf('?')==-1) purl = purl + '?' + gkey;
  	else  purl = purl + '&' + gkey;
  }
	DedeXHTTP.open("GET", purl, true); 
	this.SendHead();
  DedeXHTTP.send(null);
};

this.SendGet2 = function(purl)
{
	var gkey = "";
	var i=0;
	this.state = 0;
	if(this.keyCount!=-1){
  	for(;i<=this.keyCount;i++){
  		if(gkey=="") gkey = this.keys[i]+'='+this.values[i];
  		else gkey += "&"+this.keys[i]+'='+this.values[i];
  	}
  	if(purl.indexOf('?')==-1) purl = purl + '?' + gkey;
  	else  purl = purl + '&' + gkey;
  }
	DedeXHTTP.open("GET", purl, false); 
	this.SendHead();
  DedeXHTTP.send(null);
  this.BarrageStat();
};

this.SendPost2 = function(purl)
{
	var pdata = "";
	var i=0;
	this.state = 0;
	DedeXHTTP.open("POST", purl, false); 
	this.SendHead();
  if(this.keyCount!=-1){
  	for(;i<=this.keyCount;i++){
  		if(pdata=="") pdata = this.keys[i]+'='+this.values[i];
  		else pdata += "&"+this.keys[i]+'='+this.values[i];
  	}
  }
  DedeXHTTP.send(pdata);
  this.BarrageStat();
};


}

function InitXDom()
{
  if(DedeXDOM!=null) return;
  var obj = null;
  if (typeof(DOMParser) != "undefined") { // Gecko、Mozilla、Firefox
    var parser = new DOMParser();
    obj = parser.parseFromString(xmlText, "text/xml");
  }
  else
  {
    try { obj = new ActiveXObject("MSXML2.DOMDocument");} catch (e) { }
    if (obj == null) try { obj = new ActiveXObject("Microsoft.XMLDOM"); } catch (e) { }
  }
  DedeXDOM = obj;
};

lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop
else{/*Netscape stuff*/}    
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 

//document.getElementById("CoupletAd1").style.top=parseInt(document.getElementById("CoupletAd1").style.top)+percent+"px";
document.getElementById("CoupletAd2").style.top=parseInt(document.getElementById("CoupletAd2").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
}
//document.write("<div id=\"CoupletAd1\" style='left:0px;POSITION:absolute;TOP:109px;'><a href='http://www.risee.cn/Placard/RiseeInDesign/' target='_blank'><img border=0 src=CoupletAdPic/1.gif><br><br /><a target=blank href=tencent://message/?uin=156163053&Site=宁波锐思网络科技有限公司&Menu=yes><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:156163053:6 alt=\"点击这里给我发消息\"></a></div>")
document.write("<div id=\"CoupletAd2\" style='position:absolute;right:8px;top:445px;')'>");

document.writeln("<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=a0ae9df9300febb36c5f36e4b5aac79507383af8b2dd86b34d40825ed38fc836\"; target=_blank; onclick=\"var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=a0ae9df9300febb36c5f36e4b5aac79507383af8b2dd86b34d40825ed38fc836\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC=\'http://wpa.qq.com/pa?p=1:120158094:42\' alt=\"\"></a>");

document.write("</div>")

//<br /><br /><a target=blank href=tencent://message/?uin=120158094&Site=www.xiulong.net&Menu=yes><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:120158094:6 alt=\"QQ:120158094,欢迎发送消息！\"></a><p><img src='adimg/close.gif' alt='关闭' onclick=\"CoupletAd2.style.display = 'none'\"/></p>
//关闭代码<a href=JavaScript:; onclick=\"CoupletAd1.style.visibility='hidden';CoupletAd1.style.display = 'none'\"><img border=0 src='adimg/close.gif' alt='关闭'/></a>
window.setInterval("heartBeat()",1);

-->
