var popSet=new Array();
var actionCallBack={};
var actionSet='';
var isEntity=false;

function getMapId(){
	return map;
}
function getD(){
	return popomap.getD(1);
}
function go2xy(x,y){
	popomap.go2xy(x,y);
}
function go2xyS(x,y){
	popomap.go2xyS(x,y);
}
function selectMode(mode){
	popomap.selectMode(mode);
}
function showUserPop(arr){
	popomap.addUserPop(arr);
}
function cleanUserPop(){
	popomap.addUserPop();
}


function myCustomFun(evt,sign){
	switch(sign){
		case 'removeAll':
			removeAll();
			break;
		case 'removePop_addNote':
			removePop_addNote();
			break;
		case 'removePop_showNote':
			removePop_showNote();
			break;
		case 'removePop_editNote':
			removePop_editNote();
			break;
		case 'removePop_addPost':
			removePop_addPost();
			break;
		case 'removePop_showPost':
			removePop_showPost();
			break;
		case 'removePop_addErr':
			removePop_addErr();
			break;
		case 'removePop_showInfo':
			removePop_showInfo();
			break;
		case 'addErr':
			addErr();
			break;
		case 'howArrive':
			howArrive();
			break;
		default:
			alert('custom');
	}
}
function getMapRang(){
	var centerX=popomap.getCenterX();
	var centerY=popomap.getCenterY();
	var mapWidth=popomap.getMapWidth();
	var mapHeight=popomap.getMapHeight();
	var zz=Math.pow(2,popomap.getZoom()-1);
	var startX=centerX-Math.floor(mapWidth/2)*zz;
	var startY=centerY-Math.floor(mapHeight/2)*zz;
	var endX=startX+mapWidth*zz;
	var endY=startY+mapHeight*zz;
	return {centerX:centerX,centerY:centerY,mapWidth:mapWidth,mapHeight:mapHeight,startX:startX,startY:startY,endX:endX,endY:endY};
}
function getCoor(){
	var x=popomap.getAreaUnitInfo().x;
	var y=popomap.getAreaUnitInfo().y;
	x=Math.floor(x/2);
	y=Math.floor(y/2);
	return {x:x,y:y};
}
function getEUInfo(){
	var x=popomap.getAreaUnitInfo().x;
	var y=popomap.getAreaUnitInfo().y;
	var areaId=popomap.getAreaUnitInfo().AreaID;
	var areaName=popomap.getAreaUnitInfo().AreaName;
	var unitId=popomap.getAreaUnitInfo().UnitId;
	var unitName=popomap.getAreaUnitInfo().UnitName;
	var id=0;
	var name='';
	var flag=0;
	if(areaId){
		id=areaId;
		name=areaName;
	}
	else{
		id=unitId;
		name=unitName;
		flag=1;
	}
	return {id:id,name:name,x:x,y:y,flag:flag};
}


function removePop_All(){
	popomap.removePop('addNote');
	popomap.removePop('addErr');
	popomap.removePop('addPost');
	popomap.removePop('showPost');
	popomap.removePop('showNote');
	return false;
}


