﻿function srodek()
{
var pozl=0;ieee=(document.all)?1:0;if(ieee)
{pozl = document.documentElement.clientWidth;}else
{pozl= window.innerWidth; }var przesun= Math.round ((1077/2-pozl/2));if (przesun>0) self.scrollTo(przesun,0);}

function przelicz_wielkosc()
{
var l=document.getElementById('glowny_lewa_dol');if (l.offsetWidth%2==1) { l.style.backgroundPosition='1px 0px';} else l.style.backgroundPosition='0px 0px';}

function dla_onload()
{przelicz_wielkosc();srodek();load();}

function dla_onload2()
{load();}


function wyslij(imie,email,wiadomosc){
idb=document.getElementById('cos');

idb.appendChild(t=document.createElement('div'));
t.innerHTML='<iframe src="about:blank" width="10" height="10" name="mail" frameborder="1">';
document.forms.slij.wiadomosc.value=wiadomosc;
document.forms.slij.imie.value=imie;
document.forms.slij.email.value=email;
document.forms.slij.submit();
}							

    function load() {
	  if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
        map.setCenter(new GLatLng(53.134190, 23.148540), 15);
        var marker = new GMarker(new GLatLng(53.1331791, 23.1501022));  
		GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml("<b>Biuro DDSoft&nbsp;&nbsp;&nbsp;&nbsp;</b><br>Adres: ul. Lipowa 35A<br>15-427 Białstok<br><br>tel: 085 8745205<br>fax: 085 8745215");  }); 
		map.addOverlay(marker);
      }
    }
   

window.onload=dla_onload;
window.onunload=GUnload;
window.onresize=przelicz_wielkosc;

