var live = new live()

function live(  )
{
   this.click = function( sUrl )
   {
        document.getElementById( "htmlcontent" ).style.display = 'none';
        document.getElementById( "htmlplayer" ).style.display = 'block';
        document.getElementById('htmlplayer').innerHTML = '<iframe src="/player_eredivisie/player.php?live=' + sUrl + '" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
   }
   
   this.showcontent= function( )
   {
        if ( document.getElementById( "htmlcontent" ).style.display == 'none' )
        {
            document.getElementById('htmlplayer').innerHTML = "";
            document.getElementById( "htmlplayer" ).style.display = 'none';
            document.getElementById( "htmlcontent" ).style.display = 'block';
        }
        
   }
}

var rating = new rating()

function rating(  )
{   
   
   this.stars = 0;
   this.vote = false;
   
   this.hover= function( iStar )
   {
        
        if ( this.vote == "false" )
        {
            
            for( var i=1; i<=5; i++)
            {
                if ( i <= iStar )
                    document.getElementById( "rating" + i ).className = 'star_hover';
                else
                    document.getElementById( "rating" + i ).className = 'star';
            }
        }
         
   }
   
   this.reset= function( )
   {
        if ( this.vote == "false")
        {
            for( var i=1; i<=5; i++)
            {
                if ( i <= this.stars )
                    document.getElementById( "rating" + i ).className = 'star_active';
                else
                    document.getElementById( "rating" + i ).className = 'star';
            }
        }
   }
}

var search = new search()

function search( )
{
    this.changepage = function( iValue )
    {
        document.getElementById('pageno').value = iValue;
        document.getElementById("searchext").submit();
    }
}

var banner = new banner()
banner.init();
function banner( )
{
    this.init = function( )
    {
        if ( document.getElementById("adframe") )
        {
            var iframe = document.getElementById("adframe");
            iframe.src = pageTracker._getLinkerUrl("http://bannermanager.sport2media.com/abmw.aspx?z=28&amp;isframe=true");  
        }
    }
}

var livebutton = new livebutton()

function livebutton( )
{
    this.start = function( )
    {
        if ( document.getElementById('live') )
        {
            this.flashup();
        }
    }

    this.flashup = function( )
    {
        var myRSS = new Fx.Tween('live');
            
        myRSS.start('color','#ffffff').chain(
            function()
            {
                livebutton.flashdown();
            }
        );

        var slideOut = function()
        { 
            myRSS.start('color','#ffffff').chain(
                function()
                {
                    livebutton.flashdown();
                }
            );
        };
    }

    this.flashdown = function( )
    {
        var myRSS = new Fx.Tween('live');
            
        myRSS.start('color','#36f231').chain(
            function()
            {
                livebutton.flashup();
            }
        );

    }

}

function createResponse()
{
  document.getElementById( 'response' ).value = hex_sha1( hex_sha1( document.getElementById( 'password' ).value ) + ":" + document.getElementById( 'challenge' ).value );
  document.getElementById( 'password' ).value = "";
  document.getElementById( 'challenge' ).value = "";
  return true;
}

function redirectnorm( sLoc, newwindow )
{
    var newwindow = ( newwindow == null) ? "0" : "1";
    
    if ( newwindow == "1" )
    {
        window.open(sLoc);
    }
    else
    {
        document.location.href = sLoc;
    }
}

function goalhidegoaldivs()
{
    document.getElementById('goalPlayer').style.display='block';
    document.getElementById('backtomain').style.display='block';
    
    document.getElementById('goalelectioncontainer').style.display='none';
    document.getElementById('period').style.display='none';
    document.getElementById('nextgoals').style.display='none';
}

function goalshowgoaldivs()
{
    document.getElementById('goalPlayer').innerHTML = '';
    document.getElementById('goalPlayer').style.display='none';
    document.getElementById('backtomain').style.display='none';
    
    document.getElementById('goalelectioncontainer').style.display='block';
    document.getElementById('period').style.display='block';
    document.getElementById('nextgoals').style.display='block';
}

function hidemonthgoal()
{
    document.getElementById('goalPlayerMonth').innerHTML='';
}

