/*
 * 2009-04-25 modify by zhongbin
 * 1) FF下页面没有起作用，如果页面没有默认的iframe "actifrm".
  */
function nds_nav(url){
try {
window.setTimeout("send_request('" + url + "')",5);
}catch(e) {;}
}
function nciku_ads(svrno,value){
	try {
	window.setTimeout("send_request('http://stabidx.nciku.com/stabIdxPost!ads.nhn?svrno="+svrno+"&project=nciku&value="+value+"')",5);
	}catch(e) {;}
	}
function send_request(url){

	var ntype = getNavigatorType();
	
	var _id = "NCIKU_AD";

	var _body = document.body;
	
	var _ads = document.getElementById(_id);
	if(_ads!=null){
		_body.removeChild(_ads);	
	}
	
	var _script = document.createElement("SCRIPT");
	_script.id = _id;
	_script.src = url;
	
	if(ntype != 1){
		_body.appendChild(_script);
	}
}

function getNavigatorType() {

if ( navigator.appName == "Microsoft Internet Explorer" )

return 1;

else if ( navigator.appName == "Netscape" )

return 2;

else

return 0;

}