function windowOpen(url){jQuery.post("index.php?eID=mg_skiresort&action=externalLink","url="+url);window.open(url);}
var IconDefault=new GIcon(G_DEFAULT_ICON);IconDefault.iconSize=new GSize(10,10);IconDefault.image="http://www.skiresort.de/typo3conf/ext/mg_skiresort/res/img/gMap_marker00.png";IconDefault.shadow=null;IconDefault.iconAnchor=new GPoint(5,5);var IconDefaultSub=new GIcon(G_DEFAULT_ICON);IconDefaultSub.iconSize=new GSize(8,8);IconDefaultSub.image="http://www.skiresort.de/typo3conf/ext/mg_skiresort/res/img/gMap_marker00s.png";IconDefaultSub.shadow=null;IconDefaultSub.iconAnchor=new GPoint(4,4);var IconOpen=new GIcon(G_DEFAULT_ICON);IconOpen.iconSize=new GSize(10,10);IconOpen.image="http://www.skiresort.de/typo3conf/ext/mg_skiresort/res/img/gMap_marker02.png";IconOpen.shadow=null;IconOpen.iconAnchor=new GPoint(5,5);;var IconOpenSub=new GIcon(G_DEFAULT_ICON);IconOpenSub.iconSize=new GSize(8,8);IconOpenSub.image="http://www.skiresort.de/typo3conf/ext/mg_skiresort/res/img/gMap_marker02s.png";IconOpenSub.shadow=null;IconOpenSub.iconAnchor=new GPoint(4,4);var IconClosed=new GIcon(G_DEFAULT_ICON);IconClosed.iconSize=new GSize(10,10);IconClosed.image="http://www.skiresort.de/typo3conf/ext/mg_skiresort/res/img/gMap_marker01.png";IconClosed.shadow=null;IconClosed.iconAnchor=new GPoint(5,5);var IconClosedSub=new GIcon(G_DEFAULT_ICON);IconClosedSub.iconSize=new GSize(8,8);IconClosedSub.image="http://www.skiresort.de/typo3conf/ext/mg_skiresort/res/img/gMap_marker01s.png";IconClosedSub.shadow=null;IconClosedSub.iconAnchor=new GPoint(4,4);function initializeGMap(){if(GBrowserIsCompatible()){map=new GMap2(document.getElementById("map_canvas"),{size:new GSize(355,212)});map.addMapType(G_PHYSICAL_MAP);map.setMapType(G_PHYSICAL_MAP);map.addControl(new GSmallMapControl());map.addControl(new GMenuMapTypeControl());var bounds=new GLatLngBounds();mO={title:"Oberwiesenthal/Fichtelberg, Einstieg Fichtelbergbahn",icon:IconDefault};var G35=new GLatLng(50.42339,12.968239);var m35=new GMarker(G35,mO);map.addOverlay(m35);bounds.extend(G35);GEvent.addListener(m35,"click",function(){location.href="http://www.skiresort.de/skigebiet/oberwiesenthalfichtelberg/"});mO={title:"Geising, Einstieg ",icon:IconDefaultSub};var G559=new GLatLng(50.76024,13.78954);var m559=new GMarker(G559,mO);map.addOverlay(m559);bounds.extend(G559);GEvent.addListener(m559,"click",function(){location.href="http://www.skiresort.de/skigebiet/geising/"});mO={title:"Altenberg, Einstieg Talstation",icon:IconDefaultSub};var G560=new GLatLng(50.76464,13.75609);var m560=new GMarker(G560,mO);map.addOverlay(m560);bounds.extend(G560);GEvent.addListener(m560,"click",function(){location.href="http://www.skiresort.de/skigebiet/altenberg/"});mO={title:"Eibenstock, Einstieg ",icon:IconDefaultSub};var G670=new GLatLng(50.49389,12.59944);var m670=new GMarker(G670,mO);map.addOverlay(m670);bounds.extend(G670);GEvent.addListener(m670,"click",function(){location.href="http://www.skiresort.de/skigebiet/eibenstock/"});mO={title:"Carlsfeld/Hirschkopf, Einstieg ",icon:IconDefaultSub};var G671=new GLatLng(50.43513,12.58883);var m671=new GMarker(G671,mO);map.addOverlay(m671);bounds.extend(G671);GEvent.addListener(m671,"click",function(){location.href="http://www.skiresort.de/skigebiet/carlsfeldhirschkopf/"});mO={title:"Wildenthal, Einstieg ",icon:IconDefaultSub};var G672=new GLatLng(50.45315,12.63228);var m672=new GMarker(G672,mO);map.addOverlay(m672);bounds.extend(G672);GEvent.addListener(m672,"click",function(){location.href="http://www.skiresort.de/skigebiet/wildenthal/"});mO={title:"Schellerhau/Rotterhang, Einstieg ",icon:IconDefaultSub};var G692=new GLatLng(50.77638,13.68936);var m692=new GMarker(G692,mO);map.addOverlay(m692);bounds.extend(G692);GEvent.addListener(m692,"click",function(){location.href="http://www.skiresort.de/skigebiet/schellerhaurotterhang/"});mO={title:"Augustusburg (Rosts Wiesen), Einstieg Skilift Augustusburg 1",icon:IconDefault};var G1057=new GLatLng(50.817737,13.098026);var m1057=new GMarker(G1057,mO);map.addOverlay(m1057);bounds.extend(G1057);GEvent.addListener(m1057,"click",function(){location.href="http://www.skiresort.de/skigebiet/augustusburg-rosts-wiesen/"});var clat=(bounds.getNorthEast().lat()+bounds.getSouthWest().lat())/2;var clng=(bounds.getNorthEast().lng()+bounds.getSouthWest().lng())/2;map.setCenter(new GLatLng(clat,clng));zoomLevel=map.getBoundsZoomLevel(bounds);if(zoomLevel>8){zoomLevel=8;}
map.setZoom(zoomLevel);}}
jQuery(document).ready(function(){initializeGMap()});
