try{
if (poi_image){}
}
catch(e){
poi_image = '../img/redball.gif';
}
try{
if (poi_width){}
}
catch(e){
poi_width = 14;
}
try{
if (poi_height){}
}
catch(e){
poi_height = 14;
}
try{
if (poi_style){}
}
catch(e){
poi_style = 'background-color:white;font-weight: bold;color:black;font-family:Arial;';
}
mb_registerInitFunctions('mod_highlightPOI_init()');
mb_registerSubFunctions('mod_highlightPOI_draw()');
var mod_highlightPOI_minx;
var mod_highlightPOI_miny;
var mod_highlightPOI_maxx;
var mod_highlightPOI_maxy;
var mod_highlightPOI_name = new Array();
var mod_highlightPOI_x = new Array();
var mod_highlightPOI_y = new Array();
var mod_highlightPOI_params = new Array();
var myPOI;
function mod_highlightPOI_init(){
var myPOI = "", $_SESSION['mb_myPOI']);
}else{
echo preg_replace("/\n/", "
", utf8_decode($_SESSION['mb_myPOI']));
}
?>";
if(myPOI != ""){
mod_highlightPOI_params = myPOI.split("|");
for(var i=0; i mod_highlightPOI_maxx){
mod_highlightPOI_maxx = parseInt(mod_highlightPOI_params[i+1]);
}
if(mod_highlightPOI_params[i+2] > mod_highlightPOI_maxy){
mod_highlightPOI_maxy = parseInt(mod_highlightPOI_params[i+2]);
}
}
}
if((mod_highlightPOI_maxx - mod_highlightPOI_minx) < 100){
mod_highlightPOI_minx -= 50;
mod_highlightPOI_maxx += 50;
}
if((mod_highlightPOI_maxy - mod_highlightPOI_miny) < 100){
mod_highlightPOI_miny -= 50;
mod_highlightPOI_maxy += 50;
}
mod_highlightPOI_minx -= 50;
mod_highlightPOI_maxx += 50;
mod_highlightPOI_miny -= 50;
mod_highlightPOI_maxy += 50;
//mb_calculateExtent( mod_highlightPOI_target,mod_highlightPOI_minx,mod_highlightPOI_miny,mod_highlightPOI_maxx,mod_highlightPOI_maxy);
}
}
function mod_highlightPOI_draw(){
var ind = getMapObjIndexByName(mod_highlightPOI_target);
window.frames[mod_highlightPOI_target].document.getElementById('permanent').style.width = mb_mapObj[ind].width;
window.frames[mod_highlightPOI_target].document.getElementById('permanent').style.height = mb_mapObj[ind].height;
window.frames[mod_highlightPOI_target].document.getElementById('permanent').style.top = 0;
window.frames[mod_highlightPOI_target].document.getElementById('permanent').style.left = 0;
window.frames[mod_highlightPOI_target].document.getElementById('permanent').style.visibility = 'visible';
var tagSource = "";
for(var i=0; i";
tagSource += "";
tagSource += ""+mod_highlightPOI_params[i]+"";
tagSource += "";
}
writeTag(mod_highlightPOI_target, "permanent", tagSource);
}