//Begin button_db.js
var imgPath=baseUrlMedia+'/images/';
var onImgArray=[];
var offImgArray=[];
for (i=1;i<75;i++){
  onImgArray[i]=new Image;
  offImgArray[i]=new Image;
}
function loadImages(xArray){
  //alert("loadImages: xArray="+xArray)
  for (var i=0; i<xArray.length;i++){
    var varNumber=Number(xArray[i])
    if (onImgArray[varNumber].src != onImgDB[varNumber]){
      onImgArray[varNumber].src =onImgDB[varNumber];
      offImgArray[varNumber].src=offImgDB[varNumber];
    }
  }
}
function imageOn(i){document.images["btn" + i].src=onImgArray[i].src}
function imageOff(i){document.images["btn" + i].src=offImgArray[i].src}
var onImgDB=[];
var offImgDB=[];
if (document.images){
onImgDB[1]=imgPath+"buttons/welcome_on.jpg"
offImgDB[1]=imgPath+"buttons/welcome_off.jpg"
onImgDB[2]=imgPath+"buttons/friendsnchat_on.jpg"
offImgDB[2]=imgPath+"buttons/friendsnchat_off.jpg"
onImgDB[3]=imgPath+"buttons/seachest_on.jpg"
offImgDB[3]=imgPath+"buttons/seachest_off.jpg"
onImgDB[4]=imgPath+"buttons/alliesenemies_on.jpg"
offImgDB[4]=imgPath+"buttons/alliesenemies_off.jpg"
onImgDB[5]=imgPath+"buttons/locations_on.jpg"
offImgDB[5]=imgPath+"buttons/locations_off.jpg"
onImgDB[6]=imgPath+"buttons/adventures_onland_on.jpg"
offImgDB[6]=imgPath+"buttons/adventures_onland_off.jpg"
onImgDB[7]=imgPath+"buttons/adventures_atsea_on.jpg"
offImgDB[7]=imgPath+"buttons/adventures_atsea_off.jpg"
onImgDB[8]=imgPath+"buttons/quests_on.jpg"
offImgDB[8]=imgPath+"buttons/quests_off.jpg"
onImgDB[9]=imgPath+"buttons/pvp_on.jpg"
offImgDB[9]=imgPath+"buttons/pvp_off.jpg"
onImgDB[10]=imgPath+"buttons/parlorgames_on.jpg"
offImgDB[10]=imgPath+"buttons/parlorgames_off.jpg"
onImgDB[11]=imgPath+"buttons/treasure_on.jpg"
offImgDB[11]=imgPath+"buttons/treasure_off.jpg"
onImgDB[12]=imgPath+"buttons/introduction_on.jpg"
offImgDB[12]=imgPath+"buttons/introduction_off.jpg"
onImgDB[13]=imgPath+"arrow_prev_on.gif"
offImgDB[13]=imgPath+"arrow_prev_off.gif"
onImgDB[14]=imgPath+"arrow_next_on.gif"
offImgDB[14]=imgPath+"arrow_next_off.gif"
onImgDB[15]=imgPath+"screenshots/aleft2.jpg"
offImgDB[15]=imgPath+"screenshots/left2.jpg"
onImgDB[16]=imgPath+"screenshots/aright2.jpg"
offImgDB[16]=imgPath+"screenshots/right2.jpg"
onImgDB[17]=imgPath+"conceptart/aleft2.jpg"
offImgDB[17]=imgPath+"conceptart/left2.jpg"
onImgDB[18]=imgPath+"conceptart/aright2.jpg"
offImgDB[18]=imgPath+"conceptart/right2.jpg"
onImgDB[19]=imgPath+"downloads/dnload_deskgalleon_over.gif"
offImgDB[19]=imgPath+"downloads/dnload_deskgalleon_default.gif"
onImgDB[20]=imgPath+"downloads/dnload_wallpaper_over.gif"
offImgDB[20]=imgPath+"downloads/dnload_wallpaper_default.gif"
onImgDB[21]=imgPath+"downloads/dnload_buddyicon_over.gif"
offImgDB[21]=imgPath+"downloads/dnload_buddyicon_default.gif"
onImgDB[22]=imgPath+"downloads/dnload_wallpaper_over.gif"
offImgDB[22]=imgPath+"downloads/dnload_wallpaper_default.gif"
onImgDB[23]=imgPath+"downloads/2d_buddy_roll.jpg"
offImgDB[23]=imgPath+"downloads/2d_buddy.jpg"
onImgDB[24]=imgPath+"downloads/2b_desktop_roll.jpg"
offImgDB[24]=imgPath+"downloads/2b_desktop.jpg"
onImgDB[25]=imgPath+"back_knife_on_02.jpg"
offImgDB[25]=imgPath+"back_knife_off_02.jpg"
onImgDB[26]=imgPath+"next_knife_on_02.jpg"
offImgDB[26]=imgPath+"next_knife_off_02.jpg"
onImgDB[27]=imgPath+"printchap_on.gif"
offImgDB[27]=imgPath+"printchap_off.gif"
onImgDB[28]=imgPath+"printentireguide_on.gif"
offImgDB[28]=imgPath+"printentireguide_off.gif"
onImgDB[29]=imgPath+"arrow_prev_on.gif"
offImgDB[29]=imgPath+"arrow_prev_off.gif"
onImgDB[30]=imgPath+"arrow_next_on.gif"
offImgDB[30]=imgPath+"arrow_next_off.gif"
onImgDB[31]=imgPath+"installer/congrats_download_button_over.jpg"
offImgDB[31]=imgPath+"installer/congrats_download_button.jpg"
onImgDB[32]=imgPath+"installation/but_next_over.gif"
offImgDB[32]=imgPath+"installation/but_next_default.gif"
onImgDB[33]=imgPath+"search_roll.jpg"
offImgDB[33]=imgPath+"search.jpg"
onImgDB[34]=imgPath+"buttons/print_entry_form_on.gif"
offImgDB[34]=imgPath+"buttons/print_entry_form_off.gif"
onImgDB[35]=imgPath+"buttons/close_on.gif"
offImgDB[35]=imgPath+"buttons/close_off.gif"
onImgDB[36]=imgPath+"buttons/back_to_contest_on.gif"
offImgDB[36]=imgPath+"buttons/back_to_contest_off.gif"
onImgDB[37]=imgPath+"buttons/back_over.gif"
offImgDB[37]=imgPath+"buttons/back_default.gif"
onImgDB[38]=imgPath+"buttons/mail_in_entry_on.gif"
offImgDB[38]=imgPath+"buttons/mail_in_entry_off.gif"
onImgDB[39]=imgPath+"buttons/online_entry_on.gif"
offImgDB[39]=imgPath+"buttons/online_entry_off.gif"
onImgDB[40]=imgPath+"downloads/dnload_ptranslate_over.gif"
offImgDB[40]=imgPath+"downloads/dnload_ptranslate_default.gif"
onImgDB[41]=imgPath+"order/but_playnow_over.gif"
offImgDB[41]=imgPath+"order/but_playnow_default.gif"
onImgDB[42]=imgPath+"order/but_learnmore_over.gif"
offImgDB[42]=imgPath+"order/but_learnmore_default.gif"
onImgDB[43]=imgPath+"order/but_upgradenow_over.gif"
offImgDB[43]=imgPath+"order/but_upgradenow_default.gif"
onImgDB[44]=imgPath+"order/but_gotohomepage_over.gif"
offImgDB[44]=imgPath+"order/but_gotohomepage_default.gif"
onImgDB[45]=imgPath+"order/but_learnmore_gr_over.gif"
offImgDB[45]=imgPath+"order/but_learnmore_gr_default.gif"
onImgDB[46]=imgPath+"order/but_playnowcompass_over.gif"
offImgDB[46]=imgPath+"order/but_playnowcompass_default.gif"
onImgDB[47]=imgPath+"order/but_upgradenow_gr_over.gif"
offImgDB[47]=imgPath+"order/but_upgradenow_gr_default.gif"
onImgDB[48]=imgPath+"membershipOptions/but_details_over.gif"
offImgDB[48]=imgPath+"membershipOptions/but_details.gif"
onImgDB[49]=imgPath+"membershipOptions/but_manage_account_over.gif"
offImgDB[49]=imgPath+"membershipOptions/but_manage_account.gif"
onImgDB[50]=imgPath+"membershipOptions/but_cancel_account_over.gif"
offImgDB[50]=imgPath+"membershipOptions/but_cancel_account.gif"
onImgDB[51]=imgPath+"buttons/view_winners_on.gif"
offImgDB[51]=imgPath+"buttons/view_winners_off.gif"
onImgDB[52]=imgPath+"buttons/but_back_to_main_on.gif"
offImgDB[52]=imgPath+"buttons/but_back_to_main_off.gif"
onImgDB[53]=imgPath+"buttons/but_downloadcompass_over.gif"
offImgDB[53]=imgPath+"buttons/but_downloadcompass_default.gif"
onImgDB[54]=imgPath+"buttons/but_finish_gr_over.gif"
offImgDB[54]=imgPath+"buttons/but_finish_gr_default.gif"
onImgDB[55]=imgPath+"order/but_upgradenow_gr_over.gif"
offImgDB[55]=imgPath+"order/but_upgradenow_gr_default.gif"
onImgDB[56]=imgPath+"buttons/fankit_on.gif"
offImgDB[56]=imgPath+"buttons/fankit_off.gif"
onImgDB[57]=imgPath+"buttons/redeem_on.gif"
offImgDB[57]=imgPath+"buttons/redeem_off.gif"
onImgDB[58]=imgPath+"buttons/submit_mail_on.jpg"
offImgDB[58]=imgPath+"buttons/submit_mail_off.jpg"
onImgDB[59]=imgPath+"buttons/submit_online_on.jpg"
offImgDB[59]=imgPath+"buttons/submit_online_off.jpg"
onImgDB[60]=imgPath+"buttons/enter_on.gif"
offImgDB[60]=imgPath+"buttons/enter_off.gif"
onImgDB[61]=imgPath+"buttons/click_for_details_on.gif"
offImgDB[61]=imgPath+"buttons/click_for_details_off.gif"
onImgDB[62]=imgPath+"buttons/anniversary_on.jpg"
offImgDB[62]=imgPath+"buttons/anniversary_off.jpg"
onImgDB[63]=imgPath+"buttons/btn_member2_over.jpg"
offImgDB[63]=imgPath+"buttons/btn_member2.jpg"
onImgDB[64]=imgPath+"buttons/btn_new_member_over.jpg"
offImgDB[64]=imgPath+"buttons/btn_new_member.jpg"
onImgDB[65]=imgPath+"buttons/submit_on.gif"
offImgDB[65]=imgPath+"buttons/submit_off.gif"
}
//End button_db.js