function setActionSet(value){
	actionSet=value;
}
function getActionSet(){
	return actionSet;
}
function cleanActionSet(){
	actionSet='';
	popomap.setMapTip();
}
function addNoteOpen(){
	setActionSet('addNote');
	popomap.setMapTip('<img src="/images/map/rightTip.gif">');
	popomap.selectMode(0);
}
function addNote(x,y,url){
	var sx=150*Math.pow(2,popomap.getZoom()-1);
	var htmlStr=popSet['addNote'];
	var flag=false;
	if(!x||!y){
		x=popSet['X'];
		y=popSet['Y'];
		flag=true;
	}
	var params={x:x,y:y};
	var w=320;
	var h=300;
	if(typeof(url)=='undefined') url=ui.getUrl('addNote',params);
	htmlStr=htmlStr.replace('!{w1}',w+20);
	htmlStr=htmlStr.replace('!{h1}',h+50);
	htmlStr=htmlStr.replace('!{w2}',w);
	htmlStr=htmlStr.replace('!{h2}',h);
	htmlStr=htmlStr.replace('!{url}',url);
	removePop_addNote();
	if(flag)popomap.go2xyS(parseInt(x)+sx,y,null,createPop_addNote);
	else{
		popomap.go2xy(parseInt(x)+sx,y);
		createPop_addNote();
	}
	function createPop_addNote(){
		cleanActionSet();
		//navUtils.addNoteClose();
		popomap.createPop('addNote',htmlStr,x,y,103,106,5);
	}
}
function removePop_addNote(){
	popomap.removePop('addNote');
	return false;
}
function editNote(id){
	var url='/note.jspa?id='+id;
	postData(url,null,parseData);

	function parseData(value){
		var o={};
		try{
			if(value){
				o=eval('('+value+')');
				x=parseInt(o.x);
				y=parseInt(o.y);
			}
			else{
				return;
			}
		}
		catch(e){
			return;
		}
		removePop_All();
		//popomap.invokeFun('removeNote',o.id);

		var params={x:x,y:y};
		var htmlStr=popSet['editNote'];
		var w=320;
		var h=300;		
		htmlStr=htmlStr.replace('!{w1}',w+70);
		htmlStr=htmlStr.replace('!{h1}',h+50);
		htmlStr=htmlStr.replace('!{w2}',w);
		htmlStr=htmlStr.replace('!{h2}',h);
		htmlStr=htmlStr.replace('!{ico}',o.ico);
		htmlStr=htmlStr.replace('!{url}','/member/note.jspa?_flowId=mine-edit&uuid='+id);
		//popomap.invokeFun('removeNote',o.id);
		popomap.invokeFun('createFloatPop','noteedit',htmlStr,parseInt(o.x),parseInt(o.y),103,106,5);
	}
	//popomap.invokeFun('removeNote',d.id);
	//var htmlStr='<img src="http://'+domain_config.api+'/images/skin3/icon/note_'+d.ico+'.gif" width="27" height="37" border="0">';
	//popomap.invokeFun('createFloatPop','noteedit',htmlStr,parseInt(d.x),parseInt(d.y),14,37,5);
}
function showNoteAfterEdit(id){
	removePop_addNote();
	popomap.removePop('noteedit');
	removeNote(id);
	showNote(id);
	try{
		if(rightPanel1TargetIfr.reload_minelist){
			rightPanel1TargetIfr.reload_minelist();
		}
	}
	catch(e){
	}
}
function choiceNoteIco(index){
	var src='http://'+domain_config.api+'/images/skin3/icon/note_'+index+'.gif';
	var id="noteEditIco";
	popomap.getMap().uHtml.changeAttribute(id,'src',src);
}
function createNote(o){
	popomap.createSignExt('note',o);
}
function removeNote(id){
	var handler=popomap.getInnerInstances().dataLoader.getSignHandler('note');
	handler.removeNote(id);
}
function removePop_editNote(){
	popomap.invokeFun('removeFloatPop','noteedit');
}
function showNote(id,type,temp,times){
	if(!times) times=0;
	var readOnly=false;
	isDoMapInit=true;
	times++;
	if(times>100) return;
	if(popomap.getMapStatus()){
		var url='/note.jspa?id='+id;
		if(type){
			readOnly=true;
			url+='&type='+type;
		}
		postData(url,null,parseData);
	}
	else{
		var fun='showNote('+id+',0,0,'+times+')';
		window.setTimeout(fun,100);
	}

	function parseData(value){
		var o={};
		try{
			if(value){
				o=eval('('+value+')');
			}
			else{
				popomap.init(0,0,true);
				alert("您所查看的便签不存在或已被删除！");
				return;
			}
		}
		catch(e){
			popomap.init(x,y,true);
			return;
		}
		
		createPop_showNote(o);
	}

	function createPop_showNote(o){
		try{switchNavView(0);}
		catch(e){}
		if(typeof loginStatus=='undefined') var loginStatus='';
		if(typeof pageMapType=='undefined') var pageMapType='';
		var sx=150*Math.pow(2,popomap.getZoom()-1);
		var htmlStr=popSet['showNote'];
		var x=parseInt(o.x);
		var y=parseInt(o.y);
		var params={x:x,y:y,id:id,type:type};
		var w=320;
		var h=200;		
		htmlStr=htmlStr.replace('!{w1}',w+20);
		htmlStr=htmlStr.replace('!{h1}',h+50);
		htmlStr=htmlStr.replace('!{w2}',w);
		htmlStr=htmlStr.replace('!{h2}',h);
		htmlStr=htmlStr.replace('!{url}',ui.getUrl('showNote',params));
		if(loginStatus!=''&&loginStatus==o.creatorUsername)htmlStr=htmlStr.replace('!{edit}','&nbsp;<a href="#" onclick="parent.editNote(\''+id+'\')" class="cWhite" style="font-weight:normal;">[编辑]</a>&nbsp;<a href="#" onclick="parent.hiddenNote(\''+id+'\')" class="cWhite" style="font-weight:normal;">[隐藏]</a>');
		else if(pageMapType=='index') htmlStr=htmlStr.replace('!{edit}','&nbsp;<a href="#" onclick="parent.transformNote2Note(\''+id+'\')" class="cWhite" style="font-weight:normal;">[转为便签]</a>');
		else htmlStr=htmlStr.replace('!{edit}','');
		htmlStr=htmlStr.replace('!{ico}',o.ico);
		removePop_showNote();
		popomap.go2xy(x+sx,y);
		popomap.createPop('showNote',htmlStr,x,y,103,106,6);
		popomap.init(x+sx,y);

		if(!temp)createNote(o);
	}
}
function removePop_showNote(){
	popomap.removePop('showNote');
	return false;
}
function hiddenNote(id){
	var url='member/note.jspa?_flowId=mine-set&state=false&uuid='+id;
	postData(url,null,fun);

	function fun(data){
		if(data!=null){
			removePop_showNote();
			removeNote(id);
		}
	}
}

