var flash;
var contentHeight;

function initMenu() {
//initialisierung des Scrollers
//end Initialisierung
  if (document.all&&document.getElementById) {
  navRoot = document.getElementById("mainNavi");
    navRoot.onmouseover=function() {
      for (i=0; i<navRoot.childNodes.length; i++) {
        node = navRoot.childNodes[i];
          if (node.nodeName=="LI") {
            node.className+=" over";
          }     
         }
        }

    navRoot.onmouseout=function() {
      for (i=0; i<navRoot.childNodes.length; i++) {
        node = navRoot.childNodes[i];
          if (node.nodeName=="LI") {
            node.className=node.className.replace(" over", "");
            }     
          }
        }
    }  
checkFlashObject();
checkHeight();    
  }
  
  
function initScrollFlash(){
checkFlashObject();
checkHeight();  
}  

function getLinkUrl(theLink) {
window.location.href = theLink;
}

function checkHeight() {
var contenter = document.getElementById("content");
var scrollerT;
if (contenter) {
var contentHeight = contenter.offsetHeight;
var divContainer = document.getElementById("divContainer");
var divContainerHeight = divContainer.offsetHeight;
  if (contentHeight > divContainerHeight)  {
    scrollerT=document.getElementById("scroller");
    scrollerT.style.visibility = "visible";
   }
  }
}




function checkFlashObject() {
  if(navigator.appName.indexOf("Microsoft") != -1) {
    flash = window.flash_project;
  }else {
    flash = window.document.flash_project;
  }
}


function nextFlashProject() {
			flash.loadPhoto();
}


function thePictureOver(theMovie) {
      if (document.getElementById("listProject")) {
      theFlasMovie = theMovie
			flash.onOver2(theFlasMovie);
			}
}


function thePictureOut(theMovie) {
      if (document.getElementById("listProject")) {
      theFlasMovie = theMovie;
			flash.onOut2(theFlasMovie);
			}
}

function highlightMenu(theMovie) {
toHighLight = document.getElementById(theMovie);
toHighLight.style.color = "#4D88BF"; 
}

function deshighlightMenu(theMovie) {
toHighLight = document.getElementById(theMovie);
toHighLight.style.color = "#897970"; 
}



function showSubTitle(title) {
var subTitleElement = document.getElementById("footerLeftContent");
subTitleElement.innerHTML = title;
}

function hideSubTitle() {
var subTitleElement = document.getElementById("footerLeftContent");
subTitleElement.innerHTML = "";
}

