﻿/** 
* 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 = "JuvedermUK";
Locator.Config.enableOffer = true; // 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 = "facial"; //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/scripts/Juvederm/xml/xml_data.xml?uniq=" + Math.round(Math.random()*10000);

/* Country Specific Configuration Variables
============================================ */
/* new multi dim array format for multiple country support (UK & GERMANY)
// positions: [0]UK [1]Ireland */
Locator.Config.defaultCoords = [[54.6, -2.6],[53.5, -8.0]]; //default lat/lon and zoom level for blank map
Locator.Config.defaultZoom = [6,7];
Locator.Config.googleBaseMapUrl = ["maps.google.co.uk", "maps.google.co.uk"]; //base country code used in geocoding
Locator.Config.searchProperCountry = ["uk", "ie"]; //string to append to input text before geocoding to ensure proper country is searched
Locator.Config.pathToGoogleMaps = ["http://maps.google.co.uk/maps", "http://maps.google.co.uk/maps"]; //url 'get directions' form will post to.
Locator.Config.searchDomains = ["juvedermultra.co.uk", "juvedermultra.co.uk"]; // domain strings to search for in url for default country selection
Locator.Config.countryNames = ["United Kingdom", "Ireland"];
Locator.Config.activeIndex = 0; // array index of active country (0 by default)
Locator.Config.searchSelectorLabel = "Country" // label text that will appear next to the country selection drop down box

/* Image Widths
=========================================== */
Locator.Config.bioPhotoMaxWidth = 120;
Locator.Config.bioPhotoMaxHeight = 210;
Locator.Config.resultMarkerWidth = 26;
Locator.Config.resultMarkerHeight = 25;

/* Paths
============================================ */
Locator.Config.pathToResultMarkers = "/Style%20Library/images/markers/b_result_marker-";
Locator.Config.pathToResultTierMarkers = "/Style%20Library/images/markers/a_result_marker-";
Locator.Config.bioIconSrc = "/Style%20Library/images/icon-bio.gif";
Locator.Config.ctbcIconSrc = "/Style%20Library/images/icon-call.gif";
Locator.Config.offerIconSrc = "/Style%20Library/images/icon-offer.gif";
//mike
Locator.Config.smileIconSrc = "/Style%20Library/images/icon-smile.gif";
Locator.Config.volumaIconSrc = "/Style%20Library/images/icon-voluma.gif";
Locator.Config.resultmarkerExtension = ".gif";
Locator.Config.blankTierMarker = "/Style%20Library/images/markers/a_marker_blank.png";
Locator.Config.pathToMarkers = "/Style%20Library/images/markers/b_marker_";
Locator.Config.pathToTierMarkers = "/Style%20Library/images/markers/a_marker_";
Locator.Config.markerExtension = ".png";
Locator.Config.baseDataPath = "/_layouts/Rosetta/clinic_locator.ashx"; // Path to XML generated data file
Locator.Config.trackingDataPath = "/_layouts/Rosetta/clinic_tracking.ashx"; // Path to aspx used for clinic tracking
Locator.Config.photoDataPath = "/_layouts/Rosetta/clinic_photo.ashx";
Locator.Config.racbaseDataPath = "/_layouts/Rosetta/clinic_ctbc.ashx";
Locator.Config.bioHeadlinePath = "/Style%20Library/images/bio_headline.gif";
Locator.Config.racHeadlinePath = "/Style%20Library/images/rac_headline.gif"; // Headline paths to use in place of text for overlays
Locator.Config.defaultClinicPhoto = "/Style%20Library/images/noPhotoIcon.gif";

