sfHover=function()
{
    var sfEls=document.getElementById("navigation").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++)
    {
        sfEls[i].onmouseover=function()
        {
            this.className+=" sfhover";
        }

        sfEls[i].onmouseout=function()
        {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


function addCls(elm,cls) 
{ 
    if(elm) 
    {  
var isok=1; 
var clses = new Array(); 
clses=elm.className.split(" ");  
for(var i=0;i<clses.length;i++) 

if(cls==clses[i]) 
isok=false; 
if(isok==1) 
elm.className+=" "+cls;  
//elm.setAttribute(elm.getAttribute('class')+" "+cls); 
    } 
} 
 
function remCls(elm,cls) 
{  
if(elm) 
{ 
        // s medzerou .. odobera len presne danu classu, ale PRVU v poradi nie         
//elm.setclass=this.className.replace(new RegExp(" "+cls), "");  
// bez medzery .. POZOR odoberie aj cast nazvu classy ktora ma v nazve $cls 
elm.className=elm.className.replace(new RegExp(""+cls), "");    
//nic 
//elm.setAttribute(elm.getAttribute('class').replace(new RegExp(" "+cls), ""));  
} 
} 


					function hAllArticles(){
							hE(article1E);hE(article2E);hE(article3E);hE(article4E);
							remCls(article1_aE,"active");remCls(article2_aE,"active");remCls(article3_aE,"active");remCls(article4_aE,"active");
					}
						function nextArticle(){
							oldArticle=actualArticle;
							actualArticle++;
							if (actualArticle>4) actualArticle=1;
							opacity=1;
							timer = setInterval("fade()",25);

							eval("article"+actualArticle+"E.style.opacity=String(0)");
							eval("article"+actualArticle+"E.style.filter='alpha(opacity='+String(0)+')'");

							eval("sE(article"+actualArticle+"E)");
							eval("addCls(article"+actualArticle+"_aE,'active')");
							fototimer=setTimeout("nextArticle()",3000);
						}
					function fade(){
						opacity-=0.1;
						ropacity=1-opacity;
						eval("article"+oldArticle+"E.style.opacity=String(opacity)");
						eval("article"+oldArticle+"E.style.filter='alpha(opacity='+String(opacity*100)+')'");
						eval("article"+actualArticle+"E.style.opacity=String(ropacity)");
						eval("article"+actualArticle+"E.style.filter='alpha(opacity='+String(ropacity*100)+')'");
						if (opacity<0) {
							eval("hE(article"+oldArticle+"E)");
							eval("article"+oldArticle+"E.style.opacity=String(100)");
							eval("article"+oldArticle+"E.style.filter='alpha(opacity='+String(100)+')'");

							eval("remCls(article"+oldArticle+"_aE,'active')");
							clearInterval(timer);
					}
						
					}