function showmonthgoal( sLoc, sSL, sTitle )
{
    var sTitle = ( sTitle == null) ? "0" : sTitle;
    if ( sTitle != "0" )
    {
        pageTracker._trackEvent('Videos - Play', 'Goal', sTitle );
        pageTracker._trackPageview('/videos_play/Goal/' + sTitle );
    }
    if ( sSL == "1" )
    {
    document.getElementById('goalPlayerMonth').innerHTML='<div class="videoplaceholder" id="silverlightHostControl"><object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="470" height="264"> '+
                                '<param name="source" value="/media/silverlight/player/VODEredivisieDoelpunt.xap"/> '+
                                '<param name="onerror" value="onSilverlightError" /> '+
                                '<param name="background" value="white" /> '+
                                '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
                                '<param name="InitParams" value="VOD='+sLoc+', autostart=1" />    '+
                                '<param name="autoUpgrade" value="true" /> '+
                                '<param name="onLoad" value="pluginLoaded" />'+
                                '<div id="noSLbg">'+
                                '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
                                '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
                                '    <div id="noSLimage">'+
                                '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
                                '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
                                '        </a> '+
                                '    </div>'+
                                '    <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/doelpunt.php?f=1">Kijken met Windows Media Player</a></div>'+
                                '</div>'+
                            '</object></div>';
    }
    else
    {
        document.getElementById('goalPlayerMonth').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'&dpvdw=1" width="470" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="264"></iframe>';
    }
}

function playgoalvideo( sLoc, sSL, sTitle )
{
    var sTitle = ( sTitle == null) ? "0" : sTitle;
    if ( sTitle != "0" )
    {
        pageTracker._trackEvent('Videos - Play', 'Goal', sTitle );
        pageTracker._trackPageview('/videos_play/Goal/' + sTitle );
    }
    
    if ( sSL == "1" )
    {
    document.getElementById('goalPlayer').innerHTML='<div class="videoplaceholder" id="silverlightHostControl"><object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="470" height="264"> '+
                                '<param name="source" value="/media/silverlight/player/VODEredivisieDoelpunt.xap"/> '+
                                '<param name="onerror" value="onSilverlightError" /> '+
                                '<param name="background" value="white" /> '+
                                '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
                                '<param name="InitParams" value="VOD='+sLoc+',autostart=1" />    '+
                                '<param name="autoUpgrade" value="true" /> '+
                                '<param name="onLoad" value="pluginLoaded" />'+
                                '<div id="noSLbg">'+
                                '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
                                '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
                                '    <div id="noSLimage">'+
                                '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
                                '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
                                '        </a> '+
                                '    </div>'+
                                '    <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>'+
                                '</div>'+
                            '</object></div>';
    }
    else
    {
        document.getElementById('goalPlayer').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'&dpvdw=1" width="470" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="264"></iframe>';
    }                       
    goalhidegoaldivs();
}

function refreshAll()
{
    window.parent.location.href = '/doelpuntvdweek.php?goal=1';
}

function redirect( sLoc, newwindow, frame )
{
    var newwindow = ( newwindow == null) ? "0" : "1";
    var frame = ( frame == null) ? "" : frame;
    if ( newwindow == "1" )
    {
        player.open(sLoc);
    }
    else
    {
        player.location.href = sLoc;
    }
}

function popup( sLoc, sName )
{
    newwindow=window.open( sLoc , sName,'height=700,width=650,scrollbars=yes');
    if (window.focus) {newwindow.focus()}
        return false;

}

function smallpopup( sLoc, sName )
{
    newwindow=window.open( sLoc , sName,'height=150,width=650,scrollbars=yes');
    if (window.focus) {newwindow.focus()}
        return false;

}

function redirectDelay( )
{
    setTimeout( "window.location = '/'", 5000 );
}

function navbarover( oNode )
{
    document.getElementById( oNode.id ).style.color = '#ff6748';
}

function navbarout( oNode )
{
    document.getElementById( oNode.id ).style.color = 'white';
}

function togglelogin()
{
    if( document.getElementById('loginwrapper').style.display == '' || document.getElementById('loginwrapper').style.display == 'none')
        document.getElementById('loginwrapper').style.display = 'block';
    else
        document.getElementById('loginwrapper').style.display = 'none';
}

var Login = new LoginControl()

function LoginControl(  )
{
    this.change = function ( oNode, sValue )
    {
        if ( oNode.value == '' )
            oNode.value = sValue;
    }
    
    this.focus = function ( oNode, sValue )
    {
        if ( oNode.value == sValue )
            oNode.value = '';
    }
}

