function $o(obj) {return document.getElementById(obj);} function $vis(id,val,def) {$o(id).style.display=val?(def!=null?def:'block'):'none';} function $chvis(id,def) {var o=$o(id);o.style.display=o.style.display=='none'?(def!=null?def:'block'):'none';} // filtr na liscie function setFilterExt() { var o=$o('slfilter'); if (o.style.display=='none') o.style.display='block'; else o.style.display='none'; } // edu var lastselectedid = new Array(), lastselectedlength; function showSub(id, org, pos) { var o = $o('dedu'+id); var t = o.getElementsByTagName('span')[0].innerHTML; if (id.length < 4) { o.parentNode.style.display = 'none'; o = $o('dedu'+id+'0'); try {o.style.display = 'block';} catch (e) {} $o('eduback').style.display='block'; } if (org != -1 && id.length == 2) {$o('edusc').value=t;$o('eduschool').innerHTML = 'Wybrano:' + (pos=='e'?'':'
') + ' » '+t;} else if (org != -1 && id.length == 3) {$o('educl').value=t;$o('educlass').innerHTML = ' »   '+t;} else if (org != -1 && id.length >= 4) {$o('edusu').value=t;$o('edusubject').innerHTML = ' »     '+t;} lastselectedid[id.length] = id; if (org == 1) showSub(id + '1', -1); if (org != -1 && id.length < 4) { lastselectedlength = id.length; } } function showBack() { $o('dedu'+lastselectedid[lastselectedlength]).parentNode.style.display = 'block'; $o('dedu'+lastselectedid[lastselectedlength]+'0').style.display = 'none'; try{$o('dedu'+lastselectedid[lastselectedlength+1]+'0').style.display = 'none';} catch (e) {} lastselectedlength = lastselectedid[lastselectedlength].length-1; if (lastselectedlength<2) {$o('eduback').style.display='none';$o('educlass').innerHTML = '';} if (lastselectedlength<3) $o('edusubject').innerHTML = ''; } function showEdusearch2all() { $o('edusearch2allshow').style.display='none'; $o('edusearch2all').style.display='block'; } function showCentered(ow,oh,obj) { var sx, sy, cx, cy, db=document.body, dd=document.documentElement; if(self.pageYOffset){sx=self.pageXOffset;sy=self.pageYOffset;}else if(dd&&dd.scrollTop){sx=dd.scrollLeft;sy=dd.scrollTop;}else if(db){sx=db.scrollLeft;sy=db.scrollTop;} if(self.innerHeight){cx=self.innerWidth;cy=self.innerHeight;}else if(dd&&dd.clientHeight){cx=dd.clientWidth;cy=dd.clientHeight;}else if(db){cx=db.clientWidth;cy=db.clientHeight;} var loff=sx+(cx-ow)/2-15;var toff=sy+(cy-oh)/2; var r=obj.style;r.position='absolute';r.top=toff+'px';r.left=loff+'px';r.display="block"; } function showMax(obj) { var sx, sy, cx, cy, db=document.body, dd=document.documentElement; if(self.pageYOffset){sx=self.pageXOffset;sy=self.pageYOffset;}else if(dd&&dd.scrollTop){sx=dd.scrollLeft;sy=dd.scrollTop;}else if(db){sx=db.scrollLeft;sy=db.scrollTop;} if(self.innerHeight){cx=self.innerWidth;cy=self.innerHeight;}else if(dd&&dd.clientHeight){cx=dd.clientWidth;cy=dd.clientHeight;}else if(db){cx=db.clientWidth;cy=db.clientHeight;} var r=obj.style;r.position='absolute';r.top=sy+'px';r.left=(sx+5)+'px';r.display="block"; r.width=(cx-30)+'px';r.height=cy+'px'; }