function addErrOpen(){
	setActionSet('addErr');
	popomap.setMapTip('<img src="/images/map/rightTip.gif">');
	popomap.selectMode(0);
}
function addErr(x,y){
	if(!x||!y) {
		x=popomap.getAreaUnitInfo().x;
		y=popomap.getAreaUnitInfo().y;
	}
	var sx=150*Math.pow(2,popomap.getZoom()-1);
	var htmlStr=popSet['addErr'];
	if(!x)x=popSet['X'];
	if(!y)y=popSet['Y'];
	var params={x:x,y:y};
	htmlStr=htmlStr.replace('!{url}',ui.getUrl('addError',params));
	popomap.setMapTip();
	removePop_addErr();
	popomap.go2xyS(parseInt(x)+sx,y,null,createPop_addErr);
	function createPop_addErr(){
		cleanActionSet();
		popomap.createPop('addErr',htmlStr,x,y,0,118,5);
	}
}
function removePop_addErr(){
	popomap.removePop('addErr');
	return false;
}
function addPostOpen(){
	setActionSet('addPost');
	popomap.setMapTip('<img src="/images/map/rightTip.gif">');
}


function getPosXYOpen(callback){
	actionCallBack['getPosXY']=callback;
	crossApi.setCfg('callback',callback);
	setActionSet('getPosXY');
	national.showMsg('%{MousePointInfo:点右键获取地址}');
	popomap.setMapTip('<span style="color:red;font-size:12px;">'+national.getStr('Prompt','MousePointInfo','点右键获取地址')+'</span>');
}
function getPosXYClose(){
	actionCallBack['getPosXY']='';
	popomap.removePop('popAnchor');
	cleanActionSet();
}
function getPosXY(){
	//ifrRight.document.forms[0].x.value=popSet['X'];
	//ifrRight.document.forms[0].y.value=popSet['Y'];
	var params={x:popSet['X'],y:popSet['Y']};
	var fun=actionCallBack['getPosXY'];
	if(typeof fun=='function')fun(params);
	else if(typeof fun=='string') {
		crossApi.setCfg('callback',fun);
		crossApi.execute(params);
	}
	popomap.removePop('popAnchor');
	popomap.createPopT('popAnchor','<img src="/images/map/anchor.gif">',popSet['X'],popSet['Y'],12,12,5);
}
function getPtInfoOpen(){
	isEntity=false;
	setActionSet('getPtInfo');
	national.showMsg('%{MousePointInfo:点右键获取地址}');
	popomap.setMapTip('<span style="color:red;font-size:12px;">'+national.getStr('Prompt','MousePointInfo','点右键获取地址')+'</span>');
}
function getPtInfo(){
	if(confirm(national.getStr('Prompt','DoSetPoint','您确定设置该点吗')+'？')){
		var x=Math.floor(popSet['X']/2);
		var y=Math.floor(popSet['Y']/2);
		var id='';
		var name='';
		if(isEntity){
			id=popomap.getAreaUnitInfo().AreaID;
			name=popomap.getAreaUnitInfo().AreaName;
		}
		ifrRight.document.forms[0].centerX.value=x;
		ifrRight.document.forms[0].centerY.value=y;
		ifrRight.document.forms[0].entity.value=id;
		ifrRight.document.forms[0].entityName.value=name;
		cleanActionSet();
		popomap.setMapTip();
	}
}
function getPointInfoOpen(fun){
	isEntity=false;
	actionCallBack['getPointInfo']=fun;
	setActionSet('getPointInfo');
	//national.showMsg('%{MousePointInfo:点右键获取地址}');
	popomap.setMapTip('<img src="/images/map/rightTip2.gif">');
}
function getPointInfo(){
	if(confirm(national.getStr('Prompt','DoSetPoint','您确定设置该点吗')+'？')){
		var x=popSet['X'];
		var y=popSet['Y'];
		var id='';
		var name='';
		if(isEntity){
			id=popomap.getAreaUnitInfo().AreaID;
			name=popomap.getAreaUnitInfo().AreaName;
		}
		var zoom=popomap.getZoom();
		var o={entityId:id,entityName:name,x:x,y:y,zoom:zoom};
		var fun=actionCallBack['getPointInfo'];
		if(typeof fun=='function'){
			fun(o);
		}
		else if(typeof fun=='string'){
			crossApi.setCfg('callback',fun);
			crossApi.execute(o);
		}
		cleanActionSet();
		popomap.setMapTip();
		return true;
	}
	return false;
}


