﻿/// <reference name="MicrosoftAjax.js"/>
/// <reference path="jwplayer.js" />
 
video = function () { };

video.insertVideo = function () {
    var list = document.getElementsByTagName("video");
    for (var i = 0; i < list.length; i++) {
        list[i].setAttribute("id", 'gk_video_' + i);
    }
    for (var x = 0; x < i; x++) {
        jwplayer('gk_video_' + x).setup({ flashplayer: "scripts/player.swf" });
    }
    
};

Sys.Application.add_load(function () {
    video.insertVideo();
}); 

 
