﻿/** 
* Google Maps Clinic Locator Configuration Obj
* @projectDescription 	Clinic Locator Configuration
*
* @author	Tom Newton tnewton@rosettamarketing.com
* @version	1.0b 
*
**/

/* Default Namespace
============================================ */
var Locator = Locator || {};

/* Configuration Obj 
============================================ */
Locator.Config = Locator.Config || {};

/* Locator Configuration Options
--------------------------------------------------- */
Locator.Config.AGNProduct = "NatrelleDE";
Locator.Config.enableOffer = false; // toggle free offer functinonality
Locator.Config.enableVoluma = false; // toggle display of the voluma available icon on the legend
Locator.Config.appSearchType = "postal"; //default search type ['postal' or 'city']
Locator.Config.resultLimit = 10; //Max results to output in results list
Locator.Config.defaultRadius = "15"; //default selected radius
Locator.Config.radiusValues = ["1", "5", "10", "15", "20", "25", "30", "35", "40"];
Locator.Config.defaultTreatmentType = "breast"; //Default selected treatment type [breast|facial]
Locator.Config.hideTreatmentTypes = true; //hide treatment type input selection
Locator.Config.showXmlPath = false; // show generated XML path in debugdiv?
Locator.Config.debugDivId = "debug"; // Id of page div to show debug output (xmlpath etc);
Locator.Config.useTestXml = false; // uses xml at path specified below incase server xml not working/testing
Locator.Config.enableTracking = true; // enables or disables site catalyst tracking
Locator.Config.testXmlPath = "/style%20library/ClinicLocator/includes/content/sample_clinic_data.xml?uniq=" + Math.round(Math.random() * 10000);
//Locator.Config.defaultCoords = [50.98609893339354,10.26123046875]; //default lat/lon and zoom level for blank map
//Locator.Config.defaultZoom = 6;
Locator.Config.bioPhotoMaxWidth = 120;
Locator.Config.bioPhotoMaxHeight = 210;
Locator.Config.resultMarkerWidth = 26;
Locator.Config.resultMarkerHeight = 25;

/* Country Specific Configuration Variables
============================================ */
/* new multi dim array format for multiple country support (GERMANY)
// positions: [0]Germany [1]Austria */
Locator.Config.defaultCoords = [[50.98609893339354,10.26123046875],[47.3537106195136,13.9306640625]]; //default lat/lon and zoom level for blank map
Locator.Config.defaultZoom = [6,6];
Locator.Config.googleBaseMapUrl = ["maps.google.de", "maps.google.at"];
Locator.Config.searchProperCountry = ["de", "at"]; //string to append to input text before geocoding to ensure proper country is searched
Locator.Config.pathToGoogleMaps = ["http://maps.google.de/maps", "http://maps.google.at/maps"]; //url 'get directions' form will post to.
Locator.Config.searchDomains = ["natrelle.de", "natrelle.at"]; // domain strings to search for in url for default country selection
Locator.Config.countryNames = ["Deutschland", "Österreich"];
Locator.Config.activeIndex = 0; // array index of active country (0 by default)
Locator.Config.searchSelectorLabel = "Land" // label text that will appear next to the country selection drop down box
/* Paths
============================================ */
Locator.Config.basePath = "/style%20library/ClinicLocator"; // absolute path to locator root
Locator.Config.yuiBase = Locator.Config.basePath + "/../scripts/libs/yui/"; //path to YUI library build (REQUIRES YUI LIBRARY VERSION 2.7.0)
Locator.Config.pathToResultMarkers = Locator.Config.basePath + "/images/markers/b_result_marker-";
Locator.Config.pathToResultTierMarkers = Locator.Config.basePath + "/images/markers/a_result_marker-";
Locator.Config.bioIconSrc = Locator.Config.basePath + "/images/icon-bio.gif";
Locator.Config.ctbcIconSrc = Locator.Config.basePath + "/images/icon-call.gif";
Locator.Config.offerIconSrc = Locator.Config.basePath + "/images/icon-offer.gif";
Locator.Config.volumaIconSrc = Locator.Config.basePath + "/images/icon-voluma.gif";
Locator.Config.resultmarkerExtension = ".gif";
Locator.Config.blankTierMarker = Locator.Config.basePath + "/images/markers/a_marker_blank.png";
Locator.Config.pathToMarkers = Locator.Config.basePath + "/images/markers/b_marker_";
Locator.Config.pathToTierMarkers = Locator.Config.basePath + "/images/markers/a_marker_";
Locator.Config.markerExtension = ".png";
Locator.Config.loadingButton = Locator.Config.basePath + "/images/btn_loading.gif";