//Begin conceptart_db.js
//init first index of array, the rest should be done in concepart_db.js
var conceptpixArray=[];
conceptpixArray.push(imgPath+'conceptart/kraken1.jpg');

//End conceptart_db.js

//Begin dayinthelife_db.js
//A DAY IN THE LIFE
var varDayInLifeDB=new Object();
var varDayInLifeArray=[];
varDayInLifeArray.push("/game_info/day_in_the_life_07.html");
varDayInLifeArray.push("/game_info/day_in_the_life_06.html");
varDayInLifeArray.push("/game_info/day_in_the_life_05.html");
varDayInLifeArray.push("/game_info/day_in_the_life_04.html");
varDayInLifeArray.push("/game_info/day_in_the_life_02.html");
varDayInLifeArray.push("/game_info/day_in_the_life_03.html");
varDayInLifeArray.push("/game_info/day_in_the_life_01.html");
varDayInLifeDB["activePage"]=0
varDayInLifeDB["section"]="ABOUT THE GAME"
varDayInLifeDB["pageList"]=varDayInLifeArray
varNAVURLs_Array.push(varDayInLifeDB)
//End dayinthelife_db.js

//Begin developerdiary_db.js
//DEVELOPER DIARY
var varDeveloperDiaryDB=new Object();
var varDeveloperDiaryArray=[];
varDeveloperDiaryArray.push("/game_info/develop_diary_15.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_14.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_13.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_12.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_11.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_10.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_09.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_08.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_07.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_06.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_05.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_04.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_03.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_02.html");
varDeveloperDiaryArray.push("/game_info/develop_diary_01.html");
varDeveloperDiaryDB["activePage"]=0
varDeveloperDiaryDB["section"]="ABOUT THE GAME"
varDeveloperDiaryDB["pageList"]=varDeveloperDiaryArray
varNAVURLs_Array.push(varDeveloperDiaryDB)
//End developerdiary_db.js