function clearTAF()
{
    document.getElementById('fromname').value='';
    document.getElementById('fromemail').value='';
    document.getElementById('toname').value='';
    document.getElementById('toemail').value='';
}

function clearContactForm()
{
    document.getElementById('name').value="";
    document.getElementById('email').value="";
    document.getElementById('phone').value="";
    document.getElementById('message').value="";
}
function showVODArticle( sLoc, sSL, sIP, params, widthPlayer, heightPlayer )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="'+widthPlayer+'" height="'+heightPlayer+'"> '+
            '<param name="source" value="/media/silverlight/player/VODEredivisiePlayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+', session=143245456,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/video.php?f=1">Kijken met Windows Media Player</a></div>'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="574" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="325"></iframe>';
    }      
}
function showVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="572" height="325"> '+
            '<param name="source" value="/media/silverlight/player/VODEredivisiePlayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+', session=143245456,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/video.php?f=1">Kijken met Windows Media Player</a></div>'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="574" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="325"></iframe>';
    }      
}


function showVOD2( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="572" height="325"> '+
            '<param name="source" value="/media/silverlight/player/VODEredivisiePlayer3.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+', session=143245456,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/video.php?f=1">Kijken met Windows Media Player</a></div>'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="574" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="325"></iframe>';
    }      
}

function showSPAVOD( sLoc, sSL, sIP, params)
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/clubplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',clubshort=SPA,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showTWEVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/clubplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',clubshort=TWE,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="windowless" value="true"/> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showNACVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/clubplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',clubshort=NAC,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="windowless" value="true"/> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showUTRVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/clubplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',clubshort=UTR,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}


function showRTLVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=RTL,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showZIGGOVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=ZIGGO,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showCDVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=CANALDIGITAAL,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showTELE2VOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=TELE2,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showVIVOD( sLoc, sSL, sIP, params)
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="446" height="250"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=VI,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}


function showTVGIDSVOD( sLoc, sSL, sIP, params)
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="446" height="250"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=TVGIDS,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showNUVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=NUNL,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showYOUTUBEVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=YOUTUBE,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showADVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=AD,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showMETROVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=METRO,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showVOETBALVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=VOETBAL,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}


function showCAIWVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=CAIW,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}


function showKVVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=KPNVANDAAG,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}


function showMSNVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=MSN,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

function showUPCVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="446" height="250"> '+
            '<param name="source" value="/media/silverlight/player/partnerplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',partner=UPC,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg" style="width:446px;height:250px;">'+
            '    <div id="noslHeader" style="width:346px;margin-left:60px;font-size:14px"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo" style="font-size:14px;margin-left:110px"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage" style="margin-left:60px">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="446" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="250"></iframe>';
    }      
}

function showWILVOD( sLoc, sSL, sIP, params )
{
    document.getElementById('silverlightHostControl').style.backgroundImage="";
    
    
 if ( sSL == "1" )
    {
        document.getElementById('silverlightHostControl').innerHTML=''+
            '<object id="silverlightobject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="576" height="324"> '+
            '<param name="source" value="/media/silverlight/player/clubplayer.xap"/> '+
            '<param name="onerror" value="onSilverlightError" /> '+
            '<param name="background" value="white" /> '+
            '<param name="minRuntimeVersion" value="3.0.40624.0" /> '+
            '<param name="InitParams" value="VOD='+sLoc+',autostart=1,ip='+sIP+',clubshort=WIL,'+params+'" />    '+
            '<param name="autoUpgrade" value="true" /> '+
            '<param name="windowless" value="true"/> '+
            '<param name="onLoad" value="pluginLoaded" />'+
            '<div id="noSLbg">'+
            '    <div id="noslHeader"><i>Voor de optimale kijkbeleving van de Live wedstrijden en de Video\'s van Eredivisie is een installatie van Microsoft Silverlight nodig.</i></div>'+
            '    <div id="noSLinfo"><i><a href="http://www.microsoft.com/silverlight/" onclick="window.open( this.href ); return false;" >Meer informatie over Silverlight</a></i></div>'+
            '    <div id="noSLimage">'+
            '        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> '+
            '             <img src="/media/images/Btn_SL_plugin.png" width="307" height="106" alt="Get Microsoft Silverlight" style="border-style: none"/> '+
            '        </a> '+
            '    </div>'+
            '    <!-- <div id="noSLlink"><img src="/media/images/MediapllayerIcon.png" width="60" height="53" alt="Media Player" align="center" style="border-style: none"/> <a href="/live/html">Kijken met Windows Media Player</a></div>-->'+
            '</div>'+
        '</object>';
    }
    else
    {
        document.getElementById('silverlightHostControl').innerHTML='<iframe src="/license_eredivisie.php?ProductID='+sLoc+'" width="576" frameborder="0" SCROLLING="no" border="0" scrollborder="0" marginheight="0" marginwidth="0" height="324"></iframe>';
    }      
}

