











   //TODO:put into a new file
    var const_top_domain = ".telenav.com";
	var const_ctx_path = '/tnmap';
	var const_inc_path = 'http://includes.telenav.com/tnweb/tnmap/9111/resources/default';
	var const_img_path = 'http://pics.telenav.com/tnweb/tnmap/9111/resources/default';
	// TODO: add the port according as deployment environment.
	var const_map_svr = "http://maps.telenav.com";
	var const_mytn_path = "http://my.telenav.com/mytn";
	var const_map_path = "http://maps.telenav.com/tnmap";
	var const_total_ads_count=2;
	var const_total_ads_playing_interval=60;
	var const_refresh_live_traffic_interval=300;
	
	var widget_home = 'null';
	/**
	* for i18n --below
	*/
	var const_msg_notFound = 'could not be found';
    var const_msg_addrNotFound = 'Address could not be found';
    var const_msg_addrMutMatch = 'Multiple matches were found.  Please choose from following addresses:';
    var const_msg_mean = 'Address: Did you mean...?';
    var const_msg_mul_mean = 'Did you mean...?';
    var const_msg_dir_not_found = 'Driving directions could not be found.';
	var const_msg_poi_no_comment = 'Please input review comments.';
	var const_msg_poi_no_nickname = 'Please input a nickname.';
	var const_msg_poi_no_rating = 'Please select a rating point.';
	var const_msg_result_found = 'result(s) found.';
	var const_msg_poi_not_found = 'Business could not be found.';
	var const_msg_ctg_not_found = 'Category could not be found.';
	var const_msg_addr_not_find='Address: could not find';
	var const_msg_input_blank='Please type the address in the input box.';
	var const_msg_input_start_blank='Please enter the origin address in the input box.';
	var const_msg_input_end_blank='Please enter the destination address in the input box.';
	var const_msg_contact_not_found='No contacts found.';
    //will use property key instead later
    var const_text_trip = 'Trip';
    var const_text_approx = 'approx';
    
    var const_text_reroute = 'Reverse Directions';
    var const_text_pre_step = 'Previous step';
    var const_text_next_step = 'Next step';
    var const_text_show_entire_route = 'Show entire route';
    var const_text_start_addr = 'Start Address';
    var const_text_dest_addr = 'Destination Address';
	var const_text_dis_unit = 'mi';
	var const_text_biz_owner = 'Business owners';
	var const_text_biz_list = 'list your business for free';
	var const_text_biz_telenav = 'with TeleNav!';
    var const_text_biz_rate_this = 'Rate this';
    var const_text_reviews = 'comment(s)';

	var const_popup_btn_share='Share with Friends';
	var const_popup_btn_ics='Add to Calendar';
	
	var const_popup_share_email='Email';
	var const_popup_share_facebook='Facebook';
	var const_popup_share_twitter='Twitter';
	var const_popup_share_linkedin='Linkedin';
	var const_popup_share_myspace='Myspace';
	var const_popup_share_digg='Digg';
	var const_popup_share_delicious='del.clo.us';
	var const_popup_share_reddit='reddit';
	
	var const_popup_ics_outlook='outlook';
	var const_popup_ics_google='google';
	var const_popup_ics_yahoo='yahoo';
	var const_popup_ics_ical='ical';
	
	var const_text_page_pre = 'Previous';
	var const_text_page_next = 'Next';
	var const_text_page_more = 'More';
	
    var const_hint_getmap = 'Street, City, State or Zip Code';
    var const_hint_dir_start_address = 'Start Address';
    var const_hint_dir_dest_address = 'Destination Address';
    var const_hint_poi_biz_name = 'Business Category or Name';
    var const_hint_poi_location = 'Street, City, State or Zip Code';
    
    var const_hint_spot_key='Search Term';
    var const_hint_spot_addr='Street, City, State or Zip Code';
    
    var const_tip_spot_btn='Make a Spot';
    var const_tip_zoomin_btn='Zoom In';
    var const_tip_zoomout_btn='Zoom Out';
    var const_tip_movemap_btn='Move Map';
    var const_tip_hide_tool_bar='Hide Tool Bar';
    var const_tip_show_tool_bar='Show Tool Bar';
    var const_tip_events='Events';
    
    var const_title_find_map='Find Map';
    var const_title_get_dir='Get Directions';
    var const_title_find_biz ='Search Business';
    var const_title_search_event ='Search Events';
    var const_title_address='Address';
    
    var const_text_search_nearby ='Search nearby';
     var const_text_to_here ='To here';
      var const_text_from_here ='From here';
      var const_text_write_review ='Write a review'; 
      var const_text_sync_to_phone ='Send to phone';
      var const_text_details = 'Details';      
      var const_text_weather = 'Weather';
      var const_text_steps='Steps';
      var const_text_entire_route='Show entire route';
      var const_text_mylocations='My Locations';
      var const_text_origin='Origin';
      var const_text_direction='Directions:';
      var const_text_destination='Destination';
      var const_text_add_more_dest='Add a destination';
      var const_text_about='about';
      var const_text_advanced='Advanced';
      var const_text_getLatLon='Get Lat/Lon';
      var const_text_zoom_to='Zoom to:';
      var const_text_zoom_to_street='Street';
      var const_text_zoom_to_city='City';
      var const_text_zoom_to_state='State';
      
       var const_text_my_favorite='My Favorites';
        var const_text_recent_address='Recent Addresses';
      
      var const_text_email_success='This map has been successfully emailed to your friend(s).';
      var const_text_email_sending='Sending Email.';
      var const_text_email_fail='Sending email failed,Please try again later.';
      var const_text_email_fail_too_much='Email sending failed.  You can send the email to maximum 5 recipients at once.';
      var const_email_tip_addr='Address:#1.';
      var const_email_tip_dir='Find directions From: #1 To: #2.';
      var const_email_tip_poi='Search #1 near #2.';
      var const_email_tip_cat='Search #1 nearby.';
      
      var const_text_feedback_fail='Send feedback failed.';
      var const_text_feedback_succ='Thank you for taking the time to send feedback.';
      
     var const_text_review_succ='Your comment has been added.';
      var const_text_review_fail='Your comment failed to be submitted.';
      
       var const_text_poi_suggest='Suggestions:';
       var const_text_poi_suggest_1='Make sure all street and city names are spelled correctly.';
       var const_text_poi_suggest_2='Make sure your address includes a city and state.';
       var const_text_poi_suggest_3='Know about this place and want everyone to find it?'; 
       var const_text_poi_nokey='Please input keyword.';
       var const_text_poi_noaddr='Please input address.';        
       var const_email_no_to='Email address is required.';
       var const_email_not_valid_to='Email address not valid.';
       var const_email_to_max ='Maximum 5 addresses allowed.';
       var const_email_no_from='Your email address is required.';
       var const_email_not_valid_from='Email address is not valid.';
        var const_email_format_invalid='Email address is not valid.';
        
       var const_email_content_empty='Message text required.';
       var const_test_comments = 'Comments';
       var const_test_comment = 'Comment';
       var const_test_reviews = 'Reviews';
       var const_test_review = 'Review';
         
       var const_feedback_no_name = 'Please enter your name.';
       var const_feedback_no_email='Please enter your Email.';
       var const_feedback_email_not_valid='Email address not valid.';
       var const_feedback_no_comment = 'Please enter your comments.';
       var const_feedback_sending= 'Sending feedback.';
       
       var const_confirm_to_sso='This operation need you to login.  Do you want to continue?';
       var const_tip_cat='Click to search for <strong>#1</strong> nearby.';
       var const_tip_cat_config='Click to <strong>Configure</strong> Quick Search Toolbar.';
       var const_tab_weather='Weather';
       var const_tab_descrption='Description';
       var const_tip_open='Click to open panel';
       var const_tip_close='Click to hide panel';
       
       var const_msg_no_weather='Sorry, the service is not available now. Please try again later.';
       var const_msg_sync_to_phone_failed='System error. Please try again later.';
       var const_msg_sync_to_phone_succ='Address has been successfully sent.';
       var const_msg_sync_to_phone_invalid='Phone number is invalid.';
      	var const_msg_sync_to_phone_sending='Sending.';
      	
      var const_msg_pedometer_error='Sorry,we can not find the trip according to your last operation.';
      var const_bookmark_error="Sorry! Your browser doesn't support this function.Please enter CTR+D !";
      var const_msg_pedometer_gpx_error='Sorry,we can not generate route from your GPX file.';
      var const_msg_pedometer_gpx_null='Sorry, please add a GPX file firstly.';
      var const_pedometer_gpx_saved_prefix='(Saved)';

      var const_msg_category_all_promt='All Categories';
      var const_error_category_my_name_empty='Please input the category name.';
      var const_error_category_my_keyword_empty='Please input the category keyword.';
      var const_error_category_my_icon_empty='Please select the category icon.';
      
      var const_live_traffic='Live Traffic';
      var const_historical_traffic='Historical Traffic';
      var const_traffic_change='Change';
      var const_traffic_done='Done';
      var const_tips_and_info=['Right click on the map to search nearby, get directions or to send this location to your phone.','Use your mouse wheel to easily zoom the map in and out. <font color="red">NEW!</font>',
      							'Pan and zoom the map using the arrow keys on your keyboard. <font color="red">NEW!</font>','Click on the icons at the bottom of the map to show the location of nearby points of interest on the map. <font color="red">NEW!</font>'];
      
    /**
    * To check feature manager for creating spot from address.
    */
    
    var const_fm_create_spot_from_addr = 'false';
    
    var images_num_star_blue_gif = const_img_path+"/images/num/star_blue.gif";
    var images_num_star_half_gif = const_img_path+"/images/num/star_half.gif";
    var images_num_star_grey_gif = const_img_path+"/images/num/star_grey.gif";
    
    var images_num_star_blue_gif_b = const_img_path+"/images/num/star_big.gif";
    var images_num_star_half_gif_b = const_img_path+"/images/num/star_half_big.gif";
    var images_num_star_grey_gif_b = const_img_path+"/images/num/star_grey_big.gif";
    
    var images_ratethis_gif = const_img_path+"/images/ratethis.gif"
    
    var images_marker_center_flag_png = const_img_path+"/images/centerFlag.png";
    var images_marker_digit_bg_gif = const_img_path+"/images/digit_bg.gif";
    var images_marker_pnum_gif = const_img_path+"/images/pnum.gif";
    var images_marker_bubble_bule_png = const_img_path+"/images/bubble_bule_large2.png";
    var images_marker_bubble_red_png = const_img_path+"/images/bubble_red_large2.png";
    var images_marker_bubble_bule_large_png=const_img_path+"/images/bubble_bule_large.png";
    var images_marker_bubble_red_large_png=const_img_path+"/images/bubble_red_large.png";
    var images_marker_bubble_bule_small_png=const_img_path+"/images/bubble_bule_small.png";
    var cur_spot=const_img_path+"/images/bubble_bule_small.cur";
    var cur_zoom_in=const_img_path+"/images/zoom_in.cur";
    var cur_zoom_out=const_img_path+"/images/zoom_out.cur";
    
    var images_marker_stAddr_flag_png = const_img_path+"/images/stAddrFlag.png";
    var images_marker_deAddr_flag_png = const_img_path+"/images/deAddrFlag.png";
   
    var images_marker_png = const_img_path+"/images/site_mappoiList.png";
     var address_marker_png = const_img_path+"/images/icon_nail.png";
    var images_marker_pedometer_png = const_img_path+"/images/sport-icon-m.png";
    var images_rule_marker_png = const_img_path+"/images/rule_site_poiList.png";
    var images_marker_default_png = const_img_path+"/images/site_mmDefalut.png";
    var images_marker_routeBiz_png = const_img_path+"/images/site_mmRouteBiz.png";
    var images_marker_route_step_png = const_img_path+"/images/site_dirselect_blank.png";
    var images_marker_event_png = const_img_path+"/images/mm_ca_events.png";
    var images_marker_route_biz_png = const_img_path+"/images/biz_dot.png";
    
    var images_marker_cat_png=const_img_path+"/images/category/mm_ca_#.png";
    var images_marker_cat_jpg=const_img_path+"/images/category/m_ca_#.jpg";
    
    var images_marker_mile_point_png = const_img_path+"/images/mile_dot.png";
    var images_map_icons=const_img_path+"/images/map-icon.png";
    
   	var SYNC_TO_PHONE_FEATURE_ENABLED=false;
   	