//Begin photoalbum_db.js
//init first index of array, the rest should be done in photoalbum_db.js
photoalbumpixArray=[];
photoAlbumId=[];
photoAlbumCaption=[];
photoAlbumSubHdr=[];
photoAlbumId1='Halloween2007';
photoAlbumId2='TalkPirate2008';
photoAlbumId3='GMEvent';
photoAlbumHalloween2007=imgPath+'photo_album/halloween2007/';
photoAlbumTalkPirate=imgPath+'photo_album/talklikeapirate/';
photoAlbumGMEvent=imgPath+'photo_album/GM_event/';

photoAlbumId.push(photoAlbumId3);
photoalbumpixArray.push(photoAlbumGMEvent+'gm_tavern_2.jpg');
photoAlbumCaption.push('GM James Howe is affected by Jolly Rogers magic as a trance makes him dance like a Zombie.');

//End photoalbum_db.js

//Begin playerguide_db.js
var varSections_DB=[];
var varCurrentTotalCount=0;
var varActiveInfo=new Object();
varActiveInfo["section"]=0;
varActiveInfo["page"]=0;

//SECTION: WELCOME
var varWelcomeSection=new Object();
varWelcomeSection["pageDB"]=[];
varWelcomeSection["pageDB"].push("welcome_01.html");
varWelcomeSection["pageDB"].push("welcome_02.html");
varWelcomeSection["pageDB"].push("welcome_03.html")
varWelcomeSection["pageDB"].push("welcome_04.html");
varWelcomeSection["pageDB"].push("welcome_05.html");
varWelcomeSection["pageDB"].push("welcome_06.html");
varWelcomeSection["pageDB"].push("welcome_07.html");
varWelcomeSection["pageDB"].push("welcome_08.html");
varWelcomeSection["pageDB"].push("welcome_09.html");
varWelcomeSection["StartNum"] =varCurrentTotalCount;
varWelcomeSection["headerGraphic"]="title_chp_1.jpg";
varWelcomeSection["directory"]="welcome";
varCurrentTotalCount += varWelcomeSection["pageDB"].length;
varSections_DB.push(varWelcomeSection);


