
var escape_clip = { url: "videos/escape.flipflop.something.flv", title: "Escape From NY / Flip Flop and Fly / Somethin' 'Bout Your Story" };
var dont_clip = { url: "videos/dontyoulietome.flv", title: "Don't You Lie to Me" };
var near_clip = { url: 'videos/nearnessofyou.flv', title: 'The Nearness of You' };
var tougher_clip = { url: 'videos/tougherthantough.flv', title: 'Times Gettin Tougher Than Tough' };
var round_clip = { url: 'videos/roundmidnight.flv', title: "'Round Midnight" };
var georgia_clip = { url: 'videos/georgia.flv', title: 'Georgia On My Mind' };
var unchain_clip = { url: 'videos/unchain.flv', title: 'Unchain My Heart' };
var fall_clip = { url: 'videos/fallinlove.flv', title: 'When I Fall In Love' };
var route_clip = { url: 'videos/rt66.flv', title: '(Get Your Kicks On) Route 66' };

/* Start the player with the first clip */
var player = flowplayer("player", "flowplayer.swf", { 
    clip: { url: 'videos/escape.flipflop.something.flv' },
    plugins: { controls: {
        timeColor: '#ffffff',
        progressColor: '#791b11',
        bufferColor: '#666666',
        buttonColor: '#791b11',
        buttonOverColor: '#000000',
        backgroundColor: '#000000'
    }}
});


function hide( name ) {
    document.getElementById(name+'_info').className = "";
    document.getElementById(name+'_link').className = "";
}
function show( name ) {
    document.getElementById(name+'_info').className = "show";
    document.getElementById(name+'_link').className = "selected";
}
    
function play_escape() {
    hide( 'dont' );
    hide( 'round' );
    hide( 'georgia' );
    hide( 'unchain' );
    hide( 'fall' );
    hide( 'route' );
    hide( 'near' );
    hide( 'tougher' );
    show( 'escape' );
    player.play( escape_clip );
}

function play_dont() {
    hide( 'escape' );
    hide( 'round' );
    hide( 'georgia' );
    hide( 'unchain' );
    hide( 'fall' );
    hide( 'route' );
    hide( 'near' );
    hide( 'tougher' );
    show( 'dont' );
    player.play( dont_clip );
}

function play_near() {
    hide( 'escape' );
    hide( 'dont' );
    hide( 'round' );
    hide( 'georgia' );
    hide( 'unchain' );
    hide( 'fall' );
    hide( 'route' );
    hide( 'tougher' );
    show( 'near' );
    player.play( near_clip );
}

function play_tougher() {
    hide( 'escape' );
    hide( 'dont' );
    hide( 'round' );
    hide( 'georgia' );
    hide( 'unchain' );
    hide( 'fall' );
    hide( 'route' );
    hide( 'near' );
    show( 'tougher' );
    player.play( tougher_clip );
}

function play_round() {
    hide( 'escape' );
    hide( 'dont' );
    hide( 'georgia' );
    hide( 'unchain' );
    hide( 'fall' );
    hide( 'route' );
    hide( 'near' );
    hide( 'tougher' );
    show( 'round' );
    player.play( round_clip );
}

function play_georgia() {
    hide( 'escape' );
    hide( 'dont' );
    hide( 'round' );
    hide( 'unchain' );
    hide( 'fall' );
    hide( 'route' );
    hide( 'near' );
    hide( 'tougher' );
    show( 'georgia' );
    player.play( georgia_clip );
}

function play_unchain() {
    hide( 'escape' );
    hide( 'dont' );
    hide( 'round' );
    hide( 'georgia' );
    hide( 'fall' );
    hide( 'route' );
    hide( 'near' );
    hide( 'tougher' );
    show( 'unchain' );
    player.play( unchain_clip );
}

function play_fall() {
    hide( 'escape' );
    hide( 'dont' );
    hide( 'round' );
    hide( 'georgia' );
    hide( 'unchain' );
    hide( 'route' );
    hide( 'near' );
    hide( 'tougher' );
    show( 'fall' );
    player.play( fall_clip );
}

function play_route() {
    hide( 'escape' );
    hide( 'dont' );
    hide( 'round' );
    hide( 'georgia' );
    hide( 'unchain' );
    hide( 'fall' );
    hide( 'near' );
    hide( 'tougher' );
    show( 'route' );
    player.play( route_clip );
}

