var fp_config = { plugins: { controls: { url: 'http://archiv.kalohirek.hu/flash/flowplayer.controls-skinless-3.1.5.swf', skin: 'customskin', backgroundColor: 'transparent', backgroundGradient: 'none', buttonColor: '#0e3b80', buttonOverColor: '#0A2A5B', borderRadius: '0px', height:30, width:30, all:false, play:true, left:5, bottom:5, opacity: 0.8 }, controls_two: { url: 'http://archiv.kalohirek.hu/flash/flowplayer.controls-skinless-3.1.5.swf', skin: 'customskin', bottom:10, left:40, height:20, width:'88%', opacity: 0.8, backgroundGradient: 'none', backgroundColor: '#161616', borderRadius: '4px', border: "0px", buttonColor: '#4a4a4a', buttonOverColor: '#4a4a4a', timeBgColor: 'transparent', timeColor: "#ffffff", durationColor: "#ffffff", sliderColor: "#000000", sliderGradient: "none", volumeSliderColor: "#000000", volumeSliderGradient: "none", volumeBorderRadius: 0, progressColor: "#c4c4c4", progressGradient: "medium", bufferColor: "#666666", bufferGradient: "none", tooltipColor: "#0e3b80", tooltipTextColor: "#ffffff", scrubberBorderRadius: 0, all: false, time: true, volume: true, fullscreen: true, scrubber: true, mute: true }, customskin: { url: '/flash/buttons_default.swf', type: 'classLibrary' }, content: { // location of the plugin url: '/flash/flowplayer.content-3.1.0.swf', // display properties top: 10, left: 10, width: '56px', height: '100%', padding:0, // styling properties border:'0px', borderRadius: '0px', backgroundColor: 'transparent', backgroundGradient: 'none', opacity:0.8, html: '

' } }, play: { url: '/skins/kalohirek/images/fp.button_play.png', width: 80, height: 80 }, clip: { scaling: 'fit' }, onMouseOver: function(){ this.getPlugin('controls').animate({opacity: 0.8}); this.getPlugin('controls_two').animate({opacity: 0.8}); var width = parseInt($(this.getParent()).css('width')); if(width > 300) { this.getPlugin('content').animate({opacity: 0.8}); } }, onMouseOut: function(){ this.getPlugin('controls').animate({opacity: 0}); this.getPlugin('controls_two').animate({opacity: 0}); this.getPlugin('content').animate({opacity: 0}); }, onBeforeLoad: function() { var da = new Date(); current_flowplayer_id = da.getTime(); current_flowplayer = this; $(this.getParent()).attr('id', current_flowplayer_id); $(this.getParent()).parent().find('.overlay').hide(); }, onLoad: function() { var width = parseInt($(this.getParent()).css('width')); if(width < 300) { this.getPlugin('content').css({opacity: 0}); this.getPlugin('play').url = '/skins/kalohirek/images/fp.button_play60.png'; this.getPlugin('play').width = 60; this.getPlugin('play').height = 60; } this.getPlugin('controls_two').css({width: (width - 50) + 'px'}); //alert(width); return true; }, onBeforeUnload: function() { //replace overlay for the previously loaded player //this prevents the loading player from re-adding the overlay if(this.isLoaded()){ $(this.getParent()).parent().find('.overlay').show(); } //remove the embed and share plugins' "junk" $(this.getParent()).parent().find('.fp_overlay').remove(); return true; }, onFullscreen: function(){ this.getPlugin('controls_two').css({'width':'97%'}); }, onFullscreenExit: function(){ var width = parseInt($(this.getParent()).css('width')); this.getPlugin('controls_two').css({width: (width - 50) + 'px'}); }, key: '#@edba509ac43fba1a476' }; var current_flowplayer_id = 0; var current_flowplayer = {};