 
try {
  document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}
	

function wo_str(url) {
	window.open(url,'str','width=490,height=400,scrollbars=yes,resizable=yes'); 
	return false;
}

function clanak_popup(url) {
	window.open(url,'clanak_popup','menubar=yes, scrollbars=yes, resizable=yes');
}

function fix_flash() {
	theObjects = document.getElementsByTagName("object");
	for (var i = 0; i < theObjects.length; i++) {
		theObjects[i].outerHTML = theObjects[i].outerHTML;
	}
}

var alreadyrunflag=0 

if (document.addEventListener)
  document.addEventListener("DOMContentLoaded", function(){alreadyrunflag=1; fix_flash()}, false)
else if (document.all && !window.opera){
  document.write('<script type="text/javascript" id="contentloadtag" defer="defer" src="javascript:void(0)"><\/script>')
  var contentloadtag=document.getElementById("contentloadtag")
  contentloadtag.onreadystatechange=function(){
    if (this.readyState=="complete"){
      alreadyrunflag=1
      fix_flash()
    }
  }
}

function cat_show() {
	$('#katalog #katalog-menu li.categorie-top ul').hide();
	$(t).parent().find('ul').show();
	return false;
}

function cat_hide() {
	$(t).parent().find('ul').hide();
	return false;
}

var tid=0;
var t=0;

$(document).ready(function(){
		
	setTimeout("if (!alreadyrunflag) fix_flash()", 0)
		
	$('#index-headlines li.categorie-top > a').click(function () {
		$('index-headlines li.categorie-top ul').hide('slow');
		$(this).parent().find('ul').toggle('slow');	
		return false;
	});
	
	$('#katalog #katalog-menu li.categorie-top > a, #katalog #katalog-menu li.categorie-top ul').hover(function () {
		t=this;
		clearTimeout(tid);
		tid=setTimeout('cat_show(t)',30);
	}, function() {
		t=this;
		clearTimeout(tid);
		tid=setTimeout('cat_hide(t)',300);
	});	
});