var videos = new Array();
videos['video_playlist_item0'] = "3Step_Final2.flv";
videos['video_playlist_item0desc'] = "<p>Discover your custom fit 3 Step Skin Care Routine from Clinique for Men</p>";
videos['video_playlist_item1'] = "WETSHAVE_Final2.flv";
videos['video_playlist_item1desc'] = "<p>Learn how to achieve the perfect wet shave from Clinique for Men</p>";
videos['video_playlist_item2'] = "Dryshave_Final2.flv";
videos['video_playlist_item2desc'] = "<p>Learn how to achieve the perfect dry shave from Clinique for Men</p>";
videos['video_playlist_item3'] = "agedefense_eye.flv";
videos['video_playlist_item3desc'] = "<p>New Age Defense For Eyes, your eye care specialist from Clinique For Men. Defend against lines and wrinkles today.</p>";
videos['video_playlist_item4'] = "Agedefense_dailyeye.flv";
videos['video_playlist_item4desc'] = "<p>Age Defense Hydrator SPF15, your skin care specialist from Clinique For Men. Defend against lines and wrinkles today.</p>";
videos['video_playlist_item5'] = "MCover_Bronzor_FINAL3.flv";
videos['video_playlist_item5desc'] = "<p>Discover M Cover Concealer, your skin care specialist from Clinique for Men</p>";
videos['video_playlist_item6'] = "Bronzor_MCover_Final_3.flv";
videos['video_playlist_item6desc'] = "<p>Discover Non-Streak Bronzer, your skin care specialist from Clinique for Men</p>";

var nowPlaying = 'video_playlist_item0';

$jq(document).ready(function() {
    $jq('.videoDesc').html(videos[nowPlaying + 'desc']);
    $jq.get('/flash/skincare_video/ajax/video_products.tmpl?video=' + nowPlaying, function(returnedMsg) {
        $jq('.container').html(returnedMsg);
    });
    $jq('#' + nowPlaying).addClass('videoLinkOn');
    loadVideo(videos[nowPlaying]);
    

    $jq('.videoLink').click(function () {
        nowPlaying = $jq(this).attr('id');

        $jq('.videoLink').removeClass('videoLinkOn');
        $jq('#' + nowPlaying).addClass('videoLinkOn');

        $jq('#flashHolder').html('<div id="flashcontent"></div>');
        $jq('.videoDesc').html(videos[nowPlaying + 'desc']);

        $jq.get('/flash/skincare_video/ajax/video_products.tmpl?video=' + nowPlaying, function(returnedMsg) {
            $jq('.container').html(returnedMsg); 
        });
        loadVideo(videos[nowPlaying]);
    });
});