function ieupdate() {

if(navigator.userAgent.toLowerCase().indexOf("msie") > -1 && navigator.userAgent.toLowerCase().indexOf("mac") < 0){
	var theObjects = document.getElementsByTagName('object');
	var theObjectsLen = theObjects.length;
	for (var i = 0; i < theObjectsLen; i++) {
		if(theObjects[i].outerHTML) {
			if(theObjects[i].data) {
				theObjects[i].removeAttribute('data');
			}
			var theParams = theObjects[i].getElementsByTagName("param");
			var theParamsLength = theParams.length;
			for (var j = 0; j < theParamsLength; j++) {
				if(theParams[j].name.toLowerCase() == 'flashvars' && theParams[j].parentNode == theObjects[i]) {
					var theFlashVars = theParams[j].value;
				}
			}
			var theOuterHTML = theObjects[i].outerHTML;
			var re = /<param name="FlashVars" value="">/ig;
			theOuterHTML = theOuterHTML.replace(re,"<param name='FlashVars' value='" + theFlashVars + "'>");
			theObjects[i].outerHTML = theOuterHTML;
		}
	}
	window.onunload = function() {
		if (document.getElementsByTagName) {
			var objs = document.getElementsByTagName("object");
			for (i=0; i<objs.length; i++) {
				objs[i].outerHTML = "";
			}
		}
	}
}

}

function pokaz_warstwe(id) {
if (id==0){
warstwa0=document.getElementById("menu0_a");
warstwa1=document.getElementById("menu1_a");

warstwa2=document.getElementById("menu2_a");

warstwa1.style.visibility="hidden";
warstwa2.style.visibility="hidden";

if (warstwa0.style.visibility=="visible"){
warstwa0.style.visibility="hidden";
}
	else{
	warstwa0.style.visibility="visible";
	}
}

if (id==1){
warstwa0=document.getElementById("menu0_a");
warstwa1=document.getElementById("menu1_a");
warstwa2=document.getElementById("menu2_a");

warstwa0.style.visibility="hidden";
warstwa2.style.visibility="hidden";

if (warstwa1.style.visibility=="visible"){
warstwa1.style.visibility="hidden";
}
	else{
	warstwa1.style.visibility="visible";
	}
}

if (id==2){
warstwa0=document.getElementById("menu0_a");
warstwa1=document.getElementById("menu1_a");
warstwa2=document.getElementById("menu2_a");

warstwa0.style.visibility="hidden";
warstwa1.style.visibility="hidden";

if (warstwa2.style.visibility=="visible"){
warstwa2.style.visibility="hidden";
}
	else{
	warstwa2.style.visibility="visible";
	}
}
}


function otworzOkno(url, szer, wys) {
noweOkno = window.open(url, '', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=0, left=0, top=0, width='+szer+', height='+wys)
}

function DoPrinting(){
if (!window.print){
alert("Musisz mieć Netscape 4.x lub MSIE5,\n żeby móc rozpoczć drukowanie!")
return
}
window.print()
}
