// get our flash movie object
      var flashMovie;
      function init() {
         if (document.getElementById) {
            flashMovie = document.getElementById("mediaplayer");
         }
      }
      
      // wait for the page to fully load before initializing
      window.onload = init;
   
      // for updating the color box
      function PlayVideo(FileName) {
       
            flashMovie.PlayVideo(FileName);
        
      }
	  
	  function PlayAudio(FileName, caption) {
			flashMovie.PlayAudio(FileName, caption, image);
        
      }
	  
	  function PlayContent(FileName, caption) {
		
			flashMovie.PlayContent(FileName, caption);
        
      }
	  
	        function GoWebCam() {
       
            flashMovie.GoWebCam();
        
      }
	  
//set the iframe height content by element defined in function param
function setIframeHeight (TheElement, TheframeId) {
var the_height = document.getElementById(TheElement).offsetHeight;

if (typeof document.body.style.maxHeight != "undefined") {
  // IE 7, mozilla, safari, opera 9
  BrowserOffset = 12;
} else {
  // IE6, older browsers
  BrowserOffset = 0;
}

		  
document.getElementById(TheframeId).height = the_height  + BrowserOffset  - 120;
}
function opslim(gallery, url, caption) {
      Slimbox.open('extra/live2008/gallery/' + gallery + '/big/' + url, caption);
}