/* 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 = "View Previous";
Locator.Config.resultNextLabel = "View Next";
Locator.Config.distanceUnitOfMeasure = " mi"; // Unit of measure label for distance
Locator.Config.labelDistance = "Distance: ";
Locator.Config.tabLabelOne = "Address"; // for map infowindow overlay tabs
Locator.Config.tabLabelTwo = "Treatments";
Locator.Config.tabLabelThree = "Offer";
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";
//mike
Locator.Config.smileIconTitle = "Smile Available";
Locator.Config.offerIconTitle = "Free Consultation Offer Available";
Locator.Config.volumaIconTitle = "Voluma Available";
Locator.Config.getDirectionsLabel = "Click Here for Directions";
Locator.Config.startDirectionsLabel = "Start Address:";
Locator.Config.treatmentsOfferedLabel = "Treatments Offered: ";
Locator.Config.noServicesDataText = "For information about Services, products, and procedures, please contact DISPLAYNAME directly."; // default message to display on services tab if no service data found
Locator.Config.offerAvailableLink = "Click Here To Print Your Free Consultaiton Voucher";
Locator.Config.offerAvailableText = "For a free consultation certificate from this consultant, click the button below";
Locator.Config.offerUnavailableText = "To schedule your initial consultation, contact ";
Locator.Config.offerCallPanelText = "Click the link below to get more detail from this clinic";
Locator.Config.viewBioLinkLabel = "View Clinic Details";
Locator.Config.viewCTBCLabel = "<b>Schedule a Consultation</b> - Click the link to get more detail from this clinic.";
Locator.Config.viewCTBCLinkText = "Continue &gt; &gt;";
Locator.Config.viewOfferLabel = "View Offer";
Locator.Config.pcSearchInstructions = "enter a postal code here"; // instructional text to display in search input for postal code search
Locator.Config.citySearchInstructions = "enter a city name here"; // instructional text to display in search input for city/text search
Locator.Config.noResultsHeadline = "No Matching Results."; //headline to display when no results found/search.
Locator.Config.errorHeadline = "An Error Has Occured"; //headline to display for errors.
Locator.Config.msgBadPostal = "Google was un-able to locate the postal code you entered.  Please try your request again."; //msg to display when google can't geocode the supplied postal code
Locator.Config.msgBadSearchText = "Google was un-able to locate the city name you've entered.  Please try your request again."; //msg to display when google can't geocode the supplied search text/city etc.
Locator.Config.msgNoResults = "Your search returned 0 results.  Please adjust your search criteria and try again."; //msg to display when no results returned for location entered.
Locator.Config.alrtInvalidPostal = "Please enter a valid Postal Code"; //alert text to display when postal code cannot be validated
Locator.Config.alrtInvalidSearchText = "Please enter a city or some text to search for"; //alert text to display when search text is invalid/null
Locator.Config.listresultsHeadline = "find a consultant results - "; //headine text to display before resultset info
Locator.Config.resultInfoSeperator = " of "; //text to display between current resultset info and total results (ex. 1-10 [of] 98);
Locator.Config.primarayContactLabel = "Primary Contact: ";
Locator.Config.telephonePrefixLabel = "Tel: ";
Locator.Config.noDisplayNameText = "NAME NOT FOUND";

// Map Control Labels
Locator.Config.mtControl = {};
Locator.Config.mtControl.labelNavText1 = "results - "; //text to display before the resultset in mapcontrol results navigation area
Locator.Config.mtControl.labelNavText2 = " of "; //text to display between resultset and total resutsl in mapcontrol rnav area
Locator.Config.mtControl.labelNext = "next";
Locator.Config.mtControl.labelPrevious = "previous";
Locator.Config.mtControl.labelMap = "Map";
Locator.Config.mtControl.labelSatellite = "Satellite";
Locator.Config.mtControl.labelHybrid = "Hybrid";
Locator.Config.mtControl.labelTerrain = "Terrain";

// Request a Call Form Labels
Locator.Config.racForm = {};
Locator.Config.racForm.labelHeadline = "";
Locator.Config.racForm.labelIntroText = "Do you have more questions that need answering or want to know more information about us then why not let us call you back at convenient to you? We will answer your questions and if you wish can even schedule a consultation with DISPLAYNAME to discuss treatment with the Juvederm® range of products.  Select the best time to reach you below, provide your call back number and a staff member will contact you.";
Locator.Config.racForm.labelFieldsRequired = "*All questions are required";
Locator.Config.racForm.labelFirstName = "First Name:";
Locator.Config.racForm.labelLastName = "Last Name:";
Locator.Config.racForm.labelEmail = "E-mail (preferred):";
Locator.Config.racForm.labelConfirmEmail = "Confirm E-mail:";
Locator.Config.racForm.labelTelephone = "Telephone (preferred):";
Locator.Config.racForm.labelContactTime = "Preferred Contact Time:";
Locator.Config.racForm.labelSelectTime = "Select Time";
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 = "I would like to discuss: (check all that apply)";
Locator.Config.racForm.labelSurveyFacial = "Facial aesthetics:";
Locator.Config.racForm.labelSurveyBreast = "Breast enhancement";
Locator.Config.racForm.labelSurveyBreastQ1 = "Types";
Locator.Config.racForm.labelSurveyBreastQ2 = "Sizes / shapes to consider";
Locator.Config.racForm.labelSurveyBreastQ3 = "Safety";
Locator.Config.racForm.labelSurveyBreastQ4 = "Procedure details";
Locator.Config.racForm.labelSurveyBreastQ5 = "General consultation";
Locator.Config.racForm.labelSurveyBreastQ6 = "Other";
Locator.Config.racForm.labelSubmit = "";
Locator.Config.racForm.labelResponseHeadline = "You have requested a call from";
Locator.Config.racForm.labelResponseMessage = "Thank you. Your contact information has been provided to DISPLAYNAME. A staff member will contact you to schedule your consultation.";
Locator.Config.racForm.labelNegResponseHeadline = "An Error Has Occurred";
Locator.Config.racForm.labelNegResponseHeadline2 = "Your request has not been sent";
Locator.Config.racForm.labelNegResponseMessage = "Please close this form and try again.  We're sorry for the inconvenience";
Locator.Config.racForm.labelNegResponseReturn = "<< Return to Map";
Locator.Config.racForm.errorMessages = new Array();
Locator.Config.racForm.errorMessages[0] = "Some of your information is missing or invalid.  Please correct the highlighted questions.";
Locator.Config.racForm.errorMessages[1] = "Please enter a valid e-mail address";
Locator.Config.racForm.errorMessages[2] = "Please enter a valid confirmation e-mail address";
Locator.Config.racForm.errorMessages[3] = "The e-mail address and confirmation e-mail address fields do not match";


// Bio Overlay Labels
Locator.Config.bioForm = {};
Locator.Config.bioForm.labelHeadline = "";
Locator.Config.bioForm.labelHeadlineCopy = "We've provided the detailed information you requested about this qualified consultant to help you make an informed choice.";
Locator.Config.bioForm.labelSpecialty = "Specialty";
Locator.Config.bioForm.labelUniversity = "University Attended: ";
Locator.Config.bioForm.labelDegree = "Degree Qualifications: ";
Locator.Config.bioForm.labelLanguages = "Additional Language(s): ";
Locator.Config.bioForm.labelHours = "Office Hours";
Locator.Config.bioForm.labelTreatments = "Treatments Offered:";
Locator.Config.bioForm.labelServices = "Services Offered:";
Locator.Config.bioForm.labelProducts = "Products Available:";
Locator.Config.bioForm.labelReturn = "Return To Map >>";

//Clusterer Labels
Locator.Config.clusterer = {};
Locator.Config.clusterer.labelInfoWinHeadline = "Select a consultant from the list below";

/* 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 = "#602E70"; //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";