var visible="";
var opac=0;
var bid="";

function changeOpac(opacity, id)
{
	if (opacity<0) return;
	if (opacity>100) return;
    var object = document.getElementById(id).style;
    if(object.opacity){object.opacity = (opacity / 100)};
    if(object.MozOpacity){object.MozOpacity = (opacity / 100)};
    if(object.KhtmlOpacity){object.KhtmlOpacity = (opacity / 100)};
    if(object.filter){object.filter = "alpha(opacity=" + opacity + ")"};
}

function blendItemIn(id)
{
   if (id) bid=id;
   if (opac>100) return;
   changeOpac(opac,bid);
	opac+=2;
	setTimeout("blendItemIn()",18);
}



function getFlashMovie(flash) {
    if (document.all) {
      if (document.all[flash]) {
        return document.all[flash];
      }
      if (window.opera) {
        var movie = eval(window.document + flash);
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if(document.layers) {
      if(document.embeds) {
        var movie = document.embeds[flash];
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if (!document.getElementById) {
      return;
    }
    var movie = document.getElementById(flash);
    if (movie.SetVariable) {
      return movie;
    }
    var movies = movie.getElementsByTagName('embed');
    if (!movies || !movies.length) {
      return;
    }
    movie = movies[0];
    if (movie.SetVariable) {
      return movie;
    }

    return;
  }

 function nextPic() {
  getFlashMovie("coverflow").nextPic();
 }

 function prevPic() {
  getFlashMovie("coverflow").prevPic();
 }

 function toPic(nr) {
  var m=getFlashMovie("coverflow");
  m.toPic(nr);
 }

// Wird von Flash aufgerufen
function flip(block) {
    var o=document.getElementById(block);
    if (o) {
        if (visible) {
            o2=document.getElementById(visible);
            o2.style.display="none";
            o2.style.visibility="hidden";
        }
        o.style.display="block";
        o.style.visibility="visible";
        visible=block;
    }
}
