var siteBaseURL = "http://a.dolimg.com/disneyxd/dxd/";
var siteSwfURL = "DVC_OS.swf";
var siteCountryArray = ["united states"];
if(location.href.match(/cds/i)){var siteConfig = "data/config_cds.xml";}else{var siteConfig = "data/config.xml";}
var bootMainAppURL = "boot_main_app.xml";
var legalFooterColor = "#000000";
var legalFooterDCOM3 = true;
var legalFtrCpyRgt = "&copy; Disney Enterprises, Inc.";

if(
	(location.href.match(/http:\/\/disney.go.com\/disneyxd\//i))||
	(location.href.match(/http:\/\/disney.go.com\/disneyxd\/#\/disneyxd\/community\//i))||
	(location.href.match(/http:\/\/disney.go.com\/disneyxd\/#\/disneyxd\/games\//i))||
	(location.href.match(/http:\/\/disney.go.com\/disneyxd\/#\/disneyxd\/video\//i))||
	(location.href.match(/http:\/\/disney.go.com\/disneyxd\/#\/disneyxd\/shows\//i))||
	(location.href.match(/http:\/\/disney.go.com\/disneyxd\/#\/disneyxd\/shows\//i))
) //TOP LEVEL PAGES GET FANCY BACKGROUND
{
	var siteDefaultBGImage = "bitmaps/backgrounds/xdbg_ntx_winter_1497x930.jpg"; 
	var siteDefaultBGColor = "#ffffff"; 
} else { // NON-TOP LEVEL PAGES GET CAUTION TAPE BACKGROUND
	var siteDefaultBGImage = "bitmaps/backgrounds/xdbg_hazardtape_v001_150k.jpg"; 
	var siteDefaultBGColor = "#000000";
}

// redirects for bookmarked show pages. doesn't work when link from homepage is clicked
if(location.host.match(/disney.go.com/i)){
	if(location.hash.match(/disneyxd\/shows\/aaronstone/i)){top.location.replace('http://disney.go.com/xd/aaronstone/');}
	if(location.hash.match(/disneyxd\/shows\/avengers/i)){top.location.replace('http://disney.go.com/xd/avengers/');}
	if(location.hash.match(/disneyxd\/shows\/coryinthehouse/i)){top.location.replace('http://disney.go.com/xd/coryinthehouse/');}
	if(location.hash.match(/disneyxd\/shows\/imintheband/i)){top.location.replace('http://disney.go.com/xd/imintheband/');}
	if(location.hash.match(/disneyxd\/shows\/jimmytwoshoes/i)){top.location.replace('http://disney.go.com/xd/jimmytwoshoes/');}
	if(location.hash.match(/disneyxd\/shows\/kickbuttowski/i)){top.location.replace('http://disney.go.com/xd/kickbuttowski/');}
	if(location.hash.match(/disneyxd\/shows\/kidvskat/i)){top.location.replace('http://disney.go.com/xd/kidvskat/');}
	if(location.hash.match(/disneyxd\/shows\/moisesrules/i)){top.location.replace('http://disney.go.com/xd/moisesrules/');}
	if(location.hash.match(/disneyxd\/shows\/naruto/i)){top.location.replace('http://disney.go.com/xd/naruto/');}
	if(location.hash.match(/disneyxd\/shows\/nextx/i)){top.location.replace('http://disney.go.com/xd/nextx/');}
	if(location.hash.match(/disneyxd\/shows\/pairofkings/i)){top.location.replace('http://disney.go.com/xd/pairofkings');}
	if(location.hash.match(/disneyxd\/shows\/philofthefuture/i)){top.location.replace('http://disney.go.com/disneyxd/');} // no site
	if(location.hash.match(/disneyxd\/shows\/phineasandferb/i)){top.location.replace('http://disney.go.com/xd/phineasandferb/');}  
	if(location.hash.match(/disneyxd\/shows\/pucca/i)){top.location.replace('http://disney.go.com/disneyxd/');} // no site
	if(location.hash.match(/disneyxd\/shows\/robodz/i)){top.location.replace('http://disney.go.com/xd/robodz/');}
	if(location.hash.match(/disneyxd\/shows\/suitelife/i)){top.location.replace('http://disney.go.com/disneyxd/');} // no site
	if(location.hash.match(/disneyxd\/shows\/suitelifeondeck/i)){top.location.replace('http://disney.go.com/xd/suitelifeondeck/');}
	if(location.hash.match(/disneyxd\/shows\/yinyangyo/i)){top.location.replace('http://disney.go.com/xd/yinyangyo/');}
	if(location.hash.match(/disneyxd\/shows\/zekeandluther/i)){top.location.replace('http://disney.go.com/xd/zekeandluther/');}
}

var unity580x410InstallImage = "http://a.dolimg.com/disneyxd/dxd/bitmaps/unity/dxd_unity_plugin_580x410.jpg";
var unity580x410InstallButtonLeft = 320;
var unity580x410InstallButtonTop = 275;
var unity580x410InstallButtonRight = 550;
var unity580x410InstallButtonBottom = 390;
var unity580x410FAQButtonLeft = 325;
var unity580x410FAQButtonTop = 245;
var unity580x410FAQButtonRight = 430;
var unity580x410FAQButtonBottom = 260;
var unity580x410ContactUsButtonLeft = 440;
var unity580x410ContactUsButtonTop = 245;
var unity580x410ContactUsButtonRight = 550;
var unity580x410ContactUsButtonBottom = 260;
var unity750x500InstallImage = "http://a.dolimg.com/disneyxd/dxd/bitmaps/unity/dxd_unity_plugin_750x500.jpg";
var unity750x500InstallButtonLeft = 400;
var unity750x500InstallButtonTop = 320;
var unity750x500InstallButtonRight = 630;
var unity750x500InstallButtonBottom = 430;
var unity750x500FAQButtonLeft = 400;
var unity750x500FAQButtonTop = 290;
var unity750x500FAQButtonRight = 510;
var unity750x500FAQButtonBottom = 305;
var unity750x500ContactUsButtonLeft = 515;
var unity750x500ContactUsButtonTop = 290;
var unity750x500ContactUsButtonRight = 630;
var unity750x500ContactUsButtonBottom = 305;
var unityInstallUrlMacIntel = "http://webplayer.unity3d.com/download_webplayer-2.x/webplayer-i386.dmg";
var unityInstallUrlMacPPC = "http://webplayer.unity3d.com/download_webplayer-2.x/webplayer-ppc.dmg";
var unityInstallUrlWin = "http://webplayer.unity3d.com/download_webplayer-2.x/UnityWebPlayer.exe";
var unityInstallLinkPosition = "unity_install_image_lower";
var unityInstallLinkName = "install_unity";
var unityFAQUrl = "http://home.disney.go.com/guestservices/faqs#internet";
var unityFAQLinkPosition = "unity_install_image_upper_left";
var unityFAQLinkName = "faq";
var unityContactUsUrl = "http://home.disney.go.com/guestservices/contact";
var unityContactUsLinkPosition = "unity_install_image_upper_right";
var unityContactUsLinkName = "contact_us";
var unityDateLinksLastModified = "100122";
var unityNoPluginLinkPosition = "unity_no_plugin_pos";
var unityNoPluginLinkName = "unity_no_plugin";
var unityLogoImage = "http://a.dolimg.com/disneyxd/dxd/bitmaps/unity/xdLogo.png";
var unityProgressFrameImage = "http://a.dolimg.com/disneyxd/dxd/bitmaps/unity/xd_loaderBar.png";
var unityProgressBarImage = "http://a.dolimg.com/disneyxd/dxd/bitmaps/unity/xd_loaderBarFill.png";
var unityBackgroundColor = "006699";
var unityBorderColor = "006699";




