/* *************************************************************************************************************** */
/*                                                                                                                 */
/*                                                                                                                 */
/*                                                      dvBox                                                      */
/*                                         a 'lightbox' FLV Player script                                          */
/*                                                ©2010 Jac-Y-Do                                                   */
/*                                               www.jac-y-do.com                                                  */
/*                                                                                                                 */
/*                             Feel free to use or adjust this script to your liking                               */
/*                                  but please give credit where credit's due                                      */
/*                                       and leave this copyright intact                                           */
/*                                           thanks,   Jacco (Jac-Y-Do)                                            */
/*                                                                                                                 */
/* *************************************************************************************************************** */

var movie_url;

function hideLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "hidden";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "hidden";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "hidden";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "visible";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "visible";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "visible";
}

}

var fullscreenvideoon = 0;

function dvBox( url )
{
 movie_url = url;
	if (fullscreenvideoon == 1) 
	{
		hideLayer("video-fullscreen-container");	
		fullscreenvideoon = 0;
	}
	else
	{
		document.getElementById('videoplayerfull').src = "http://rabowebtv.dutchview.nl/raboplayer/raboplayer.php?movie_url=" + movie_url;
		showLayer("video-fullscreen-container");	
		fullscreenvideoon = 1;
	}
}



document.write('<div id="video-fullscreen-container" style="position:absolute;left:0px;top:0px;width:100%;height:100%;background-image:url(http://rabowebtv.dutchview.nl/raboplayer/overlay.png);visibility:hidden;z-index:2000">');
document.write('<table width="100%" height="100%" onclick="dvBox()">');
document.write('<tr>');
document.write('<td valign="middle" align="center">');
document.write('<a href="#">');
document.write('<iframe name="videoplayerfull" id="videoplayerfull" src="" height="314" width="514" frameborder="0" scrolling="no"></iframe></a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');



