var opts={};var myMapAppHelperURL='http://uat.hamweather.net/polaris/helpers/';var myMapAppAssetURL='http://riders.polarisindustries.com/';var mapAppHelperURL='http://uat.hamweather.net/polaris/helpers/';(function($){opts={initTool:'wx',tools:{dealers:{name:'Polaris Dealer Information',btnTarget:'bbar',desc:'Provide locations of Polaris Dealers',instruct:{general:'Click a dealer marker on the map to display information for the dealer.',process:['Mouse over a marker for the dealer name, or click the marker for more information.']}},food:{name:'Restaurants and Bars',btnTarget:'bbar',desc:'Provide locations of Restaurants and bars',instruct:{general:'Click a marker on the map to display information for the restuarant.',process:['Mouse over a marker for the restuarant name, or click the marker for more information.']}},lodging:{name:'Hotels and Motels',btnTarget:'bbar',desc:'Provide locations of lodging including hotels and motels',instruct:{general:'Click a marker on the map to display information for the lodging.',process:['Mouse over a marker for the location name, or click the marker for more information.']}},gas:{name:'Gas Stations',btnTarget:'bbar',desc:'Provide locations of gas stations',instruct:{general:'Click a marker on the map to display information for gas stations.',process:['Mouse over a marker for the location name, or click the marker for more information.']}},wx:{name:'Trail and Weather Information',btnTarget:'bbar',desc:'',instruct:{general:'Click on the trail to view additional information.  This dialog displays additional trail information.',process:['Click on the trail to view additional information.']}},facebook:{name:'Display Facebook Discussion',btnTarget:'bbar',desc:'',instruct:{general:'Open this tool to display Facebook discussions from this map.  Discussions may be general, or related to specific trails.  Click on a trail to see the associated discussion.',process:['Open this tool to display Facebook discussions from this map.  Discussions may be general, or related to specific trails.  Click on a trail to see the associated discussion.']}},bearing:{name:'Heading',btnTarget:'bbar',desc:'Calculates distance and heading based on two points',instruct:{general:'Begin by clicking at your starting point. Click your second point to complete your heading and distance calculation by clicking at your second point. This will end the drawing tool. You can click and drag existing markers to change your current heading, or draw a new heading by clicking on the map again while this tool is active.',process:['Click on the map to set your starting point.','Click on the map again to set your ending point and calculate the distance and heading.','Adjust your starting and ending markers, or click on the map to begin a different heading.']}},route:{name:'Waypoints',btnTarget:'bbar',desc:'',instruct:{general:'Begin by clicking at your route\'s starting point, then continue clicking on the map to add points to your route. Once your route has been drawn, press <em>ESC</em> or click on the <em>End Route</em> button in the bottom toolbar to end the current route. A new route can be started by clicking on the map again once a route has been closed. Edit an existing route by dragging markers around on the map, or double clicking a marker to remove it from the route. Route details will appear in the table below.',process:['Click on the map to begin your route.','Continue plotting points along your route by clicking on the map, or hit "ESC" to end this route.','Edit your route by dragging and/or double-clicking the points. View your routes from the table in the toolbar below. Click on the map again to begin a new route.']}}},map:{overlayConfig:{layers:['radar','streets'],loopLayers:['radarAnim'],autoLoad:true,layerConfig:{'smtrails':{type:'tile',options:{url:'http://tile{SERVER}.hamweather.net/tiles/smtrails/z{Z}/x{X}/y{Y}/sm.png',opacity:100,visible:false,zIndex:3}},'snowdepth':{type:'groupByJSONP',options:{src:'http://tile.hamweather.net/tiles/archive/snowdepth_snodas/times.jsonp',callback:'snowdepth_snodasTimes',template:{type:'tile',options:{url:'http://tile{SERVER}.hamweather.net/tiles/archive/snowdepth_snodas/{time}/z{Z}/x{X}/y{Y}/snowdepth.png',opacity:75,visible:false,zIndex:1}},max:1,zIndex:1}}}},overlays:{layers:{smtrails:{type:'tile',title:'Snowmobile Trails'},wx:{url:myMapAppHelperURL+'trailwx2.php?user=wnmaps&do=trailwx&lat={LAT}&lon={LON}&callback=?',ajaxType:'jsonp',ajaxCallback:function(json,infowin){var strVar="";strVar+="<div>";if(!wxn.empty(json['trailInfo'])&&!wxn.empty(json['trailInfo']['name'])){strVar+="<div class=\"infowin-title\">Trail Conditions<\/div>";strVar+="<div class=\"wxdata-wrapper clearfix\">";strVar+="<div class=\"data\" >";strVar+="<div class=\"wxdata-loc\">"+json['trailInfo']['name']+"&nbsp;<span class=\"wxdata-loc-detail\">near "+json['loc']['place']+", "+json['loc']['state']+"<\/span><\/div>";strVar+="<div class=\"wxdata-loc-info\">\n";strVar+="<div class=\"row\"><div class=\"label\">Trail Length: </div><div class=\"value\">"+Math.round(json['trailInfo']['length'],1)+" miles</div></div>\n";strVar+="<div class=\"row\"><div class=\"label\">Avg Snow Depth: </div><div class=\"value\">"+json['trailInfo']['snowDepth']+" inches</div></div>\n";strVar+="</div>\n";}
else{strVar+="<div class=\"infowin-title\">Weather <\/div>";strVar+="<div class=\"wxdata-wrapper clearfix\">";strVar+="<div class=\"data\" >";strVar+="<div class=\"wxdata-loc\">"+Math.round(json.origLat*100)/100+", "+Math.round(json.origLon*100)/100+"&nbsp;<span class=\"wxdata-loc-detail\">near "+json['loc']['place']+", "+json['loc']['state']+"<\/span><\/div>";}
strVar+="<table class=\"wxdata-table\">";if(!wxn.empty(json['currents']['wxicon'])&&!wxn.empty(json['currents']['feelsLikeF'])){strVar+="<tr>";strVar+="<th colspan=\"2\">Currently<\/th>";strVar+="<\/tr>";strVar+="<tr>";strVar+="<td class=\"wxcc-summary\">";strVar+="<div class=\"wx\"><div class=\"inner\"><img src=\"http:\/\/images.hamvid.com\/wxicons\/"+((!wxn.empty(json['currents']['wxicon']))?json['currents']['wxicon'].replace('.gif','.png'):'na.png')+"\" alt=\"\" \/><\/div><\/div>";strVar+="<div class=\"temp\"><div class=\"inner\">"+json['currents']['tempF']+"<\/div><\/div>";strVar+="<\/td>";strVar+="<td class=\"wxcc-details\">";strVar+="<ul>";strVar+="<li class=\"odd\">";strVar+="<div class=\"label\">Feels Like<\/div>";strVar+="<div class=\"value\">"+json['currents']['feelsLikeF']+"&deg;<\/div>";strVar+="<\/li>";strVar+="<li class=\"even\">";strVar+="<div class=\"label\">Winds<\/div>";strVar+="<div class=\"value\">"+json['currents']['windMPH']+"<\/div>";strVar+="<\/li>";strVar+="<li class=\"odd\">";strVar+="<div class=\"label\">Snow Depth<\/div>";strVar+="<div class=\"value\">"+json['currents']['snowDepth']+"<\/div>";strVar+="<\/li>";strVar+="<\/ul>";strVar+="<\/td>";strVar+="<\/tr>";strVar+="<\/table>";}
strVar+="<table class=\"wxdata-table\">";strVar+="<tr>";strVar+="<th colspan=\"3\">Forecast<\/th>";strVar+="<\/tr>";strVar+="<tr>";strVar+="<td class=\"wxfcst\">";strVar+="<div class=\"daydata day\">"+json['forecast'][0]['title']+"<\/div>";strVar+="<div class=\"wxrow\">";strVar+="<div class=\"wx\"><div class=\"inner\"><img src=\"http:\/\/images.hamvid.com\/wxicons\/"+json['forecast'][0]['icon'].toString().replace('.gif','.png')+"\" alt=\""+json['forecast'][0]['wx']+"\" \/><\/div><\/div>";strVar+="<div class=\"temps\">";strVar+="<div class=\"hitemp\"><div class=\"label\">Hi:<\/div><div class=\"inner\">"+json['forecast'][0]['hi']+"&deg;<\/div><\/div>";strVar+="<div class=\"lotemp\"><div class=\"label\">Lo:<\/div><div class=\"inner\">"+json['forecast'][0]['lo']+"&deg;<\/div><\/div>";strVar+="<\/div>";strVar+="<\/div>";strVar+="<div class=\"daydata pop\"><div class=\"label\">POP*:<\/div><div class=\"value\">"+json['forecast'][0]['pop']+"%<\/div><\/div>";strVar+="<\/td>";strVar+="<td class=\"wxfcst\">";strVar+="<div class=\"daydata day\">"+json['forecast'][1]['title']+"<\/div>";strVar+="<div class=\"wxrow\">";strVar+="<div class=\"wx\"><div class=\"inner\"><img src=\"http:\/\/images.hamvid.com\/wxicons\/"+json['forecast'][1]['icon'].toString().replace('.gif','.png')+"\" alt=\""+json['forecast'][1]['wx']+"\" \/><\/div><\/div>";strVar+="<div class=\"temps\">";strVar+="<div class=\"hitemp\"><div class=\"label\">Hi:<\/div><div class=\"inner\">"+json['forecast'][1]['hi']+"&deg;<\/div><\/div>";strVar+="<div class=\"lotemp\"><div class=\"label\">Lo:<\/div><div class=\"inner\">"+json['forecast'][1]['lo']+"&deg;<\/div><\/div>";strVar+="<\/div>";strVar+="<\/div>";strVar+="<div class=\"daydata pop\"><div class=\"label\">POP*:<\/div><div class=\"value\">"+json['forecast'][1]['pop']+"%<\/div><\/div>";strVar+="<\/td>";strVar+="<td class=\"wxfcst\">";strVar+="<div class=\"daydata day\">"+json['forecast'][2]['title']+"<\/div>";strVar+="<div class=\"wxrow\">";strVar+="<div class=\"wx\"><div class=\"inner\"><img src=\"http:\/\/images.hamvid.com\/wxicons\/"+json['forecast'][2]['icon'].toString().replace('.gif','.png')+"\" alt=\""+json['forecast'][2]['wx']+"\" \/><\/div><\/div>";strVar+="<div class=\"temps\">";strVar+="<div class=\"hitemp\"><div class=\"label\">Hi:<\/div><div class=\"inner\">"+json['forecast'][2]['hi']+"&deg;<\/div><\/div>";strVar+="<div class=\"lotemp\"><div class=\"label\">Lo:<\/div><div class=\"inner\">"+json['forecast'][2]['lo']+"&deg;<\/div><\/div>";strVar+="<\/div>";strVar+="<\/div>";strVar+="<div class=\"daydata pop\"><div class=\"label\">POP*:<\/div><div class=\"value\">"+json['forecast'][2]['pop']+"%<\/div><\/div>";strVar+="<\/td>";strVar+="<\/tr>";strVar+="<\/table>";strVar+="<div class=\"wxdata-loc\"><span class=\"wxdata-loc-detail\">* POP = Probability Of Precip<\/span><\/div>";strVar+="<\/div>";strVar+="<\/div>";strVar+="</div>";return strVar;},infoWindowClass:'wnmap-map-infowin-wide'},food:{type:'point',url:myMapAppHelperURL+'data.php?t=food&id={LOCID}&callback=?',ajaxType:'jsonp',ajaxCallback:function(json,infowin){var output="<div>"+"<div class=\"infowin-title\">Restaraunts</div>"+"<div class=\"wxdata-wrapper clearfix\">"+"<div class=\"data\">"+"<div class=\"wxdata-loc\">"+json['bizName']+"<br/><span class=\"wxdata-loc-detail\">"+json['bizAddr']+"<br/>";output+=json['bizCity']+", "+json['bizState']+" "+json['bizZip']+"</span></div>";"<div class=\"data-row\"><div class=\"label\">Phone</div><div>"+json['bizPhone']+"</div></div>";if(!wxn.empty(json['bizURL']))output+="<div class=\"data-row\"><div class=\"label\">Website</div><div><a href=\"json['bizURL']\" target=\"_blank\">"+json['bizURL']+"</a></div></div>\n";output+="<div class=\"dir\"><a href=\"http://maps.google.com/maps?saddr=&hl=en&daddr="+json['address']+"\" target=\"_blank\">Get Directions</a><br/>&nbsp;</div>"+"</div>"+"</div>"+"</div>";return output;},pointsURL:mapAppHelperURL+'getmaplocs.php?type=food&lat1={NELAT}&lon1={NELON}&lat2={SWLAT}&lon2={SWLON}&z={Z}&minz={MINZ}&t=jsonp&callback=?',pointsType:'jsonp',pointsNode:'points',minZoom:11,showLoader:true,refreshOnMove:true,markers:{type:'cluster',options:{maxZoom:18,gridSize:60,intervals:[25,50,100],styles:[{width:63,height:63,cls:'wxn-marker-cluster wxn-marker-cluster-int0 wxn-marker-cluster-food-int0',anchor:[0,0]},{width:67,height:67,cls:'wxn-marker-cluster wxn-marker-cluster-int1 wxn-marker-cluster-food-int1',anchor:[0,0]},{width:87,height:87,cls:'wxn-marker-cluster wxn-marker-cluster-int2 wxn-marker-cluster-food-int2',anchor:[0,0]},{width:105,height:105,cls:'wxn-marker-cluster wxn-marker-cluster-int3 wxn-marker-cluster-food-int3',anchor:[0,0]}]},icons:{general:{src:mapAppAssetURL+'wnmapapp/css/assets/markers/map_marker_food.png',infoWindowAnchorX:20,infoWindowAnchorY:20,anchorX:20,anchorY:20,width:41,height:41}}}},lodging:{type:'point',url:myMapAppHelperURL+'data.php?t=lodging&id={LOCID}&callback=?',ajaxType:'jsonp',ajaxCallback:function(json,infowin){var output="<div>"+"<div class=\"infowin-title\">Lodging</div>"+"<div class=\"wxdata-wrapper clearfix\">"+"<div class=\"data\">"+"<div class=\"wxdata-loc\">"+json['bizName']+"<br/><span class=\"wxdata-loc-detail\">"+json['bizAddr']+"<br/>";output+=json['bizCity']+", "+json['bizState']+" "+json['bizZip']+"</span></div>";"<div class=\"data-row\"><div class=\"label\">Phone</div><div>"+json['bizPhone']+"</div></div>";if(!wxn.empty(json['bizURL']))output+="<div class=\"data-row\"><div class=\"label\">Website</div><div><a href=\"json['bizURL']\" target=\"_blank\">"+json['bizURL']+"</a></div></div>\n";output+="<div class=\"dir\"><a href=\"http://maps.google.com/maps?saddr=&hl=en&daddr="+json['address']+"\" target=\"_blank\">Get Directions</a><br/>&nbsp;</div>"+"</div>"+"</div>"+"</div>";return output;},pointsURL:mapAppHelperURL+'getmaplocs.php?type=lodging&lat1={NELAT}&lon1={NELON}&lat2={SWLAT}&lon2={SWLON}&z={Z}&minz={MINZ}&t=jsonp&callback=?',pointsType:'jsonp',pointsNode:'points',minZoom:8,showLoader:true,refreshOnMove:true,markers:{type:'cluster',options:{maxZoom:15,gridSize:60,intervals:[25,50,100],styles:[{width:63,height:63,cls:'wxn-marker-cluster wxn-marker-cluster-int0 wxn-marker-cluster-lodging-int0',anchor:[0,0]},{width:67,height:67,cls:'wxn-marker-cluster wxn-marker-cluster-int1 wxn-marker-cluster-lodging-int1',anchor:[0,0]},{width:87,height:87,cls:'wxn-marker-cluster wxn-marker-cluster-int2 wxn-marker-cluster-lodging-int2',anchor:[0,0]},{width:105,height:105,cls:'wxn-marker-cluster wxn-marker-cluster-int3 wxn-marker-cluster-lodging-int3',anchor:[0,0]}]},icons:{general:{src:mapAppAssetURL+'wnmapapp/css/assets/markers/map_marker_lodging.png',infoWindowAnchorX:20,infoWindowAnchorY:20,anchorX:20,anchorY:20,width:41,height:41}}}},gas:{type:'point',url:myMapAppHelperURL+'data.php?t=gas&id={LOCID}&callback=?',ajaxType:'jsonp',ajaxCallback:function(json,infowin){var output="<div>"+"<div class=\"infowin-title\">Service Stations</div>"+"<div class=\"wxdata-wrapper clearfix\">"+"<div class=\"data\">"+"<div class=\"wxdata-loc\">"+json['bizName']+"<br/><span class=\"wxdata-loc-detail\">"+json['bizAddr']+"<br/>";output+=json['bizCity']+", "+json['bizState']+" "+json['bizZip']+"</span></div>";"<div class=\"data-row\"><div class=\"label\">Phone</div><div>"+json['bizPhone']+"</div></div>";if(!wxn.empty(json['bizURL']))output+="<div class=\"data-row\"><div class=\"label\">Website</div><div><a href=\"json['bizURL']\" target=\"_blank\">"+json['bizURL']+"</a></div></div>\n";output+="<div class=\"dir\"><a href=\"http://maps.google.com/maps?saddr=&hl=en&daddr="+json['address']+"\" target=\"_blank\">Get Directions</a><br/>&nbsp;</div>"+"</div>"+"</div>"+"</div>";return output;},pointsURL:mapAppHelperURL+'getmaplocs.php?type=gas&lat1={NELAT}&lon1={NELON}&lat2={SWLAT}&lon2={SWLON}&z={Z}&minz={MINZ}&t=jsonp&callback=?',pointsType:'jsonp',pointsNode:'points',minZoom:6,showLoader:true,refreshOnMove:true,markers:{type:'cluster',options:{gridSize:60,intervals:[25,50,100],styles:[{width:63,height:63,cls:'wxn-marker-cluster wxn-marker-cluster-int0 wxn-marker-cluster-gas-int0',anchor:[0,0]},{width:67,height:67,cls:'wxn-marker-cluster wxn-marker-cluster-int1 wxn-marker-cluster-gas-int1',anchor:[0,0]},{width:87,height:87,cls:'wxn-marker-cluster wxn-marker-cluster-int2 wxn-marker-cluster-gas-int2',anchor:[0,0]},{width:105,height:105,cls:'wxn-marker-cluster wxn-marker-cluster-int3 wxn-marker-cluster-gas-int3',anchor:[0,0]}]},icons:{general:{src:mapAppAssetURL+'wnmapapp/css/assets/markers/map_marker_gas.png',infoWindowAnchorX:20,infoWindowAnchorY:20,anchorX:20,anchorY:20,width:41,height:41}}}},dealers:{type:'point',title:'Polaris Dealers',url:myMapAppHelperURL+'data.php?t=dealers&id={LOCID}&callback=?',ajaxType:'jsonp',ajaxCallback:function(json,infowin){var output="<div>"+"<div class=\"infowin-title\">Polaris Dealer</div>"+"<div class=\"wxdata-wrapper clearfix\">"+"<div class=\"data\">"+"<div class=\"wxdata-loc\">"+json['name']+"<br/><span class=\"wxdata-loc-detail\">"+json['address1']+"<br/>";if(!wxn.empty(json['address2']))output+=json['address2']+'<br/>';output+=json['city']+", "+json['state']+" "+json['zipcode']+"</span></div>";"<div class=\"data-row\"><div class=\"label\">Phone</div><div>"+json['phone']+"</div></div>";if(!wxn.empty(json['website']))output+="<div class=\"data-row\"><div class=\"label\">Website</div><div><a href=\""+json['website']+"\" target=\"_blank\">"+json['website']+"</a></div></div>\n";output+="<div class=\"dir\"><a href=\"http://maps.google.com/maps?saddr=&hl=en&daddr="+json['address']+"\" target=\"_blank\">Get Directions</a><br/>&nbsp;</div>"+"</div>"+"</div>"+"</div>";return output;},pointsURL:myMapAppHelperURL+'getmaplocs.php?type=dealers&lat1=90&lon1=-180&lat2=-90&lon2=180&t=jsonp&callback=?',pointsType:'jsonp',pointsNode:'points',minZoom:0,refreshOnMove:false,showLoader:true,markers:{type:'cluster',options:{maxZoom:9,gridSize:35,intervals:[25,50,100],styles:[{width:63,height:63,cls:'polaris-cluster-int0 polaris-cluster-dealers-int0',anchor:[0,0]},{width:67,height:67,cls:'polaris-cluster-int1 polaris-cluster-dealers-int1',anchor:[0,0]},{width:87,height:87,cls:'polaris-cluster-int2 polaris-cluster-dealers-int2',anchor:[0,0]},{width:105,height:105,cls:'polaris-cluster-int3 polaris-cluster-dealers-int3',anchor:[0,0]}]},icons:{general:{src:myMapAppAssetURL+'css/assets/polaris/markers/map_marker_polaris.png',infoWindowAnchorX:17,infoWindowAnchorY:10,anchorX:17,anchorY:10,width:34,height:20},selected:{src:myMapAppAssetURL+'css/assets/polaris/markers/map_marker_polaris.png',infoWindowAnchorX:17,infoWindowAnchorY:10,anchorX:17,anchorY:10,width:34,height:20}}}}}}},tbar:{buttons:{display:'radar,sat,snowdepth,smtrails',items:{smtrails:{text:'Snowmobile Trails',cls:'wnmap-ui-btn',listeners:{active:function(e){if(!wxn.empty(csid))return true;else{top.location.href='http://www.polarisindustries.com/en-us/snowmobiles/UserSignon/Pages/Default.aspx?URL='+rHost+'&wn_csid=yes';return false;}},click:function(e){e.data.self.onButtonClick($(this),$(this).attr('cmd'));}}}}},tools:{display:'anim,legend,help,enlarge,disclaimer,search'}},bbar:{tools:{display:'dealers,food,lodging,gas,wx,astro,bearing,route',items:{dealers:{title:'Polaris Dealers',qtip:'Polaris Dealers',listeners:{active:function(e){e.data.self.startCommand('dealers');},inactive:function(e){e.data.self.stopCommand('dealers');}}},wx:{title:'Trail &amp; Weather Information'},food:{title:'Restaurants',qtip:'Restaurants',listeners:{active:function(e){var minZoom=11;var myMap=e.data.self.getMap();if(myMap.getZoom()<minZoom)e.data.self.getMap().setCenter(e.data.self.getMap().getCenter(),minZoom);e.data.self.startCommand('food');},inactive:function(e){e.data.self.stopCommand('food');}}},lodging:{title:'Lodging',qtip:'Lodging',listeners:{active:function(e){var minZoom=9;var myMap=e.data.self.getMap();if(myMap.getZoom()<minZoom)e.data.self.getMap().setCenter(e.data.self.getMap().getCenter(),minZoom);e.data.self.startCommand('lodging');},inactive:function(e){e.data.self.stopCommand('lodging');}}},gas:{title:'Gas',qtip:'Gas',listeners:{active:function(e){var minZoom=7;var myMap=e.data.self.getMap();if(myMap.getZoom()<minZoom)e.data.self.getMap().setCenter(e.data.self.getMap().getCenter(),minZoom);e.data.self.startCommand('gas');},inactive:function(e){e.data.self.stopCommand('gas');}}}}}},rbar:{autoShow:false,startY:0,buttons:[{name:'Facebook',callback:{fn:function(e){var self=e.data.self;self.toggleSidePanel('facebook','rbar');}}}]},sidePanel:{facebook:{content:'<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US" type="text/javascript"></script><script type="text/javascript">FB.init("8ac76d1500ee49d233c30f3cb52b1649");</script><fb:live-stream event_app_id="338841805416" xid="Polaris Mapper" width="280" height="360"></fb:live-stream>'}},disclaimer:{show:true,title:'Disclaimer',body:'Polaris Industries and WeatherNation  makes no representation or warranties, express or implied, with respect to the reuse of data provided herewith, '+'regardless of its format or the means of its transmission. There is no guarantee or representation to the user as to the accuracy, currency, suitability, or reliability of this data for any purpose. '+'The user accepts the data \'as is\', and assumes all risks associated with its use. By accepting this data, the user agrees not to transmit this data or provide access to it or any part of it to another party unless the user shall include with the data a copy of this disclaimer.<br/><br/>'+'Polaris Industries and WeatherNation assumes no responsibility for actual or consequential damage incurred as a result of any user\'s reliance on this data. Public Ownership information on this map comes from a variety of sources and every effort was made to define these areas as accurately as possible. Please refer to posted signs on the ground for exact locations.',buttons:[{id:'fapp-disclaimer-btn-approve',label:'I Accept',callback:{fn:function(e){var self=e.data.self;var opts=self.getOptions();var cookieOpts={};cookieOpts.expires=(wxn.isset(opts.disclaimer.daysToExpire))?opts.disclaimer.daysToExpire:null;wxn.core.Cookie.set(opts.disclaimer.cookieName,1,cookieOpts);self.hideDisclaimer();if(self.showUserHelp===true)self.showInfoWindow('init');}}}],showTopBtn:true,cookieName:'disclaimerApproved',daysToExpire:30},route:{downloadURL:myMapAppHelperURL+'getmaproute.php?f=gpx&n=route[ROUTENUM]&pt=[POINTS]'}};})(jQuery);
