<!--
function pOpenPhoto(url,w,h,sb){
  	var x=(screen.width-w)/2;
  	var y=(screen.height-h)/2;
	features="scrollbars="+sb+",width="+w+",height="+h+",left="+x+",top="+y;
  	win=window.open('popenphoto.php?file='+url,'pOpenPhoto',features);
  	win.window.focus();
}
function moveTop(){
	var scrollPosition=document.documentElement.scrollTop;
	if(scrollPosition){
		while(scrollPosition>0){
			scrollPosition-=Math.ceil(scrollPosition*0.005);
			if(scrollPosition<1)scrollPosition=0;
			document.getElementById("moveTop").onClick=window.scrollTo(0,scrollPosition);
		}
	}
	else window.scrollTo(0,0);
}
function load() {
	if (GBrowserIsCompatible()){
		contactMap = document.getElementById("map");
		if(contactMap){
			var map = new GMap2(contactMap);
			map.addControl(new GSmallZoomControl());
			map.addControl(new GScaleControl());
			map.enableContinuousZoom();
			map.enableDoubleClickZoom();
			map.setCenter(new GLatLng(50.38241810881908, 19.018020629882812), 8);
			
			// ikony
			var baseIcon = new GIcon();
	        baseIcon.iconSize = new GSize(32,32);
	        baseIcon.shadowSize = new GSize(56,32);
	        baseIcon.iconAnchor = new GPoint(16,32);
	        baseIcon.infoWindowAnchor = new GPoint(16,0);
			
	        var icon = new GIcon(baseIcon, 'http://maps.google.com/mapfiles/kml/pal3/icon56.png', null, 'http://maps.google.com/mapfiles/kml/pal3/icon56s.png');
			var info='<div id="infomap"><b>erato*pl - hodowla kotów ragdoll</b><br /><br />Gorąco zapraszamy do odwiedzenia naszej domowej hodowli kotów.<hr /><b>GPS</b> - N: 50&deg; 22&#39; 54&#34; &nbsp;E: 19&deg; 1&#39; 12&#34;</div>';
			var point = new GLatLng(50.38241810881908, 19.018020629882812);
			var marker = new GMarker(point,icon);
			GEvent.addListener(marker, "click", function(){
				marker.openInfoWindowHtml(info);
	        });
			
			map.addOverlay(marker);
			marker.openInfoWindowHtml(info);
		}
	}
}
//-->
