function get(name) {
   q = unescape(location.search.substring(1)).split(/[=&]/);

   for (var j=0; j<q.length; j+=2) {
       if (q[j] == name) {
           return q[j+1];
       }
   }

   return null;
}
function getu() {
A = $("#top_info strong a");
S = $("#top_info strong");
if (A.text() == ""){
 member = S.text();
} else {
 member = A.text();
}
return member;
}
document.write("<div>");
var shareurl; 
var varis=new Array(14);
varis[0] = get("play");
varis[1] = get("scores");
varis[2] = get("profile");
varis[3] = get("page");
varis[4] = get("module");
varis[5] = get("search");
varis[6] = get("rate");
varis[7] = get("cat");
varis[8] = get("pag");
varis[9] = get("do");
varis[10] = get("tid");
username=getu();
varis[11]=username;
varis[12]=atitle;
varis[13] = shareurl; 
function loadarcade(url)
{
url = url.replace(/,/g, "^TA^");
document.write('<script src="' + url + '" type="text/JavaScript"><\/script>');
}
var game = "http://xgbarcade.com/Arcade/proxgb/arcade.php?exter=" + varis;
loadarcade(game);
var onlinestatus = "http://xgbarcade.com/Arcade/proxgb/online.php?b=" + atitle;
if (location.href.indexOf("act=Online") != -1) {
document.write('<script src="' + onlinestatus + '" type="text/JavaScript"><\/script>');
}