home *** CD-ROM | disk | FTP | other *** search
- var ctimer;
- var cdate;
-
- // *************************************************** change time
-
- function init() {
- if (document.all) {
- cdate = xtime.innerHTML;
- settimes();
- }
- }
-
- function settimes(){
- // var time= new Date();
- // hours= time.getHours();
- // mins= time.getMinutes();
- // secs= time.getSeconds();
- // if (hours<10) hours="0"+hours;
- // if(mins<10) mins="0"+mins;
- // if (secs<10) secs="0"+secs;
- // var dlzka = cdate.length;
- // xtime.style.pixelLeft = (document.body.clientWidth/2)+((770-16)/2)-(dlzka*8)-20;
- // xtime.innerHTML = '<nobr>'+cdate+" - "+hours+":"+mins+":"+secs+'</nobr>';
- // ctimer=setTimeout('settimes()',960);
- }
-
- // *************************************************** Open okno
-
- //function add_warez(url) {
- // okno = //window.open(url,"link","width=550,height=180,left=50,top=50,location=no,scrollbars=no,resizable//=n//o,status=no");
- //}
-
- // *************************************************** open / close menu
-
- function clikker1(a,b,c)
- {
- if (a.style.display =="")
- {
- a.style.display = "none";
- b.src="images/nov.gif";
- cookie_menu(c,'0');
- }
- else
- {
- a.style.display="";
- b.src="images/nov2.gif";
- cookie_menu(c,'1');
- }
- }
-
- function setclikker1(a,b,typ)
- {
- if (typ == "0")
- {
- a.style.display = "none";
- b.src="images/nov.gif";
- }
- else
- {
- a.style.display="";
- b.src="images/nov2.gif";
- }
- }
- function clikker2(a,b,c)
- {
- if (a.style.display =="")
- {
- a.style.display = "none";
- b.src="images/cma.gif";
- cookie_menu(c,'0');
- }
- else
- {
- a.style.display="";
- b.src="images/cma2.gif";
- cookie_menu(c,'1');
- }
- }
-
- function setclikker2(a,b,typ)
- {
- if (typ == "0")
- {
- a.style.display = "none";
- b.src="images/cma.gif";
- }
- else
- {
- a.style.display="";
- b.src="images/cma2.gif";
- }
- }
- function clikker3(a,b,c)
- {
- if (a.style.display =="")
- {
- a.style.display = "none";
- b.src="images/dul.gif";
- cookie_menu(c,'0');
- }
- else
- {
- a.style.display="";
- b.src="images/dul2.gif";
- cookie_menu(c,'1');
- }
- }
-
- function setclikker3(a,b,typ)
- {
- if (typ == "0")
- {
- a.style.display = "none";
- b.src="images/dul.gif";
- }
- else
- {
- a.style.display="";
- b.src="images/dul2.gif";
- }
- }
- function clikker4(a,b,c)
- {
- if (a.style.display =="")
- {
- a.style.display = "none";
- b.src="images/hist.gif";
- cookie_menu(c,'0');
- }
- else
- {
- a.style.display="";
- b.src="images/hist2.gif";
- cookie_menu(c,'1');
- }
- }
-
- function setclikker4(a,b,typ)
- {
- if (typ == "0")
- {
- a.style.display = "none";
- b.src="images/hist.gif";
- }
- else
- {
- a.style.display="";
- b.src="images/hist2.gif";
- }
- }
- function clikker5(a,b,c)
- {
- if (a.style.display =="")
- {
- a.style.display = "none";
- b.src="images/byv.gif";
- cookie_menu(c,'0');
- }
- else
- {
- a.style.display="";
- b.src="images/byv2.gif";
- cookie_menu(c,'1');
- }
- }
-
- function setclikker5(a,b,typ)
- {
- if (typ == "0")
- {
- a.style.display = "none";
- b.src="images/byv.gif";
- }
- else
- {
- a.style.display="";
- b.src="images/byv2.gif";
- }
- }
- function clikker6(a,b,c)
- {
- if (a.style.display =="")
- {
- a.style.display = "none";
- b.src="images/slov.gif";
- cookie_menu(c,'0');
- }
- else
- {
- a.style.display="";
- b.src="images/slov2.gif";
- cookie_menu(c,'1');
- }
- }
-
- function setclikker6(a,b,typ)
- {
- if (typ == "0")
- {
- a.style.display = "none";
- b.src="images/slov.gif";
- }
- else
- {
- a.style.display="";
- b.src="images/slov2.gif";
- }
- }
-
- // *************************************************** funkcie pre cookie
-
- function getCookie(NameOfCookie)
- {
- if (document.cookie.length > 0) {
- begin = document.cookie.indexOf(NameOfCookie+"=");
- if (begin != -1) {
- begin += NameOfCookie.length+1;
- end = document.cookie.indexOf(";", begin);
- if (end == -1) end = document.cookie.length;
- return unescape(document.cookie.substring(begin, end));
- }
- }
- return null;
- }
-
- function setCookie(NameOfCookie, value, expiredays)
- {
- var ExpireDate = new Date ();
- ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
- document.cookie = NameOfCookie + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
- }
-
- function delCookie (NameOfCookie)
- {
- if (getCookie(NameOfCookie)) {
- document.cookie = NameOfCookie + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
- }
- }
-
- function cookie_menu(nazov,typ)
- {
- var today = new Date();
- var expires = new Date();
- setCookie(nazov, typ, 1000);
- }
-
- // *************************************************** MAIN
-
- init();
-