function showResult(id,type,times){
	if(!times) times=0;
	times++;
	if(times>100) return;
	var mapData={};
	mapData.entity={};
	mapData.unit={};

	var url='';
	if(type==1)
		url='/resource/js/entity/'+map+'/'+Math.floor(id/1000)+'/'+id+'.js';
	else 
		url='/resource/js/unit/'+map+'/'+Math.floor(id/1000)+'/'+id+'.js';
	if(popomap.getMapStatus()){
		postData(url,null,parsexml);
	}
	else{
		var fun='showResult('+id+','+type+','+times+')';
		window.setTimeout(fun,100);
	}


	function parsexml(value){
		var x=0,y=0;
		try{
			if(value){
				var o=eval('('+value+')');
				x=o.x;
				y=o.y;
			}
			else{
				popomap.init(x,y,true);
				return;
			}
		}
		catch(e){
			popomap.init(x,y,true);
			return;
		}
		//popomap.go2xy(x,y);
		var noSlowF=false;
		if(getNavStatus()) {switchNavView(0);noSlowF=true;}
		popomap.init(x,y);
		if(type==1)
			popomap.showOCInfo(x,y,id,0,false,noSlowF);
		else 
			popomap.showOCInfo(x,y,0,id,true,noSlowF);
	}
}
function showResult2(id,x,y,type,name){
	//alert(id+','+x+','+y+','+type+','+name);
	/*if(getNavStatus()) {switchNavView(0);switchMapView(1);popomap.init(x,y);noSlowF=true;}
	if(type==1)
		popomap.showOCInfo(x,y,id,0,false,false);
	else if(type==2)
		popomap.showOCInfo(x,y,0,id,true,false);
	else*/
		showPop(x,y,name);
}
function showInfo(id,x,y,type,subtype,times){
	if(getNavStatus()) {switchNavView(0);popomap.init(x,y);}
	var sx=180*Math.pow(2,popomap.getZoom()-1);
	var sy=20*Math.pow(2,popomap.getZoom()-1);
	htmlStr=popSet['showInfo'];
	if(!x||!y){
		htmlStr=popSet['showInfo1'];
		x=popomap.getCenterX()-sx;
		y=popomap.getCenterY()+sy;
	}
	if(type!='news'){
		var params={id:id,type:type,subtype:subtype};
		htmlStr=htmlStr.replace('!{url}',ui.getUrl('showInfo',params));
	}
	else{
		var params={id:id,type:type};
		htmlStr=htmlStr.replace('!{url}',ui.getUrl('showNews',params));
	}
	removePop_showInfo();
	popomap.go2xy(parseInt(x)+sx,parseInt(y)-sy);
	createPop_showInfo();

	function createPop_showInfo(){
		popomap.createPop('showInfo',htmlStr,x,y,0,140,6);
		//mapInit();
	}
}
function removePop_showInfo(){
	popomap.removePop('showInfo');
	return false;
}
function gotoTarget(x,y,id,cid){
	//popomap.removePop('his');
	//popomap.go2xyS(x,y,null,null);
	//popomap.createPopT('his',name,x,y,0,0,5);
	popomap.showOCInfo(x,y,id,cid,true);
}