Locator.Config.baseDataPath = "/_layouts/Natrelle/clinic_locator.ashx"; // Path to XML generated data file
Locator.Config.trackingDataPath = "/_layouts/Natrelle/clinic_tracking.ashx"; // Path to aspx used for clinic tracking
Locator.Config.photoDataPath = "/_layouts/Natrelle/clinic_photo.ashx"; // Returns Clinic Photo
Locator.Config.racbaseDataPath = "/_layouts/Natrelle/clinic_ctbc.ashx"; // Posts click to be contacted form data to

Locator.Config.bioHeadlinePath = "/style%20library/ClinicLocator/images/bio_headline.gif";
Locator.Config.racHeadlinePath = "/style%20library/ClinicLocator/images/rac_headline.gif"; // Headline paths to use in place of text for overlays
Locator.Config.defaultClinicPhoto = "/style%20library/ClinicLocator/images/noPhotoIcon.gif";

Locator.Config.citiesDataPath = "/style%20library/ClinicLocator/includes/content/uk_cities.js"; // path to autocomplete city data

Locator.Config.requiredFiles = [
	{ name: "validation", type: "js", fullpath: "/style%20library/ClinicLocator/includes/js/classes/validation.js", varName: "VALIDATION" },
	{ name: "map_controls", type: "js", fullpath: "/style%20library/ClinicLocator/includes/js/classes/rosettaMapControls.js", varName: "MAP_CONTROLS" },
	{ name: "clusterer", type: "js", fullpath: "/style%20library/ClinicLocator/includes/js/classes/Clusterer2.js", varName: "CLUSTERER" },
	{ name: "clinic", type: "js", fullpath: "/style%20library/ClinicLocator/includes/js/classes/Clinic.js", varName: "CLINIC" },
	{ name: "gparser", type: "js", fullpath: "/style%20library/ClinicLocator/includes/js/gCode_parser.js", varName: "GPARSER" },
	{ name: "racengine", type: "js", fullpath: "/style%20library/ClinicLocator/includes/js/racFormEngine.js", varName: "RACENGINE" }
];

/* Drop Div ID's
============================================ */
Locator.Config.overlayHeadlineDrop = "moHeadlineDrop"; //drop div id for placement of the overlay headline img

//Element IDs
Locator.Config.ctbcIconId = "ctbcId";

/* Labels
============================================ */
Locator.Config.resultPrevLabel = "Vorherige Ansicht";
Locator.Config.resultNextLabel = "Nächste Ansicht";
Locator.Config.distanceUnitOfMeasure = " km"; // Unit of measure label for distance
Locator.Config.labelDistance = "Entfernung: ";
Locator.Config.tabLabelOne = "Adresse"; // for map infowindow overlay tabs
Locator.Config.tabLabelTwo = "Behandlungen";
Locator.Config.tabLabelThree = "Angebot";
Locator.Config.optionNames = ["Breast Enhancement", "Facial Enhancement"]; //Treatment Type Labels on refine search form
Locator.Config.bioIconTitle = "More Clinic Information Available";
Locator.Config.ctbcIconTitle = "Request A Personal Call Back";
Locator.Config.offerIconTitle = "Free Consultation Offer Available";
Locator.Config.volumaIconTitle = "Voluma Available";
Locator.Config.getDirectionsLabel = "Wegbeschreibung anzeigen";
Locator.Config.startDirectionsLabel = "Startadresse:";

Locator.Config.treatmentsOfferedLabel = "Angebotene Behandlungen: ";
Locator.Config.noServicesDataText = "Für weitere Informationen zu Serviceleistungen, Produkten und Behandlungen, wenden Sie sich bitte direkt an DISPLAYNAME."; // default message to display on services tab if no service data found
Locator.Config.treatmentCallbackHeadline = "Einen termin für ein Beratungsgespräch vereinbaren";
Locator.Config.treatmentCallbackText = "Klicken Sie bitte auf den unten stehenden Link, um einen Termin für ein Beratungsgespräch zu vereinbaren.";

