﻿
//the method name is very important as it will survive ajax partial postbacks and javascript functions will keep working
function pageLoad() 
{
    var player = $f("a.dash-player", { src: "/swf/flowplayer-3.0.7.swf", bgcolor: '#ffffff' },
    {

        clip: { autoPlay: true, scaling: 'fit' },

        // custom labels on the play button 
        play:
        {
            label: 'Play',
            replayLabel: 'Play again',
            fadeSpeed: 3000
        },

        screen: {
            height: '280',
            width: '400'
        },

        // make canvas dark
        canvas: { backgroundColor: "#000000", backgroundGradient: 'none', border: '2px solid #778899' },

        plugins:
        {
            controls:
           {
               buttonOverColor: '#676783',
               bufferColor: '#9e9e9e',
               progressGradient: 'medium',
               sliderColor: '#000000',
               backgroundColor: '#4d4d4d',
               buttonColor: '#0d0d36',
               bufferGradient: 'none',
               backgroundGradient: [0.6, 0.3, 0, 0, 0],
               durationColor: '#ffffff',
               sliderGradient: 'none',
               timeColor: '#ffffff',
               progressColor: '#37373e',
               borderRadius: '0px',
               opacity: 1.0
           }
        }
    });
}

