	// marker list
	if(typeof(markerlist) == 'undefined') var markerlist = [];

	// map initialize
	_aqa_.setLoad(
		function (){

			/*>>>>> set this filename <<<<<*/
			var filename = 'ysmap.js';
			var iurl = '';

			// map container
			if(!_aqa_.$('map_canvas')) return;

			// marker list
			if(typeof(mapopt) != 'undefined' && mapopt) markerlist.unshift(mapopt);
			if(!markerlist.length) return;

			// icon URL
			var scr = document.getElementsByTagName('script');
			for(var i in scr){
				if(scr[i].src && scr[i].src.indexOf(filename) > -1){
					iurl = scr[i].src;
					break;
				}
			}
			if(iurl.indexOf('/') === 0) iurl = location.protocol + '//' + location.host + iurl;
			iurl = iurl.replace(filename, 'gmap/');

			// map
			_aqa_.map.init('map_canvas');

			// marker
			for(var i = 0; markerlist.length > i; i++){
				if(!markerlist[i]) continue;
				_aqa_.map.getLatLng(
					markerlist[i],
					(function (index){
						return function (p){
							// icon
							var mkr = null;
							var prp = markerlist[index];
							var opt = {};
							var icon = new GIcon();
							icon.image = iurl + (prp.icon || 'red.png');
							icon.shadow = iurl + 'shadow.png';
							icon.iconSize = new GSize(19, 31);
							icon.shadowSize = new GSize(38, 31);
							icon.iconAnchor = new GPoint(19, 31);
							icon.infoWindowAnchor = new GPoint(8, 7);
							opt.icon = icon;

							// title
							if(prp.title) opt.title = prp.title;

							// marker
							mkr = _aqa_.map.setMarker(index, {GLatLng:p}, opt).markers[index];

							// main maker
							if(index == 0) _aqa_.map.setCenter({GLatLng:p}).map.setZoom(12);

							// mouseover : infowindow
							if(prp.info){
								var w = 0;
								// click -> open
								GEvent.addListener(mkr, 'click', function(v){w = w || mkr.openInfoWindowHtml(prp.info) || 1;});
								// mouseover -> open
								/*
								GEvent.addListener(mkr, 'mouseover', function(v){w = w || mkr.openInfoWindowHtml(prp.info) || 1;});
								*/
								// close event
								GEvent.addListener(mkr, 'infowindowclose', function(v){w = 0});
							}

							// click -> to detail
							/*
							if(prp.detailurl){
								GEvent.addListener(mkr, 'click', function(v){location.href = prp.detailurl;});
							}
							*/
						}
					})(i),
					function (){}
				);
			}

			// release
			_aqa_.setUnload(
				function (){
					//if(typeof(GUnload) != 'undefined') GUnload();
					_aqa_.map.clear();
				}
			);
		}
	);

