// generated Tue Dec 29 10:22:11 EST 2009

function setMapHeight(height,showControls){if(map1!=null){var theDiv=document.getElementById("map1");theDiv.style.height=height+"px";map1.checkResize();if(height==400){setMapBounds();map1.addControl(new GSmallMapControl())}else{map1.setCenter(basePoint)}}}function createBase(point,id){var icon=new GIcon(baseIcon);icon.iconSize=new GSize(20,17);icon.image="/images/mapicons/redstar.png";icon.iconAnchor=new GPoint(10,9);icon.shadowSize=new GSize(0,0);baseMarker=new GMarker(point,icon);var callbackid=id;GEvent.addListener(baseMarker,"click",function(){baseClicked()});return baseMarker}function getColorAndIcon(price){var result=new Object();result.color="#f73";result.icon="airport-b.png";return result}function showHideLineAndMarker(code,show){var overlays=pointhash[code];if(overlays!=null&&overlays.visible!=show){if(show){map1.addTLabel(overlays.marker);map1.addOverlay(overlays.line);overlays.visible=true}else{map1.removeTLabel(overlays.marker);map1.removeOverlay(overlays.line);overlays.visible=false}}}var baseContent='<div title="{0}" style="padding: 0px 0px 8px 8px; background: url(/images/map-ptr-bl.png) no-repeat bottom left;"><div style="color: white; background-color: #090; padding: 3px; font-size: 8pt;"><nobr><a style="color: white" href="javascript: markerClicked({1})">{2}</a></nobr></div></div>';function createAirportMarker(point,airport,price,fullname){var label=new TLabel();label.id="mapIcon"+airport;label.anchorLatLng=point;label.anchorPoint="bottomLeft";label.content=replaceArgs(baseContent,price+" - "+fullname+" ("+airport+")","'"+airport+"'",price);label.percentOpacity=85;return label}function createCityMarker(point,index,id){var icon=new GIcon(baseIcon);icon.image="/images/mapicons/iconr"+index+".png";var marker=new GMarker(point,icon);var callbackid=id;GEvent.addListener(marker,"click",function(){markerClicked(id)});return marker}function addAirport(index,longitude,latitude,airport,drawline,price,fullname){var colorIcon=getColorAndIcon(price);var point=new GLatLng(latitude,longitude);var marker=createAirportMarker(point,airport,price,fullname);map1.addTLabel(marker);var linePoints=new Array();linePoints.push(basePoint);linePoints.push(point);var line=null;if(drawline){try{line=new GPolyline(linePoints,colorIcon.color,3,0.3,{geodesic:true});map1.addOverlay(line)}catch(ignored){}}var overlays=new Object();overlays.marker=marker;overlays.line=line;overlays.visible=true;overlays.point=point;pointhash[airport]=overlays}function addDestination(idx,citylongitude,citylatitude,cityid){if(citylongitude!=0||citylatitude!=0){var point=new GLatLng(citylatitude,citylongitude);var marker=createCityMarker(point,idx,cityid);map1.addOverlay(marker);var overlays=new Object();overlays.marker=marker;overlays.visible=true;pointhash[cityid]=overlays;return point}}function setMapBounds(){var bounds=new GLatLngBounds();bounds.extend(basePoint);for(var i in pointhash){var olay=pointhash[i];if(olay.visible){bounds.extend(olay.point)}}if(!bounds.isEmpty()){map1.setCenter(bounds.getCenter(),map1.getBoundsZoomLevel(bounds))}}var baseIcon=null;var baseIconSm=null;var map1=null;var tooltip=null;var basePoint=null;var baseMarker=null;var maxIconNum=99;var pointhash=null;var mapControls=null;function unloadPage(){try{GUnload()}catch(ignored){}}function showTooltip(id){var marker=pointhash[id].marker;tooltip.innerHTML=getTooltipHtml(id);var point=map1.getCurrentMapType().getProjection().fromLatLngToPixel(map1.fromDivPixelToLatLng(new GPoint(0,0),true),map1.getZoom());var offset=map1.getCurrentMapType().getProjection().fromLatLngToPixel(marker.anchorLatLng,map1.getZoom());var width=marker.markerOffset.width;var iconHeight=marker.markerOffset.height;var height=tooltip.clientHeight;var pos=new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(offset.x-point.x+width,offset.y+iconHeight-point.y-height));pos.apply(tooltip);tooltip.style.visibility="visible"};

var jsck_buzzmaps="v293";
// generation time: 1ms
