TODO add more init settings/variables here */
/* post xml parsing vars i.e. get(startscene);*/
var vars = {};
vars.idletime = 2;
vars.currScene = "main-scene";
vars.projectId = "687a443a8417d6edba1aee0e";
vars.fancamId = "687a443a8417d6edba1aee0e"; // backwards compatable
vars.APIPATH = "https://charlottefc.in3sixty-staging.com/api";
vars.THEMEPATH = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11";
vars.PUBLICPATH = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty-staging/public";
vars.PROJECTPATH = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty-staging/687a443a8417d6edba1aee0e";
vars.STARTSCENE = "main-scene";
vars.NOCACHE = "2740";
vars.RAND = "2497";
vars.visibility = "live";
vars.event = {"name":"Charlotte FC 1","shortname":"Charlotte FC 1","date":"2025-07-18T00:00:00.000Z","category":"Other","venue":"Bank of America Stadium","city":"Charlotte, North Carolina","country":"USA","featuring":"Charlotte FC","keywords":"","dateSearchable":"18/07/2025 07/18/2025 07-18-2025 2025-07-18 Friday 18th July 2025"};
vars.relatedProjects = [];
vars.relatedProjects[0] = { name:" RIG FAILURE - NO TAG ZONE", shortname:"NO TAG ZONE", url:"https://charlottefc.in3sixty-staging.com/no_tag_zone", date:localizeDateWithTime("2025-08-25T00:00:00+00:00",12), visibility:"live" };
vars.relatedProjects[1] = { name:"Charlotte FC Updates Demo CS Test", shortname:"Charlotte FC", url:"https://charlottefc.in3sixty-staging.com/demo_cs_test", date:localizeDateWithTime("2025-08-20T00:00:00+00:00",12), visibility:"comingsoon" };
vars.relatedProjects[2] = { name:"Charlotte FC Updates Demo", shortname:"Charlotte FC", url:"https://charlottefc.in3sixty-staging.com/demo_past", date:localizeDateWithTime("2025-08-09T00:00:00+00:00",12), visibility:"live" };
vars.relatedProjects[3] = { name:"FANCAM Theme updates", shortname:"Theme11", url:"https://charlottefc.in3sixty-staging.com/updates", date:localizeDateWithTime("2025-07-25T00:00:00+00:00",12), visibility:"live" };
vars.relatedProjects[4] = { name:"FANCAM Theme updates", shortname:"Theme11", url:"https://charlottefc.in3sixty-staging.com/migration", date:localizeDateWithTime("2025-07-25T00:00:00+00:00",12), visibility:"live" };
vars.relatedProjects[5] = { name:"Charlotte FC 1", shortname:"Charlotte FC 1", url:"https://charlottefc.in3sixty-staging.com/welcome-fc1", date:localizeDateWithTime("2025-07-18T00:00:00+00:00",12), visibility:"live" };
vars.query = {};
vars.query.sp = "false";
vars.query.s = "main-scene";
/* ---> TODO add more startup settings/variables here */
/* stored options */
vars.options = {};
vars.options.show_splash_onstart = false; // type=boolean
vars.options.show_splash_automatically_hours_before_next_game = decodeSingleQuoteSafeString('48');// type=string
vars.options.same_view_position_for_scenes = false; // type=boolean
vars.options.age_gate_enabled = false; // type=boolean
vars.options.more_fancams_enabled = true; // type=boolean
vars.options.opposite_view_enabled = true; // type=boolean
vars.options.find_seat_enabled = true; // type=boolean
vars.options.moments_enabled = true; // type=boolean
vars.options.share_view_enabled = true; // type=boolean
vars.options.ecard_enabled = true; // type=boolean
vars.options.video_booth_enabled = true; // type=boolean
vars.options.wally_comp_enabled = true; // type=boolean
vars.options.comp_disable_emails = false; // type=boolean
vars.options.favicon_image = decodeSingleQuoteSafeString('https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686bbc4eb14c3666097af87a/fav-icon-20250707131736.png');// type=favicon
vars.options.favicon_html = decodeSingleQuoteSafeString('');// type=string
vars.options.email_header_image = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686bbc4eb14c3666097af87a/email-header-20250707131900.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.txt_color = "0xffffff" ;// type=color
vars.options.a_links = "0x337ab7" ;// type=color
vars.options.a_links_hover = "0x23527c" ;// type=color
vars.options.btn_color = "0x0085cf" ;// type=color
vars.options.btn_txt_color = "0xffffff" ;// type=color
vars.options.btn_color_hover = "0x000000" ;// type=color
vars.options.btn_txt_color_hover = "0xffffff" ;// type=color
vars.options.btn_txt_color_disabled = "0xffffff" ;// type=color
vars.options.btn_color_disabled = "0xff0000" ;// type=color
vars.options.btn_close_color = "0xa9a9a9" ;// type=color
vars.options.btn_close_color_hover = "0x000000" ;// type=color
vars.options.btn_close_bg_color = "0xffffff" ;// type=color
vars.options.modal_hr_or = "0xa7a7a7" ;// type=color
vars.options.glassmorph_blur_enabled = false; // type=boolean
vars.options.popup_bg_color = "0xffffff" ;// type=color
vars.options.popup_bg_color_alpha = decodeSingleQuoteSafeString('0.5');// type=string
vars.options.popup_border_color = "0xffffff" ;// type=color
vars.options.popup_border_thickness = decodeSingleQuoteSafeString('0');// type=string
vars.options.popup_border_radius = decodeSingleQuoteSafeString('10');// type=string
vars.options.backdrop_color = "0x000000" ;// type=color
vars.options.main_font_family = decodeSingleQuoteSafeString('Montserrat');// type=string
vars.options.main_font_url = decodeSingleQuoteSafeString('https://fonts.googleapis.com/css2?family=Montserrat:wght@700');// type=string
vars.options.second_font_family = decodeSingleQuoteSafeString('Montserrat');// type=string
vars.options.second_font_url = decodeSingleQuoteSafeString('https://fonts.googleapis.com/css2?family=Montserrat:wght@700');// type=string
vars.options.title_text_css = decodeSingleQuoteSafeString('font-size:20px; text-transform:uppercase; font-weight:700; text-align:center;');// type=string
vars.options.title_text_mobi_css = decodeSingleQuoteSafeString('font-size:30px; text-transform:uppercase; font-weight:700; text-align:center;');// type=string
vars.options.p_txt_css = decodeSingleQuoteSafeString('font-size:14px;');// type=string
vars.options.p_txt_mobi_css = decodeSingleQuoteSafeString('font-size:24px;');// type=string
vars.options.menu_buttons_mobi_css = decodeSingleQuoteSafeString('font-weight:500; font-size:22px; text-transform:uppercase; letter-spacing:0.5px;');// type=string
vars.options.menu_buttons_css = decodeSingleQuoteSafeString('font-weight:500; font-size:12px; text-transform:uppercase; letter-spacing:0.5px;');// type=string
vars.options.main_custom_font_enabled = true; // type=boolean
vars.options.main_custom_font_family_name = decodeSingleQuoteSafeString('MLSTifo_bold');// type=string
vars.options.main_custom_font_eot_url = decodeSingleQuoteSafeString('https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_bold-20250716080920.eot');// type=string
vars.options.main_custom_font_eot_file = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_bold-20250716080920.eot"; // resolved server-side to avoid placeholder fetch
vars.options.main_custom_font_woff2_url = decodeSingleQuoteSafeString('https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_bold-20250716081523.woff2');// type=string
vars.options.main_custom_font_woff2_file = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_bold-20250716081523.woff2"; // resolved server-side to avoid placeholder fetch
vars.options.main_custom_font_ttf_url = decodeSingleQuoteSafeString('https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_bold-20250716081001.ttf');// type=string
vars.options.main_custom_font_ttf_file = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_bold-20250716081001.ttf"; // resolved server-side to avoid placeholder fetch
vars.options.sec_custom_font_enabled = true; // type=boolean
vars.options.sec_custom_font_family_name = decodeSingleQuoteSafeString('MLSTifo_regular ');// type=string
vars.options.sec_custom_font_eot_url = decodeSingleQuoteSafeString('https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_regular-20250716081609.eot');// type=string
vars.options.sec_custom_font_eot_file = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_regular-20250716081609.eot"; // resolved server-side to avoid placeholder fetch
vars.options.sec_custom_font_woff2_url = decodeSingleQuoteSafeString('https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_regular-20250716081629.woff2');// type=string
vars.options.sec_custom_font_woff2_file = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/MLSTifo_regular-20250716081629.woff2"; // resolved server-side to avoid placeholder fetch
vars.options.sec_custom_font_ttf_url = decodeSingleQuoteSafeString('https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/687a443a8417d6edba1aee0e/MLSTifo_regular-20250725134416.ttf');// type=string
vars.options.sec_custom_font_ttf_file = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/687a443a8417d6edba1aee0e/MLSTifo_regular-20250725134416.ttf"; // resolved server-side to avoid placeholder fetch
vars.options.loading_img = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686bbc4eb14c3666097af87a/site-loader-20240430145804-20250707122822.gif?v="; // resolved server-side to avoid placeholder fetch
vars.options.loading_bg_color = "0x000000" ;// type=color
vars.options.display_coming_soon_bg_color = false; // type=boolean
vars.options.coming_soon_bg_color = "0xffffff" ;// type=color
vars.options.cs_single_signup_no_popup_style = false; // type=boolean
vars.options.display_coming_soon_background_image = false; // type=boolean
vars.options.coming_soon_bg_img = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/cs_bg_img.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.display_coming_soon_logo_image = true; // type=boolean
vars.options.coming_soon_logo = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/welcome-header-20250716190333.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.display_coming_soon_footer_image = true; // type=boolean
vars.options.coming_soon_footer = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/welcome-header-20250717085522.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.coming_soon_header_txt_color = "" ;// type=color
vars.options.coming_soon_fc_name_txt_color = "" ;// type=color
vars.options.coming_soon_fc_date_txt_color = "" ;// type=color
vars.options.coming_soon_notify_txt_color = "" ;// type=color
vars.options.coming_soon_signup_btn_color = "" ;// type=color
vars.options.coming_soon_signup_btn_text_color = "" ;// type=color
vars.options.coming_soon_signup_btn_color_hover = "" ;// type=color
vars.options.cs_view_more_fc_txt_color = "" ;// type=color
vars.options.cs_view_more_fc_txt_color_hover = "" ;// type=color
vars.options.cs_footer_txt_color = "" ;// type=color
vars.options.coming_soon_close_btn = "" ;// type=color
vars.options.coming_soon_close_btn_hover = "" ;// type=color
vars.options.coming_soon_close_btn_bg = "" ;// type=color
vars.options.live_header_txt_color = "" ;// type=color
vars.options.live_fc_name_txt_color = "" ;// type=color
vars.options.live_fc_date_txt_color = "" ;// type=color
vars.options.show_relatedPopup_onstartup = false; // type=boolean
vars.options.show_relatedPopup = false; // type=boolean
vars.options.more_fc_signup_btn_color = "" ;// type=color
vars.options.more_fc_signup_btn_text_color = "" ;// type=color
vars.options.more_fc_signup_btn_color_hover = "" ;// type=color
vars.options.splash_btn_color = "" ;// type=color
vars.options.splash_btn_color_hover = "" ;// type=color
vars.options.splash_btn_txt = "" ;// type=color
vars.options.splash_btn_txt_hover = "" ;// type=color
vars.options.splash_active_color = "" ;// type=color
vars.options.splash_btn_cs_color = "" ;// type=color
vars.options.splash_btn_cs_txt = "" ;// type=color
vars.options.header_bg_color = "" ;// type=color
vars.options.header_graphic_enabled = false; // type=boolean
vars.options.header_graphic_align = decodeSingleQuoteSafeString('');// type=string
vars.options.header_graphic_img = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/header_img.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.header_icon_color = "" ;// type=color
vars.options.brand_logo_enabled = true; // type=boolean
vars.options.brand_website_link = decodeSingleQuoteSafeString('');// type=string
vars.options.brand_logo_img = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686bbc4eb14c3666097af87a/logo-20230222100450-20250707123029.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.brand_logo_img_mobile_size = decodeSingleQuoteSafeString('0.5');// type=string
vars.options.brand_logo_img_size = decodeSingleQuoteSafeString('0.5');// type=string
vars.options.secondary_logo_enabled = true; // type=boolean
vars.options.secondary_website_link = decodeSingleQuoteSafeString('');// type=string
vars.options.secondary_logo_image_mobile = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686be01eb14c3666097cc8d8/ticketmaster-logo-scaled-20250711134608.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.sec_logo_img_mobile_size = decodeSingleQuoteSafeString('0.25');// type=string
vars.options.sec_logo_img_mobile_x = decodeSingleQuoteSafeString('20');// type=string
vars.options.secondary_logo_image = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686bbc4eb14c3666097af87a/ticketmaster-logo-scaled-20250707123452.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.sec_logo_img_size = decodeSingleQuoteSafeString('0.25');// type=string
vars.options.sec_logo_img_x = decodeSingleQuoteSafeString('20');// type=string
vars.options.footer_tag_color = "" ;// type=color
vars.options.footer_tag_color_hover = "" ;// type=color
vars.options.footer_btn_bg_color = "" ;// type=color
vars.options.footer_btn_bg_color_hover = "" ;// type=color
vars.options.footer_txt_icon_color = "" ;// type=color
vars.options.footer_txt_icon_bg = "" ;// type=color
vars.options.html_date_id_enabled = true; // type=boolean
vars.options.header_title_mobi_css = decodeSingleQuoteSafeString('text-align:left; font-weight:700; font-size:20px; text-transform:uppercase; letter-spacing:0.5px; color:#ffffff;');// type=string
vars.options.header_title_css = decodeSingleQuoteSafeString('font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:0.5px; color:#ffffff;');// type=string
vars.options.team_date_id_enabled = false; // type=boolean
vars.options.team_date_id_img = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/date_or_team_identifier.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.team_date_id_img_mobile_size = decodeSingleQuoteSafeString('0.8');// type=string
vars.options.team_date_id_img_size = decodeSingleQuoteSafeString('0.4');// type=string
vars.options.team_date_id_img_mobile_x = decodeSingleQuoteSafeString('45');// type=string
vars.options.team_date_id_img_x = decodeSingleQuoteSafeString('75');// type=string
vars.options.client_sponsor_banner_ad_img = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686bbc4eb14c3666097af87a/2025_TM_FancamDigitalAd_300x450-20250402195203-20250707131656.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.client_sponsor_banner_link = decodeSingleQuoteSafeString('https://www.ticketmaster.com/charlotte-fc-tickets/artist/2765955?wt.mc_id=MLS_TEAM_CHA_FANCAM_TICKET_AD&utm_source=charlottefootballclub.com&utm_medium=client&utm_campaign=MLS_TEAM_CHA&utm_content=FANCAM_TICKET_AD');// type=string
vars.options.client_sponsor_banner_xml_call = decodeSingleQuoteSafeString('showCompPopup();');// type=string
vars.options.menu_txt_color = "" ;// type=color
vars.options.menu_txt_color_hover = "" ;// type=color
vars.options.menu_btn_color = "" ;// type=color
vars.options.menu_btn_color_hover = "" ;// type=color
vars.options.menu_scroll_bg = "0x020202" ;// type=color
vars.options.menu_divider_color = "" ;// type=color
vars.options.age_gate_verified_yes_no = true; // type=boolean
vars.options.age_gate_age = decodeSingleQuoteSafeString('21');// type=string
vars.options.age_gate_btn_no_call = decodeSingleQuoteSafeString('https://fancam.com/find-a-fancam/');// type=string
vars.options.age_gate_header_txt_color = "" ;// type=color
vars.options.age_gate_txt_color = "" ;// type=color
vars.options.age_gate_btn_text = "" ;// type=color
vars.options.age_gate_btn_color = "" ;// type=color
vars.options.age_gate_btn_color_hover = "" ;// type=color
vars.options.age_gate_btn_text_color_hover = "" ;// type=color
vars.options.age_gate_bg = "" ;// type=color
vars.options.add_popup_enabled = true; // type=boolean
vars.options.add_popup_open = true; // type=boolean
vars.options.btn_close_adpopup_x_mobi = decodeSingleQuoteSafeString('-40');// type=string
vars.options.btn_close_adpopup_y_mobi = decodeSingleQuoteSafeString('-40');// type=string
vars.options.btn_close_adpopup_x = decodeSingleQuoteSafeString('-20');// type=string
vars.options.btn_close_adpopup_y = decodeSingleQuoteSafeString('-20');// type=string
vars.options.popup_advert_img = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686bbc4eb14c3666097af87a/FindMintyTicketmasterFancamSweepstakes-20250707132830.jpg?v="; // resolved server-side to avoid placeholder fetch
vars.options.advert_popup_banner_mobile_scale = decodeSingleQuoteSafeString('0.8');// type=string
vars.options.advert_popup_banner_scale = decodeSingleQuoteSafeString('0.5');// type=string
vars.options.popup_banner_xml_call = decodeSingleQuoteSafeString('closeAdvertPopup();');// type=string
vars.options.btn_close_adpopup = "" ;// type=color
vars.options.btn_close_adpopup_hover = "" ;// type=color
vars.options.btn_close_adpopup_bg = "" ;// type=color
vars.options.tagging_enabled = true; // type=boolean
vars.options.tagging_disable_emails = false; // type=boolean
vars.options.sharetagtofacebook = true; // type=boolean
vars.options.multitags_enabled = false; // type=boolean
vars.options.neutral_tag_image = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/neutral.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.team1_tag_enabled = false; // type=boolean
vars.options.team1_tag_image = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/team_1.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.team2_tag_enabled = false; // type=boolean
vars.options.team2_tag_image = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/team_2.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.tagcounter_enabled = false; // type=boolean
vars.options.tagcounter_min = decodeSingleQuoteSafeString('200');// type=string
vars.options.tagging_disabled_scenes = decodeSingleQuoteSafeString('');// type=string
vars.options.seperate_tags_per_scene = true; // type=boolean
vars.options.place_your_face_tag_size = decodeSingleQuoteSafeString('5');// type=string
vars.options.tags_load_mode = decodeSingleQuoteSafeString('mixed');// type=string
vars.options.tag_sensitivity = decodeSingleQuoteSafeString('5');// type=string
vars.options.tag_min_update_time = decodeSingleQuoteSafeString('2000');// type=string
vars.options.tags_max = decodeSingleQuoteSafeString('50');// type=string
vars.options.tags_max_fov = decodeSingleQuoteSafeString('50');// type=string
vars.options.tags_fov_distance = decodeSingleQuoteSafeString('5');// type=string
vars.options.tags_persistent = decodeSingleQuoteSafeString('50');// type=string
vars.options.tags_per_update = decodeSingleQuoteSafeString('25');// type=string
vars.options.ecard_frame = "https://in3sixty-project-media.s3.us-east-1.amazonaws.com/in3sixty-staging/686bbc4eb14c3666097af87a/ecard-20240430145820-20250707132138.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.ecard_popup_bg = "" ;// type=color
vars.options.ecard_popup_close = "" ;// type=color
vars.options.ecard_popup_close_hover = "" ;// type=color
vars.options.ecard_popup_close_bg = "" ;// type=color
vars.options.ecard_header_txt_color = "" ;// type=color
vars.options.ecard_txt_color = "" ;// type=color
vars.options.ecard_confirm_btn_txt_color = "" ;// type=color
vars.options.ecard_confirm_btn_txt_color_hover = "" ;// type=color
vars.options.ecard_confirm_btn_color = "" ;// type=color
vars.options.ecard_confirm_btn_color_hover = "" ;// type=color
vars.options.ecard_icon_color = "" ;// type=color
vars.options.ecard_control_btn_color = "" ;// type=color
vars.options.comp_popup_visable = false; // type=boolean
vars.options.btn_close_comp_popup_x_mobi = decodeSingleQuoteSafeString('-40');// type=string
vars.options.btn_close_comp_popup_y_mobi = decodeSingleQuoteSafeString('-40');// type=string
vars.options.btn_close_comp_popup_x = decodeSingleQuoteSafeString('-20');// type=string
vars.options.btn_close_comp_popup_y = decodeSingleQuoteSafeString('-20');// type=string
vars.options.comp_popup = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/comp_popup.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.comp_popup_banner_mobile_scale = decodeSingleQuoteSafeString('0.5');// type=string
vars.options.comp_popup_banner_scale = decodeSingleQuoteSafeString('0.5');// type=string
vars.options.wally_comp_counter_enabled = false; // type=boolean
vars.options.wally_comp_counter_bg = "" ;// type=color
vars.options.comp_age_gate_enabled = true; // type=boolean
vars.options.comp_age_gate_age = decodeSingleQuoteSafeString('21');// type=string
vars.options.tel_number_enabled = true; // type=boolean
vars.options.client_promotions_enabled = true; // type=boolean
vars.options.address_enabled = true; // type=boolean
vars.options.address_lines_enabled = true; // type=boolean
vars.options.state_enabled = false; // type=boolean
vars.options.city_enabled = false; // type=boolean
vars.options.zip_code_enabled = true; // type=boolean
vars.options.address_country_enabled = true; // type=boolean
vars.options.comp_client_linked_out = false; // type=boolean
vars.options.comp_client_link_url = decodeSingleQuoteSafeString('');// type=string
vars.options.comp_hidden_object = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/comp_object.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.comp_hotspot_1_enabled = true; // type=boolean
vars.options.comp_hotspot_1_ath = decodeSingleQuoteSafeString('-108.48');// type=string
vars.options.comp_hotspot_1_atv = decodeSingleQuoteSafeString('-2.02');// type=string
vars.options.comp_hotspot_1_width = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_1_height = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_1_rotate = decodeSingleQuoteSafeString('0');// type=string
vars.options.comp_hotspot_1_crop = decodeSingleQuoteSafeString('0|0|400|400');// type=string
vars.options.comp_hotspot_2_enabled = true; // type=boolean
vars.options.comp_hotspot_2_ath = decodeSingleQuoteSafeString('-128.48');// type=string
vars.options.comp_hotspot_2_atv = decodeSingleQuoteSafeString('-2.02');// type=string
vars.options.comp_hotspot_2_width = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_2_height = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_2_rotate = decodeSingleQuoteSafeString('0');// type=string
vars.options.comp_hotspot_2_crop = decodeSingleQuoteSafeString('0|0|400|400');// type=string
vars.options.comp_hotspot_3_enabled = true; // type=boolean
vars.options.comp_hotspot_3_ath = decodeSingleQuoteSafeString('-118.48');// type=string
vars.options.comp_hotspot_3_atv = decodeSingleQuoteSafeString('-2.02');// type=string
vars.options.comp_hotspot_3_width = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_3_height = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_3_rotate = decodeSingleQuoteSafeString('0');// type=string
vars.options.comp_hotspot_3_crop = decodeSingleQuoteSafeString('0|0|400|400');// type=string
vars.options.comp_hotspot_4_enabled = false; // type=boolean
vars.options.comp_hotspot_4_ath = decodeSingleQuoteSafeString('-100.48');// type=string
vars.options.comp_hotspot_4_atv = decodeSingleQuoteSafeString('-2.02');// type=string
vars.options.comp_hotspot_4_width = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_4_height = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_4_rotate = decodeSingleQuoteSafeString('0');// type=string
vars.options.comp_hotspot_4_crop = decodeSingleQuoteSafeString('0|0|400|400');// type=string
vars.options.comp_hotspot_5_enabled = false; // type=boolean
vars.options.comp_hotspot_5_ath = decodeSingleQuoteSafeString('-100.48');// type=string
vars.options.comp_hotspot_5_atv = decodeSingleQuoteSafeString('-2.02');// type=string
vars.options.comp_hotspot_5_width = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_5_height = decodeSingleQuoteSafeString('5');// type=string
vars.options.comp_hotspot_5_rotate = decodeSingleQuoteSafeString('0');// type=string
vars.options.comp_hotspot_5_crop = decodeSingleQuoteSafeString('0|0|400|400');// type=string
vars.options.comp_popup_bg = "" ;// type=color
vars.options.btn_close_comp_popup = "" ;// type=color
vars.options.btn_close_comp_popup_hover = "" ;// type=color
vars.options.btn_close_comp_popup_bg = "" ;// type=color
vars.options.comp_header_txt_color = "" ;// type=color
vars.options.comp_txt_color = "" ;// type=color
vars.options.comp_legal_txt_color = "" ;// type=color
vars.options.comp_legal_links_color = "" ;// type=color
vars.options.comp_submit_btn_color = "" ;// type=color
vars.options.comp_submit_btn_text = "" ;// type=color
vars.options.video_popup_bg = "" ;// type=color
vars.options.btn_close_video_popup = "" ;// type=color
vars.options.btn_close_video_popup_hover = "" ;// type=color
vars.options.btn_close_video_popup_bg = "" ;// type=color
vars.options.video_header_txt_color = "" ;// type=color
vars.options.video_txt_color = "" ;// type=color
vars.options.video1_enabled = false; // type=boolean
vars.options.video_url_1 = decodeSingleQuoteSafeString('iNSt7lqYR4g');// type=string
vars.options.video_image_1 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/videoThumbnail_1.jpg?v="; // resolved server-side to avoid placeholder fetch
vars.options.video2_enabled = false; // type=boolean
vars.options.video_url_2 = decodeSingleQuoteSafeString('42oLZhRq3nA');// type=string
vars.options.video_image_2 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/videoThumbnail_2.jpg?v="; // resolved server-side to avoid placeholder fetch
vars.options.video3_enabled = false; // type=boolean
vars.options.video_url_3 = decodeSingleQuoteSafeString('42oLZhRq3nA');// type=string
vars.options.video_image_3 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/videoThumbnail_3.jpg?v="; // resolved server-side to avoid placeholder fetch
vars.options.video4_enabled = false; // type=boolean
vars.options.video_url_4 = decodeSingleQuoteSafeString('42oLZhRq3nA');// type=string
vars.options.video_image_4 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/videoThumbnail_4.jpg?v="; // resolved server-side to avoid placeholder fetch
vars.options.video5_enabled = false; // type=boolean
vars.options.video_url_5 = decodeSingleQuoteSafeString('42oLZhRq3nA');// type=string
vars.options.video_image_5 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/videoThumbnail_5.jpg?v="; // resolved server-side to avoid placeholder fetch
vars.options.tutorial_zoom_image = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/tutorial_zoom.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.tutorial_move_image = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/tutorial_move.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.tutorial_mobi_image = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/tutorial_mobile.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.login_facebook_enabled = true; // type=boolean
vars.options.login_email_enabled = true; // type=boolean
vars.options.login_share_enabled = false; // type=boolean
vars.options.extra_img_1 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/blank.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.extra_img_2 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/blank.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.extra_img_3 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/blank.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.extra_img_4 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/blank.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.extra_img_5 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/blank.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.extra_img_6 = "https://s3.amazonaws.com/in3sixty-themes/in3sixty-staging/basic-fancam-11/assets/img/blank.png?v="; // resolved server-side to avoid placeholder fetch
vars.options.extra_file_1 = ""; // resolved server-side to avoid placeholder fetch
vars.options.extra_file_2 = ""; // resolved server-side to avoid placeholder fetch
vars.options.extra_file_3 = ""; // resolved server-side to avoid placeholder fetch
vars.options.custom_actions_xml = decodeSingleQuoteSafeString('');// type=string
vars.options.on_scene_loaded_custom_xml = decodeSingleQuoteSafeString('');// type=string
vars.options.on_scene_loaded_end_custom_xml = decodeSingleQuoteSafeString('');// type=string
vars.options.on_startup_custom_xml = decodeSingleQuoteSafeString('');// type=string
vars.options.on_startup_end_custom_xml = decodeSingleQuoteSafeString('');// type=string
vars.options.on_interface_loaded_xml = decodeSingleQuoteSafeString('');// type=string
vars.options.on_window_resized_xml = decodeSingleQuoteSafeString('');// type=string
vars.options.head_html = decodeSingleQuoteSafeString('');// type=string
vars.options.body_html = decodeSingleQuoteSafeString('');// type=string
vars.options.footer_html = decodeSingleQuoteSafeString('');// type=string
/* in an application browser (Facebook/Twitter) */
/*
* i18n (international) strings for krpano.
*/
vars.i18n = {};
vars.i18n.en = {};
vars.i18n.en.site_title = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.site_description = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.share_image = ""; // resolved server-side to avoid placeholder fetch; // type=image unescaped
vars.i18n.en.site_title_fb = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.site_description_fb = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.site_title_twtr = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.site_description_twtr = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.twtr_tweet_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.twtr_tweet_hashtags = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.twtr_handle = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.share_title_email = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.share_description_email = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_subscription_from_name = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_subscription_subject = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_subscription_title = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_subscription_body = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_competition_body = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_verification_body = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_tag_subject = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_tag_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.email_tag_body = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.overlay_default_image = ""; // resolved server-side to avoid placeholder fetch; // type=image unescaped
vars.i18n.en.overlay_screen_image = ""; // resolved server-side to avoid placeholder fetch; // type=image unescaped
vars.i18n.en.overlay_sview_image = ""; // resolved server-side to avoid placeholder fetch; // type=image unescaped
vars.i18n.en.overlay_tview_image = ""; // resolved server-side to avoid placeholder fetch; // type=image unescaped
vars.i18n.en.overlay_ecard_view_image = ""; // resolved server-side to avoid placeholder fetch; // type=image unescaped
vars.i18n.en.string_live_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_cs_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_cs_notify_subtitle = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_cs_signup_success = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.signup_optin_promotions_enabled = ; // type=boolean
vars.i18n.en.string_signup_optin_promotions = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.signup_optin_promotions_required = ; // type=boolean
vars.i18n.en.signup_optin_promotions_checked = ; // type=boolean
vars.i18n.en.signup_optin_promotions_sponsor_enabled = ; // type=boolean
vars.i18n.en.string_signup_optin_promotions_sponsor = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.signup_optin_promotions_sponsor_required = ; // type=boolean
vars.i18n.en.signup_optin_promotions_sponsor_checked = ; // type=boolean
vars.i18n.en.signup_email_age_gate_enabled = ; // type=boolean
vars.i18n.en.string_signup_email_age_gate = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.signup_email_age_gate_age = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_cs_more_fancams_enabled = ; // type=boolean
vars.i18n.en.string_cs_more_fancams = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_cs_more_fcs_subtitle = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_cs_return_signup = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_get_notified_button = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.signup_captcha_enabled = ; // type=boolean
vars.i18n.en.login_terms_of_use_url = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.login_privacy_policy_url = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.custom_terms_of_service_enabled = ; // type=boolean
vars.i18n.en.string_terms_of_service = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_cs_footer_text_enabled = ; // type=boolean
vars.i18n.en.string_cs_footer_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.more_fc_title = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.opposite_view_title = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.find_your_seat_title = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.moments_title = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_ecard = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_videobooth = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_termsandconditions = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_removemytag = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_tagyourself_button = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_tagyourself_button_mobile = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_showtags = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_hidetags = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_tutorial = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_date_format = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_age_gate_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_age_gate_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_age_gate_btn_yes = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_age_gate_btn_no = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_age_gate_submit = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_selectatag = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_tag = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_select = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_no_tag_zone = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_failed_tagging_message = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_resend_email = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_sending_email = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_sent_email = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_error_sending_email = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_verify_email_address = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_ecard_shared = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_ecard_instruct = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_ecard_confirm = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_counter = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_age_gate_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_age_gate_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_enter_details = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_enter_details_txt = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_optin_comp = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.comp_terms_cond_pdf = ""; // resolved server-side to avoid placeholder fetch; // type=image unescaped
vars.i18n.en.string_comp_optin_more = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_address_header_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_submit_next = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_found_first_hotspot_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_found_first_hotspot_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_found_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_found_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_already_found_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_already_found_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_found_all_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_found_all_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_completed_on_return_header = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_comp_message_completed_on_return_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.title_video1 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.subtitle_video1 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.title_video2 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.subtitle_video2 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.title_video3 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.subtitle_video3 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.title_video4 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.subtitle_video4 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.title_video5 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.subtitle_video5 = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_viewthetutorial = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_tutorial_subtitle = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_ok = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_nothanks = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_zoomusing = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_moveusing = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_zoomandexplore = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_trackpadscroll = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_mousetoscroll = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_keyboardkeys = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_spread = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_tapanddrag = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_pinch = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_orthesecontrols = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_trackpressdrag = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_mousepressdrag = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_keyboardarrowkeys = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_tagyourselfusingthis = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_moreoptionshere = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_sharewhatyoufind = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_skip_tutorial = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_enjoythefancam = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_sharethisview = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_shareyourtag = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_enter_your_email = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.string_warning_enter_text = decodeSingleQuoteSafeString(''); // type=string
vars.i18n.en.error = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_comp_warning_text = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_cs_header = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_cs_notify_subtitle = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_cs_upcoming_subtitle = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_live_header = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_more_fancams_enabled = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_more_fancams = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_cs_more_fcs_subtitle = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_return_signup = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.splash_screen_coming_soon_texts_enabled = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_notify = decodeSingleQuoteSafeString(''); // type=
vars.i18n.en.string_splash_success = decodeSingleQuoteSafeString(''); // type=
vars.languages = [];
vars.languages[0] = { code:"en", name:"en" };
vars.lang = 'en';
/* LANGUAGE SWITCHER */
i18next
.init({
resources: {'en' : { 'translation' : vars.i18n['en'] }},
lng: 'en',
fallbackLng: 'en'
}, function(err, t) {
//console.log('localising');
localize = locI18next.init(i18next);
localize('[data-i18n]');
});
/* language switching */
function fc_changelang(lang, oncompleteaction){
//console.log('base: language set to',lang);
if ((lang === undefined )){
console.log('fc_changelang: undefined language "'+ lang + '"');
return;
}
function _updateCurrentOptions(opts){
}
function _replaceQueryParam (param, newval, search) {
var regex = new RegExp( '([?;&])' + param + '=[^&;]*([;&]?)');
var query = search.replace(regex, '$1' + param + '=' + newval + '$2');
if (!regex.test(query)){
query = (query.length > 2 ? (query + '&') : '?') + (newval ? param + '=' + newval : '');
}
return query;
}
function _fetchOptionsForLang(lng, callback){
try {
var x = new (XMLHttpRequest || ActiveXObject)('MSXML2.XMLHTTP.3.0');
x.open('GET', '/welcome-fc1/options.json' + '?lang=' + lng, 1);
x.withCredentials = true;
x.onreadystatechange = function () {
if(this.readyState > 3){
if (this.status == 200 && this.responseText){
// console.log('resources loaded for "%s"', lng );
callback(JSON.parse(this.responseText));
}
else{
console.log('error loading options for lang');
callback({});
}
}
};
x.send();
}
catch (e) {
console.log(e);
}
}
function _applyOptions(lang, opts){
//console.log('_applyOptions for lang', lang, opts );
i18next.changeLanguage(lang);
localize('[data-i18n]');
for(var key in opts){ // just override/store on top.
if (opts.hasOwnProperty(key)) {
//console.log(key, opts[key]);
// convert any colors from hash to hex format 0x000
vars.options[key] = (typeof opts[key] === 'string') ? opts[key].replace(/^#([0-9a-f]{6}|[0-9a-f]{3})$/i, '0x\$1') : opts[key];
}
}
if (pano()){ // and update krpano
pano().set('options', vars.options);
pano().set('lang', lang);
if (oncompleteaction !== undefined){
pano().call(oncompleteaction);
}
}
if (vars.languages && vars.languages.length > 1){
window.history.replaceState({}, // update the main url
/* don't change site title */null ,
window.location.pathname + _replaceQueryParam('lng',lang, window.location.search));
}
}
if (vars.i18n[lang] !== undefined){
//console.log('already have resources cached for', lang);
_applyOptions(lang, vars.i18n[lang]);
}
else{
// console.log('caching new resources for', lang);
_fetchOptionsForLang(lang, function(opts){
vars.i18n[lang] = opts; // cache
i18next.addResources(lang, 'translation'/* TODO set the ns somewhere else*/, opts); //add to i18next
_applyOptions(lang, opts);
});
}
}
fc_changelang('en');
/* END LANGUAGE SWTICHER */
/* panorama viewer */
embedpano({
html5:"prefer+webgl",
webglsettings: { "preserveDrawingBuffer":true }, // for screenshots
id:"panoSWFObject",
target:"panoDIV",
xml: "/welcome-fc1/pano.xml",
mobilescale:0.5,
initVars:initVars,
vars:vars,
onready:_onPanoReady,
onerror:_onPanoError
});
// for backwards compatibility
function fc_updateUrlQuery(atv, ath, fov, scene){
fc.updateUrlQuery(atv, ath, fov, scene);
}
/* TODO workaround, snapshot server not always receiving the events before 5 seconds,
send many */
var loaded_evt_count = 0;
var loaded_evt_max = 20;
var loaded_timer_interval = 1500;//ms
function _sendPanoLoadedEvt(){ // for the snapshot server..
var evt = document.createEvent("Event");
evt.initEvent("pano-loaded",true,true);
document.dispatchEvent(evt);
//console.log('sent pano loaded event');
loaded_evt_count++;
if (loaded_evt_count < loaded_evt_max){
setTimeout(_sendPanoLoadedEvt,loaded_timer_interval);
}
}
function fc_hideLoadingScreen(){
document.getElementById("panoDIV").style.visibility = 'visible';
document.body.style.background = 'none';
//console.log('loading screen hidden');
setTimeout(_sendPanoLoadedEvt,loaded_timer_interval);
}
function _onPanoError(message){
console.log('pano error');
_sendPanoLoadedEvt(); // nothing more to do..
}
function _onPanoReady(krpano){
//console.log('pano ready');
}
/*
TODO move these functions out to the js library. - END
*/