var g_i =0; var g_markers = []; var g_htmls = []; var map; var gdir; var geocoder = null; var addressMarker; function g_createMarker( point, html, hashName ) { var icon = new GIcon(); icon.image = "/images/g_marker.png"; icon.shadow = "/images/g_marker_shadow.png"; icon.iconSize = new GSize( 31, 34 ); icon.shadowSize = new GSize( 69, 34 ); icon.iconAnchor = new GPoint( 15, 34 ); var marker = new GMarker( point, icon ); var num = g_i; g_markers[hashName] = marker; g_htmls[hashName] = html; g_i++; return marker; } function g_loadMap() { if ( GBrowserIsCompatible() ) { map = new GMap2( document.getElementById( "mapsearch_mainmap" ) ); var topRight = new GControlPosition( G_ANCHOR_TOP_RIGHT, new GSize( 10, 10 ) ); var topLeft = new GControlPosition( G_ANCHOR_TOP_LEFT, new GSize( 10, 10 ) ); map.addControl( new GLargeMapControl(), topRight ); map.addControl( new GMapTypeControl(), topLeft ); map.addControl( new GOverviewMapControl() ); map.setCenter( new GLatLng( 59.915134, 10.726659 ), 4 ); var bounds = new GLatLngBounds(); var divHashName; var mapname; divHashName = '1'; html = "