/*function okienko(adres,w,h,t,l) {
window.open(adres,'okienko','width='+w+', height='+h+', top='+t+', left='+l+', menubar=0, scrollbars=0, location=0, toolbar=0,  resizable=0, status=0');
}
*/
var IE = document.all?true:false

if (!IE) {
   document.captureEvents(Event.MOUSEMOVE);
   document.onmousemove=mousePos;
   var netX, netY;
}

function posX() {
	if (IE) {
	   tempX=document.body.scrollLeft + event.clientX;
	}
	if (tempX<0) {
	   tempX=0;
	}
	return tempX;
}

function posY(e) {
	if (IE) {
	    tempY = event.clientY + document.body.scrollTop;
	}
	if (tempY<0) {
	   tempY=0;
	}
	return tempY;
}

function mousePos(e) {
	netX=e.pageX;
	netY=e.pageY;
}

function infoShow(pX, pY, src) {
	if (IE) {
	   document.all.info.style.visibility='visible';
	   document.all.info.innerHTML=src;
	   document.all.info.style.left=posX()+pX+"px";
	   document.all.info.style.top=posY()+pY+"px";
	}
	else {
		 document.getElementById("info").style.visibility='visible';
		 document.getElementById("info").style.left=netX+pX+"px";
		 document.getElementById("info").style.top=netY+pY+"px";
		 document.getElementById("info").innerHTML=src;
	}
}

function infoPrzesun(pX, pY) {
	if (IE) {
	   document.all.info.style.left=posX()+pX+"px";
	   document.all.info.style.top=posY()+pY+"px";
	}
	else {
		 document.getElementById("info").style.left=netX+pX+"px";
		 document.getElementById("info").style.top=netY+pY+"px";
	}
}

function infoZamknij() {
	if (IE) {
	   document.all.info.innerHTML='';
	   document.all.info.style.visibility='hidden';
	}
	else {
		 document.getElementById("info").style.visibility='hidden';
		 document.getElementById("info").innerHTML='';
	}
}

function infoKom(content,style) {
	text='<span class="'+style+'">'+content+'</span>';
	infoShow(5, 20, text);
}

function infoLinkPrzesun() {
	infoPrzesun(5, 20);
}

function infoSrodekPrzesun() {
	infoPrzesun(-90, 20);
}
