function FlashgetDown(str,uid){
	str = str+"&1255863092";
	AddLink(str,"www.kuaiche.com",window.location.href,uid);
}

function AddLink(durl,text,qurl,uid){
        var JetCarCatch = null;       
	if (navigator.appName == "Netscape")
	{	
		window.open (durl, "newwindow", "");
	}
	else
	{

		try{
			JetCarCatch=new ActiveXObject("FG2CatchUrl.Netscape");
		}catch(e){
			try{
				JetCarCatch = new ActiveXObject("BHO.IFlashGetNetscape");
			}catch(e){
				try{
					JetCarCatch=new ActiveXObject("JetCar.Netscape");
				}catch(e){}
			}
		}
	
		if(JetCarCatch!=null){
			try{
				JetCarCatch.AddUrl(durl,text,qurl);
			}catch(e){
				JetCarCatch.AddUrlEx(durl,text,qurl,"","0");	
			}
		}else{
			kuaicheMsg(uid);
		}
	}
}


function Flashget_in_array(uid) {
var u =  new Array(888,18859,9842,7644,9821,1742,99999);
//var u =  new Array(888,99999);
//var u =  new Array(888,9842,1742,99999);
  for (var i = 0; i <u.length; i++) {
	  thisEntry = u[i].toString();
	  if (thisEntry == uid) {
		  return true;
	  }
  }
  return false;
}


function kuaicheMsg(uid){	
alert("\u672c\u94fe\u63a5\u4e3a\u5feb\u8f66\u9ad8\u901f\u4e0b\u8f7d\u94fe\u63a5\uff0c\u9700\u5b89\u88c5\u65b0\u7248\u5feb\u8f66\uff08\u0046\u006c\u0061\u0073\u0068\u0067\u0065\u0074\uff09\u4ee5\u63d0\u9ad8\u4e0b\u8f7d\u901f\u5ea6\n\u0020\u0020\u0020\u0020\u0020\u70b9\u51fb\u786e\u5b9a\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\uff0c\u5373\u53ef\u63d0\u5347\u591a\u500d\u4e0b\u8f7d\u901f\u5ea6\uff0c\u4eab\u53d7\u6781\u901f\u4e0b\u8f7d");
		
		if(uid==7863)
                	window.open("http://dl.game.kuaiche.com/flashget/index_union.html?fid="+uid,"","");
		else if(Flashget_in_array(uid))
			//location.href="http://down5.flashget.com/unmini/fgmun_"+uid+"_3.exe";	
			location.href="http://down6.flashget.com/un/flashget_"+uid+"_1.exe";
		else
			location.href="http://down6.flashget.com/unxp/flashget_"+uid+"_1.exe";
}


	function ConvertURL2FG(url,fUrl,uid)
	{	
		try{
			FlashgetDown(url,uid);
		}catch(e){location.href = fUrl;}
	}
	function Flashget_SetHref(obj,uid){obj.href = obj.fg;}
