function show_overlay_clip(clip_prefix) {
var cwidth = 990;
var cheight = 745;
var topMargin = 25;

  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth - 18;
    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;
  }


var height = myHeight;
var width = myWidth;


if (height < (cheight)) {

	var factor = (1.0 * height) / (1.0*(cheight+20));
	cwidth = Math.floor(factor * cwidth);
	cheight = Math.floor(factor * cheight);
}
topMargin = (height-cheight-20)/2;
leftMargin = (width-cwidth)/2;
var h = '';
var lt = "<";
var gt = ">";
h += lt + 'object  style="margin-bottom:0px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+cwidth+'" height="'+cheight+'" ID="Captivate1";'+gt;
h += '<param name="movie" value="'+clip_prefix+'">';
h += '<param name="quality" value="high">';
h += '<param name="loop" value="0">';
h += lt+'embed swliveconnect="true" name="Captivate1" src="'+clip_prefix+'" width="'+cwidth+'" height="'+cheight+'" loop="0" quality="high" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"'+gt+lt+'/embed'+gt;
h += lt + '/object'+gt;
h += "\n";
h += lt+'div style="text-align:right; padding-top:0px; margin-top:0px; background-color:#FFFFFF; width:'+cwidth+'px;"'+gt+lt+'a style="font-weight:bold; " onClick="close_overlay_clip();return false;" href=""'+gt+'&rsaquo; Film schließen'+lt+'/a'+gt+lt+'/div'+gt;

var o = document.getElementById('overlay-clips');
var cd = document.getElementById('clipdiv');
cd.style.top= topMargin+'px';
cd.style.width = cwidth +'px';
cd.style.left = leftMargin + 'px';
cd.innerHTML=h;
o.style.display= 'block';
o.style.visibility = 'visible';
cd.style.display='block';
document.getElementById('Captivate1').focus();
document.Captivate1.focus();

}


function close_overlay_clip(divId) {
var o = document.getElementById('overlay-clips');
o.style.visibility = 'hidden';
var o = document.getElementById('clipdiv');
o.innerHTML='';

}
