function showbox(boxid){
        document.getElementById(boxid).style.display='block';
}

function hidebox(boxid){
        document.getElementById(boxid).style.display='none';
}



function attention(mylocation)
{
var r=confirm("Möchten Sie den Eintrag wirklich entfernen?");
if (r==true)
  {
  window.location=mylocation;
  }
else
  {
  this.close;
  }
}

function attention_nav(mylocation)
{
var r=confirm("Möchten Sie den Menüeintrag wirklich entfernen?");
if (r==true)
  {
  window.location=mylocation;
  }
else
  {
  this.close;
  }
}

function attention_img(mylocation)
{
var r=confirm("Möchten Sie das Foto wirklich entfernen?");
if (r==true)
  {
  window.location=mylocation;
  }
else
  {
  this.close;
  }
}

function attention_page(mylocation)
{
var r=confirm("Möchten Sie diese Seite wirklich entfernen?");
if (r==true)
  {
  window.location=mylocation;
  }
else
  {
  this.close;
  }
}

function attention_article(mylocation)
{
var r=confirm("Möchten Sie diesen Artikel wirklich entfernen?");
if (r==true)
  {
  window.location=mylocation;
  }
else
  {
  this.close;
  }
}


function attention_bildauswahl(mylocation)
{
var r=confirm("Möchten Sie dieses Bild übernehmen?");
if (r==true)
  {
  window.location=mylocation;
  }
else
  {
  this.close;
  }
}


function attention_news(mylocation)
{
var r=confirm("Möchten Sie diesen Newseintrag wirklich entfernen?");
if (r==true)
  {
  window.location=mylocation;
  }
else
  {
  this.close;
  }
}


function attention_gallery(mylocation)
{
var r=confirm("Möchten Sie diese Galerie wirklich entfernen?");
if (r==true)
  {
  window.location=mylocation;
  }
else
  {
  this.close;
  }
}



function bilderauswahl(theURL)
{
    window.open(theURL,  'HauptFenster','height=600,  width=520, top=20,  left=20,  scrollbars=auto');
}



window.onload = externalLinks;
function externalLinks() {
    if(!document.getElementsByTagName) return;
        var links,a,i;
		links = document.getElementsByTagName("a");
        for(i=0;i<links.length;i++) {
            a = links[i];
            if(a.getAttribute("rel") && a.getAttribute("rel").indexOf("external") > -1) {
            a.onclick = function() {
            window.open(this.href);
            return false;
            }
        }
    }
}



function ct(obj) {
obj.target = '_blank';
}


function mainmenu(){
$(" nav ul ul ").css({display: "none"}); // Opera Fix
$(" nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}


/*
 $(document).ready(function(){
	mainmenu();
});
*/
