function addFlowplayer(){$('*[data-sipovid="palyer"]').each(function(){var c,o,t,i,n,s;try{var h="player"+Math.floor(Math.random()*1e8),r=$(this).attr("data-extension").toLowerCase(),u=$(this).attr("data-link"),f=$(this).attr("width")||350,e=$(this).attr("height")||300;if(r!="mp3"&&r!="mp4"&&r!="flv"){c='<object id="WMP" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab" width="'+f+'" height="'+e+'"><param name="URL" value="'+u+'"><param name="autoStart" value="-1"><param name="currentMarker" value="0"><param name="mute" value="0"><param name="uiMode" value="full"><param name="stretchToFit" value="-1"><param name="windowlessVideo" value="0"><param name="enabled" value="-1"><param name="enableContextMenu" value="-1"><param name="fullScreen" value="0"><param name="captioningID" value=""><param name="enableErrorDialogs" value="0"><param name="_cx" value="0"><param name="_cy" value="0"><embed src="'+u+'" width="'+f+'" height="'+e+'" autoplay="true" controller="true"><\/embed><\/object>';$(this).after(c);$(this).remove();return}if(o=$("<a>").attr({href:u,id:h}),$(this).after(o),$(this).remove(),$.detectBrowser().isIE&&document.documentMode<9)$(o).css({width:f,height:e,display:"block"}),flowplayer(h,"../Script/flowplayer/flowplayer-3.2.18.swf");else{n=$("<div>");switch(r){case"mp3":t=$("<audio>");i="audio/mp3";break;case"mp4":t=$("<video>");i="video/mp4";break;case"flv":t=$("<video>");i="video/flv";break;default:t=$("<video>");i="video/mp4"}s=$("<source>");$(n).attr({"class":"flowplayer","data-swf":"../Script/flowplayer/flowplayer.swf","data-ratio":"0.4167"});$(s).attr({type:i,src:u});$(n).height(e);$(n).width(f);$(n).append(t);$(t).append(s);$(o).after(n);$(n).flowplayer()}}catch(l){}})}$(document).ready(function(){if($('*[data-sipovid="palyer"]').length>0){$("head").append('<link rel="stylesheet" type="text/css" href="../Script/flowplayer/skin/minimalist.css">');var n="../Script/flowplayer/flowplayer.min.js";$.detectBrowser().isIE&&document.documentMode<9&&(n="../Script/flowplayer/flowplayer-3.2.13.min.js");$.getScript(n,function(){addFlowplayer()})}})