//SECTION: FRIENDSANDCHAT
var varFriendsandchatSection=new Object();
varFriendsandchatSection["pageDB"]=[];
varFriendsandchatSection["pageDB"].push("friendsandchat_01.html");
varFriendsandchatSection["pageDB"].push("friendsandchat_02.html");
varFriendsandchatSection["pageDB"].push("friendsandchat_03.html");
varFriendsandchatSection["pageDB"].push("friendsandchat_04.html");
varFriendsandchatSection["StartNum"] =varCurrentTotalCount;
varFriendsandchatSection["headerGraphic"]="title_chp_2.jpg";
varFriendsandchatSection["directory"]="friendsandchat";
varCurrentTotalCount += varFriendsandchatSection["pageDB"].length;
varSections_DB.push(varFriendsandchatSection);

//SECTION: SEA CHEST
var varSeaChestSection=new Object();
varSeaChestSection["pageDB"]=[];
varSeaChestSection["pageDB"].push("seachest_01.html");
varSeaChestSection["pageDB"].push("seachest_02.html");
varSeaChestSection["pageDB"].push("seachest_03.html");
varSeaChestSection["pageDB"].push("seachest_04.html");
varSeaChestSection["StartNum"] =varCurrentTotalCount;
varSeaChestSection["headerGraphic"]="title_chp_3.jpg";
varSeaChestSection["directory"]="seachest";
varCurrentTotalCount += varSeaChestSection["pageDB"].length;
varSections_DB.push(varSeaChestSection);

