if (0 == 0) { if (document.getElementById('map')) { var coollocation_map = new YMap(document.getElementById('map')); } else { var coollocation_map = null; } } else if (0 == 1) { var coollocation_map; var coollocation_geoXml; } function CoolLocation_AddMarker(lat, lng) { if ((coollocation_map) && (0 == 0)) { var mypoint = new YGeoPoint(lat,lng); coollocation_map.addMarker(mypoint); } else if (0 == 1) { point = new GLatLng(lat,lng); marker = new GMarker(point); coollocation_map.addOverlay(marker); } } function startMap() { if ((coollocation_map) && (0 == 0)) { startMap_yahoo(43.031715,-77.441482, 1, 'http://www.creativefauna.com/index.php/geo_rss'); } else if (0 == 1) { startMap_google(43.031715,-77.441482, 1, 'http://www.creativefauna.com/index.php/geo_rss'); } // // add marker to map? // if ('' != 'no') { CoolLocation_AddMarker(43.031715,-77.441482); } // // check for customize function // if ('function' == typeof window.coollocation_customize) { coollocation_customize(coollocation_map); } } function startMap_google(lat, lng, zoom, rss) { if (GBrowserIsCompatible()) { coollocation_map = new GMap2(document.getElementById('map')); if ( (lat != 0) && (lng != 0) ) { coollocation_map.setCenter(new GLatLng(lat, lng), zoom); } else { coollocation_map.setCenter(new GLatLng(49.8949,-119.4884), zoom); } coollocation_map.addControl(new GSmallMapControl()); coollocation_map.addControl(new GMapTypeControl()); if (rss != '') { coollocation_geoXml = new GGeoXml(rss); map.addOverlay(geoXml); } } } function startMap_yahoo(lat, lng, zoom, rss){ // Add the ability to change between Sat, Hybrid, and Regular Maps coollocation_map.addZoomLong(); // Add the Pan control to have North, South, East and West directional control coollocation_map.addPanControl(); coollocation_map.addTypeControl(); // disable key controls coollocation_map.disableKeyControls(); coollocation_map.disablePanOnDoubleClick(); if ( (lat != 0) && (lng != 0) ) { coollocation_map.drawZoomAndCenter(new YGeoPoint(lat,lng), zoom); } else { coollocation_map.drawZoomAndCenter(new YGeoPoint(49.8949,-119.4884), zoom); } if (rss != '') { coollocation_map.addOverlay(new YGeoRSS(rss)); } } window.onload = startMap;