exp_map = false; function exp_openList(elem) { var list = exp_getNext(elem.parentNode.parentNode.parentNode.parentNode,'ul'); list.style.display = 'block'; elem.getElementsByTagName('img')[0].src = 'img/explore/minus.gif'; elem.onclick = function() {exp_closeList(elem)}; if(parseInt(navigator.userAgent.toLowerCase().substr(navigator.userAgent.toLowerCase().indexOf('msie') + 5,3)) < 7) { redraw(); } } function exp_closeList(elem) { var list = getNext(elem.parentNode.parentNode.parentNode.parentNode,'ul'); list.style.display = 'none'; elem.getElementsByTagName('img')[0].src = 'img/explore/plus.gif'; elem.onclick = function() {exp_openList(elem)}; if(parseInt(navigator.userAgent.toLowerCase().substr(navigator.userAgent.toLowerCase().indexOf('msie') + 5,3)) < 7) { redraw(); } } function exp_selectTheme(elem,id,noload) { var query = new Array(); query.push("category="+id); if(!noload) { Request("kur/loaddetail.php",query.join("&"),md_loadDetail); } // var list = document.getElementById("themes").childNodes; // for(var i=0;i 0) { var bounds = new GLatLngBounds(); for(var i=0; i 18) new_Zoom = 18; exp_map.setZoom(new_Zoom); exp_map.panTo(new_Center); //exp_moveMap(act_Zoom,act_Center,new_Zoom,new_Center,10,100); } function exp_setActivePOI(cat,id,subid) { for(var i=0;i 0) getDirectChilds(elem,"p")[0].style.fontWeight = "normal"; var list = getDirectChilds(elem,"ul"); for(var i=0;iz) z=x; } return z; } function exp_getBoundsmO() { var bounds = new GLatLngBounds(); for(var i=0;i"+this.title+""; } if(this.image != null) { var im = new Image(); im.src = "img/ortsinfogeo/"+this.image; document.preImages.push(im); this.infoWindow = this.infoWindow + "\"Bild\""; } if(this.infoWindow != "") { this.infoWindow = this.infoWindow + "
"; } else { this.infoWindow = null; } if(this.infoWindow != null) { this.marker.bindInfoWindowHtml(this.infoWindow); } }*/ //exp_map.addOverlay(this.marker); //this.marker.hide(); //this.setActive(false); //GEvent.addListener(this.marker,'click',function() {exp_clicked(cat,id,subid);}); } function exp_showMarker() { if(this.marker == null) { this.setActive(false); } this.marker.show(); } function exp_hideMarker() { if(this.marker != null) this.marker.hide(); } function exp_MarReset() { if(this.marker != null) { exp_map.addOverlay(this.marker); } this.setActive(false); } function exp_setActiveM(active,subid) { if(active == true) { if(this.active != true || this.marker == null) { var cat = this.cat; var zindex = exp_mapOb.maxZIndex(cat)+1; var newmarker = new GMarker( this.ll,{title: this.mtitle, zIndexProcess: function(marker,b) { return zindex; }}); exp_map.addOverlay(newmarker); newmarker.setImage('img/explore/marker/blau'+this.num+'.png'); if(this.marker != null) { exp_map.removeOverlay(this.marker); } if(this.image != null) { this.infoWindow = ""; if(this.title != null) { this.infoWindow = this.infoWindow + ""; } if(this.image != null) { var im = new Image(); im.src = "img/ortsinfogeo/"+this.image; document.preImages.push(im); this.infoWindow = this.infoWindow + ""; } if(this.infoWindow != "
"+this.title+"
\"Bild\"
") { this.infoWindow = this.infoWindow + "
"; } else { this.infoWindow = null; } if(this.infoWindow != null) { newmarker.bindInfoWindowHtml(this.infoWindow); } } var cat = this.cat; var id = this.id; var mid = this.mid; GEvent.addListener(newmarker,'click',function() {exp_clicked(cat,id,mid);}); this.marker = newmarker; if(this.mid == subid && this.infoWindow != null) { this.marker.openInfoWindowHtml(this.infoWindow); } this.active = true; } } else { if(this.active != false || this.marker == null) { var newmarker = new GMarker( this.ll,{title: this.mtitle}); exp_map.addOverlay(newmarker); newmarker.setImage('img/explore/marker/rot'+this.num+'.png'); if(this.marker != null) { exp_map.removeOverlay(this.marker); } if(this.image != null) { this.infoWindow = ""; if(this.title != null) { this.infoWindow = this.infoWindow + ""; } if(this.image != null) { var im = new Image(); im.src = "img/ortsinfogeo/"+this.image; document.preImages.push(im); this.infoWindow = this.infoWindow + ""; } if(this.infoWindow != "
"+this.title+"
\"Bild\"
") { this.infoWindow = this.infoWindow + "
"; } else { this.infoWindow = null; } if(this.infoWindow != null) { newmarker.bindInfoWindowHtml(this.infoWindow); } } var cat = this.cat; var id = this.id; var mid = this.mid; GEvent.addListener(newmarker,'click',function() {exp_clicked(cat,id,mid);}); this.marker = newmarker; this.active = false; } } //mapOb.checkVisibility(this.id); } function exp_getLL() { return this.ll; } function exp_clicked(cat,id,subid) { exp_setPlace(cat,id,subid); //mapOb.setActive(id); } function exp_getX() { return this.marker.getLatLng().lng(); } function exp_getY() { return this.marker.getLatLng().lat(); } function exp_startResize() { //document.getElementById("resize").style.height = 50+"px"; document.getElementById("scrollhelp").style.display = "block"; //document.getElementById("resize").addEventListener("mousemove",function() {alert("move")},false); addEvent(document.body,"mouseup",exp_stopResize) addEvent(document.body,"mousemove",exp_mapResize); } function exp_mapResize(event) { var top = document.getElementById("expmap").offsetTop; var par = document.getElementById("expmap").offsetParent; while(par) { top += par.offsetTop; par = par.offsetParent; } var newheight = mouseY(event) - top; if(newheight < 300) newheight = 300; document.getElementById("expmap").style.height= newheight + "px"; exp_map.checkResize(); } function exp_stopResize() { removeEvent(document.body,"mousemove",exp_mapResize); removeEvent(document.body,"mouseup",exp_stopResize); //document.getElementById("resize").style.height= 1 + "px"; document.getElementById("scrollhelp").style.display = "none"; } function exp_category(id) { this.id = id; this.visible = false; this.places = new Array(); this.cats = new Array(); this.add = exp_addPlace; this.addCat = exp_addCat; this.select = exp_selectPlace; this.deselect = exp_deselectPlace; this.show = exp_showCat; this.showSub = exp_showCatSub; this.hasSub = exp_hasSub; this.hide = exp_hideCat; this.getBounds = exp_catGetBounds; this.hasBounds = exp_hasBounds; this.maxZIndex = exp_catMaxZIndex; this.reset = exp_catReset; } function exp_catReset() { for(var i=0;iz) z=x; } for(var i=0;iz) z=x; } return z; } function exp_addPlace(place) { this.places.push(place); } function exp_addCat(cat) { this.cats.push(cat); } function exp_selectPlace(id,subid,cat) { if(!cat) { for(var i=0;i 0) { var help = this.places[i].getBounds(); bounds.extend(help.getSouthWest()); bounds.extend(help.getNorthEast()); } //} } } if(nocheck || this.visible) { nocheck = true; } else { nocheck = false; } for(var i=0;i 0) ret = true; } for(var i=0;i