//SECTION: ALLIES AND ENEMIES
var varAlliesEnemiesSection=new Object();
varAlliesEnemiesSection["pageDB"]=[];
varAlliesEnemiesSection["pageDB"].push("alliesandenemies_01.html");
varAlliesEnemiesSection["pageDB"].push("alliesandenemies_02.html");
varAlliesEnemiesSection["pageDB"].push("alliesandenemies_03.html");
varAlliesEnemiesSection["pageDB"].push("alliesandenemies_04.html");
varAlliesEnemiesSection["pageDB"].push("alliesandenemies_05.html");
varAlliesEnemiesSection["StartNum"] =varCurrentTotalCount;
varAlliesEnemiesSection["headerGraphic"]="title_chp_4.jpg";
varAlliesEnemiesSection["directory"]="AlliesandEnemies";
varCurrentTotalCount += varAlliesEnemiesSection["pageDB"].length;
varSections_DB.push(varAlliesEnemiesSection);

//SECTION: LOCATIONS
var varLocationsSection=new Object();
varLocationsSection["pageDB"]=[];
varLocationsSection["pageDB"].push("locations_01.html");
varLocationsSection["pageDB"].push("locations_02.html");
varLocationsSection["StartNum"] =varCurrentTotalCount;
varLocationsSection["headerGraphic"]="title_chp_5.jpg";
varLocationsSection["directory"]="locations";
varCurrentTotalCount += varLocationsSection["pageDB"].length;
varSections_DB.push(varLocationsSection);

//SECTION: ADVENTURES ON LAND
var varAdventuresLandSection=new Object();
varAdventuresLandSection["pageDB"]=[];
varAdventuresLandSection["pageDB"].push("adventures_land_01.html");
varAdventuresLandSection["pageDB"].push("adventures_land_02.html");
varAdventuresLandSection["pageDB"].push("adventures_land_03.html");
varAdventuresLandSection["pageDB"].push("adventures_land_04.html");
varAdventuresLandSection["pageDB"].push("adventures_land_05.html");
varAdventuresLandSection["pageDB"].push("adventures_land_06.html");
varAdventuresLandSection["pageDB"].push("adventures_land_07.html");
varAdventuresLandSection["pageDB"].push("adventures_land_08.html");
varAdventuresLandSection["pageDB"].push("adventures_land_09.html");
varAdventuresLandSection["StartNum"] =varCurrentTotalCount;
varAdventuresLandSection["headerGraphic"]="title_chp_6.jpg";
varAdventuresLandSection["directory"]="adventures_land";
varCurrentTotalCount += varAdventuresLandSection["pageDB"].length;
varSections_DB.push(varAdventuresLandSection);

//SECTION: ADVENTURES ON SEA
var varAdventuresSeaSection=new Object();
varAdventuresSeaSection["pageDB"]=[];
varAdventuresSeaSection["pageDB"].push("adventures_sea_01.html");
varAdventuresSeaSection["pageDB"].push("adventures_sea_02.html");
varAdventuresSeaSection["pageDB"].push("adventures_sea_03.html");
varAdventuresSeaSection["pageDB"].push("adventures_sea_04.html");
varAdventuresSeaSection["pageDB"].push("adventures_sea_05.html");
varAdventuresSeaSection["pageDB"].push("adventures_sea_06.html");
varAdventuresSeaSection["StartNum"] =varCurrentTotalCount;
varAdventuresSeaSection["headerGraphic"]="title_chp_7.jpg";
varAdventuresSeaSection["directory"]="adventures_sea";
varCurrentTotalCount += varAdventuresSeaSection["pageDB"].length;
varSections_DB.push(varAdventuresSeaSection);

