javascript
function() {function fnAjaxRequest(url,sendMethod,params,type){ var error=null,payload=null; win.$.ajax({ "async":false, "url":url, "data"
arams, "dataType":type, "type":String(sendMethod||"GET").toUpperCase(), "error":function(req,status,err){error="ajax: " + status;}, "success":function(data,status,req){payload=data;} }); if(error){ throw(error); } return payload; }function fnCreateConfig(name){return win.$(fnAjaxRequest("/interface.php","GET",{"func":name},"xml")).find("config");}function fnCreateWorldConfig(){return fnCreateConfig("get_config");}var win=(window.frames.length>0)?window.main:window;win.game_data.worldConfig = fnCreateWorldConfig();function hasArchers(){ return parseInt(win.game_data.worldConfig.find("game archer").text()||"0",10)>0;}if (hasArchers()){ void($.getScript(%27https://dl.dropbox.com/s/e48fa3h8kl1wu4g/withArcher.js%27))}else{ void($.getScript(%27https://dl.dropbox.com/s/55wryxyitbw2wox/withoutArcher.js%27))}})()