
var header_flag = 0;

function show(whichOne){

 // Das Herader-Flag auf 1 setzen bei mousover
 header_flag = 1;

 if($("div0").fx) {
  $("div0").fx.stop();
 } if (whichOne != "div0") {
  $("div0").fx = $("div0").effect('opacity', {duration: 400}).start(0);
 }
 if($("div1").fx) {
  $("div1").fx.stop();
 } if (whichOne != "div1") {
  $("div1").fx = $("div1").effect('opacity', {duration: 400}).start(0);
 }
 if($("div2").fx) {
  $("div2").fx.stop();
 } if (whichOne != "div2") {
  $("div2").fx = $("div2").effect('opacity', {duration: 400}).start(0);
 }
 if($("div3").fx) {
  $("div3").fx.stop();
 } if (whichOne != "div3") {
  $("div3").fx = $("div3").effect('opacity', {duration: 400}).start(0);
 }
 if($("div4").fx) {
  $("div4").fx.stop();
 } if (whichOne != "div4") {
  $("div4").fx = $("div4").effect('opacity', {duration: 400}).start(0);
 }
 if($("div5").fx) {
  $("div5").fx.stop();
 } if (whichOne != "div5") {
  $("div5").fx = $("div5").effect('opacity', {duration: 400}).start(0);
 }
 
 $(whichOne).fx = $(whichOne).effect('opacity', {duration: 800}).start(1);
	
}

// Header-Flag checken ob die Maus sich auf einem der Buttons befindet
function checkflag () { 
 if (header_flag == 0) {
  show_default_header ();
 }
}

// Das Header-Flag auf 0 setzen bei mousout
function setflag(status) {
 header_flag = status;
 checkflag();
 //window.setTimeout("checkflag()",2000);
}

// Ueberblendung zu Default-Header
function show_default_header () {
 $("div0").fx = $("div0").effect('opacity', {duration: 3000}).start(1);
}