function Video(imgName, videoName, videoType)
{
    this.videoName = videoName;
    this.videoType = videoType;
    this.imgName = imgName;
    if(typeof Video._initialized == "undefined"){
        Video._initialized = true;
        Video.prototype.init = function (){
        }
    }
}
function showVideo(nr, type) {
    if(type == 'mov')
        showMov(nr);
}
function showMov(nr)
{
    var video = aMov[nr];
    var src = videoPath+video.videoName;
    var content = '<object id="videoObj" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+ videoHeight +'" width="' + videoWidth + '">' +
        '<param name="src" value="' + src + '">' +
        '<param name="autoplay" value="true">'+
        '<param name="controller" value="true">'+
        '<embed pluginspage="http://www.apple.com/quicktime/download/" src="' + src+ '" type="video/quicktime" width="' + videoWidth +'" height="' + videoHeight +'" controller="true" autoplay="true" />'+
        '</object>';
    document.getElementById("video").innerHTML = content;
}

$(document).ready(function() {
    $("#bkgWin, .close").click(function(){
        $("#bkgWin").css('visibility','hidden');
        $("#bkgWin").width(10);
        $("#bkgWin").height(10);
        $("#winVideo").css('visibility','hidden');
        document.getElementById("video").innerHTML = "";
    });

    $("div.descRight").click(function(){
        $("#bkgWin").width($(document).width());
        $("#bkgWin").height($(document).height());
        $("#bkgWin").css('visibility','visible');
        $("#winVideo").css('top', $(document).scrollTop() > 0 ? $(document).scrollTop() + 100 : 200);
        $("#winVideo").css('left', $(document).scrollLeft() + $(document).width()*0.3);
        $("#winVideo").css('visibility','visible');
    });
});

