function showSelMenu(id){
	if (id != 'hp'){
		$('.no_sel_menu_'+id).hide();
		$('.sel_menu_'+id).show();
	}	
}

function hideSelMenu(id,sel){
	if (sel != 1) {
		$('.no_sel_menu_'+id).show();
		$('.sel_menu_'+id).hide();
	} 
}

var map = null;

function load() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    geocoder = new GClientGeocoder();
    //a ta funkcja przerabia adres na wspolrzedne, aby na przyszlosc bylo wygodniej
    showAddress("Klasztorna 23, 62-130 Gołańcz, Poland");
  }
}

function showAddress(address){
	geocoder.getLatLng(
		address,
		function(point){
			if (!point){
				alert(address + " nie został znaleziony");
			}else{
				//17 to stopień przybliżenia
				map.setCenter(point,15);
				var marker = new GMarker(point);
				map.addOverlay(marker);
				marker.openInfoWindowHtml('<strong>Zakład Przemysłu Drzewnego ROMA</strong><br/>ul. Klasztorna 23<br/>62-130 Gołańcz<br/>tel.: (067) 261-59-50, (067) 261-59-35<br/>fax: (067) 261-59-46<br/>e-mail: <a href="mailto:roma@tartak-roma.pl">roma@tartak-roma.pl</a>');
			}
		});
}