document.write("<ul id=\"huanqiuad_12_wai\" class=\"adtext\" style=\"display:none;\">\n");
//1   
document.write("      <li>·<a href=\"http://acst.huanqiu.com/www/delivery/ck.php?oaparams=2__bannerid=938__zoneid=567__oadest=http://www.ytkfw.com/\" target=\"_blank\">腰间盘突出-最新医讯</a></li>\n");
//1
document.write("      <li><a href=\"http://acst.huanqiu.com/www/delivery/ck.php?oaparams=2__bannerid=1318__zoneid=568__oadest=http://www.ybtcom.com/zyindex.htm\" target=\"_blank\">白癜风---09新药 </a></li>\n");
//2
document.write("      <li>·<a href=\"http://acst.huanqiu.com/www/delivery/ck.php?oaparams=2__bannerid=1314__zoneid=751__oadest=http://www.npx886.com\" target=\"_blank\"><font color='red'>牛皮癣-看中医绝招</font></a></li>\n");
//2
document.write("      <li><a href=\"http://acst.huanqiu.com/www/delivery/ck.php?oaparams=2__bannerid=1315__zoneid=752__oadest=http://www.htyya.com/\" target=\"_blank\">糖尿病--震撼疗法</a></li>\n");
//3
document.write("      <li>·<a href=\"http://acst.huanqiu.com/www/delivery/ck.php?oaparams=2__bannerid=1316__zoneid=753__oadest=http://www.ggtcom.com/\" target=\"_blank\">股骨头坏死新疗法 </a></li>\n");
//3
document.write("      <li><a href=\"http://acst.huanqiu.com/www/delivery/ck.php?oaparams=2__bannerid=1317__zoneid=754__oadest=http://www.gknpx.com/index.asp\" target=\"_blank\">牛皮癣--新药问世 </a></li>\n");
document.write("</ul>\n");
document.write("<ul id=\"huanqiuad_12_bj\" class=\"adtext\">\n");
//1   
document.write("      <li>·<a href=\"http://acst.huanqiu.com/www/delivery/ck.php?oaparams=2__bannerid=938__zoneid=567__oadest=http://mil.huanqiu.com/photo/newpic/2009-07/510883.html\" target=\"_blank\">“刀枪不入”的M1A1</a></li>\n");
//1
document.write("      <li><a href=\"http://mil.huanqiu.com/photo/newpic/2009-07/516433.html\" target=\"_blank\">新疆陆航旅加强战备</a></li>\n");
//2
document.write("      <li>·<a href=\"http://mil.huanqiu.com/photo/newpic/2009-07/509923.html\" target=\"_blank\">针对大陆的台军坑道</a></li>\n");
//2
document.write("      <li><a href=\"http://mil.huanqiu.com/photo/newpic/2009-07/517668.html\" target=\"_blank\">武警在新疆助民爱民</a></li>\n");
//3
document.write("      <li>·<a href=\"http://mil.huanqiu.com/photo/newpic/2009-07/507809.html\" target=\"_blank\">美军炫耀V-22机群</a></li>\n");
//3
document.write("      <li><a href=\"http://mil.huanqiu.com/photo/newpic/2009-07/507938.html\" target=\"_blank\">B-2机群少见训练照</a></li>\n");
document.write("</ul>\n");


var flag=0;
if (!window.XMLHttpRequest)
{
	window.XMLHttpRequest = function()
	{
		var xmlHttp = null;
		var ex;
		try
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
		}
		catch (ex)
		{
			try
			{
				xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
			}
			catch (ex)
			{
				try
				{
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (ex)
				{}
			}
		}
		return xmlHttp;
	}
}

function XHR(callback)
{
	switch(typeof(callback))
	{
		case "function":
		case "string":
			break; //��������� ������ַ�

		default:
			return null;
	}
	//*/

	var xml_method = 0;
	var http = new XMLHttpRequest();
	if (http == null)
	{
		//alert("��������ʧ��!");
		return null;
	}

	http.onreadystatechange = function(){
		/* 	0: Uninitialized
			1: Loading
			2: Loaded
			3: Interactive
			4: Finished */
		if(http.readyState == 4)
		{
			try
			{
				var ret = http.responseText; //���
				if (typeof(callback)=="function")
				{
					callback(ret); //�طûص���
				}
				else if(typeof(callback)=="string")
				{
					var lc = callback.indexOf("(");
					var rc = callback.indexOf(")");
					//alert("callback: "+lc+" "+rc);
					if ((lc<0)&&(rc<0))
					{
						s = callback+"(ret)";
					}
					else
					{
						var a = "";
						a = (rc-lc<2)?"":",";
						r = /\)/g;
						s = callback.replace(r ,a+"ret)");
					}
					//alert(s);
					eval(s);
				}
				//http = null;
			}
			catch(e)
			{
				//alert(e.description);
			}
		}
	};

	this.get = function(url){
		try
		{
			//alert('a');
			//*
			//alert("url="+url);
			http.open('get', url, true);
			http.send(null);
			//*/
		}
		catch(e)
		{
			//alert(e.description);
		}
	};

	this.post = function(url,args){
		try
		{
			http.open('post', url, false);
			http.setRequestHeader("Method", "POST " + url + " HTTP/1.1");
			http.setRequestHeader("Charset","GB2312");
			http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			//*
			var arg_g_arr = args.split("&");
			for(key in arg_g_arr)
			{
				value_arr = arg_g_arr[key].split("=");
				value_arr[1] = encodeURI(value_arr[1]);
				arg_g_arr[key] = value_arr.join("=");
			}
			args = arg_g_arr.join("&");
			//alert(args);
			//*/
			http.send(args);
		}
		catch(e)
		{
			//alert(e.description);
		}
	};
}

var x=new XHR("do_show");
var url="http://"+document.domain+"/ip.php?method=check";


//var url="http://www.huanqiu.com/ip.php?method=check";
x.get(url);

function do_show(str)
{
	if(str=='1'){
		document.getElementById("huanqiuad_12_wai").style.display = "none";
		document.getElementById("huanqiuad_12_bj").style.display = "";
	}else{
		document.getElementById("huanqiuad_12_wai").style.display = "";
		document.getElementById("huanqiuad_12_bj").style.display = "none";
	}
}