function okno(adres,xx,yy)
{


	var win;
	if (!xx) xx=640;
	if (!yy) yy=480;
	gora=50;
	lewo=Math.round((screen.width-xx)/2);
	var param='width='+xx+', height='+yy+',top='+gora+',left='+lewo+',resizable=0,scrollbars=0,status=0';
	win=window.open(adres,"",param);
	win.window.focus();
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;

function preloadImages(lang) {
	if (document.images) {
	    onas_over = newImage("gfx/"+lang+"onas-over.gif");
	    kotakt_over = newImage("gfx/"+lang+"kontakt-over.gif");
	    oferta_over = newImage("gfx/"+lang+"oferta-over.gif");
	    naszeprace_over = newImage("gfx/"+lang+"naszeprace-over.gif");
	    katalog_over = newImage("gfx/"+lang+"katalog-over.gif");
    	referencje_over = newImage("gfx/"+lang+"referencje-over.gif");
	
		preloadFlag = true;
	}
}

function init(lang){


	preloadImages(lang);
	
}


function podswietl(t){
	t.style.backgroundColor="A8ABDC"
	t.style.cursor="hand";
	}


function odswietl(t){


	t.style.backgroundColor='949ACE';

}

function showHint(id,t,event){


	document.all[id].style.pixelLeft = (document.body.scrollLeft +event.clientX) + 10;
	document.all[id].style.pixelTop = (document.body.scrollTop + event.clientY) + 20;
	document.all[id].style.visibility="visible";

	
}


function hideHint(id){
	document.all[id].style.visibility="hidden";
}