Locator.Config.offerAvailableLink = "Klicken Sie hier, um Ihren Gutschein für ein kostenloses Beratungsgespräch zu drucken.";
Locator.Config.offerAvailableText = "Klicken Sie bitte auf die unten stehende Schaltfläche, um einen Gutschein für ein kostenloses Beratungsgespräch bei diesem Facharzt zu erhalten.";
Locator.Config.offerUnavailableText = "Um einen Termin für Ihr erstes Beratungsgespräch zu vereinbaren, kontaktieren Sie bitte ";
Locator.Config.offerCallPanelText = "Klicken Sie bitte auf den unten stehenden Link, um einen Termin für ein Beratungsgespräch zu vereinbaren.";
Locator.Config.viewBioLinkLabel = "Informationen über die Klinik/Praxis";
Locator.Config.viewCTBCLabel = "Klicken Sie bitte auf den unten stehenden Link, um einen Termin für ein Beratungsgespräch zu vereinbaren.";
Locator.Config.viewCTBCLinkText = "Weiter &gt; &gt;";
Locator.Config.viewOfferLabel = "Angebot anzeigen";
Locator.Config.pcSearchInstructions = "Postleitzahl eingeben"; // instructional text to display in search input for postal code search
Locator.Config.citySearchInstructions = "Ort eingeben"; // instructional text to display in search input for city/text search
Locator.Config.noResultsHeadline = "Keine übereinstimmenden Ergebnisse."; //headline to display when no results found/search.
Locator.Config.errorHeadline = "Ein Fehler ist aufgetreten."; //headline to display for errors.
Locator.Config.msgBadPostal = "Google konnte die von Ihnen eingegebene Postleitzahl nicht finden. Bitte versuchen Sie Ihre Anfrage erneut."; //msg to display when google can't geocode the supplied postal code
Locator.Config.msgBadSearchText = "Google konnte den von Ihnen eingegebenen Ort nicht finden. Bitte versuchen Sie Ihre Anfrage erneut."; //msg to display when google can't geocode the supplied search text/city etc.
Locator.Config.msgNoResults = "Ihre Anfrage lieferte 0 Ergebnisse. Bitte verändern Sie Ihre Suchkriterien und versuchen Sie es erneut."; //msg to display when no results returned for location entered.
Locator.Config.alrtInvalidPostal = "Geben Sie bitte eine gültige Postleitzahl ein"; //alert text to display when postal code cannot be validated
Locator.Config.alrtInvalidSearchText = "Geben Sie bitte eine gültige Postleitzahl ein"; //alert text to display when search text is invalid/null
Locator.Config.listresultsHeadline = "Suchergebnisse nach einem Facharzt - "; //headine text to display before resultset info
Locator.Config.resultInfoSeperator = " von "; //text to display between current resultset info and total results (ex. 1-10 [of] 98);
Locator.Config.primarayContactLabel = "Ansprechpartner: ";
Locator.Config.telephonePrefixLabel = "Tel: ";
Locator.Config.noDisplayNameText = "NAME NOT FOUND";

// Map Control Labels
Locator.Config.mtControl = {};
Locator.Config.mtControl.labelNavText1 = "ergebnis - "; //text to display before the resultset in mapcontrol results navigation area
Locator.Config.mtControl.labelNavText2 = " von "; //text to display between resultset and total resutsl in mapcontrol rnav area
Locator.Config.mtControl.labelNext = "nächste";
Locator.Config.mtControl.labelPrevious = "vorherig";
Locator.Config.mtControl.labelMap = "Karte";
Locator.Config.mtControl.labelSatellite = "Satellit";
Locator.Config.mtControl.labelHybrid = "Hybrid";
Locator.Config.mtControl.labelTerrain = "Gelände";

