// Global ----------------------------------------------[TN]
var DPFoundation = function( Config ) {
    var This = function() {
        // Public Vars -----------------------------------------[TN]
        This._Config = {};
        //------------------------------------------------------[TN]

        // Constructor -----------------------------------------[TN]
        (function() {
            This._Config = $.extend(This._Config, Config);
        })();
        //------------------------------------------------------[TN]

        // Public Functions ------------------------------------[TN]
		This.ShowVideo = function(Event, theNode, width, height) {
			if (!$('.VID_Container').length)
				$.modal('<div class="VID_Container" style="width: ' + width + 'px; height: ' + (height + 10) + 'px;"><a href="#" class="VID_Close">close</a><br class="Clearer" /><div id="VID_SWF"></div></div>', {overlayCss: {background: '#000000'}, opacity: 80, closeClass : 'VID_Close', close: true});

			swfobject.embedSWF('/swf/video_player.swf', 'VID_SWF', width, height, '8', '/swf/v1/express_install.swf', {'VideoPath': $(theNode).attr('href')}, {wmode : 'transparent'});
		}
		//------------------------------------------------------[TN]

        // Send Back Reference ---------------------------------[TN]
        return This;
        //------------------------------------------------------[TN]
    };
    return This();
};
//------------------------------------------------------[TN]

var DPF = new DPFoundation();
