var startVideo = function(vidPath, width, height) {
   if ($$('div.showroom').length == 0) {
   

      var cinemaBox = new Element(
         'div',
         {
            'class': 'showroom',
            'style': 'display:none;'
         }
      );
      Element.insert(document.body, cinemaBox);
    if (Prototype.Browser.IE == false) {
    
   
      var videoBox = new Element(
         'object',
         {
            'class': 'movie',
            'id': 'flash_video',
            'codebase': 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
            'classid': 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',
            'width': width+'px',
            'height': height+'px',
            'style': 'margin-top:150px;'
            
         }
      );

      Element.insert(videoBox, new Element( 
         'param',
         {
            'name': 'movie',
            'value': vidPath
         }
      ));
   
      Element.insert(videoBox, new Element( 
         'param',
         {
            'name': 'quality',
            'value': 'high'
         }
      ));

      Element.insert(videoBox, new Element( 
         'param',
         {
            'name': 'loop',
            'value': 1
         }
      ));
      
 
      var embedElement = new Element( 
         'embed',
         {
            'src': vidPath,
            'loop': 1,
            'quality': 'high',
            'pluginspage': 'http://www.macromedia.com/go/getflashplayer',
            'type': 'application/x-shockwave-flash',
            'menu': false,
            'width': width+'px',
            'height': height+'px',
            'style': 'margin-top:150px;'
         }
      );

         Element.insert(videoBox, embedElement);
  
      Element.insert(cinemaBox, videoBox);
      
    } else {
    
    var markup='<object style="margin-top:150px;" height="'+height+'px" width="'+width+'px" class="movie" id="flash_video" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="movie" value="'+vidPath+'"/><param name="quality" value="high"/><param name="loop" value="1"/><embed height="'+height+'px" width="'+width+'px" src="'+vidPath+'" loop="1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"/></object>';
     
    }

      
      cinemaBox.appear({
         to: 0.7,
         afterFinish: function() {
            if (Prototype.Browser.IE) {
               $$('div.showroom')[0].innerHTML = markup;
            }      
         var closeButton = new Element(
            'div',
            {
               'class': 'showroom_close_btn',
               'style': 'width: '+width+'px; height: 20px;'
            }
         );
         closeButton.update('Schließen');
         Element.insert($$('div.showroom')[0], closeButton);
         Event.observe(closeButton, 'click', function() {
         $('flash_video').hide();
         $$('div.showroom')[0].fade({
            'afterFinish': function() {
               $$('div.showroom')[0].remove();
            }
         });
         
      });
         }     
      });
   }
}