arrNav = new Array();
var navtext_unten="";

var dropdown_over=0;

function navToHk(navId){
                 window.open("index.php?nav="+navId, "_self");
        }

function navToUk(navHk, navUk){
                 if((navHk==6)&&(navUk==19)){
                       window.open("http://www.ruegen-aktuell.de", "_blank");
                 }else{
                       window.open("index.php?nav="+navHk+"&unav="+navUk, "_self");
                 }
        }

function dropdown(hk_item){
         for(var i=1;i<8;i++){
             document.getElementById("dropdown_"+i).style.display="none";
         }
         document.getElementById("dropdown_"+hk_item).style.display="block";
}

function dropup(hk_item){
         var element = "dropdown_"+hk_item;
         setTimeout("hide('"+element+"')",100);
}

function hide(Element){

       if(dropdown_over==0){
         document.getElementById(Element).style.display="none";
         }
}

function dropdownOver(hk_id){
         dropdown_over=1;
}

function dropdownOut(hk_id){
         dropdown_over=0;
         setTimeout("hide('dropdown_"+hk_id+"')",100);
}

function writeContents(uk_id){
         if(contents[uk_id]==undefined){uk_id=0;}
         document.getElementById("contents").innerHTML=contents[uk_id]+"<br>"+navtext_unten;
}

function addSubmenue(){
         obj=document.getElementById("contents");
         obj.innerHTML += "<br>"+navtext_unten;
}

function check_suchfeld(){
         text=document.frm_suche.suchtext.value.length;
         if (text<4){alert('Suchbegriff zu kurz');return false;}else{return true;}

}

function write_navtext_unten(){
         return navtext_unten;
}

