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:"El Colorado-Farellones, Einstieg Cururo Chair",icon:IconDefault};var G395=new GLatLng(-33.34988,-70.291767);var m395=new GMarker(G395,mO);map.addOverlay(m395);bounds.extend(G395);GEvent.addListener(m395,"click",function(){location.href="http://www.skiresort.de/skigebiet/el-colorado-farellones/"});mO={title:"La Parva, Einstieg Alpha Chair",icon:IconDefault};var G396=new GLatLng(-33.332913,-70.289057);var m396=new GMarker(G396,mO);map.addOverlay(m396);bounds.extend(G396);GEvent.addListener(m396,"click",function(){location.href="http://www.skiresort.de/skigebiet/la-parva/"});mO={title:"Portillo, Einstieg El Pateau Chair",icon:IconDefault};var G397=new GLatLng(-32.834114,-70.128978);var m397=new GMarker(G397,mO);map.addOverlay(m397);bounds.extend(G397);GEvent.addListener(m397,"click",function(){location.href="http://www.skiresort.de/skigebiet/portillo/"});mO={title:"Pucón/Villarrica, Einstieg Lift 2",icon:IconDefault};var G398=new GLatLng(-39.392129,-71.95972);var m398=new GMarker(G398,mO);map.addOverlay(m398);bounds.extend(G398);GEvent.addListener(m398,"click",function(){location.href="http://www.skiresort.de/skigebiet/puconvillarrica/"});mO={title:"Termas de Chillan, Einstieg El Tata Chair",icon:IconDefault};var G399=new GLatLng(-36.909789,-71.42302);var m399=new GMarker(G399,mO);map.addOverlay(m399);bounds.extend(G399);GEvent.addListener(m399,"click",function(){location.href="http://www.skiresort.de/skigebiet/termas-de-chillan/"});mO={title:"Valle Nevado, Einstieg Andes Express",icon:IconDefault};var G402=new GLatLng(-33.351555,-70.251415);var m402=new GMarker(G402,mO);map.addOverlay(m402);bounds.extend(G402);GEvent.addListener(m402,"click",function(){location.href="http://www.skiresort.de/skigebiet/valle-nevado/"});mO={title:"Punta Arenas/Cerro Mirador , Einstieg Double Chair Cerro Mirador",icon:IconDefault};var G3309=new GLatLng(-53.160889,-71.025206);var m3309=new GMarker(G3309,mO);map.addOverlay(m3309);bounds.extend(G3309);GEvent.addListener(m3309,"click",function(){location.href="http://www.skiresort.de/skigebiet/punta-arenascerro-mirador/"});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()});
