/* Video Handler and Loader * SafeTec * Developed by: Christopher Short */ var ntrVideo = { player: '/media/videogallery/FlowPlayerDark.swf', auto: 'true', init: function() { $(".video_info a").click(function() { ntrVideo.loadVideo(this); return false; }); }, loadVideo: function(element) { var so = new SWFObject(ntrVideo.player, "slideshow", "320px", "270px", "8"); so.addParam("wmode", "transparent"); so.addParam("allowFullScreen", "true"); var config = "{showStopButton: false, showMenu: false, showScrubber: true, showVolumeSlider: true, showMuteVolumeButton: true, showFullScreenButton: false, controlBarBackgroundColor: 0x000, autoplay: "+ntrVideo.auto+", videoFile: '"+element.href+"'}"; so.addVariable("config", config); so.write("flashcontent"); var title = "Now Playing: "+element.title+""; $("#play_info").replaceWith(title); } }