function zachod(){

	var dzis = new Date(); 
	var rok = dzis.getFullYear();    
	var miesiac = dzis.getMonth()+1;	    
	var dzien = dzis.getDate();         
	var szerokosc = 50.909;
	var dlugosc = 15.729;
	var req = -0.833;

	
	var j = 367 * rok - Math.floor(7*(rok+Math.floor((miesiac+9)/12))/4)+Math.floor(275*miesiac/9)+dzien-730531.5;
	var cent = j/36525;
	var l = (4.8949504201433+628.331969753199*cent)%6.28318530718;
	var g = (6.2400408+628.3019501*cent)%6.28318530718;
	var o = 0.409093-0.0002269*cent;
	var f = 0.033423*Math.sin(g)+0.00034907*Math.sin(2*g);
	var	e = 0.0430398*Math.sin(2*(l+f)) - 0.00092502*Math.sin(4*(l+f)) - f;
	var a = Math.asin(Math.sin(o)*Math.sin(l+f));
	var c = (Math.sin(0.017453293*req) - Math.sin(0.017453293*szerokosc)*Math.sin(a))/(Math.cos(0.017453293*szerokosc)*Math.cos(a));
	
	var Wsch = (Math.PI - (e+0.017453293*dlugosc + 1*Math.acos(c)))*57.29577951/15;
	var Tran = (Math.PI - (e+0.017453293*dlugosc + 0*Math.acos(c)))*57.29577951/15;
	var Zach = (Math.PI - (e+0.017453293*dlugosc + -1*Math.acos(c)))*57.29577951/15;
	
	var Wsch1 = (Wsch - Math.floor(Wsch)) * 60;
	var Wsch2 = (Wsch1 - Math.floor(Wsch1)) * 60;
	var Zach1 = (Zach - Math.floor(Zach)) * 60;
	var Zach2 = (Zach1 - Math.floor(Zach1)) * 60;
	
	// document.write("j= " + j + "<br />");
	// document.write("cent= " + cent + "<br />");
	// document.write("l= " + l + "<br />");
	// document.write("g= " + g + "<br />");
	// document.write("o= " + o + "<br />");
	// document.write("f= " + f + "<br />");
	// document.write("e= " + e + "<br />");
	// document.write("a= " + a + "<br />");
	// document.write("c= " + c + "<br />");

	
	document.write("<img src=\"img/slonce.jpg\" height=\"13\">" + Math.floor(Wsch) + ":" + Math.floor(Wsch1,2) + ":" + Math.floor(Wsch2,2) + " &nbsp; &nbsp; ");
	document.write("<img src=\"img/ksiezyc.jpg\" height=\"13\">" + Math.floor(Zach) + ":" + Math.floor(Zach1,2) + ":" + Math.floor(Zach2,2) + " ");
	return 0;

}  