if (location.href.indexOf("index/Arcade/") != -1){
Navigation = $("#nav");

Username = getUser();

var Skin;

if (Skin == "" || Skin == undefined){ Skin = ""; }

else { Skin = "&s="+Skin; }

if (location.href.indexOf("Arcade/Play/") != -1){ File = "embed.php?id="+location.href.split("Arcade/Play/")[1]+"&"; }

else { File = "index.php?"; }

iFrameURL = "http://xgbarcade.com/Arcade/"+File+"b="+aName+Skin+"&u="+Username;

if (Enable == "Members"){

if (Username == "Guest"){

ArcadeContent = "<div id='main'><dl class='notice info'><dt>Notice</dt><dd>Please <a href='"+main_url+"/login/'>Login</a> or <a href='"+main_url+"/register/'>Register</a> to use the arcade.</dd></dl><br></div>";

}

if (Username != "Guest"){

ArcadeContent = "<div id='main'><iframe frameborder='0' height='"+Height+"' scrolling='no' src='"+iFrameURL+"' width='"+Width+"'>You need to update your browser if you see this.</iframe><br></div>";

}

}

if (Enable == "All"){

ArcadeContent = "<div id='main'><iframe frameborder='0' height='"+Height+"' scrolling='no' src='"+iFrameURL+"' width='"+Width+"'>You need to update your browser if you see this.</iframe><br></div>";

}

Navigation.append("<li>→</li> <li><span>Arcade</span></li>");

$(".category").toggle();

$("#foot_links").html("");

$("#foot_wrap").before(ArcadeContent);

}