// Request a Call Form Labels
Locator.Config.racForm = {};
Locator.Config.racForm.labelHeadline = "";
Locator.Config.racForm.labelIntroText = "Möchten Sie einen Termin bei DISPLAYNAME vereinbaren? Geben Sie weiter unten Ihre Kontaktdaten an und ein Mitarbeiter der Praxis wird sich mit Ihnen in Verbindung setzen, um einen passenden Termin mit Ihnen zu vereinbaren. ";
Locator.Config.racForm.labelFieldsRequired = "*Es sind alle Angaben erforderlich";
Locator.Config.racForm.labelFirstName = "Vorname:";
Locator.Config.racForm.labelLastName = "Nachname:";
Locator.Config.racForm.labelEmail = "E-Mail (bevorzugt):";
Locator.Config.racForm.labelConfirmEmail = "E-Mail bestätigen:";
Locator.Config.racForm.labelTelephone = "Telefon (bevorzugt):";
Locator.Config.racForm.labelContactTime = "Bevorzugte Zeit für die Kontaktaufnahme:";
Locator.Config.racForm.labelSelectTime = "Zeit auswählen";
Locator.Config.racForm.labelBornDate = "When were you born?:";
Locator.Config.racForm.labelSelectYear = "Select Year";
Locator.Config.racForm.labelGender = "Gender:";
Locator.Config.racForm.labelSelectGender = "Select Gender";
Locator.Config.racForm.labelOptionMale = "Male";
Locator.Config.racForm.labelOptionFemale = "Female";
Locator.Config.racForm.labelSurveyHeadline = "Ich bin an einer Beratung zu folgenden Themen interessiert (bitte alles Zutreffende ankreuzen)";
Locator.Config.racForm.labelSurveyFacial = "Gesichtsästhetik";
Locator.Config.racForm.labelSurveyBreast = "Brustvergrößerungen";
Locator.Config.racForm.labelSurveyBreastQ1 = "Typen";
Locator.Config.racForm.labelSurveyBreastQ2 = "Angestrebte Grösse / Form";
Locator.Config.racForm.labelSurveyBreastQ3 = "Sicherheit";
Locator.Config.racForm.labelSurveyBreastQ4 = "Verfahrensdetails";
Locator.Config.racForm.labelSurveyBreastQ5 = "Beratung";
Locator.Config.racForm.labelSurveyBreastQ6 = "Sonstiges";
Locator.Config.racForm.labelSubmit = "";
Locator.Config.racForm.labelResponseHeadline = "Sie haben um einen Rückruf von gebeten";
Locator.Config.racForm.labelResponseMessage = "Vielen Dank. Ihre Kontaktinformationen wurden an DISPLAYNAME weitergeleitet. Ein Mitarbeiter wird sich mit Ihnen in Verbindung setzen um einen Termin für Ihr Beratungsgespräch zu vereinbaren.";
Locator.Config.racForm.labelNegResponseHeadline = "Ein Fehler ist aufgetreten";
Locator.Config.racForm.labelNegResponseHeadline2 = "Your request has not been sent";
Locator.Config.racForm.labelNegResponseMessage = "Bitte schließen Sie dieses Formular aus und versuchen Sie es erneut. Wir entschuldigen uns für diese Unannehmlichkeit.";
Locator.Config.racForm.labelNegResponseReturn = "<< Zurück zur Karte";
Locator.Config.racForm.errorMessages = new Array();
Locator.Config.racForm.errorMessages[0] = "Einige Ihrer Angaben sind unvollständig oder ungültig. Bitte korrigieren Sie die markierten Fragen.";
Locator.Config.racForm.errorMessages[1] = "Geben Sie bitte eine gültige E-Mail-Adresse ein";
Locator.Config.racForm.errorMessages[2] = "Geben Sie bitte eine gültige E-Mail-Adresse für die Zusendung einer Bestätigung ein";
Locator.Config.racForm.errorMessages[3] = "Die Angaben in den Feldern E-Mail-Adresse und E-Mail-Adresse für die Zusendung einer Bestätigung stimmen nicht überein";

