        window.onload = ostylovat;
	
        function ostylovat() {
            var news = document.getElementById("news");
	    if(news) {
                news.style.scrollbarBaseColor = '#ffd200';
                news.style.scrollbarFaceColor = '#ffd200';
	    }
        }

	var ukazat = (document.cookie.indexOf("visited=1")>=0?0:1);
	var exp = new Date(); var sekund = 24*60*60;
	exp.setTime(exp.getTime() + (sekund*1000));
	document.cookie = "visited=1; expires="+exp.toGMTString();

	var obr = null;
	function obrazek(adresa, nadpis, alt, nezavirat) {
		obr = window.open("", "obr", "width=300,height=300");
		obr.document.open();
		obr.document.write("<html>\n");
		obr.document.write("<title>"+nadpis+"</title>\n");
		obr.document.write("<body topmargin=\"0\" leftmargin=\"0\">\n");
		obr.document.write("<script language=\"JavaScript\">\n");
		obr.document.write("<!--//\n");
		obr.document.write("function stretchTo(myImage) {\n");
		obr.document.write("	var ow = w = myImage.width+10;\n");
		obr.document.write("	var oh = h = myImage.height+29;\n");
                obr.document.write("	if(screen) {\n");
		obr.document.write("		Hscreen = screen.availHeight;\n");
		obr.document.write("		Wscreen = screen.availWidth;\n");
		obr.document.write("		Lscreen = window.screenLeft;\n");
		obr.document.write("		Tscreen = window.screenTop;\n");
		obr.document.write("		if(Hscreen<(h+window.screenTop)||window.screenTop>0||Wscreen<(w+window.screenLeft)||window.screenLeft>0) resizeIt = true; else resizeIt = false;\n");
		obr.document.write("		if(w>Wscreen||h>Hscreen) {\n");
		obr.document.write("			if(h>Hscreen) { h = Hscreen; Tscreen = 0; resizeIt = true; }\n");
		obr.document.write("			if(w>Wscreen) { w = Wscreen; Lscreen = 0; resizeIt = true; }\n");
		obr.document.write("			resizeTo(w, h);\n");
		obr.document.write("		}\n");
		obr.document.write("		while(h<Hscreen&&Tscreen>(Hscreen-oh)/2) Tscreen--;\n");
		obr.document.write("		while(w<Wscreen&&Lscreen>(Wscreen-ow)/2) Lscreen--;\n");
		obr.document.write("		if(resizeIt) moveTo(Lscreen, Tscreen);\n");
		obr.document.write("	}\n");
		obr.document.write("	resizeTo(w, h);\n");
		obr.document.write("	if(window.screen)\n");
		obr.document.write("		moveTo(window.screen.width/2-w/2, window.screen.height/2-h/2);\n");
		obr.document.write("}\n\n");
		if(typeof(nezavirat)=="boolean"&&nezavirat)
			zavirani = "if(event.button!=2) "; else zavirani = "";
		obr.document.write("document.onmousedown=new Function(\""+zavirani+"window.close();\");\n");
		obr.document.write("document.onmouseup=new Function(\""+zavirani+"window.close();\");\n");
		obr.document.write("if(document.layers) window.captureEvents(Event.MOUSEDOWN);\n");
		obr.document.write("if(document.layers) window.captureEvents(Event.MOUSEUP);\n");
		obr.document.write("//-->\n");
		obr.document.write("</scr"); obr.document.write("ipt>\n");
		obr.document.write("<img src=\""+adresa+"\" alt=\""+alt+"\" id=\"obr\" onload=\"stretchTo(this);\"");
		obr.document.write(" onmousedown=\""+zavirani+"window.close();\" onmouseup=\""+zavirani+"window.close();\"");
		obr.document.write(">\n");
		obr.document.write("</body>\n</html>\n");
		obr.document.close();
		obr.focus();
		return false;
	}

        function checkQuery(s) {
          var q = document.forms[0].q.value;
          if (q.length==0) {
            alert("Zadejte prosím výraz, který chcete vyhledat.");
            return false;
          } else {
            return true;
          }
        }

        var nospamtab = new Array(109, 97, 105, 108, 116, 111, 58);
        function nospamf(box, domain) {
                if(typeof(domain)=="undefined") domain = "active24.cz";
        	var proto = ""; for(idx=0;idx<nospamtab.length;idx++) proto+=String.fromCharCode(nospamtab[idx]);
        	window.open(proto+box+String.fromCharCode(64)+domain);
        }
        function nospam(box, domain, attr) {
                if(typeof(domain)=="undefined") domain = "active24.cz";
                if(typeof(attr)=="undefined") attr = "";
                document.write("<a href=\"javascript:nospamf('"+box+"', '"+domain+"')\""+(attr.length>0?" ":"")+attr+">"+box+String.fromCharCode(64)+domain+"</a>");
        }
        function zavinac() {
                document.write(String.fromCharCode(64));
        }