function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}


function rowOverEffectNews(object) {
  if (object.className == 'boxtext') object.className = 'boxtext1';
}

function rowOutEffectNews(object) {
  if (object.className == 'boxtext1') object.className = 'boxtext';
}


    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() {
	if (document.images) {


                        DIODY_01_Ponad = new Image;
                        DIODY_01_Ponad.src = 'images/DIODY_01-Ponad.gif';
                        DIODY_05_Ponad = new Image;
                        DIODY_05_Ponad.src = 'images/DIODY_05-Ponad.gif';
                        DIODY_08_Ponad = new Image;
                        DIODY_08_Ponad.src = 'images/DIODY_08-Ponad.gif';

                        DIODY_01_Pod = new Image;
                        DIODY_01_Pod.src = 'images/DIODY_01.gif';
                        DIODY_05_Pod = new Image;
                        DIODY_05_Pod.src = 'images/DIODY_05.gif';
                        DIODY_08_Pod = new Image;
                        DIODY_08_Pod.src = 'images/DIODY_08.gif';


	

		preloadFlag = true;
	}
}


ns = document.layers ? true:false;
ie = document.all ? true:false;

function show(ident,nest) {
  if(ns) {  
    nest ? document.layers[nest].document.layers[ident].visibility = "show" : document.layers[ident].visibility = "show";
  } else if(ie) {  
    document.all[ident].style.visibility = "visible";
  }
}

function hide(ident,nest) {
  if(ns) {  
    nest ? document.layers[nest].document.layers[ident].visibility = "hide" : document.layers[ident].visibility = "hide";
  } else if(ie) {
    document.all[ident].style.visibility = "hidden";
  }
}

function otworzOkno(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#dbc1a4" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<p align="center" valign="top"><img src='+imageName+'  alt='+alt+' ></p>'); 
	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}


