home *** CD-ROM | disk | FTP | other *** search
- //window.onload = init
-
- var Opera = (window.navigator.userAgent.match('Opera')=='Opera')
-
- //.match('Opera'))) ? IE = true : IE = false
-
- function init() {
- objects()
- height()
- if (gEBI('soutez')!=null)
- setTimeout('fejd()',1000);
-
- // sirka()
- }
-
- var LB
- var CB
- var MM
-
- function objects() {
- LB = gEBI('leftmenu')
- // RB = gEBI('right-box')
- CB = gEBI('inner')
- MM = gEBI('main')
- }
-
- function auto() {
- // RB.style.height = 'auto'
- LB.style.height = 'auto'
- }
-
- function resajz() {
- alert('heeeelp')
- }
-
- function sirka() {
- var sirka = document.body.offsetWidth
- alert(gEBI("content").offsetwidth)
- if (gEBI("content").offsetwidth>590) {
- gEBI("content").style.width='590px'
- }
- alert(gEBI("content").offsetwidth)
- }
-
- function gEBI(id) {
- if(Boolean(document.getElementById)) {
- return document.getElementById(id);
- } else if(Boolean(document.all)) {
- return eval('document.all.'+id);
- }
- }
-
- function height() {
- var leftH = LB.offsetHeight
- // var rightH = RB.offsetHeight
- var contentH = CB.offsetHeight
-
- // alert(leftH)
- // alert(contentH)
-
- var m, maxi
- m = leftH
- // if (leftH > rightH) { m = leftH } else { m = rightH }
- if (contentH > m) { maxi = contentH } else { maxi = m }
-
- // if(contentH < m) {
- // gEBI('reklama-bottom').style.marginTop = (maxi-contentH+20)+'px'
- // gEBI('bottom-navi').style.clear = 'none'
- // }
- // RB.style.height = (maxi)+'px'
- //alert(leftH+' - '+contentH)
-
- if (!(Opera && leftH > contentH))
- LB.style.height = (maxi)+'px'
- CB.style.height = (maxi)+'px'
- //alert(LB.style.height)
- // MM.style.height = (maxi)+'px'
- // alert('xxx')
- }
-
-
- // TABULKY
-
- function osa_caption() {
- document.writeln('<table cellspacing=0 cellpadding=0 border=0 width=100% class="osa">')
- document.write('<tr><td class="caption"><nobr>Časová osa</nobr></td><td class="bar">')
- for(var _p=1;_p< arguments.length;_p=_p+2) {
- if (arguments[0]==arguments[_p]) {
- document.write(' '+arguments[_p]+'')
- }
- else {
- document.write(' <a href="'+arguments[_p+1]+'">'+arguments[_p]+'</a>')
- }
- }
- document.writeln('</td></tr>')
- document.writeln('</table>')
- }
-
- function osa_begin() {
- document.writeln('<div class="osa">')
- document.writeln('<table cellspacing=0 cellpadding=0 border=0>')
- document.writeln('<tr><td><img src="images/osa_top3_1.gif"></td><td style="background:url(images/osa_top3_2_a.gif); width:30px; height:24px"> </td><td style="background:url(images/osa_top3_2_a.gif); height:24px"> </td><td><img src="images/osa_top3_3.gif"></td></tr>')
- }
-
- function osa_end() {
- document.writeln('</table>')
- document.writeln('</div>')
- }
-
- function osa_row() {
- if (arguments.length==2) {
- document.writeln('<tr><td class="c1"> </td><td class="c2"> </td><td class="c2">'+arguments[0]+' </td><td class="c3"> <a href="product.jsp?id='+arguments[1]+'" target="_blank">param</a></td></tr>');
- }
- if (arguments.length==3) {
- if (arguments[2]==true)
- document.writeln('<tr><td class="c1"> </td><td class="c2"> </td><td class="c2x">'+arguments[0]+' </td><td class="c3"> <a href="product.jsp?id='+arguments[1]+'" target="_blank">param</a></td></tr>');
- else
- document.writeln('<tr><td class="c1"> </td><td class="c2"> </td><td class="c2">'+arguments[0]+' </td><td class="c3"> <a href="product.jsp?id='+arguments[1]+'" target="_blank">param</a></td></tr>');
- }
- }
-
-
- function osa_day() {
- if (arguments.length==3) {
- document.writeln('<tr><td class="c1"> </td><td class="c2"><img src="images/dot.gif" align=absmiddle> '+arguments[0]+' </td><td class="c2">'+arguments[1]+'</td><td class="c3"> <a href="product.jsp?id='+arguments[2]+'" target="_blank">param</a></td></tr>')
- }
- if (arguments.length==4) {
- if (arguments[3]==true)
- document.writeln('<tr><td class="c1"> </td><td class="c2"><img src="images/dot.gif" align=absmiddle> '+arguments[0]+' </td><td class="c2x">'+arguments[1]+'</td><td class="c3"> <a href="product.jsp?id='+arguments[2]+'" target="_blank">param</a></td></tr>')
- else
- document.writeln('<tr><td class="c1"> </td><td class="c2"><img src="images/dot.gif" align=absmiddle> '+arguments[0]+' </td><td class="c2">'+arguments[1]+'</td><td class="c3"> <a href="product.jsp?id='+arguments[2]+'" target="_blank">param</a></td></tr>')
- }
- }
-
- function osa_month() {
- if (arguments.length==1) {
- document.writeln('<tr><td class="c0">'+arguments[0]+'</td><td class="c2" style="background:url(images/prouzek_sedy_3_a.gif); width:30px; height:17px"> </td><td style="background:url(images/prouzek_sedy_3_a.gif); height:17px"> </td><td class="c3"> </td></tr>')
- }
- if (arguments.length==2) {
- if (arguments[1]==true)
- document.writeln('<tr><td class="c0">'+arguments[0]+'</td><td class="c2"> </td><td class="c2"> </td><td class="c3"> </td></tr>')
- else
- document.writeln('<tr><td class="c0">'+arguments[0]+'</td><td class="c2" style="background:url(images/prouzek_sedy_3_a.gif); width:30px; height:17px"> </td><td style="background:url(images/prouzek_sedy_3_a.gif); height:17px"> </td><td class="c3"> </td></tr>')
- }
- }
-
- function caption_bar(caption) {
- var rnd = Math.floor(Math.random()*10000)
- document.writeln('<table cellspacing=0 cellpadding=0 border=0 style="width:100%; padding:0px 0px">')
- document.writeln('<tr><td valign=top style="font-size:13px; height:19px; font-weight:bold; color:black; width:1%" id="'+rnd+'a"><nobr>'+caption+' </nobr></td><td valign=top style="background:url(images/pas3b.gif) repeat-x; width:100%" id="'+rnd+'b"><img src="images/pas3a.gif"></td></tr>')
- document.writeln('</table>')
- var a = gEBI(rnd+'a')
- var b = gEBI(rnd+'b')
- var w = a.offsetWidth
- if (w>500) {
- a.innerHTML=caption+' '
- a.style.width='500px'
- b.style.width='70px'
- }
- }
-
- function diskuse_bar(caption) {
- document.writeln('<table cellspacing=0 cellpadding=0 class="caption">')
- document.writeln('<tr><td style="height:19px" class="txt"><nobr>'+caption+' </nobr></td><td class="submenu2" align=center>')
- document.writeln('<table cellspacing=0 cellpadding=0 width=95% border=0>')
- document.writeln('<tr><td width=33% align=center style="color:black; height:19px; font-size:11px">'+arguments[1]+'</td><td width=34% align=center style="color:black; height:19px; font-size:11px">'+arguments[2]+'</td><td width=33% align=center style="color:black; height:19px; font-size:11px">'+arguments[3]+'</td></tr>')
- document.writeln('</table>')
- document.writeln('</td></tr>')
- document.writeln('</table>')
- }
-
- ie4 = ((navigator.appVersion.indexOf("MSIE")>0) && (parseInt(navigator.appVersion) >= 4))
-
- var count=100, count2=100, add1 = 3, add2 = 10, timerID, kolikrat=0
-
- function fejd()
- {
- if (ie4) {
- count +=add1
- count2+=add2
- delay=30
-
- if(count2>100) count2=100
- if(count>100) {
- count=100
- add1 =-10
- add2 =-3
- delay=50
- }
-
- if(count<0) count=0
- if(count2<0) {
- count2=0
- add1 =3
- add2 =10
- delay=50
- }
-
- //alert(gEBI('napis').style.filter)
- var n = gEBI('soutez')
- n.style.filter="Alpha(Opacity="+count2+",FinishOpacity="+count+",style=2)"
- //n.style.color='rgb('+Math.random()*200+','+Math.random()*200+','+Math.random()*200+')'
- if (count==100)
- kolikrat++
- //if (kolikrat==1)
- // n.style.color='white'
- if (kolikrat<2)
- timerID=setTimeout("fejd()",delay);
- }
- }