sfHover = function() {

	// regular navigation
	try {
   	var sfEls = document.getElementById("nv").getElementsByTagName("LI");

		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
		// language navigation
   	sfEls = document.getElementById("nv1").getElementsByTagName("LI");

		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}

			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}

	catch (e) {
	}

}



if (window.attachEvent) window.attachEvent("onload", sfHover);



function faqToggle(cid,nr) {
   for (i=1;i<=30;i++) {
      var mytab = document.getElementById('faq-'+cid+'-'+i);
      if (mytab) {
         if (nr == i && document.getElementById('faqContent-'+cid+'-'+i).style.display != 'block') {
            mytab.className = 'faqAktiv';
            document.getElementById('faqContent-'+cid+'-'+i).style.display = 'block';
         } else {
            mytab.className = 'faq';
            document.getElementById('faqContent-'+cid+'-'+i).style.display = 'none';
         }
      } else {
         break;
      }
   }
}

function toggleInfoText () {
	if (document.getElementById('textbody').style.overflow == 'visible') {
		document.getElementById('textbody').style.overflow = 'hidden' ;
		document.getElementById('textbody').style.height = '200px' ;
		document.getElementById('textmore').style.visibility = 'visible' ;
		document.getElementById('textmore').style.height = '10px' ;
		document.getElementById('textless').style.visibility = 'hidden' ;
		document.getElementById('textless').style.height = '0px' ;
	} else {
		document.getElementById('textbody').style.overflow = 'visible' ;
		document.getElementById('textbody').style.height = 'auto' ;
		document.getElementById('textmore').style.visibility = 'hidden' ;
		document.getElementById('textmore').style.height = '0px' ;
      document.getElementById('textless').style.visibility = 'visible' ;
		document.getElementById('textless').style.height = '10px' ;
	}
}


function getMovieWidth() {
	var myWidth = 0, myHeight = 0;
	
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	return( myWidth );
}

function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[movieName] : document[movieName];
}

function getMovieHeight() {
	var myWidth = 0, myHeight = 0;
	
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	return( myHeight );
}

function adapt() {
	var objDiv = document.getElementById('flashlayer');
	
	if (objDiv.style.display != 'block') {
		objDiv.style.display = 'block' ;
		var movie = getFlashMovie("gallery") ;
//		movie.repositionElements();
	}
	else
		objDiv.style.display = 'none' ; 
		
	return(false) ;
}






