// www.web-toolbox.net , W. Jansen
// updated by www.surfino.com, Th. Hartmann
// Als Uebergabeparameter wird die bildquelle,breite und hoehe uebergeben

function showVid(u_domain, u_video)
{
	var eigenschaft,sbreite,shoehe,fenster,b,h;
	// darzustellende Groesse
	var b = 360;
	var h = 380;

	// stellt die Bildschirmabmessungen fest
	var ns6 = (!document.all && document.getElementById);
	var ie4 = (document.all);
	var ns4 = (document.layers);

	if(ns6||ns4) {
		sbreite = innerWidth;
		shoehe = innerHeight;
	}
	else if(ie4) {
		sbreite = document.body.clientWidth;
		shoehe = document.body.clientHeight;
	}

	x = (sbreite-b)/2;
	y = (shoehe-h)/2;

	eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";

	fenster=window.open("","",eigenschaften);
	fenster.focus();
	fenster.document.open();
	// Player benoetigt Version 7
		with (fenster) {
		  document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">')
		  document.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />');
		  document.write('<title>FlowPlayer</title></head>');
		  document.write('<body bgcolor="#FFF9DF" text="#000000" link="#6C3600" vlink="#6C3600" alink="#6C3600">');
		  document.write('<center>');
		  document.write('<object type="application/x-shockwave-flash" data="' + u_domain + 'common/flowplayer/FlowPlayer.swf" width="320" height="263" id="FlowPlayer">');
		  document.write('<param name="movie" value="' + u_domain + 'common/flowplayer/FlowPlayer.swf" />');
		  document.write('<param name="movie" value="FlowPlayer.swf" />');
		  document.write('<param name="quality" value="high" />')
		  document.write('<param name="scale" value="noScale" />');
		  document.write('<param name="wmode" value="transparent" />')
		  document.write('<param name="flashvars" value="baseURL=' + u_domain + 'uploads&amp;videoFile=' + u_video + '&amp;autoPlay=true&amp;bufferLength=5&amp;loop=false&amp;progressBarColor1=0xAAAAAA&amp;progressBarColor2=0x555555&amp;autoBuffering=false&amp;splashImageFile=' + u_domain + 'common/flowplayer/main_clickToPlay.jpg&amp;hideControls=false" />');
		  document.write('</object> ');
		  document.write('<a href=# onclick="self.close()">Fenster schliessen</a>')
		  document.write('</center>');
		  document.write('</body></html>');
		  fenster.document.close();
		}




}

