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:"Steinhaus/Klausberg, Einstieg Klausbergbahn",icon:IconDefault};var G216=new GLatLng(46.993616552787124,11.978530883789062);var m216=new GMarker(G216,mO);map.addOverlay(m216);bounds.extend(G216);GEvent.addListener(m216,"click",function(){location.href="http://www.skiresort.de/skigebiet/steinhausklausberg/"});mO={title:"Steinhaus/Klausberg, Einstieg Bruggerbahn",icon:IconDefaultSub};var G4713=new GLatLng(46.993719,11.972694);var m4713=new GMarker(G4713,mO);map.addOverlay(m4713);bounds.extend(G4713);GEvent.addListener(m4713,"click",function(){location.href="http://www.skiresort.de/skigebiet/steinhausklausberg/"});mO={title:"Sand in Taufers/Speikboden, Einstieg Speikbodenbahn",icon:IconDefault};var G217=new GLatLng(46.932594182995516,11.937525272369385);var m217=new GMarker(G217,mO);map.addOverlay(m217);bounds.extend(G217);GEvent.addListener(m217,"click",function(){location.href="http://www.skiresort.de/skigebiet/sand-in-taufersspeikboden/"});mO={title:"Rein in Taufers, Einstieg Pichlbahn",icon:IconDefault};var G473=new GLatLng(46.950526,12.066357);var m473=new GMarker(G473,mO);map.addOverlay(m473);bounds.extend(G473);GEvent.addListener(m473,"click",function(){location.href="http://www.skiresort.de/skigebiet/rein-in-taufers/"});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()});
