//funkcje do podmiany zdjec
function menuon(n){document.images[n].src='grafika/'+n+'a.gif';}
function menuoff(n){document.images[n].src='grafika/'+n+'.gif';}

function menu3on(n){document.images[n].src='grafika/str_menu2.gif';}
function menu3off(n){document.images[n].src='grafika/str_menu2a.gif';}

function menu2on(id){
document.getElementById(id).style.backgroundColor='#D6DBE7';
document.images["m_l"+id].src='grafika/pix_menua.gif';
}

function menu2off(id){
//document.getElementById(id).style.backgroundColor='#E9ECF0';
document.getElementById(id).style.backgroundColor='#E6EAEE';
document.images["m_l"+id].src='grafika/pix_menu.gif';
}

//funkcja do wyswietlania popupu
var okno='';
function popup(wi,he,uerel,alignx,aligny,scrol)
{

	if(okno &&!okno.closed){okno.close()}
	if(wi=='100%'){wi=screen.availWidth-30}
	if(he=='100%'){he=screen.availHeight-0}
	if(alignx=='left'){xx=0}
	else if(alignx=='right'){xx=(screen.availWidth-wi)-10}
	else{xx=(screen.availWidth-wi)/2}
	if(aligny=='top'){yy=0}
	else if(aligny=='bottom'){yy=(screen.availHeight-he)}
	else{yy=(screen.availHeight-he)/2}
	okno=window.open(uerel, '_blank', 'scrollbars='+scrol+',height='+he+',width='+wi+',top='+yy+',left='+xx);

}

//ladowanie do casch-u zdjec
foto=new Array('menu5','menu7','menu8','menu9','menu10','menu11','menu12','menu474','menu475','menu476','menu477','menu478','menu479','pl','ru');
menuA=new Array();menuB=new Array();
for(n=0;n<foto.length;n++){
	menuA[n]=new Image();
	menuA[n].src='grafika/'+foto[n]+'.gif';
	menuB[n]=new Image();
	menuB[n].src='grafika/'+foto[n]+'a.gif';
}

