// JavaScript Document
	Cufon.replace('.menuCenterTop ul li a',{hover: true});
	Cufon.replace('#mainRow h2');
	Cufon.replace('.menuCenterTop ul li a',{hover: true});
	Cufon.replace('#mainRow h2');
	Cufon.replace('.left_menu h2');
	Cufon.replace('.tresc h1');
	Cufon.replace('.tresc h2');
	Cufon.replace('#produkty ul li a');	
	Cufon.replace('#produkty2 ul li a');
	Cufon.replace('#box_menu h3');
	Cufon.replace('.mail_wyslano');

$(document).ready(
  function()
	{
	$("#kontakt").msDropDown();
	$("#kontakt1").msDropDown();
	});
function initialize(tekst,x,y)
{
 if (GBrowserIsCompatible())
	  {
	  if(x!=0 && y!=0)
		{
        var map = new GMap2(document.getElementById("mapka"));
        map.setCenter(new GLatLng(x,y), 13);
		map.setUIToDefault();
		map.openInfoWindowHtml(map.getCenter(),tekst);
		var point = new GLatLng(x,y);
		var mar=new GMarker(point);
		map.addOverlay(mar);

		GEvent.addListener(mar, 'click',
		function()
			{ 
			mar.openInfoWindowHtml(tekst);
			});
		}
		else
		{

		var cord=new Array();

		cord[0]=65; 
		cord[1]=64;
		cord[2]=66;
 		cord[3]=67;
		cord[4]=82;
 		cord[5]=72;
		cord[6]=68;
		cord[7]=62;
		cord[8]=69;
                cord[9]=111;

		var marker=new Array();
    	var map = new GMap2(document.getElementById("mapka"));
		map.setCenter(new GLatLng(52.919438,19.145136), 6);
		map.setUIToDefault();
      
		for (var i=0; i<=9; i++)
		   {	
			$.ajax({ type: "GET",
			url: "http://www.abler.pl/ajax_kontakt.php",
			data: "id="+cord[i],
			dataType: "json",
			success: function(x)
				{
				if(x.x && x.y)
					{
					var point = new GLatLng(x.x,x.y);
					var marker = new GMarker(point);
					map.addOverlay(marker);
					GEvent.addListener(marker, "click",
						function()
						{
						marker.openInfoWindowHtml(x.tresc);
						});
					}	
				}
			}); 
			}
		 }
	}
}

function bookmark(url, description)
{
var netscape="Prosze wcisnac CTRL+D aby dodac strone do ulubionych.";
if (navigator.appName=='Microsoft Internet Explorer')
	{ 	window.external.AddFavorite(url, description); 	}
	else
	{ alert(netscape); 	}
}

