// globalis valtozok
var ns4=(document.layers)? true:false;
var ie4=(document.all)? true:false;
var nn=(navigator.appName == "Netscape")
var m=new Array();
var skiperror = true;

function stopError() {
  return true;
}

if (!skiperror) window.onerror = stopError;

function getLayer(layerID) {
if (document.getElementById)
	return document.getElementById(layerID);
else if (document.all)
	return document.all[layerID];
else 
	return null;
}

function showObj(obj) {
	if (ns4) document.layers[obj].visibility = "show"
	else if (ie4) document.all[obj].style.visibility = "visible"
	else document.getElementById(obj).style.visibility = "visible";
	//alert(document.getElementById(obj).style.visibility);
}

function hideObj(obj) {
	if (ns4) document.layers[obj].visibility = "hide"
	else if (ie4) document.all[obj].style.visibility = "hidden"
	else document.getElementById(obj).style.visibility = "hidden";
	//alert(document.getElementById(obj).style.visibility);
}

function hide(obj) {
	if (ns4) obj.visibility = "hide"
	else obj.style.visibility = "hidden"
}

function show(obj) {
	if (ns4) obj.visibility = "show"
	else obj.style.visibility = "visible"
}

getObj = function(n,d) 
{
	var i,x;
	if(!d) d=document; 
	if(!(x=d[n])&&d.all) x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	if(!x && d.getElementById) x=d.getElementById(n); 
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=getObj(n,d.layers[i].document);
	return x;
}

var win=null;
function NewWindow(mypage,myname,w,h){
	if (document.all) { var wi=(screen.availWidth-590)/2; } else { var wi=10; }
	if (win!=null) {win.close();}
	settings='width='+w+',height='+h+',top=20,left='+wi+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
}


var changeRate = 800;
$(document).ready(function(){
	if($(".aktualitas").length>0){
		setInterval(function(){$(".aktualitas").toggleClass("allas_high");},changeRate);
	}

	$(".akt_list li a").click(function(e){
		if($(this).next("ul").length>0){
			e.preventDefault();
			$(this).next("ul").stop().toggle(400);
		}else{
			_gaq.push(['_trackPageview', $(this).attr("href") ]);
		}
	});

});

