var cruiseships = new Array(); cruiselines = { '' : ' ', '32' : 'Azamara Cruises','9' : 'Celebrity Cruises','10' : 'Costa Cruises','4' : 'Cunard Cruises','3' : 'Fred Olsen Cruises','23' : 'Island Cruises','21' : 'MSC Cruises','7' : 'NCL Cruises','13' : 'Ocean Village Cruises','5' : 'P&O Cruises','15' : 'Princess Cruises','17' : 'Royal Caribbean Cruises'}; cruiseships[''] = { '' : ' ', '48' : 'Adventure of the Seas','212' : 'Allure of the Seas','12' : 'Arcadia','11' : 'Artemis','6' : 'Aurora','189' : 'Azamara Journey','190' : 'Azamara Quest','206' : 'Azura','173' : 'Balmoral','8' : 'Black Prince','9' : 'Black Watch','151' : 'Boudicca','2' : 'Braemar','49' : 'Brilliance of the Seas','121' : 'Caribbean Princess','89' : 'Century','90' : 'Constellation','37' : 'Coral Princess','36' : 'Costa Allegra','31' : 'Costa Atlantica','33' : 'Costa Classica','159' : 'Costa Concordia','213' : 'Costa Deliziosa','34' : 'Costa Europa','29' : 'Costa Fortuna','204' : 'Costa Luminosa','117' : 'Costa Magica','160' : 'Costa Marina','30' : 'Costa Mediterranea','205' : 'Costa Pacifica','124' : 'Costa Romantica','179' : 'Costa Serena','32' : 'Costa Victoria','153' : 'Crown Princess','126' : 'Dawn Princess','38' : 'Diamond Princess','209' : 'Eclipse','169' : 'Emerald Princess','52' : 'Enchantment of the Seas','197' : 'Equinox','53' : 'Explorer of the Seas','136' : 'Freedom of the Seas','39' : 'Golden Princess','40' : 'Grand Princess','54' : 'Grandeur of the Seas','181' : 'Independence of the Seas','93' : 'Infinity','133' : 'Island Escape','125' : 'Island Princess','55' : 'Jewel of the Seas','71' : 'Legend of the Seas','168' : 'Liberty of the Seas','112' : 'MSC Armonia','201' : 'MSC Fantasia','114' : 'MSC Lirica','202' : 'MSC Magnifica','111' : 'MSC Melody','170' : 'MSC Musica','113' : 'MSC Opera','183' : 'MSC Orchestra','194' : 'MSC Poesia','115' : 'MSC Sinfonia','203' : 'MSC Splendida','72' : 'Majesty of the Seas','74' : 'Mariner of the Seas','94' : 'Mercury','95' : 'Millennium','145' : 'Monarch of the Seas','135' : 'Navigator of the Seas','27' : 'Norwegian Dawn','210' : 'Norwegian Epic','178' : 'Norwegian Gem','186' : 'Norwegian Jade','5' : 'Norwegian Jewel','103' : 'Norwegian Majesty','172' : 'Norwegian Pearl','127' : 'Norwegian Spirit','101' : 'Norwegian Star','99' : 'Norwegian Sun','200' : 'Oasis of the Seas','207' : 'Ocean Princess','15' : 'Ocean Village','165' : 'Ocean Village Two','13' : 'Oceana','14' : 'Oriana','162' : 'Pacific Princess','24' : 'Pride of America','208' : 'Queen Elizabeth','4' : 'Queen Mary 2','164' : 'Queen Victoria','134' : 'Radiance of the Seas','137' : 'Rhapsody of the Seas','44' : 'Royal Princess','192' : 'Ruby Princess','41' : 'Sapphire Princess','47' : 'Sea Princess','142' : 'Serenade of the Seas','196' : 'Solstice','147' : 'Splendour of the Seas','42' : 'Star Princess','96' : 'Summit','46' : 'Sun Princess','45' : 'Tahitian Princess','182' : 'Ventura','143' : 'Vision of the Seas','129' : 'Voyager of the Seas','191' : 'Xpedition'}; cruiseships['32'] = { '' : ' ', '189' : 'Azamara Journey','190' : 'Azamara Quest'}; cruiseships['9'] = { '' : ' ', '89' : 'Century','90' : 'Constellation','209' : 'Eclipse','197' : 'Equinox','93' : 'Infinity','94' : 'Mercury','95' : 'Millennium','196' : 'Solstice','96' : 'Summit','191' : 'Xpedition'}; cruiseships['10'] = { '' : ' ', '36' : 'Costa Allegra','31' : 'Costa Atlantica','33' : 'Costa Classica','159' : 'Costa Concordia','213' : 'Costa Deliziosa','34' : 'Costa Europa','29' : 'Costa Fortuna','204' : 'Costa Luminosa','117' : 'Costa Magica','160' : 'Costa Marina','30' : 'Costa Mediterranea','205' : 'Costa Pacifica','124' : 'Costa Romantica','179' : 'Costa Serena','32' : 'Costa Victoria'}; cruiseships['4'] = { '' : ' ', '208' : 'Queen Elizabeth','4' : 'Queen Mary 2','164' : 'Queen Victoria'}; cruiseships['3'] = { '' : ' ', '173' : 'Balmoral','8' : 'Black Prince','9' : 'Black Watch','151' : 'Boudicca','2' : 'Braemar'}; cruiseships['23'] = { '' : ' ', '133' : 'Island Escape'}; cruiseships['21'] = { '' : ' ', '112' : 'MSC Armonia','201' : 'MSC Fantasia','114' : 'MSC Lirica','202' : 'MSC Magnifica','111' : 'MSC Melody','170' : 'MSC Musica','113' : 'MSC Opera','183' : 'MSC Orchestra','194' : 'MSC Poesia','115' : 'MSC Sinfonia','203' : 'MSC Splendida'}; cruiseships['7'] = { '' : ' ', '27' : 'Norwegian Dawn','210' : 'Norwegian Epic','178' : 'Norwegian Gem','186' : 'Norwegian Jade','5' : 'Norwegian Jewel','103' : 'Norwegian Majesty','172' : 'Norwegian Pearl','127' : 'Norwegian Spirit','101' : 'Norwegian Star','99' : 'Norwegian Sun','24' : 'Pride of America'}; cruiseships['13'] = { '' : ' ', '15' : 'Ocean Village','165' : 'Ocean Village Two'}; cruiseships['5'] = { '' : ' ', '12' : 'Arcadia','11' : 'Artemis','6' : 'Aurora','206' : 'Azura','13' : 'Oceana','14' : 'Oriana','182' : 'Ventura'}; cruiseships['15'] = { '' : ' ', '121' : 'Caribbean Princess','37' : 'Coral Princess','153' : 'Crown Princess','126' : 'Dawn Princess','38' : 'Diamond Princess','169' : 'Emerald Princess','39' : 'Golden Princess','40' : 'Grand Princess','125' : 'Island Princess','207' : 'Ocean Princess','162' : 'Pacific Princess','44' : 'Royal Princess','192' : 'Ruby Princess','41' : 'Sapphire Princess','47' : 'Sea Princess','42' : 'Star Princess','46' : 'Sun Princess','45' : 'Tahitian Princess'}; cruiseships['17'] = { '' : ' ', '48' : 'Adventure of the Seas','212' : 'Allure of the Seas','49' : 'Brilliance of the Seas','52' : 'Enchantment of the Seas','53' : 'Explorer of the Seas','136' : 'Freedom of the Seas','54' : 'Grandeur of the Seas','181' : 'Independence of the Seas','55' : 'Jewel of the Seas','71' : 'Legend of the Seas','168' : 'Liberty of the Seas','72' : 'Majesty of the Seas','74' : 'Mariner of the Seas','145' : 'Monarch of the Seas','135' : 'Navigator of the Seas','200' : 'Oasis of the Seas','134' : 'Radiance of the Seas','137' : 'Rhapsody of the Seas','142' : 'Serenade of the Seas','147' : 'Splendour of the Seas','143' : 'Vision of the Seas','129' : 'Voyager of the Seas'}; /* Update Ship dropdown when Operator Changes */ function repopulate_ships(parent, child, anymessage) { var current_ship = $(child).get(0).value; $(child).removeOption(/./) $(child).addOption(cruiseships[$(parent).get(0).options[$(parent).get(0).selectedIndex].value], false); $(child).addOption('', anymessage); $(child).get(0).value = current_ship; } $(document).ready(function() { if ($("#cruise_ship_id").length > 0) { repopulate_ships('#cruise_line_id', '#cruise_ship_id', '<>'); } });