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:"Zermatt-Cervinia, Einstieg Matterhorn Express",icon:IconOpen};var G185=new GLatLng(46.014746,7.742845);var m185=new GMarker(G185,mO);map.addOverlay(m185);bounds.extend(G185);GEvent.addListener(m185,"click",function(){location.href="http://www.skiresort.de/skigebiet/zermatt-cervinia/schneebericht/"});mO={title:"Courmayeur/Monte Bianco, Einstieg Funivie Monte Bianco",icon:IconClosed};var G193=new GLatLng(45.7924,6.97213);var m193=new GMarker(G193,mO);map.addOverlay(m193);bounds.extend(G193);GEvent.addListener(m193,"click",function(){location.href="http://www.skiresort.de/skigebiet/courmayeurmonte-bianco/schneebericht/"});mO={title:"Alagna Valsesia-Gressoney-Champoluc, Einstieg Telecabina Alagna-Pianalunga",icon:IconClosedSub};var G320=new GLatLng(45.85211,7.93736);var m320=new GMarker(G320,mO);map.addOverlay(m320);bounds.extend(G320);GEvent.addListener(m320,"click",function(){location.href="http://www.skiresort.de/skigebiet/alagna-valsesia-gressoney-champoluc/schneebericht/"});mO={title:"Pila, Einstieg ",icon:IconClosedSub};var G577=new GLatLng(45.68122,7.31045);var m577=new GMarker(G577,mO);map.addOverlay(m577);bounds.extend(G577);GEvent.addListener(m577,"click",function(){location.href="http://www.skiresort.de/skigebiet/pila/schneebericht/"});mO={title:"Courmayeur/Chécrouit-Val Veny, Einstieg ",icon:IconClosed};var G583=new GLatLng(45.79241,6.97212);var m583=new GMarker(G583,mO);map.addOverlay(m583);bounds.extend(G583);GEvent.addListener(m583,"click",function(){location.href="http://www.skiresort.de/skigebiet/courmayeurchecrouit-val-veny/schneebericht/"});mO={title:"Gressoney/St. Jean/Weissmatten, Einstieg ",icon:IconClosed};var G589=new GLatLng(45.83013,7.82336);var m589=new GMarker(G589,mO);map.addOverlay(m589);bounds.extend(G589);GEvent.addListener(m589,"click",function(){location.href="http://www.skiresort.de/skigebiet/gressoneyst-jeanweissmatten/schneebericht/"});mO={title:"La Thuile (Espace San Bernardo), Einstieg Les Suches",icon:IconClosed};var G4777=new GLatLng(45.711416,6.949056);var m4777=new GMarker(G4777,mO);map.addOverlay(m4777);bounds.extend(G4777);GEvent.addListener(m4777,"click",function(){location.href="http://www.skiresort.de/skigebiet/espace-san-bernardo-la-thuile-la-rosiere/schneebericht/"});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()});
