function more(o, i) {
if (i == 1) $("#"+o).slideDown("slow");
else if (i == 0) $("#"+o).slideUp("slow");
else $("#"+o).slideToggle("slow");
}
//--------------------------------------------------------------------
setTimeout("jQuery('.msg').slideUp(1000)", 10000);
setTimeout("jQuery('.msgo').slideUp(1000)", 10000);
setTimeout("jQuery('.info').slideUp(1000)", 10000);
setTimeout("jQuery('.infoo').slideUp(1000)", 10000);

//-----------------------------  LINKI --------------------------------
$(document).ready(function(){
$('.url').each(function(){
var anchor = $(this).text();
var href = $(this).attr('rel');
$(this).replaceWith('<a href="'+href+'" class="url">'+anchor+'</a>');
});
$('.url_1').each(function(){
var anchor = $(this).text();
var href = $(this).attr('rel');
$(this).replaceWith('<a href="'+href+'" class="copyright">'+anchor+'</a>');
});
$('.url_2').each(function(){
var anchor = $(this).text();
var href = $(this).attr('rel');
$(this).replaceWith('<a href="'+href+'" class="gb_link_email left">'+anchor+'</a>');
});
$('.url_3').each(function(){
var anchor = $(this).text();
var href = $(this).attr('rel');
$(this).replaceWith('<a href="'+href+'" class="gb_link_url left">'+anchor+'</a>');
});
});




//-----------------------------  MENU --------------------------------
var menuids=["sidebar-menu"]
function initsidebarmenu(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    ultags[t].parentNode.getElementsByTagName("a")[0].className+=" subfolderstyle"
  if (ultags[t].parentNode.parentNode.id==menuids[i])
   ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px"
  else
    ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px"
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
  for (var t=ultags.length-1; t>-1; t--){
  ultags[t].style.visibility="visible"
  ultags[t].style.display="none"
  }
  }
}
if (window.addEventListener)
window.addEventListener("load", initsidebarmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", initsidebarmenu)



