/*
// Mapdoo Icons Configuration 
*/
//var _rooturl = "http://localhost";
var _oMap; 			// declare variable _oMap object
var _sGrp;
var _sMapType = "G_NORMAL_MAP";
var _mapWidth;
var _infoWinWidthMax = "600";
var _sMapid; 		// MapId onload window, use for search hyperlink mapid; http://mapdoo.com/?id=abc123456
var _oInfoWindow;
var _bounds;
var _oSearchTypes;  	// declare search type object
var _oLefttab; 		// declare variable tap on left side
var _resize = true;
var geocoder = null;

var _aMarkerU = []; 	// user markers
var _aMarkerN = [];	// new created markers
var _aMarkerSch = [];	// search result markers
var _aMarkerT = [];	// types/categories markers
var _aMarkerAd = [];	// ad click markers
var _aMarkerLoc = [];	// Tab Ad markers

var _ustart = 0;
var _zoom = 15;
var _bAbleSwapZIndex = true;
var _markerover;
var _nMCount = 1;

var oTypeList = $H(
	{
		'categories':[
			{'id':'1','name':'一日五餐','opt_select':'1','menu_display':'1','sub':[
				{'catid':'1','name':'一日五餐','icon':'ico_1d5m','opt_select':'0','menu_display':'1'},
				{'catid':'111','name':'ChuiLing Like','icon':'ico111','opt_select':'0','menu_display':'1'},
				{'catid':'112','name':'Fans Like','icon':'ico112','opt_select':'1','menu_display':'1'},
				{'catid':'113','name':'Fans Dislike','icon':'ico113','opt_select':'1','menu_display':'1'}
			]}
		]
	}
);
var _aMsg = [];
_aMsg["str"] = "Key in MapdooID, business title or address.";
_aMsg["loc"] = "Street, road, garden, city or state name";

var _aErrormsg = [];
_aErrormsg["sl1"] = "<div><p>Your search for <b class='error1'>{schstr}</b> around this map area did not match any locations.</p><br /><p>Suggestions:</p><ul><li>Try to zoom or drag the map to the area you want to search.</li><br /><li>Make sure all words are spelled correctly.</li><br /><li>Try different keywords.</li><br /><li>Try more general keywords.</li></ul></div>";
_aErrormsg["sl2"] = "<div><p>Your search for <b class='error1'>{schloc}</b> did not match any locations.</p><br /><p>Suggestions:</p><ul><li>Make sure all words are spelled correctly.</li><br /><li>Try different keywords.</li><br /><li>Try more general keywords.</li></ul></div>";
_aErrormsg["sl3"] = "<div><p>Your search for <b class='error1'>{schstr}</b> near <b class='error1'>{schloc}</b> did not match any locations.</p><br /><p>Suggestions:</p><ul><li>Make sure all words are spelled correctly.</li><br /><li>Try different keywords.</li><br /><li>Try more general keywords.</li></ul></div>";

_aErrormsg["db"] = "ERROR :: Error Data Connection";
_aErrormsg["db1"] = "<div class='error'>ERROR :: <br />Error Data Connection</div>";

_aErrormsg["ide1"] = "<div><p>Your search for MapdooID <b class='error1'>{schstr}</b> did not match.</p><br /><p>Suggestions:</p><ul><li>Try other MapID.</li></ul></div>";
_aErrormsg["pmdb"] = "ERROR :: Error Data Connection. Please re-login to try again.";
_aErrormsg["pmdb1"] = "<div class='error'>ERROR :: <br />Error Data Connection. Please re-login to try again.<div>";
_aErrormsg["pm1"] = "Error adding, deleting or editing a placemark. Please re-login to try again.";

_aErrormsg["schtype1"] = "ERROR :: Error searching this categories or type.";
_aErrormsg["noplc"] = "<div class='error'>No place added in this directory.</div>";

var curwinid;
var curlist;
var editoropen = false;