var browser=navigator.appName;
function escapeChars(str)
{
    str = str.replace(/\\/g, '\\\\');
    str = str.replace(/\'/g, '\\\'');
    return str;
}

function openFold(iAnswerIndex,catTitle,questionTitle) {
	var browser=navigator.appName;
	if (browser=="Microsoft Internet Explorer") {
		if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ 
			var ieversion=new Number(RegExp.$1);
		}
		if(ieversion >=8) {
			document.getElementById("button"+iAnswerIndex).setAttribute("class", "foldOpen");
			document.getElementById("answer"+iAnswerIndex).setAttribute("style", "display: block;");
		}
		else {
			document.getElementById("button"+iAnswerIndex).setAttribute("className", "foldOpen");
			document.getElementById("answer"+iAnswerIndex).style.setAttribute("cssText", "display: block;");
		}
	} else {
		document.getElementById("button"+iAnswerIndex).setAttribute("class", "foldOpen");
		document.getElementById("answer"+iAnswerIndex).setAttribute("style", "display: block;");
	}
	document.getElementById("button"+iAnswerIndex).onclick=Function("closeFold("+iAnswerIndex+",'"+catTitle+"','"+questionTitle+"')");
	document.getElementById("question"+iAnswerIndex).onclick=Function("closeFold("+iAnswerIndex+",'"+catTitle+"','"+questionTitle+"')");
}
function closeFold(iAnswerIndex,catTitle,questionTitle) {
	if (browser=="Microsoft Internet Explorer") {
		if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ 
			var ieversion=new Number(RegExp.$1);
		}
		if(ieversion >=8) {
			document.getElementById("button"+iAnswerIndex).setAttribute("class", "foldClosed");
			document.getElementById("answer"+iAnswerIndex).setAttribute("style", "display: none;");
		}
		else {
			document.getElementById("button"+iAnswerIndex).setAttribute("className", "foldClosed");
			document.getElementById("answer"+iAnswerIndex).style.setAttribute("cssText", "display: none;");
		}
	} else {
		document.getElementById("button"+iAnswerIndex).setAttribute("class", "foldClosed");
		document.getElementById("answer"+iAnswerIndex).setAttribute("style", "display: none;");
	}
	document.getElementById("button"+iAnswerIndex).onclick=Function("openFold("+iAnswerIndex+",'"+catTitle+"','"+questionTitle+"')");
	document.getElementById("question"+iAnswerIndex).onclick=Function("openFold("+iAnswerIndex+",'"+catTitle+"','"+questionTitle+"')");
}

var xmlhttp;

function storeRating( iVideoID, iRating )
{
    xmlhttp=GetXmlHttpObject();
    if (xmlhttp==null)
    {
        //alert ("Browser does not support HTTP Request");
        return;
    }
    var url="/log/rating.php";
        url=url+"?videoid="+iVideoID+"&rating="+iRating;
    url=url+"&sid="+Math.random();
    xmlhttp.onreadystatechange=stateChanged;
    xmlhttp.open("GET",url,true);
    xmlhttp.send(null);
}

function storeView( iVideoID )
{
    xmlhttp=GetXmlHttpObject();
    if (xmlhttp==null)
    {
        //alert ("Browser does not support HTTP Request");
        return;
    }
    var url="/log/views.php";
        url=url+"?videoid="+iVideoID;
    url=url+"&sid="+Math.random();
    xmlhttp.onreadystatechange=stateViewChanged;
    xmlhttp.open("GET",url,true);
    xmlhttp.send(null);
}

function stateChanged()
{
    if (xmlhttp.readyState==4)
    {
        document.getElementById("rating_container").innerHTML=xmlhttp.responseText;
    }
}

