$(document).ready(function(){ function initialize() { var mapOptions = { center: new google.maps.LatLng(34.1477849,-118.1445155), zoom: 1, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map"), mapOptions); var i = 0; var markers = []; var currentInfoWindow = null; var cityCoord = []; cityCoord = [{"labelTBA":"Jun - Jul","tourId":"327","country":"Canada","stateName":"Alberta","stateCode":"AB","city":"Calgary, AB","coor":"51.05194789999999,-114.0703924","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"Sheraton Suites Calgary Eau Claire 255 Barclay Parade SW","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"326","country":"Canada","stateName":"Alberta","stateCode":"AB","city":"Edmonton, AB","coor":"53.542016,-113.48987449999998","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"The Westin Edmonton 10135 100th St. NW","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"324","country":"Canada","stateName":"British Columbia","stateCode":"BC","city":"Richmond, BC","coor":"49.1907424,-123.13363909999998","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"Westin Wall Centre Vancouver Airport 3099 Corvette Way","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"344","country":"Canada","stateName":"British Columbia","stateCode":"BC","city":"Surrey, BC","coor":"49.1920802,-122.7989121","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Sheraton Vancouver Guildford Hotel 15269 104th Avenue","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"325","country":"Canada","stateName":"British Columbia","stateCode":"BC","city":"Vancouver, BC","coor":"49.280487,-123.1256818","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Sheraton Vancouver Wall Centre 1088 Burrard St.","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"336","country":"Canada","stateName":"British Columbia","stateCode":"BC","city":"Victoria, BC","coor":"48.421409,-123.364802","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"Victoria Marriott Inner Harbour 728 Humboldt Street","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"328","country":"Canada","stateName":"Ontario","stateCode":"ON","city":"Ottawa, ON","coor":"45.4247783,-75.6922697","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"The Westin Ottawa Hotel 11 Colonel By Drive","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"330","country":"Canada","stateName":"Ontario","stateCode":"ON","city":"Richmond Hill\/Markham, ON","coor":"43.845822,-79.3811015","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"Sheraton Parkway Toronto North 600 Highway 7 East","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"331","country":"Canada","stateName":"Ontario","stateCode":"ON","city":"Toronto (Sheraton Centre), ON","coor":"43.6511441,-79.3843286","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"Sheraton Centre Toronto Hotel 123 Queen Street West","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"329","country":"Canada","stateName":"Quebec","stateCode":"QC","city":"Montreal, QC","coor":"45.49796250000001,-73.57163609999998","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"Le Centre Sheraton Montreal Hotel 1201 Boulevard Rene-Levesque West","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"337","country":"Canada","stateName":"Saskatchewan","stateCode":"SK","city":"Regina, SK","coor":"50.4474143,-104.60569079999999","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(780)-246-8894","phone2":"","fitter":"Andy Mariani","hotel":"DoubleTree by Hilton Hotel 1975 Broad Street","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"198","country":"Hong Kong","stateName":null,"stateCode":"","city":"Kowloon","coor":"22.3022409,114.17628489999993","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"+852 23669700","phone2":"","fitter":"Andy Mariani","hotel":"Unit 302b 3rd Floor Austin Commercial Center No.4 Austin Avenue","tourDateStart":"Jan 1","tourDateEnd":"Dec 31, 2018","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"369","country":"Switzerland","stateName":null,"stateCode":"","city":"Basel","coor":"47.5247021,7.681631599999999","schedOpening":"","schedRegular":"Next trip to be scheduled in the 2nd quarter of 2022. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"+44-7828-145-364 ","phone2":"","fitter":"Andy Mariani","hotel":"Courtyard by Marriott Basel","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"361","country":"Switzerland","stateName":null,"stateCode":"","city":"Bern","coor":"46.948534,7.448701","schedOpening":"","schedRegular":"Next trip to be scheduled in the 2nd quarter of 2022. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"+41(0)43-508-1516","phone2":"","fitter":"Peter Chettiar","hotel":"Goldener Schluessel Hotel Rathausgasse 72","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"372","country":"Switzerland","stateName":null,"stateCode":"","city":"Geneva","coor":"46.224553,6.132849599999986","schedOpening":"","schedRegular":"Next trip to be scheduled in the 2nd quarter of 2022. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(+44)-7788-163-135","phone2":"","fitter":"Chand Hira","hotel":"InterContinental Geneva","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"364","country":"Switzerland","stateName":null,"stateCode":"","city":"Lausanne","coor":"46.517459,6.630059999999999","schedOpening":"","schedRegular":"Next trip to be scheduled in the 2nd quarter of 2022. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"+41(0)43-508-1516","phone2":"","fitter":"Peter Chettiar","hotel":"Hotel Continental Lausanne Place de la Gare 2","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"371","country":"Switzerland","stateName":null,"stateCode":"","city":"Zurich","coor":"8.5099304,8.510241500000006","schedOpening":"","schedRegular":"Next trip to be scheduled in the 2nd quarter of 2022. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(+44)-7788-163-135","phone2":"","fitter":"Chand Hira","hotel":"Sheraton Zurich Hotel Pfingstweidstrasse 100","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"358","country":"United Kingdom","stateName":null,"stateCode":"","city":"London (Canary Wharf)","coor":"51.5073197,-0.02091470000004847","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"+852 23669700","phone2":"","fitter":"Andy Mariani","hotel":"London Marriott Hotel West India Quay 22 Hersmere Road","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"357","country":"United Kingdom","stateName":null,"stateCode":"","city":"London (Heathrow Airport)","coor":"51.48151499999999,-0.43653740000002017","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"+852 23669700","phone2":"","fitter":"Andy Mariani","hotel":"Sheraton Skyline Hotel London Heathrow Heathrow Airport","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"356","country":"United Kingdom","stateName":null,"stateCode":"","city":"London (Marble Arch)","coor":"51.5164129,-0.16358260000004066","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"+852 23669700","phone2":"","fitter":"Andy Mariani","hotel":"London Marriott Marble Arch 134 George Street","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"359","country":"United Kingdom","stateName":null,"stateCode":"","city":"London (Waterloo)","coor":"51.50095719999999,-0.11668639999993502","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"+852 23669700","phone2":"","fitter":"Andy Mariani","hotel":"Park Plaza Westminster Bridge - London 200 Westminster Bridge Road","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"340","country":"United States","stateName":"California","stateCode":"CA","city":"Costa Mesa, CA","coor":"33.690692,-117.8841269","schedOpening":"","schedRegular":"Next trip to be scheduled in the 2nd quarter of 2022. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(202)-579-6868","phone2":"","fitter":"Shane Kirad","hotel":"The Westin South Coast Plaza - Costa Mesa 686 Anton Boulevard","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"341","country":"United States","stateName":"California","stateCode":"CA","city":"Los Angeles (Downtown), CA","coor":"34.045518,-118.266435","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(202)-579-6868","phone2":"","fitter":"Shane Kirad","hotel":"JW Marriott Los Angeles 900 West Olympic Boulevard","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"338","country":"United States","stateName":"California","stateCode":"CA","city":"Los Angeles (LAX), CA","coor":"33.9464432,-118.39072959999999","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(202)-579-6868","phone2":"","fitter":"Shane Kirad","hotel":"Sheraton Gateway Los Angeles Hotel 6101 West Century Boulevard","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"343","country":"United States","stateName":"California","stateCode":"CA","city":"Palo Alto, CA","coor":"37.4406279,-122.16309519999999","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(202)-579-6868","phone2":"","fitter":"Shane Kirad","hotel":"The Westin Palo Alto 675 El Camino Real","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"339","country":"United States","stateName":"California","stateCode":"CA","city":"San Diego, CA","coor":"32.7143935,-117.16320539999998","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(202)-579-6868","phone2":"","fitter":"Shane Kirad","hotel":"Westin San Diego Gaslamp Quarter 910 Broadway Circle","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"342","country":"United States","stateName":"California","stateCode":"CA","city":"San Francisco, CA","coor":"37.7852279,-122.40438899999998","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(202)-579-6868","phone2":"","fitter":"Shane Kirad","hotel":"San Francisco Marriott Marquis Hotel 780 Mission Street","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"334","country":"United States","stateName":"Connecticut","stateCode":"CT","city":"Stamford (Greenwich), CT","coor":"41.0432288,-73.55041360000001","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(917)-941-0567","phone2":"","fitter":"Paul Mariani","hotel":"Hilton Stamford Hotel 1 First Stamford Place","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"347","country":"United States","stateName":"Florida","stateCode":"FL","city":"Miami, FL","coor":"25.7624071,-80.19419629999999","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Hampton Inn & Suites Miami\/Brickell-Downtown 50 SW 12th Street","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"348","country":"United States","stateName":"Florida","stateCode":"FL","city":"Naples, FL","coor":"26.2820266,-81.80076550000001","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"DoubleTree Suites Hotel Naples 12200 Tamiami Trail North","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"350","country":"United States","stateName":"Florida","stateCode":"FL","city":"Orlando, FL","coor":"28.5364913,-81.3790409","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Aloft Orlando Downtown 500 South Orange Ave","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"349","country":"United States","stateName":"Florida","stateCode":"FL","city":"Tampa, FL","coor":"27.9531444,-82.52320350000002","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Tampa Marriott Westshore 1001 N Westshore Boulevard","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"332","country":"United States","stateName":"New Jersey","stateCode":"NJ","city":"Jersey City, NJ","coor":"40.72472339999999,-74.03627540000002","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(917)-941-0567","phone2":"","fitter":"Paul Mariani","hotel":"Westin Jersey City Newport 479 Washington Blvd","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"335","country":"United States","stateName":"New York","stateCode":"NY","city":"New York (Financial District), NY","coor":"40.70506779999999,-74.00803309999998","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(917)-941-0567","phone2":"","fitter":"Paul Mariani","hotel":"Andaz Wall Street Hotel 75 Wall Street","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"333","country":"United States","stateName":"New York","stateCode":"NY","city":"New York (Times Square), NY","coor":"40.762468,-73.98155700000001","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(917)-941-0567","phone2":"","fitter":"Paul Mariani","hotel":"Sheraton NY Times Square Hotel 811 7th Avenue","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"346","country":"United States","stateName":"Oregon","stateCode":"OR","city":"Portland, OR","coor":"45.5219034,-122.6741715","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Embassy Suites Portland - Downtown 319 SW Pine St.","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"352","country":"United States","stateName":"Texas","stateCode":"TX","city":"Austin, TX","coor":"30.2704056,-97.73423149999996","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Sheraton Austin Hotel at the Capitol 701 East 11th Street","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"351","country":"United States","stateName":"Texas","stateCode":"TX","city":"Dallas, TX","coor":"32.926798,-96.8251611","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Sheraton Dallas Hotel by the Galleria 4801 Lyndon B. Johnson Freeway","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"354","country":"United States","stateName":"Texas","stateCode":"TX","city":"Houston, TX","coor":"29.7514902,-95.36064420000002","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"Hilton Americas-Houston 1600 Lamar","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"355","country":"United States","stateName":"Texas","stateCode":"TX","city":"Houston (Galleria), TX","coor":"29.739756,-95.462201","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"The Westin Oaks Houston at the Galleria 5011 Westheimer at Post Oak","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"353","country":"United States","stateName":"Texas","stateCode":"TX","city":"San Antonio, TX","coor":"29.4234017,-98.49077139999997","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"The Westin Riverwalk","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""},{"labelTBA":"Jun - Jul","tourId":"345","country":"United States","stateName":"Washington","stateCode":"WA","city":"Seattle, WA","coor":"47.6137698,-122.33818819999999","schedOpening":"","schedRegular":"Next trip to be scheduled in the second quarter of 2018. Please join our mailing list to find out more about our updates.","schedClosing":"","contact":"info@hiras.com","phone":"(587)-892-4121","phone2":"","fitter":"Shane Kirad","hotel":"The Westin Seattle 1900 5th Avenue","tourDateStart":"Jan 1","tourDateEnd":"Jan 31, 2012","parkingInfo":" ","twitter":null,"dateForField":""}]; var lastState = ''; $.each(cityCoord, function(key, value) { var styleApplyIndent = ''; if (value.country == 'United States') { if(lastState != value.stateCode) { $('#city').append($(""). attr("disabled", 'disabled'). attr("value", '0'). attr("class", value.country). text(value.stateName)); } lastState = value.stateCode; styleApplyIndent = 'text-indent:20px;'; } if (value.country == 'Canada') { if(lastState != value.stateCode) { $('#city').append($(""). attr("disabled", 'disabled'). attr("value", '0'). attr("class", value.country). text(value.stateName)); } lastState = value.stateCode; styleApplyIndent = 'text-indent:20px;'; } $('#city').append($(""). attr("value", value.coor). attr("class", value.country). attr("style", styleApplyIndent).text(value.city +' '+value.dateForField)); var coordinates = value.coor.split(','); var marker = new google.maps.Marker({ position: new google.maps.LatLng(coordinates[0],coordinates[1]), map: map }); markers[i] = marker; i++; }); var lasttouch = ''; var markersArray = []; // get all markers function clearOverlays() { for (var i = 0; i < markersArray.length; i++ ) { markersArray[i].setMap(null); } markersArray = []; } $(markers).each(function(i,marker) { google.maps.event.addListener(marker, 'click', function(event) { map.setZoom(10); map.setCenter(marker.getPosition()); var myLatLng = event.latLng; var lat = myLatLng.lat(); var lng = myLatLng.lng(); var xyloc = String(event.latLng); var verify = String(lng).match(999); var verify2 = String(lng).match(/00000005/g); var newNo2 = String(lng).split(verify2); var getremainNo = String(lng).split(verify); var sliptye = String(lng).split('.'); var newNo = parseFloat('.'+sliptye[1]); var newsNo = getremainNo[0].split('.'); var getnoadd = parseInt(newsNo[1]) + 1; newNo = newNo.toPrecision(7); newNo = String(newNo).split('.'); newNo = sliptye[0]+'.'+getnoadd; if (verify) { xyloc = lat+','+newNo; } else if (verify2) { xyloc = lat+','+newNo2[0]; } else { xyloc = lat+','+lng; } if (currentInfoWindow != null) { currentInfoWindow.close(); } var infowindow = new google.maps.InfoWindow({ content: getEventInfo(xyloc) }); infowindow.open(map, marker); currentInfoWindow = infowindow; markersArray.push(marker); google.maps.event.addListener(marker,"click",function(){}); showTourDetails(xyloc); lasttouch = i; }); }); $("#city").chained("#country").change(function() { if((this.value != '')){ map.setZoom(10); var xy = this.value.split(','); var marker = new google.maps.Marker({ position: new google.maps.LatLng(xy[0],xy[1]), map: map }); map.setCenter(marker.getPosition()); if (currentInfoWindow != null) { currentInfoWindow.close(); } var infowindow = new google.maps.InfoWindow({ content: getEventInfo(this.value) }); markersArray.push(marker); currentInfoWindow = infowindow; google.maps.event.addListener(marker,"click",function(){}); infowindow.open(map,marker); showTourDetails(this.value); } else { //hide_tourdetails(); /*center: new google.maps.LatLng(34.1477849,-118.1445155); map.setZoom(1);*/ //clearOverlays(); } }); $('#showRoute').click(function(){ $('#route').html(''); directionsPanel = document.getElementById("route"); directions = new GDirections(map, directionsPanel); GEvent.addListener(directions, "error", handleErrors); var routeString = "from: " + $('#fromLoc').val() + " to: " + $('#toLoc').val(); directions.load(routeString); }); $('#extendHandle').click(function(event){ event.preventDefault(); $('#ml_city').val($('#city').find("option:selected").text()); $('a.handle').click(); $('#ml_email').focus(); }); $('#extendHandle').mouseover(function(event){ event.preventDefault(); $('#ml_city').val($('#city').find("option:selected").text()); $('a.handle').click(); $('#ml_email').focus(); }); //live function function hide_tourdetails(){ $('#tourIntro').show(); $('#tourInfo').hide(); } function showTourDetails(loc){ $('#tourIntro').hide(); $('#twitterChannel').html(''); $("#tellFriend").attr("href", '#'); $.each(cityCoord, function(key, value){ if(value.coor == loc){ $("#tourInfo").hide(); $('#parkingInfo').html(''); $('#parkingInfoWrapper').hide(); if(value.tourId == 198){ $('.trPhone').hide(); } //$("#detailHours").html(value.schedOpening); $("#detailHours").html(value.schedRegular); //$("#detailHours").html(value.schedClosing); $("#detailDates").html(value.tourDateStart + " to " + value.tourDateEnd); $("#detailFitter").html(value.fitter); $("#detailPhone").html(value.phone); $("#detailPhone2").html(value.phone2); $("#detailEmail").html('sales@napolitailors.com'); $("#tellFriend").attr("href", "emailtofriend.php?TB_iframe=true&height=300&width=450&refer=" + value.tourId); if (value.hotel != '') { $("#detailHotel").html(value.hotel + "
" + value.city); } else { $("#detailHotel").html("To be announced soon." + "
" + value.city); } $('#toLoc').val(value.hotel + ', ' + value.city + ', ' + value.country ); $("#tourInfo").slideDown(); if (value.parkingInfo != ''){ $('#parkingInfo').html(value.parkingInfo); $('#parkingInfoWrapper').show(); } if (value.twitter !== null){ $('#twitterChannel').html('

Follow us on Twitter '+ value.twitter +'

'); } } }); } function getEventInfo(loc){ var balloonText = 'Next trip'; var tourDateTo = " to "; $.each(cityCoord, function(key, value){ if(value.coor == loc) { balloonText = ""; balloonText = "" + value.hotel + "
" + value.tourDateStart + tourDateTo + value.tourDateEnd; // taking out invalid date force by tourmanager........ if (value.tourDateEnd == "Jan 31, 2012" && value.tourDateStart == "Jan 1"){ value.tourDateEnd = "be scheduled soon. Please join our mailing list to get updated. "; value.tourDateStart = "Next trip"; tourDateTo = " to "; balloonText = ""; balloonText = "" + value.hotel + "
" + value.tourDateStart + tourDateTo + value.tourDateEnd; } if (value.tourDateEnd == "Dec 31, 2015" && value.tourDateStart == "Jan 1"){ value.tourDateEnd = " "; value.tourDateStart = "Book an appointment and get fitted!"; balloonText = ""; balloonText = "" + value.hotel + "
" + value.tourDateStart ; } } }); return balloonText; } } // closing tags for initailization google.maps.event.addDomListener(window, 'load', initialize); });