//SECTION: QUESTS
var varQuestsSection=new Object();
varQuestsSection["pageDB"]=[];
varQuestsSection["pageDB"].push("quests_01.html");
varQuestsSection["pageDB"].push("quests_02.html");
varQuestsSection["StartNum"] =varCurrentTotalCount;
varQuestsSection["headerGraphic"]="title_chp_8.jpg";
varQuestsSection["directory"]="quests";
varCurrentTotalCount += varQuestsSection["pageDB"].length;
varSections_DB.push(varQuestsSection);

//SECTION: PVP
var varPVPSection=new Object();
varPVPSection["pageDB"]=[];
varPVPSection["pageDB"].push("pvp_01.html");
varPVPSection["StartNum"] =varCurrentTotalCount;
varPVPSection["headerGraphic"]="title_chp_9.jpg";
varPVPSection["directory"]="pvp";
varCurrentTotalCount += varPVPSection["pageDB"].length;
varSections_DB.push(varPVPSection);

//SECTION: PARLOR GAMES
var varParlorGamesSection=new Object();
varParlorGamesSection["pageDB"]=[];
varParlorGamesSection["pageDB"].push("parlorgames_01.html");
varParlorGamesSection["pageDB"].push("parlorgames_02.html");
varParlorGamesSection["pageDB"].push("parlorgames_03.html");
varParlorGamesSection["pageDB"].push("parlorgames_04.html");
varParlorGamesSection["pageDB"].push("parlorgames_05.html");
varParlorGamesSection["StartNum"] =varCurrentTotalCount;
varParlorGamesSection["headerGraphic"]="title_chp_10.jpg";
varParlorGamesSection["directory"]="parlorgames";
varCurrentTotalCount += varParlorGamesSection["pageDB"].length;
varSections_DB.push(varParlorGamesSection);

//SECTION: TREASURE
var varTreasureSection=new Object();
varTreasureSection["pageDB"]=[];
varTreasureSection["pageDB"].push("treasure_01.html");
varTreasureSection["StartNum"] =varCurrentTotalCount;
varTreasureSection["headerGraphic"]="title_chp_11.jpg";
varTreasureSection["directory"]="treasure";
varCurrentTotalCount += varTreasureSection["pageDB"].length;
varSections_DB.push(varTreasureSection);

//SECTION: Privateering
var pgPrivateering=new Object();
pgPrivateering["pageDB"]=[];
pgPrivateering["pageDB"].push("pg1.html");
pgPrivateering["pageDB"].push("pg2.html");
pgPrivateering["StartNum"]=varCurrentTotalCount;
pgPrivateering["headerGraphic"]="pg_chapters/titles/privateering.jpg";
pgPrivateering["directory"]="privateering";
varCurrentTotalCount+=pgPrivateering["pageDB"].length;
varSections_DB.push(pgPrivateering);

//SECTION: Invasion
var pgInvasion=new Object();
pgInvasion["pageDB"]=[];
pgInvasion["pageDB"].push("invasion_pg1.html");
pgInvasion["pageDB"].push("invasion_pg2.html");
pgInvasion["StartNum"]=varCurrentTotalCount;
pgInvasion["headerGraphic"]="pg_chapters/titles/invasion.jpg";
pgInvasion["directory"]="invasion";
varCurrentTotalCount+=pgInvasion["pageDB"].length;
varSections_DB.push(pgInvasion);
//End playerguide_db.js

//Begin screenshot_db.js
//init first index of array, the rest should be done in screenshot_db.js
var screenshotspixArray=[];
screenshotspixArray.push(imgPath+"screenshots/new_portroyal_1.jpg");
//End screenshot_db.js