// Bio Overlay Labels
Locator.Config.bioForm = {};
Locator.Config.bioForm.labelHeadline = "";
Locator.Config.bioForm.labelHeadlineCopy = "Diese Informationen sollen Ihnen helfen, einen geeigneten Facharzt für ästhetische Behandlungen zu finden. Bitte wenden Sie sich bei allgemeinen Fragen, Anfragen zu den angebotenen Behandlungen und Präparaten oder Terminanfragen an";
Locator.Config.bioForm.labelSpecialty = "Spezialgebiet";
Locator.Config.bioForm.labelUniversity = "Besuchte Universitäten: ";
Locator.Config.bioForm.labelDegree = "Abschluss / Qualifikation(en): ";
Locator.Config.bioForm.labelLanguages = "Zusätzliche Sprache(n): ";
Locator.Config.bioForm.labelHours = "Praxiszeiten oder nach Vereinbarung";
Locator.Config.bioForm.labelTreatments = "Angebotene Behandlungen:";
Locator.Config.bioForm.labelServices = "Angebotene Serviceleistungen:";
Locator.Config.bioForm.labelProducts = "Verfügbare Produkte:";
Locator.Config.bioForm.labelReturn = "Zurück zur Karte >>";

//Clusterer Labels
Locator.Config.clusterer = {};
Locator.Config.clusterer.labelInfoWinHeadline = "Wählen Sie einen Berater aus der folgenden Liste";

/* Styles and Colors
============================================ */
Locator.Config.borderColor = "#a4a1a9"; //border color of maps infowindow dialog
Locator.Config.searchInputDefaultBackground = "#FFFFFF"; //background color of search input field when data present
Locator.Config.searchInputDefaultColor = "#000000"; //foreground color search input field when data is present
Locator.Config.searchInputPreBackground = "#F0EBE8"; //background color of search input before user interaction
Locator.Config.searchInputPreColor = "#64ADE1"; //foreground color of search input before user interaction

/* SiteCatalyst values
============================================ */
//Events
Locator.Config.scSearchEvent = "event20" //event to track clinic search
Locator.Config.scSearchEvent2 = "event34" //event to track clinic search
Locator.Config.scBioEvent = "event24"; //event to track bio clicks
Locator.Config.scCertPrintEvent = "event12" //event to track certificate print
Locator.Config.scViewEvent = "event27" //event to track physician click
Locator.Config.scBioPageName = "Biography" //page name to track for biography
Locator.Config.scCtbcPageName = "Request A Call" //page name to track for CTBC
Locator.Config.scSearchResults = "event28"; //event to track search results
Locator.Config.scPhoneClick = "event27"; //Telephone icon click event
Locator.Config.scWebsiteClick = "event25"; //Website button click event
Locator.Config.scDirectionsClick = "event21"; //Driving directions button event click
Locator.Config.scConsultationClick = "event23"; //Request for Consult button click event to open up form
Locator.Config.scConsultationSubmitted = "event31"; //Req. for Consult form is submitted
Locator.Config.scBioDetailClick = "event24"; //Bio detail button click event
Locator.Config.scAccountIDDependencies = [Locator.Config.scPhoneClick, Locator.Config.scWebsiteClick, Locator.Config.scDirectionsClick, Locator.Config.scConsultationClick, Locator.Config.scConsultationSubmitted, Locator.Config.scBioDetailClick];
//Evars
Locator.Config.scEvarAGNProduct = "eVar1"; //product segmenation identifier
Locator.Config.scEvarDisplayName = "eVar22"; //display name of physician
Locator.Config.scEvarAccountWebsite = "eVar23";
Locator.Config.scEvarEmail = "eVar24";
Locator.Config.scEvarPractitionerName = "eVar25";
Locator.Config.scEvarPhoneNumber = "eVar26";
Locator.Config.scEvarAccountNumber = "eVar28";
Locator.Config.scEvarZipCode = "eVar29";
Locator.Config.scEvarRadius = "eVar30"; //search on radius
Locator.Config.scEvarCity = "eVar31";
Locator.Config.scEvarState = "eVar32";
Locator.Config.scEvarAccountName = "eVar33";
Locator.Config.scEvarTotalResultsCount = "eVar34";
//Props - used for FAD Search params tracking
Locator.Config.scPropSearchParams = "prop1";
Locator.Config.scPropSearchCity = "prop2";
Locator.Config.scPropSearchPostalCode = "prop3";
Locator.Config.scPropSearchStateProvince = "prop4";
Locator.Config.scPropSearchRadius = "prop6";




