﻿function ShowVideo(name) {
    var vp = swfobject.getObjectById('vidContent');
    vp.SetSource('../video/' + name + '.flv');
	var YD = YAHOO.util.Dom;
    var viewWidth = YD.getViewportWidth();
    var viewHeight = YD.getViewportHeight();
    if (vp.offsetHeight > viewHeight) {
        vp.style.height = viewHeight + 'px';
    }
    if (vp.offsetWidth > viewWidth) {
        vp.style.width = viewWidth + 'px';
    }
    vp.style.height = YD.getDocumentHeight() + "px";
    vp.style.width = YD.getDocumentWidth() + "px";
    vp.PlayVideo();
}
var Vid = {
    Hide: function() {
        var vp = swfobject.getObjectById('vidContent');
        vp.style.height = '1px';
        vp.style.width = '1px';
    },
    Complete: function() {
        this.Hide();
    },
    Stop: function() {
        this.Hide();
    },
    flashVars: {
        bgColor: '#000000',
        bgAlpha: 0.5
    }
};
swfobject.embedSWF("assets/VidPlayer3.swf", "vidContent", "1px", "1px", "9.0.0", "assets/expressInstall.swf", Vid.flashVars, { wmode: 'transparent' }, {});