// JavaScript Document
function startVideo(path, headline, a, atext)
{
	if (a && atext) {
		addBefore = "";
		addAfter = "<a href=\""+a+"\" style=\"color:#FFFFFF;font-family:verdana;font-size:11px;line-height:16px;padding-top:1px;position:absolute;right:2px\">[ "+atext+" ]</a>";
	} else addBefore = addAfter = "";
	
	Shadowbox.open({
        player:     'swf',
        content:    '/flash/objektdetails/videoplayer_pr_2010.swf?videoScale=showAll&videoSmoothing=true&src=' + encodeURIComponent(path) + '&colors=' + detectLocation(),
        width:      651,
        height:     398,
		//title:		addBefore + headline + addAfter
		title:		"<span id='removeFromShadowbox'><span id='shadowFlashCont'></span></span>" + addAfter
    });
	
	setTimeout("swfobject.embedSWF('/flash/x-flash/videolayer-headline.swf', 'shadowFlashCont', '486', '20', '10.0.0',false, { color: '0xFFFFFF', text: '"+headline+"' }, {wmode: 'transparent'}, false);", 1000);
}

function findFlash (flash) {
if (document.all) {
  if (document.all[flash]) {
	return document.all[flash];
  }
  if (window.opera) {
	var movie = eval(window.document + flash);
	if (movie.SetVariable) {
	  return movie;
	}
  }
  return;
}
if(document.layers) {
  if(document.embeds[flash]) {
	var movie = document.embeds[flash];
	if (movie.SetVariable) {
	  return movie;
	}
  }
  return;
}
if (!document.getElementById) {
  return;
}
var movie = document.getElementById(flash);
if (movie.SetVariable) {
  return movie;
}
var movies = movie.getElementsByTagName('embed');
if (!movies || !movies.length) {
  return;
}
movie = movies[0];
if (movie.SetVariable) {
  return movie;
}
return;
}
