/*
 * FlexPlayer v0.1.0
 * http://www.wktklabs.com/flexplayer/
 * Date: 2009-06-03
 * Copyright (c) 2009 galara
 * Dual licensed under the MIT licenses.
 *
 * This is jQuery Plugin. Therefore, you have to follow a jQuery license.
 */
(function(b){var a={flexplayer:function(d){d=jQuery.extend({width:1,height:1,swfPath:"flexplayer.swf",bgcolor:"#ffffff",standbyImagePath:"",standbyImageScale:"inFit",swfReady:false,onProgress:false,onSoundComplete:false},d);var e="external"+b(this).attr("id");if(d.swfReady!==false){b(this).swfReady(d.swfReady)}if(d.onProgress!==false){b(this).onProgress(d.onProgress)}if(d.onSoundComplete!==false){b(this).onSoundComplete(d.onSoundComplete)}var c;if(b(this).checkFlashVersion()>=9){c=((b.browser.msie)?'<object id="'+e+'" width='+d.width+" height="+d.height+' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 type="application/x-shockwave-flash" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">':'<object id="'+e+'" width='+d.width+" height="+d.height+' data="'+d.swfPath+'" type="application/x-shockwave-flash">')+((b.browser.msie)?'<param name="movie" value="'+d.swfPath+'" />':"")+'<param name="quality" value="high" /><param name="allowFullscreen" value="true" /><param name="FlashVars" value="id='+escape(b(this).attr("id"))+"&standbyImagePath="+escape(d.standbyImagePath)+"&standbyImageScale="+escape(d.standbyImageScale)+"&bgcolor="+escape(d.bgcolor)+'" /><param name="bgcolor" value="'+d.bgcolor+'" /><param name="wmode" value="transparent" /><param name="allowNetworking" value="always" /><param name="allowScriptAccess" value="all" /></object>'}else{c='<a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> ??????????????????????????????????????????????????????FlashPlayer???????????????????????????????????????????????????</a>'}b(this).get(0).innerHTML=c;return b(this)},swfReady:function(c){b(this).data("swfReady",c)},onProgress:function(c){b(this).data("onProgress",c)},onSoundComplete:function(c){b(this).data("onSoundComplete",c)},play:function(c){c=jQuery.extend({type:"",path:"",videoScale:"inFit",playSoon:true,volume:-1},c);(b(this).getDocumentObj()).flexplayer_play(c.type,b(this).getAbsolutePath(c.path),c.playSoon,c.volume,c.videoScale)},stop:function(){(b(this).getDocumentObj()).flexplayer_stop()},pause:function(){(b(this).getDocumentObj()).flexplayer_pause()},resume:function(){(b(this).getDocumentObj()).flexplayer_resume()},volume:function(c){if(!c){c=-1}return(b(this).getDocumentObj()).flexplayer_volume(c)},seek:function(c){(b(this).getDocumentObj()).flexplayer_seek(c)},status:function(){return(b(this).getDocumentObj()).flexplayer_status()},playedTime:function(){return(b(this).getDocumentObj()).flexplayer_playedTime()},totalTime:function(){return(b(this).getDocumentObj()).flexplayer_totalTime()},checkFlashVersion:function(){if(navigator.plugins&&navigator.mimeTypes.length){return(navigator.plugins["Shockwave Flash"].description.match(/([0-9]+)/))[0]-0}else{return(new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").match(/([0-9]+)/))[0]-0}},getDocumentObj:function(){var c="external"+b(this).attr("id");return(document.all?window[c]:document[c])},getAbsolutePath:function(d){var c=document.createElement("span");c.innerHTML='<a href="'+d+'" />';return c.firstChild.href}};b.each(a,function(c){b.fn[c]=this})})(jQuery);function flexPlayer_swf2js_swfReady(a){($("#"+a).data("swfReady"))()}function flexPlayer_swf2js_onProgress(e,d,c,a,b){($("#"+e).data("onProgress"))(d,c,a,b)}function flexPlayer_swf2js_onSoundComplete(a){($("#"+a).data("onSoundComplete"))()};