popSet['addNote']='<img id="noteEditIco" style="position:absolute;left:88px;top:70px;" src="http://'+domain_config.api+'/images/skin3/icon/note_1.gif" width="27" height="37" border="0"><div class="Mapinfo_min">  <div class="pointer"><img src="../../images/map/popwin/ui_point.gif"></div>  <div class="con" style="width:!{w1};height:!{h1}">   <div class="name">      <div class="icon"><img src="../../images/map/popwin/getblog2.gif" width="14" height="14"></div>  <div class="closebt"><a href="#" onclick="parent.removePop_addNote();return false;"></a></div>  <div class="info_h2">'+national.getStr('Citymap','AddNote','添加便签')+'</div>   </div>   <div class="box"><iframe id="addNoteIfr" name="addNoteIfr" style="WIDTH:!{w2};HEIGHT:!{h2}" scrolling="no" frameborder="no" src="!{url}"></iframe></div>  </div></div>';
popSet['editNote']='<img id="noteEditIco" style="position:absolute;left:88px;top:70px;" src="http://'+domain_config.api+'/images/skin3/icon/note_!{ico}.gif" width="27" height="37" border="0"><div class="Mapinfo_min">  <div class="pointer"><img src="../../images/map/popwin/ui_point.gif"></div>  <div class="con" style="width:!{w1};height:!{h1}">   <div class="name">      <div class="icon"><img src="../../images/map/popwin/getblog2.gif" width="14" height="14"></div>  <div class="closebt"><a href="#" onclick="parent.removePop_editNote();return false;"></a></div>  <div class="info_h2">'+national.getStr('Citymap','editNote','修改便签')+'</div>   </div>   <div class="box"><iframe id="ifSmallAddPost" style="WIDTH:!{w2};HEIGHT:!{h2}" scrolling="no" frameborder="no" src="!{url}"></iframe></div>  </div></div>';
popSet['showNote']='<img id="noteShowIco" style="position:absolute;left:88px;top:70px;" src="http://'+domain_config.api+'/images/skin3/icon/note_!{ico}.gif" width="27" height="37" border="0"><div class="Mapinfo_min">  <div class="pointer"><img src="../../images/map/popwin/ui_point.gif"></div>  <div class="con" style="width:!{w1};height:!{h1}">   <div class="name">      <div class="icon"><img src="../../images/map/popwin/getblog2.gif" width="14" height="14"></div>  <div class="closebt"><a href="#" onclick="parent.removePop_showNote();return false;"></a></div>  <div class="info_h2">'+national.getStr('Citymap','Note','便签')+'!{edit}</div>   </div>   <div class="box"><iframe id="ifSmallAddPost" style="WIDTH:!{w2};HEIGHT:!{h2}" scrolling="no" frameborder="no" src="!{url}"></iframe></div>  </div></div>';
popSet['addErr']='<div class="window_shadow2"><div class="window_boder2" ><div style="position:absolute; margin-left:-56px; margin-top:80px; padding:0px;"><img src="/images/xinxi/point.gif" width="55" height="39"></div><div class="window_boder_tt"><div class="window_boder_tt_left">'+national.getStr('Citymap','Mistake','糾錯')+'</div><div class="window_close"><img src="/images/map/close.gif" width="16" height="16" style="cursor:pointer;" onclick="parent.removePop_addErr();return false;"></div></div><iframe id="ifAddErr" style="WIDTH:210px;HEIGHT:160px" scrolling="no" frameborder="no" src="!{url}"></iframe></div></div>';
popSet['addPost']='<div style="width:469px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">    <tr>      <td width="69" background="/images/bbs_69x1.gif"  valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">        <tr>          <td height="110px">&nbsp;</td>        </tr>        <tr>          <td><img src="/images/bbs_69x35.gif" width="69px" height="35px" /></td>        </tr>      </table></td>      <td style="border-top-width: 3px;border-right-width: 3px;border-bottom-width: 3px;border-top-style: solid;border-right-style: solid;border-bottom-style: solid;border-top-color: #CCCCCC;border-right-color: #CCCCCC;border-bottom-color: #CCCCCC;background-color: #FFFFFF;"><table width="100%" border="0" cellpadding="0" cellspacing="0">        <tr>          <td bgcolor="#F6F6F6" width="380px" style="font-size:12px"><b>&nbsp;发表猎闻</b></td>          <td width="20px" bgcolor="#F6F6F6"><img src="/images/bbs_close.gif" style="cursor:pointer;" onclick="parent.removePop_addPost()"></td>        </tr>        <tr>          <td colspan="2"><iframe id="ifAddErr" style="WIDTH:400px;HEIGHT:250px" scrolling="yes" frameborder="no" src="/mutual/message.jspa?_flowId=edit&typeId={$ID}&x={$X}&y={$Y}&locale={$LOCALE}"></iframe></td>        </tr>      </table></td>    </tr>  </table></div>';
popSet['showPost']='<div style="width:410px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">    <tr>      <td width="69" background="/images/bbs_69x1.gif"  valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">        <tr>          <td height="110px">&nbsp;</td>        </tr>        <tr>          <td><img src="/images/bbs_69x35.gif" width="69px" height="35px" /></td>        </tr>      </table></td>      <td style="border-top-width: 3px;border-right-width: 3px;border-bottom-width: 3px;border-top-style: solid;border-right-style: solid;border-bottom-style: solid;border-top-color: #CCCCCC;border-right-color: #CCCCCC;border-bottom-color: #CCCCCC;background-color: #FFFFFF;"><table width="100%" border="0" cellpadding="0" cellspacing="0">        <tr>          <td bgcolor="#F6F6F6" width="345px" style="font-size:12px"><b>&nbsp;猎闻</b></td>          <td width="20px" bgcolor="#F6F6F6"><img src="/images/bbs_close.gif" style="cursor:pointer;" onclick="parent.removePop_showPost()"></td>        </tr>        <tr>          <td colspan="2"><iframe id="ifAddErr" style="WIDTH:360px;HEIGHT:250px" scrolling="yes" frameborder="no" src="/mutual/message.jspa?_flowId=view&id={$ID}&locale={$LOCALE}"></iframe></td>        </tr>      </table></td>    </tr>  </table></div>';
popSet['showInfo']='<div style="position:absolute;left:-12px;top:128px;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="24px" height="24px">  <param name="movie" value="/images/flash/kkk.swf">  <param name="quality" value="high">  <param name="wmode" value="transparent">   <embed src="api/images/kkk.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="24px" height="24px"></embed></object></div><div class="windowsbox"> <div class="windows" style="border: none; background:none">    <div class="title"> <div class="ico"></div> <h2 id="map_comNameH">信息定位</h2> <div class="close" title="关闭"><a href="#" onclick="mapApi.removePop(\'showInfo\');return false;"></a></div>   </div>   <div><img src="/images/skin3/index/info/dingwei_1_r2_c3.gif" width="330" height="9"></div>   <div class="rollbox">   <iframe id="" name="right" src="!{url}" frameBorder="0" height="100%" width="310" scrolling="auto"></iframe>   </div>   <div><img src="/images/skin3/index/info/dingwei_1_r7_c2.gif" width="330" height="20"></div> </div> <!--end of co infm, w point--> <div class="wpoint"><img src="/images/skin3/index/info/dingwei_1_r5_c1.gif"></div></div>';
popSet['showInfo1']='<div style="position:absolute;left:400px;top:10px;border: 1px solid #ff6600;color:ff6600;padding: 0 2;cursor:pointer;margin: 0 2 0 0;" onClick="parent.removePop_showInfo();return false;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 9px;"><b>X</b></span></div><div id="Layer1">	<div style="background:#fff;border:1px solid #60B9F2;padding:0 0 0 0;width:420;height:300;">	<div style="height:100%; width:100%; background:#AFE0FD; padding:3px;">		<div style="background:#fff;height:100%; width:100%;">		  <iframe src="http://info.'+domain_config.main+'/mainview.jsp?type={$TYPE}&subtype={$SUBTYPE}&id={$ID}&locale={$LOCALE}" height="100%" width="100%" frameborder="0" scrolling="no" ></iframe>		</div>	</div>	</div>	<div></div>';
popSet['iframePop']='<div class="Mapinfo_min" style="width:!{w1};height:!{h1}">  <div class="pointer"><img src="../../images/map/popwin/ui_point.gif"></div>  <div class="con">   <div class="name">      <div class="icon"><img src="../../images/map/popwin/getblog2.gif" width="14" height="14"></div>  <div class="closebt"><a href="#" onclick="Instances.map.removePop(\'!{id}\');return false;"></a></div>  <div class="info_h2">!{title}</div>   </div>   <div class="box"><iframe id="user_iframe" name="user_iframe" style="WIDTH:!{w2}px;HEIGHT:!{h2}px" scrolling="no" frameborder="no" src="!{url}"></iframe></div>  </div></div>';
