// Business in Video - player versie 1.0
// Script: Lajos.nl

function displayPlayer(taal,video,provincie,width,height){
	taal = 'taal=' + taal;
	video = 'video=' + video;
	provincie = 'provincie=' + provincie;
	var s = '';

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'" id="player" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="http://www.businessinvideo.nl/flash/player.swf?' + taal + '&' + video + '&' + provincie + '" />');
	document.write('<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="http://www.businessinvideo.nl/flash/player.swf?' + taal + '&' + video + '&' + provincie + '" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function OpenMovie(divid, content, top, left)
{
	CloseMovie(divid);
	if (document.getElementById)
	{
		// this is the way the standards work
		document.getElementById(divid).innerHTML += content;
		document.getElementById(divid).style.display = '';
		document.getElementById(divid).style.top = top;
		document.getElementById(divid).style.left = left;
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		document.all[divid].innerHTML += content;
		document.all[divid].style.display = '';
		document.all[divid].top = top;
		document.all[divid].style.left = left;
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		document.layers[divid].innerHTML += content;
		document.layers[divid].style.display = '';
		document.layers[divid].top = top;
		document.layers[divid].style.left = left;
	}
}

function CloseMovie(divid)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		document.getElementById(divid).innerHTML  = '<a href=# onmouseout="javascript:changeMovieDivPic(\'moviedisplaypic\', \'img/movieplayer/sluiten.gif\')" onmouseover="javascript:changeMovieDivPic(\'moviedisplaypic\', \'img/movieplayer/sluiten_over.gif\')" onclick="javascript:CloseMovie(\''+divid+'\')"><img id="moviedisplaypic" border=0px src="img/movieplayer/sluiten.gif"></a><br/>';
		document.getElementById(divid).style.display = 'none';
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		document.all[divid].innerHTML = '<a href=# onmouseout="javascript:changeMovieDivPic(\'moviedisplaypic\', \'img/movieplayer/sluiten.gif\')" onmouseover="javascript:changeMovieDivPic(\'moviedisplaypic\', \'img/movieplayer/sluiten_over.gif\')" onclick="javascript:CloseMovie(\''+divid+'\')"><img id="moviedisplaypic" border=0px src="img/movieplayer/sluiten.gif"></a><br/>';
		document.all[divid].style.display = 'none';
	}
	else if (document.layers)
	{
		// this is the way nn4 works
										     
		document.layers[divid].innerHTML = '<a href=# onmouseout="javascript:changeMovieDivPic(\'moviedisplaypic\', \'img/movieplayer/sluiten.gif\')" onmouseover="javascript:changeMovieDivPic(\'moviedisplaypic\', \'img/movieplayer/sluiten_over.gif\')" onclick="javascript:CloseMovie(\''+divid+'\')"><img id="moviedisplaypic" border=0px src="img/movieplayer/sluiten.gif"></a><br/>';
		document.layers[divid].style.display = 'none';
	}
}

function returnPlayer(taal,video,provincie,width,height){
	taal = 'taal=' + taal;
	video = 'video=' + video;
	provincie = 'provincie=' + provincie;
	var s = '';

	s = s+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'" id="player" align="middle">';
	s = s+'<param name="allowScriptAccess" value="sameDomain" />';
	s = s+'<param name="movie" value="http://www.businessinvideo.nl/flash/player.swf?' + taal + '&' + video + '&' + provincie + '" />';
	s = s+'<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />';
	s = s+'<embed src="http://www.businessinvideo.nl/flash/player.swf?' + taal + '&' + video + '&' + provincie + '" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	s = s+'</object>';

	return s;
}

function returnPlayerNew()
{
    var s = ''; 
    
    s = s+"<OBJECT codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' height='335' width='406' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'>";
	s = s+"<PARAM value='http://www.businessinvideo.nl/players/bivplayer.swf' name='movie' />";
	s = s+"<PARAM value='#FFFFFF' name='bgcolor' />"
	s = s+"<PARAM value='file=http://www.businessinvideo.nl/players/player.xml.php?bivId=463&autostart=false' name='flashvars' />"
	s = s+"<PARAM value='true' name='allowfullscreen' />"
	s = s+"<embed src='http://www.businessinvideo.nl/players/bivplayer.swf' flashvars='file=http://www.businessinvideo.nl/players/player.xml.php?bivId=463&autostart=false' mce_src='http://www.businessinvideo.nl/players/bivplayer.swf' width='406' height='335' bgcolor='#FFFFFF' allowfullscreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"
	s = s+"</OBJECT>"

    return s;
}

function returnPlayer2(video){
	video = '' + video;
	var s = '';

	s = s+'<object  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"  data="http://www.businessinvideo.nl/players/bivplayer.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  height="335" width="406"><param value="#FFFFFF" name="bgcolor"><param value="file=http://www.businessinvideo.nl/players/player.xml.php?bivId=';
	s = s+video;
	s = s+'&amp;autostart=true" name="flashvars"><param value="true" name="allowfullscreen">';
	s = s+'<param name="movie" value="http://www.businessinvideo.nl/players/bivplayer.swf" />';
	s = s+'<embed src="http://www.businessinvideo.nl/players/bivplayer.swf" height="335" width="406" flashvars="file=http://www.businessinvideo.nl/players/player.xml.php?bivId='+video+'&amp;autostart=true" quality="high" bgcolor="#ffffff"  align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	s = s+'</object>';

	return s;
}

function changeMovieDivPic(id, img_src)
{
	if (document.getElementById)
		document.getElementById(id).src=img_src;
	else if (document.all)
		document.all[id].src=img_src;
	else if (document.layers)
		document.layers[id].src=img_src;
}
