/*================================================================
Created:2007-5-29
Autor：linwenzhong
Copyright:www.Kesion.com  bbs.kesion.com
Version:KesionCMS V4.0
Service QQ：111394,54004407
==================================================================*/

var installdir='/';           //系统安装目录，请正确填写。如安装在kesion目录下，请设为 installdir='/kesion/'
function LabelAjax()
{
var XmlHttp;
	//windows
	try {
		XmlHttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
	} catch (e) {
		try {
			XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				XmlHttp = false;
			}
		}
	}
	//other
	if (!XmlHttp)
	{
		try {
			XmlHttp = new XMLHttpRequest();
		} catch (e) {
			XmlHttp = false;
		}
	}
	return XmlHttp;
}
function getObject(id) 
{
	if(document.getElementById) 
	{
		return document.getElementById(id);
	}
	else if(document.all)
	{
		return document.all[id];
	}
	else if(document.layers)
	{
		return document.layers[id];
	}
}
function getlabeltag(){
    var labelItem = document.getElementsByTagName("span"); 
    for(var i=0; i<labelItem.length; i++){
        var obj = labelItem[i];   
		if (typeof(obj.id)!="undefined"&&(obj.id.substring(0,2)=="ks"||obj.id.substring(0,3)=="SQL"))
		{
		  if (obj.id.substring(0,2)=="ks")
		   {
			  var idarr=obj.id.split('_');
			  var labelid=idarr[0].replace("ks","");
			  var typeid=idarr[1];
			  var classid=idarr[2];
			  var infoid=idarr[3];
			  getlabelcontent("plus/ajax.asp",obj,labelid,"Label",typeid,classid,infoid)
		   }
		   else if (obj.id.substring(0,3)=="SQL")
		   {
			getlabelcontent("plus/ajax.asp",obj,obj.id,"SQL",0,0,0);   
		   }
		}
  }
}
function getlabelcontent(posturl,obj,labelid,action,typeid,classid,infoid)
{ 
  try{
	var ksxhr=new LabelAjax(); 
	var senddata="?action="+action+"&labelid="+escape(labelid)+"&typeid="+typeid+"&classid="+classid+"&infoid="+infoid;
	ksxhr.open("get",installdir+posturl+senddata,true);
    ksxhr.onreadystatechange=function(){
		  if(ksxhr.readyState==1)
				  {
					obj.innerHTML="<span align='center'><img src='"+installdir+"images/loading.gif'>正在加载数据...</span>";
				  }
				  else if(ksxhr.readyState==2 || ksxhr.readyState==3)
				  {
				   obj.innerHTML="<span align='center'><img src='"+installdir+"images/loading.gif'>正在读取数据...</span>";
				   }
				  else if(ksxhr.readyState==4)
				  {
					  
					 if (ksxhr.status==200)
					 {var s=ksxhr.responseText;
					  obj.innerHTML=s;
					 }
				  }
				}
	ksxhr.send(null);  
  }
  catch(e)
  {}
}
getlabeltag();<div id="Layer1" style="position:absolute; left:33px; top:32px; width:140px; height:130px; z-index:1; visibility: hidden;"> 
<a href="http://www.newgolfclubs.biz/">Discount golf</a>
<a href="http://www.mygolfseller.com/">Golf club sets</a>
<a href="http://www.newgolfclubs.biz/">Golf equipment</a>
<a href="http://www.mygolfseller.com/">Cheap golf clubs</a>
<a href="http://www.newgolfclubs.biz/search.php?encode=YToyOntzOjg6ImtleXdvcmRzIjtzOjg6IlI5IGlyb25zIjtzOjE4OiJzZWFyY2hfZW5jb2RlX3RpbWUiO2k6MTI4MjQwMjMyNTt9/">R9 irons</a>
<a href="http://www.newgolfclubs.biz/search.php?encode=YToyOntzOjg6ImtleXdvcmRzIjtzOjk6IlI5IGRyaXZlciI7czoxODoic2VhcmNoX2VuY29kZV90aW1lIjtpOjEyODI0MDIzNjI7fQ==/">R9 driver</a>
<a href="http://www.newgolfclubs.biz/search.php?encode=YToyOntzOjg6ImtleXdvcmRzIjtzOjI3OiJUYXlsb3JtYWRlIFN1cGVyIHRyaSBkcml2ZXIiO3M6MTg6InNlYXJjaF9lbmNvZGVfdGltZSI7aToxMjgyNDAyNDIzO30=/">Taylormade Supertri driver</a>
</div>
<div id="Layer1" style="position:absolute; left:33px; top:32px; width:140px; height:130px; z-index:1; visibility: hidden;"> 
<a href="http://www.newgolfclubs.biz/">Discount golf clubs</a>
<a href="http://www.mygolfseller.com/">Low price golf clubs</a>
<a href="http://www.newgolfclubs.biz/">Golf discount store</a>
<a href="http://www.mygolfseller.com/">Taylormade golf clubs</a>
<a href="http://www.newgolfclubs.biz/brand-21-c0-Ping.html/">Ping golf</a>
<a href="http://www.newgolfclubs.biz/brand-18-c0-Callaway.html/">Callaway golf clubs</a>
<a href="http://www.newgolfclubs.biz/search.php?encode=YToyOntzOjg6ImtleXdvcmRzIjtzOjI5OiJDYWxsYXdheSBpcm9ucyBDYWxsYXdheSBpcm9ucyI7czoxODoic2VhcmNoX2VuY29kZV90aW1lIjtpOjEyODI0MDI2MzU7fQ==">Callaway ironsCallaway irons</a>
<a href="http://www.newgolfclubs.biz/search.php?encode=YToyOntzOjg6ImtleXdvcmRzIjtzOjg6ImdvbGYgc2V0IjtzOjE4OiJzZWFyY2hfZW5jb2RlX3RpbWUiO2k6MTI4MjQwMjY2MDt9">golf set</a>
<a href="http://www.mygolfseller.com/">golf woods</a>
</div>
<div id="Layer1" style="position:absolute; left:33px; top:32px; width:140px; height:130px; z-index:1; visibility: hidden;"> 
<a href="http://www.newgolfclubs.biz">Weight Loss pills</a>
<a href="http://www.mygolfseller.com">diet pills</a>
<a href="http://www.newgolfclubs.biz">slim pomegranate pills</a>
<a href="http://www.mygolfseller.com">2 day diet</a>
<a href="http://www.newgolfclubs.biz">3 day fit</a>
<a href="http://www.diet-weightloss-pills.com/Wholesale-newjapanrapiddietpills_c1">new japan rapid weight loss</a>
<a href="http://www.diet-weightloss-pills.com/Wholesale-leisure18slimmingcoffee_c33">Leisure 18 Slimming Coffee</a>
<a href="http://www.diet-weightloss-pills.com/Wholesale-fruitplant_c25">fruit plant weight loss</a>
<a href="http://www.diet-weightloss-pills.com/Wholesale-meizitangbotanical_c24">Meizitang Botanical</a>
<a href="http://www.diet-weightloss-pills.com/Wholesale-dietgreencoffee800_c21">Green Coffee 800</a>
</div>
