//piratesDomain = 'apps.pirates.go.com';



function initializeJavascript(){
var varURLArray = []


//varURLArray.push("/init.js")

//varURLArray.push("/pg_menu_db.js")
//varURLArray.push("/installer.js")

// -> DATABASES
varURLArray.push("/databases/news_db.js")
varURLArray.push("/databases/button_db.js")
varURLArray.push("/databases/dayinthelife_db.js")
varURLArray.push("/databases/developerdiary_db.js")
varURLArray.push("/databases/conceptart_db.js")
varURLArray.push("/databases/screenshot_db.js")
varURLArray.push("/databases/photoalbum_db.js")
varURLArray.push("/databases/playerguide_db.js")

//varURLArray.push("/clearspringwidget.js")

// -> SEARCH
//varURLArray.push("/search/settings.js")
//varURLArray.push("/search/zoom_index.js")
//varURLArray.push("/search/zoom_pageinfo.js")
//varURLArray.push("/search/search.js")



for (var i = 0;i<varURLArray.length;i++){
   var head= document.getElementsByTagName('head')[0];
   var script= document.createElement('script');
   script.type= 'text/javascript';
   var varScriptPath = baseUrlJavascript+varURLArray[i]
   script.src= varScriptPath;
   head.appendChild(script);
}

var varProtocalArray = []
/*
varProtocalArray.push("://dolimg.com/js/dcom/swfobject.js")
varProtocalArray.push("://dolimg.com/js/dcom/flash.js")
 
//varProtocalArray.push("://dolimg.com/js/dcom/global.js")
//varProtocalArray.push("://dolimg.com/js/dcom/efsp.js")



//varProtocalArray.push("://disney.go.com/detect/scripts/master_flash_writer.js")
//varProtocalArray.push("://disney.go.com/features/javascript/featuresGlobalSecure.js")

for (var i = 0;i<varProtocalArray.length;i++){
   var head= document.getElementsByTagName('head')[0];
   var script= document.createElement('script');
   script.type= 'text/javascript';
   var varScriptPath = protocol+varProtocalArray[i]
   script.src= varScriptPath;
   head.appendChild(script);
}
 */

//if(window.location.hash == 'undefined' || window.location.hash == '') {
		//loadContent(xURL, "dynamicContent");
//}

}

function initHTBX(){

hitbox = new HB_CreateObject("/pirates/v3/");
hitbox.HB_PlaceAccount("DM560804E8WD","DM5103120MSF93EN3","DM51030813MR38EN3", "DM5103083LCA38EN3");
hitbox.onlyMedia="y";
hitbox.HB_PlaceName("initialize");
hitbox.protocol = "http"
hitbox.HB_render();

}


