home *** CD-ROM | disk | FTP | other *** search
- var halve=false;
-
- vv = new Image(44,64);
- vv.src = "images/vlajkacz1.gif";
- aa = new Image(144,62);
- aa.src = "images/adresa1.gif";
- dd = new Image(72,75);
- dd.src="images/dn1.gif";
- uu = new Image(72,75);
- uu.src="images/up1.gif";
- uu0 = new Image(72,75);
- uu0.src="images/up0.gif";
- m1 = new Image(54,24);
- m1.src = "images/efirma1.gif";
- m2 = new Image(117,24);
- m2.src = "images/eprima1.gif";
- m3 = new Image(70,24);
- m3.src = "images/ee1.gif";
- m4 = new Image(77,24);
- m4.src = "images/esortiment1.gif";
- menupic1 = new Image(5,3);
- menupic1.src = "images/poptr.gif";
- menupic2 = new Image(5,8);
- menupic2.src = "images/popbr.gif";
- menupic3 = new Image(130,133);
- menupic3.src = "images/popbg.gif";
- menupic4 = new Image(400,8);
- menupic4.src = "images/popb.gif";
- menupic5 = new Image(5,133);
- menupic5.src = "images/popr.gif";
- menupic6 = new Image(135,3);
- menupic6.src = "images/popt.gif";
- menupic7 = new Image(430,64);
- menupic7.src = "images/head.jpg";
- menupic8 = new Image(142,223);
- menupic8.src = "images/vetrak.gif";
- menupic9 = new Image(204,88);
- menupic9.src = "images/logo.gif";
- menupic10 = new Image(142,62);
- menupic10.src = "images/adresa.gif";
-
-
- function bigbang()
- {
- if(halve)
- {
- halve=false;
- h3.src = "images/3a.gif";
- }
- else
- {
- halve=true;
- h3.src = "images/3b.gif";
- }
- setTimeout("bigbang()",500)
- }
-
- function biggerbang()
- {
- var now = new Date()
-
- var minutes = now.getMinutes();
- minutes = ""+ ((minutes<10)?"0":"") + minutes + "";
- h4.src="images/4"+minutes.charAt(0)+".gif";
- h5.src="images/5"+minutes.charAt(1)+".gif";
-
- var hours = now.getHours();
- hours="" + ((hours<10)?"0":"") + hours + "";
- h1.src="images/1"+((hours.charAt(0)=="0")?"":hours.charAt(0))+".gif";
- h2.src="images/2"+hours.charAt(1)+".gif";
- setTimeout("biggerbang()",5000)
- }
-
- var prvni = true;
- function primaci()
- {
- if(prvni)
- {
- prvni=false;
- lhide("prima2");
- }
- else
- {
- prvni=true;
- lshow("prima2");
- }
- setTimeout("primaci()",4000)
- }
-
-
- function nescrolluj()
- {
- lpos("noscroll",lhx+634, lhy+88);
- lshow("noscroll");
- }
-
- pol = new Array("", "firma", "prima", "e", "sortiment");
- menux = new Array(0, 204,276,418,477);
-
- function domenu(no)
- {
- mouseIs = "in";
- lpos(pol[no], menux[no]+lhx, 88+lhy);
- // lshow(pol[no]);
- if(document.form1)
- {
- form1.katB.style.visibility="hidden";
- form1.katC.style.visibility="hidden";
- }
-
- for(var i=1; i<=4; i++)
- {
- if(i==no) {lshow(pol[i])} else {lhide(pol[i])}
- eval("menu"+i+".src='images/e"+pol[i]+((i==no)?"1":"")+".gif';");
- }
- }
-
- function closemenu(no)
- {
- for(var i=1; i<=4; i++)
- {
- lhide(pol[i]);
- eval("menu"+i+".src='images/e"+pol[i]+".gif';");
- }
- // if(form1.katB) form1.katB.style.display="none";
- // if(form1.katC) form1.katC.style.display="none";
- if(document.form1)
- {
- form1.katB.style.visibility="visible";
- form1.katC.style.visibility="visible";
- }
- }
-
- var mouseIs = "out";
- var mTimer = 0;
-
- function mTimerInit()
- {
- mTimer = 20;
- }
-
- function mouseout()
- {
- mouseIs = "out";
- menutimer();
- }
-
- function vynuluj()
- {
- mouseIs = "in";
- clearTimeout(timer);
- }
-
- function menutimer()
- {
- if (mouseIs!="in"){
-
- if (mTimer<=0){
- closemenu(1);
- closemenu(2);
- closemenu(3);
- closemenu(4);
- mTimerInit();
- }
- else{
- mTimer -= 1;
- if (mouseIs!="in"){
- timer = setTimeout("menutimer()",50);
- }
- }
- }
- }
-
- //*********************
-
- function lib_bwcheck(){
- // overenie typu prehliadaΦa
- this.ver=navigator.appVersion
- this.agent=navigator.userAgent
- this.dom=document.getElementById?1:0
- this.opera5=this.agent.indexOf("Opera 5")>-1
- this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
- this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
- this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
- this.ie=this.ie4||this.ie5||this.ie6
- this.mac=this.agent.indexOf("Mac")>-1
- this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
- this.ns4=(document.layers && !this.dom)?1:0;
- this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
- return this
- }
- var bw=new lib_bwcheck()
-
-
-
- var speed = 30
-
- var loop, timer
-
- function makeObj(obj,nest){
- nest=(!nest) ? "":'document.'+nest+'.'
- this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
- this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
- this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
- this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
- this.up=goUp;this.down=goDown;
- this.moveIt=moveIt; this.x=0; this.y=0;
- this.obj = obj + "Object"
- eval(this.obj + "=this")
- return this
- }
-
- var px = bw.ns4||window.opera?"":"px";
-
- function moveIt(x,y){
- this.x = x
- this.y = y
- this.css.left = this.x+px
- this.css.top = this.y+px
- }
-
-
- // sp⌠sobφ pohyb objektu nahor
- function goDown(move){
- if (this.y>-this.scrollHeight+oCont.clipHeight){
- this.moveIt(0,this.y-move)
- if (loop) setTimeout(this.obj+".down("+move+")",speed)
- }
- }
-
- // a tßto funkcia zasa nadol
- function goUp(move){
- if (this.y<0){
- this.moveIt(0,this.y-move)
- if (loop) setTimeout(this.obj+".up("+move+")",speed)
- }
- }
-
-
- // zavolß funkcie potrebnΘ k skrolovaniu, samozrejme a₧ potom, ako je strßnka nahranß
- function scroll(speed){
- if (scrolltextLoaded){
- loop = true;
- if (speed>0) oScroll.down(speed)
- else oScroll.up(speed)
- }
- }
-
-
- // zastavφ pohyb
- function noScroll(){
- loop = false
- if (timer) clearTimeout(timer)
-
- closemenu(1);
- closemenu(2);
- closemenu(3);
- closemenu(4);
- mTimerInit();
-
- }
-
- // vytvorφ objekt
- var scrolltextLoaded = false
- function scrolltextInit(){
- oCont = new makeObj('divScrollTextCont')
- oScroll = new makeObj('divText','divScrollTextCont')
- oScroll.moveIt(0,0)
- oCont.css.visibility = "visible"
- scrolltextLoaded = true
- }
-
- // spustφ cel² proces, ak je strßnka nahranß a priehladaΦ je v poriadku
- //if (bw.bw) onload = scrolltextInit
-
-