function stateViewChanged()
{
    if (xmlhttp.readyState==4)
    {
        //document.getElementById("rating_container").innerHTML=xmlhttp.responseText;
    }
}

function GetXmlHttpObject()
{
    if (window.XMLHttpRequest)
    {
        // code for IE7+, Firefox, Chrome, Opera, Safari
        return new XMLHttpRequest();
    }
    if (window.ActiveXObject)
    {
        // code for IE6, IE5
        return new ActiveXObject("Microsoft.XMLHTTP");
    }
    return null;
}
function clickTop5(iClicked){
	for (i=1;i<=5;i++) {
		if (i != iClicked) {
			document.getElementById("top5_" + i + "").setAttribute("class", "vote unselect");
			document.getElementById("top5_" + i + "").className="vote unselect";
		}
	}
	document.getElementById("top5_" + iClicked + "").setAttribute("class", "vote select");
	document.getElementById("top5_" + iClicked + "").className="vote select";
}


var scrollStep=2;
var scrollTimer;
var scrollAuto = 0;
var programGuide;

function initGuideScroller(h){
	programGuide = document.getElementById('guideholder');

	setGuideOffset(h);

	//For scrolling
	if (programGuide.addEventListener)
        programGuide.addEventListener('DOMMouseScroll', wheel, false);
	programGuide.onmousewheel = wheel;
}

function setGuideOffset(h){
	currentTimeOffset = document.getElementById(h).offsetTop - 236;
	programGuide.scrollTop = currentTimeOffset;
}

function scrollDown(){
	document.getElementById("guideholder").scrollTop += scrollStep;
	scrollTimer = setTimeout("scrollDown()",10);
}

function scrollUp(){
	document.getElementById("guideholder").scrollTop -= scrollStep;
	scrollTimer = setTimeout("scrollUp()",10);
}

function stopScroll(){
	clearTimeout(scrollTimer);
}

function handle(delta) {
	if (delta < 0){
		document.getElementById("guideholder").scrollTop += scrollStep*5;
	}
	else document.getElementById("guideholder").scrollTop -= scrollStep*5;
}

function wheel(event){
	var delta = 0;
	if (!event) /* For IE. */
		event = window.event;
	if (event.wheelDelta) { /* IE/Opera. */
		delta = event.wheelDelta/120;
	if (window.opera)
    	delta = -delta;
	} else if (event.detail) {
		delta = -event.detail/3;
	}
	if (delta)
		handle(delta);
	if (event.preventDefault)
		event.preventDefault();
		event.returnValue = false;
}

function replaceHeading() {
	$(document.body).getElements('h1').set("html","Home");
}


window.addEvent('domready', function(){
	   
	if($('thumbs') && $('thumbs').getChildren().length > 0) {
	 new SlideItMoo({itemsVisible:2, 
         currentElement: 0, 
         thumbsContainer: 'thumbs',
         elementScrolled: 'thumb_container',
         overallContainer: 'gallery_container'});
	}
    if($('thumbs1') && $('thumbs1').getChildren().length > 0) {
        new SlideItMoo({itemsVisible:5, 
                        currentElement: 0, 
                        thumbsContainer: 'thumbs1',
                        elementScrolled: 'thumb_container1',
                        overallContainer: 'gallery_container1'});
        
    }
   
    if($('thumbs2') && $('thumbs2').getChildren().length > 0) {
    	new SlideItMoo({itemsVisible:5,
                    currentElement: 0, 
                    width: 512,
                    thumbsContainer: 'thumbs2',
                    elementScrolled: 'thumb_container2',
                    overallContainer: 'gallery_container2'});
    
    }
    if($('thumbs3') && $('thumbs3').getChildren().length > 0) { 
        new SlideItMoo({itemsVisible:5,
                        currentElement: 0, 
                        width: 512,
                        thumbsContainer: 'thumbs3',
                        elementScrolled: 'thumb_container3',
                        overallContainer: 'gallery_container3'});
      
    }
    if($('thumbs4') && $('thumbs4').getChildren().length > 0) { 
   		new SlideItMoo({itemsVisible:5, 
                        currentElement: 0,
                        width: 512,
                        thumbsContainer: 'thumbs4',
                        elementScrolled: 'thumb_container4',
                        overallContainer: 'gallery_container4'});
    }
});