function getObj(zmmmu) {offffb=document.getElementById?document.getElementById(zmmmu):document.all[zmmmu];return offffb;}
function getChildren(zmmmu,nammme) {
offffb=document.getElementById?zmmmu.getElementsByTagName(nammme):zmmmu.all.tags(nammme);
return offffb;
}



function t7(rodzaj) {if (rodzaj) {} else {
resiob=getObj('pi'); if (resiob==undefined) {return false;}
resikole=getChildren(resiob,'td');if (resikole==undefined) {return false;}
redlu=getObj('resi');
redlu=redlu.offsetWidth;
czytopliktypushow=getObj('shows');
if (czytopliktypushow) {krocej=92} else {krocej=0;}

    for (i=0;i<resikole.length;i++) {
    localname=resikole[i].getAttribute('id');
		
    		if (localname!=null&&localname!='') {
    		locchildren=getChildren(resikole[i],'div');
				locchildrenobr=getChildren(resikole[i],'img');
				
				locchildren[1].style.width=redlu+'px';
				locchildren[1].style.height=resikole[i].offsetHeight+'px';
				

				if (explorer!=1) {
				locchildrenobr[0].src="gfx/siatki/sprz.png";				
        locchildren[1].style.backgroundColor='transparent';
				
				tp=locchildrenobr[1].style
				
				locchildrenobr[1].src='gfx/siatki/pol.png';
        tp.position='absolute';
        tp.zIndex='8';
				tp.top='0px';
        tp.left='0px';
				tp.width=locchildren[1].offsetWidth+'px'
        locchildrenobr[1].style.height=locchildren[1].offsetHeight+'px'
				
								
				} else {
				
				locchildrenobr[0].src="gfx/siatki/sprz.gif";}
				
				locchildrenobr[0].style.width=480-krocej+'px';
				locchildrenobr[0].style.height=109-(krocej/4)+'px';
				

        if (czytopliktypushow) {
	    				doobrobj=getObj('obr315');
      				dobchil=getChildren(doobrobj,'img')
      				
							for (j=0;j<dobchil.length;j++) {
      			  if (dobchil[j].offsetWidth==315||dobchil[j].offsetHeight==315) {
 						  
							locchildrenobr[0].style.top=38+'px';

							}
							}


				} else {
							locchildrenobr[0].style.top=Math.floor(Math.abs(((resikole[i].offsetHeight-locchildrenobr[0].offsetHeight)/2)-5))-krocej+'px';
        } 
				
				}			
		

    }



}}
