function configFlowPlayer(n,t,i,r){t==null&&(t=!0),i==null&&(i=!1);var u={key:"#$c8fef520a582833346b",logo:{url:"http://static.ozone.ru/graphics/ozon/player_logo.png",fullscreenOnly:!1,bottom:40,right:20},clip:{scaling:"fit",provider:"lighttpd",autoPlay:i},canvas:{backgroundColor:"#000000",backgroundGradient:[0,0]},plugins:{controls:{borderRadius:"0",buttonColor:"#55afe7",bufferGradient:"none",progressColor:"#FFCD00",sliderColor:"#1D5A87",bufferColor:"#1D4A87",backgroundGradient:"low",sliderGradient:"none",buttonOverColor:"#FFCD00",backgroundColor:"#005b9e",progressGradient:"medium",timeColor:"#1D5A87",durationColor:"#000000",opacity:1,fullscreen:t},lighttpd:{url:"/player/flowplayer.pseudostreaming-3.1.1.swf"}},play:{url:"http://static.ozone.ru/graphics/ozon/player_play.png",opacity:.9,label:null,replayLabel:"Повторить",fadeSpeed:500,rotateSpeed:50,width:107,height:70}};r&&typeof r=="string"&&r!=""&&(u.clip.url=r),flowplayer(n,"/player/flowplayer.commercial-3.0.7.swf",u)}function getFlowPlayer(n,t,i,r,u){var f="";return i==null&&(i=!1),f='<a id="'+n+'" title="Плеер" style="display:block;',f+=r!=null?"width:"+r+"px;height:"+u+"px;":i?"width:460px;height:24px;":"width:460px;height:320px;",f+='padding-bottom:17px;" href="'+t+'"></a>'}function AddPlayerToPageGo(n,t){AddPlayerToPage(n,t,null,null,null,null,!0)}function AddPlayerToPage(n,t,i,r,u,f,e){var s=document.getElementById(n),o;s!=null&&(o="idA"+Math.ceil(Math.random()*1e3).toString(),s.innerHTML!=null?s.innerHTML=getFlowPlayer(o,t,i,u,f):s.innerText=getFlowPlayer(o,t,i,u,f),configFlowPlayer(o,r,e))}(function(){function a(n){console.log("$f.fireEvent",[].slice.call(n))}function u(n){var i,t;if(!n||typeof n!="object")return n;i=new n.constructor;for(t in n)n.hasOwnProperty(t)&&(i[t]=u(n[t]));return i}function n(n,t){var u,r,f,i;if(!n)return;r=0,f=n.length;if(f===undefined){for(u in n)if(t.call(n[u],u,n[u])===!1)break}else for(i=n[0];r<f&&t.call(i,r,i)!==!1;i=n[++r]);return n}function c(n){return document.getElementById(n)}function t(t,i,r){t&&i&&n(i,function(n,i){r&&typeof i=="function"||(t[n]=i)})}function v(t){var i=t.indexOf(".");if(i!=-1){var u=t.substring(0,i)||"*",f=t.substring(i+1,t.length),r=[];return n(document.getElementsByTagName(u),function(){this.className&&this.className.indexOf(f)!=-1&&r.push(this)}),r}}function l(n){return n=n||window.event,n.preventDefault?(n.stopPropagation(),n.preventDefault()):(n.returnValue=!1,n.cancelBubble=!0),!1}function r(n,t,i){n[t]=n[t]||[],n[t].push(i)}function f(){return"_"+(""+Math.random()).substring(2,10)}function e(e,s,v){function ut(){function u(n){return y.isLoaded()||y._fireEvent("onBeforeClick")===!1||y.load(),l(n)}$f(e)?($f(e).getParent().innerHTML="",g=$f(e).getIndex(),i[g]=y):(i.push(y),g=i.length-1),rt=parseInt(e.style.height,10)||e.clientHeight,typeof s=="string"&&(s={src:s}),nt=e.id||"fp"+f(),it=s.id||nt+"_api",s.id=it,v.playerId=nt,typeof v=="string"&&(v={clip:{url:v}}),typeof v.clip=="string"&&(v.clip={url:v.clip}),v.clip=v.clip||{},e.getAttribute("href",2)&&!v.clip.url&&(v.clip.url=e.getAttribute("href",2)),tt=new h(v.clip,-1,y),v.playlist=v.playlist||[v.clip];var t=0;n(v.playlist,function(){var i=this;typeof i=="object"&&i.length&&(i=""+i),typeof i=="string"&&(i={url:i}),n(v.clip,function(n,t){v.clip[n]!==undefined&&i[n]===undefined&&typeof t!="function"&&(i[n]=t)}),v.playlist[t]=i,i=new h(i,t,y),w.push(i),t++}),n(v,function(n,t){typeof t=="function"&&(r(b,n,t),delete v[n])}),n(v.plugins,function(n,t){t&&(k[n]=new o(n,t,y))}),v.plugins&&v.plugins.controls!==undefined||(k.controls=new o("controls",null,y)),s.bgcolor=s.bgcolor||"#000000",s.version=s.version||[9,0],s.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf",d=e.innerHTML,d.replace(/\s/g,"")!==""?e.addEventListener?e.addEventListener("click",u,!1):e.attachEvent&&e.attachEvent("onclick",u):(e.addEventListener&&e.addEventListener("click",l,!1),y.load())}var y=this,p=null,d,tt,w=[],k={},b={},nt,it,g,ft,et,rt;t(y,{id:function(){return nt},isLoaded:function(){return p!==null},getParent:function(){return e},hide:function(n){return n&&(e.style.height="0px"),p&&(p.style.height="0px"),y},show:function(){return e.style.height=rt+"px",p&&(p.style.height=et+"px"),y},isHidden:function(){return p&&parseInt(p.style.height,10)===0},load:function(t){return p||y._fireEvent("onBeforeLoad")===!1||(n(i,function(){this.unload()}),d=e.innerHTML,flashembed(e,s,{config:v}),t&&(t.cached=!0,r(b,"onLoad",t))),y},unload:function(){try{if(!p||p.fp_isFullscreen())return y}catch(n){return y}return y._fireEvent("onBeforeUnload")===!1?!1:(p.fp_close(),p=null,d.replace(/\s/g,"")!==""&&(e.innerHTML=d),y._fireEvent("onUnload"),y)},getClip:function(n){return n===undefined&&(n=ft),w[n]},getCommonClip:function(){return tt},getPlaylist:function(){return w},getPlugin:function(n){var t=k[n],i;return!t&&y.isLoaded()&&(i=y._api().fp_getPlugin(n),i&&(t=new o(n,i,y),k[n]=t)),t},getScreen:function(){return y.getPlugin("screen")},getControls:function(){return y.getPlugin("controls")},getConfig:function(n){return n?u(v):v},getFlashParams:function(){return s},loadPlugin:function(n,t,i,r){var s,e,u;return typeof i=="function"&&(r=i,i={}),s=r?f():"_",y._api().fp_loadPlugin(n,t,i,s),e={},e[s]=r,u=new o(n,null,y,e),k[n]=u,u},getState:function(){return p?p.fp_getState():-1},play:function(n){function t(){n!==undefined?y._api().fp_play(n):y._api().fp_play()}return p?t():y.load(function(){t()}),y},getVersion:function(){var t="flowplayer.js 3.0.6",n;return p?(n=p.fp_getVersion(),n.push(t),n):t},_api:function(){if(!p)throw"Flowplayer "+y.id()+" not loaded. Try moving your call to player's onLoad event";return p},_dump:function(){console.log(b)},setClip:function(n){y.setPlaylist([n])},getIndex:function(){return g}}),n("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,Fullscreen*,FullscreenExit,Error".split(","),function(){var n="on"+this,t;n.indexOf("*")!=-1&&(n=n.substring(0,n.length-1),t="onBefore"+n.substring(2),y[t]=function(n){return r(b,t,n),y}),y[n]=function(t){return r(b,n,t),y}}),n("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,reset,close,setPlaylist".split(","),function(){var n=this;y[n]=function(t){if(!p)return y;var i=t===undefined?p["fp_"+n]():p["fp_"+n](t);return i=="undefined"?y:i}}),y._fireEvent=function(t){var d,o,g,u,e,l;typeof t=="string"&&(t=[t]);var r=t[0],i=t[1],f=t[2],s=t[3];v.debug&&a(t),p||r!="onLoad"||i!="player"||(p=p||c(it),et=p.clientHeight,n(w,function(){this._fireEvent("onLoad")}),n(k,function(n,t){t._fireEvent("onUpdate")}),tt._fireEvent("onLoad"));if(r=="onLoad"&&i!="player")return;r=="onError"&&(typeof i=="string"||typeof i=="number"&&typeof f=="number")&&(i=f,f=s);if(r=="onContextMenu"){n(v.contextMenu[i],function(n,t){t.call(y)});return}if(r=="onPluginEvent"){d=i.name||i,o=k[d],o&&(o._fireEvent("onUpdate",i),o._fireEvent(f,t.slice(3)));return}return r=="onPlaylistReplace"&&(w=[],g=0,n(i,function(){w.push(new h(this,g++,y))})),u=!0,typeof i=="number"&&i<w.length&&(ft=i,e=w[i],e&&(u=e._fireEvent(r,f,s)),e&&u===!1||(u=tt._fireEvent(r,f,s,e))),l=0,n(b[r],function(){u=this.call(y,i,f),this.cached&&b[r].splice(l,1);if(u===!1)return!1;l++}),u},typeof e=="string"?flashembed.domReady(function(){var n=c(e);if(n)e=n,ut();else throw"Flowplayer cannot access element: "+e;}):ut()}function s(t){this.length=t.length,this.each=function(i){n(t,i)},this.size=function(){return t.length}}var h=function(i,u,e){var o=this,c={},h={},s;o.index=u,typeof i=="string"&&(i={url:i}),t(this,i,!0),n("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var n="on"+this,t;n.indexOf("*")!=-1&&(n=n.substring(0,n.length-1),t="onBefore"+n.substring(2),o[t]=function(n){return r(h,t,n),o}),o[n]=function(t){return r(h,n,t),o},u==-1&&(o[t]&&(e[t]=o[t]),o[n]&&(e[n]=o[n]))}),t(this,{onCuepoint:function(n,t){if(arguments.length==1)return c.embedded=[null,n],o;typeof n=="number"&&(n=[n]);var i=f();return c[i]=[n,t],e.isLoaded()&&e._api().fp_addCuepoints(n,u,i),o},update:function(n){t(o,n),e.isLoaded()&&e._api().fp_updateClip(n,u);var i=e.getConfig(),r=u==-1?i.clip:i.playlist[u];t(r,n,!0)},_fireEvent:function(i,r,f,s){var a,l;if(i=="onLoad")return n(c,function(n,t){t[0]&&e._api().fp_addCuepoints(t[0],u,n)}),!1;s=s||o;if(i=="onCuepoint"){a=c[r];if(a)return a[1].call(e,s,f)}return(i=="onStart"||i=="onUpdate")&&(t(s,r),s.duration?s.fullDuration=r.metaData.duration:s.duration=r.metaData.duration),l=!0,n(h[i],function(){l=this.call(e,s,r,f)}),l}}),i.onCuepoint&&(s=i.onCuepoint,o.onCuepoint.apply(o,typeof s=="function"?[s]:s),delete i.onCuepoint),n(i,function(n,t){typeof t=="function"&&(r(h,n,t),delete i[n])}),u==-1&&(e.onCuepoint=this.onCuepoint)},o=function(i,r,u,e){var s={},o=this,h=!1;e&&t(s,e),n(r,function(n,t){typeof t=="function"&&(s[n]=t,delete r[n])}),t(this,{animate:function(n,t,e){var c,h;return n?(typeof t=="function"&&(e=t,t=500),typeof n=="string"&&(c=n,n={},n[c]=t,t=500),e&&(h=f(),s[h]=e),t===undefined&&(t=500),r=u._api().fp_animate(i,n,t,h),o):o},css:function(n,f){if(f!==undefined){var e={};e[n]=f,n=e}return r=u._api().fp_css(i,n),t(o,r),o},show:function(){return this.display="block",u._api().fp_showPlugin(i),o},hide:function(){return this.display="none",u._api().fp_hidePlugin(i),o},toggle:function(){return this.display=u._api().fp_togglePlugin(i),o},fadeTo:function(n,t,r){typeof t=="function"&&(r=t,t=500);if(r){var e=f();s[e]=r}return this.display=u._api().fp_fadeTo(i,n,t,e),this.opacity=n,o},fadeIn:function(n,t){return o.fadeTo(1,n,t)},fadeOut:function(n,t){return o.fadeTo(0,n,t)},getName:function(){return i},getPlayer:function(){return u},_fireEvent:function(r,f){var c,l;if(r=="onUpdate"){c=u._api().fp_getPlugin(i);if(!c)return;t(o,c),delete o.methods,h||(n(c.methods,function(){var n=""+this;o[n]=function(){var r=[].slice.call(arguments),t=u._api().fp_invoke(i,n,r);return t=="undefined"?o:t}}),h=!0)}l=s[r],l&&(l.apply(o,f),r.substring(0,1)=="_"&&delete s[r])}})},i=[];window.flowplayer=window.$f=function(){var o=null,t=arguments[0],f,r,l,h;if(!arguments.length)return n(i,function(){if(this.isLoaded())return o=this,!1}),o||i[0];if(arguments.length==1)return typeof t=="number"?i[t]:t=="*"?new s(i):(n(i,function(){if(this.id()==t.id||this.id()==t||this.getParent()==t)return o=this,!1}),o);if(arguments.length>1){f=arguments[1],r=arguments.length==3?arguments[2]:{};if(typeof t=="string")return t.indexOf(".")!=-1?(l=[],n(v(t),function(){l.push(new e(this,u(f),u(r)))}),new s(l)):(h=c(t),new e(h!==null?h:t,f,r));if(t)return new e(t,f,r)}return null},t(window.$f,{fireEvent:function(){var t=[].slice.call(arguments),n=$f(t[0]);return n?n._fireEvent(t.slice(1)):null},addPlugin:function(n,t){return e.prototype[n]=t,$f},each:n,extend:t}),document.all&&(window.onbeforeunload=function(){$f("*").each(function(){this.isLoaded()&&this.close()})}),typeof jQuery=="function"&&(jQuery.prototype.flowplayer=function(n,t){if(!arguments.length||typeof arguments[0]=="number"){var i=[];return this.each(function(){var n=$f(this);n&&i.push(n)}),arguments.length?i[arguments[0]]:new s(i)}return this.each(function(){$f(this,u(n),t?u(t):{})})})})(),(function(){function f(){var t,i;if(n.done)return!1;t=document;if(t&&t.getElementsByTagName&&t.getElementById&&t.body){for(clearInterval(n.timer),n.timer=null,i=0;i<n.ready.length;i++)n.ready[i].call();n.ready=null,n.done=!0}}function t(n,t){if(t)for(key in t)t.hasOwnProperty(key)&&(n[key]=t[key]);return n}function i(n){var r,t;switch(o(n)){case"string":return n=n.replace(new RegExp('(["\\\\])',"g"),"\\$1"),n=n.replace(/^\s?(\d+)%/,"$1pct"),'"'+n+'"';case"array":return"["+s(n,function(n){return i(n)}).join(",")+"]";case"function":return'"function()"';case"object":r=[];for(t in n)n.hasOwnProperty(t)&&r.push('"'+t+'":'+i(n[t]));return"{"+r.join(",")+"}"}return String(n).replace(/\s/g," ").replace(/\'/g,'"')}function o(n){if(n===null||n===undefined)return!1;var t=typeof n;return t=="object"&&n.push?"array":t}function s(n,t){var r=[],i;for(i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i]));return r}function r(n,r){var h=document.all,f='<object width="'+n.width+'" height="'+n.height+'"',u,s,e,o;h&&!n.id&&(n.id="_"+(""+Math.random()).substring(9)),n.id&&(f+=' id="'+n.id+'"'),f+=n.w3c||!h?' data="'+n.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',f+=">",(n.w3c||h)&&(f+='<param name="movie" value="'+n.src+'" />'),u=t({},n),u.width=u.height=u.id=u.w3c=u.src=null;for(s in u)u[s]!==null&&(f+='<param name="'+s+'" value="'+u[s]+'" />');e="";if(r){for(o in r)r[o]!==null&&(e+=o+"="+(typeof r[o]=="object"?i(r[o]):r[o])+"&");e=e.substring(0,e.length-1),f+='<param name="flashvars" value=\''+e+"' />"}return f+="</object>"}function e(n,i,u){var o=flashembed.getVersion(),e;t(this,{getContainer:function(){return n},getConf:function(){return conf},getVersion:function(){return o},getFlashvars:function(){return u},getApi:function(){return n.firstChild},getHTML:function(){return r(i,u)}});var f=i.version,s=i.expressInstall,h=!f||flashembed.isSupported(f);h?(i.onFail=i.version=i.expressInstall=null,n.innerHTML=r(i,u)):f&&s&&flashembed.isSupported([6,65])?(t(i,{src:s}),u={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title},n.innerHTML=r(i,u)):n.innerHTML.replace(/\s/g,"")===""&&(n.innerHTML="<h2>Flash version "+f+" or greater is required</h2><h3>"+(o[0]>0?"Your version is "+o:"You have no flash plugin installed")+"</h3>"+(n.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>"),n.tagName=="A"&&(n.href="http://www.adobe.com/go/getflashplayer")),!h&&i.onFail&&(e=i.onFail.call(this),typeof e=="string"&&(n.innerHTML=e))}var u=typeof jQuery=="function",n=u?jQuery:function(t){if(n.done)return t();n.timer?n.ready.push(t):(n.ready=[t],n.timer=setInterval(f,13))};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}}),window.flashembed=function(i,r,u){var o,f;if(typeof i=="string"){o=document.getElementById(i);if(o)i=o;else{n(function(){flashembed(i,r,u)});return}}if(i)return f={width:"100%",height:"100%",allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:!1},typeof r=="string"&&(r={src:r}),t(f,r),new e(i,f,u)},t(window.flashembed,{getVersion:function(){var i=[0,0],n,u,r,t;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object")n=navigator.plugins["Shockwave Flash"].description,typeof n!="undefined"&&(n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),u=parseInt(n.replace(/^(.*)\..*$/,"$1"),10),r=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0,i=[u,r]);else if(window.ActiveXObject){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(o){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),i=[6,0],t.AllowScriptAccess="always"}catch(e){if(i[0]==6)return}try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}typeof t=="object"&&(n=t.GetVariable("$version"),typeof n!="undefined"&&(n=n.replace(/^\S+\s+(.*)$/,"$1").split(","),i=[parseInt(n[0],10),parseInt(n[2],10)]))}return i},isSupported:function(n){var t=flashembed.getVersion();return t[0]>n[0]||t[0]==n[0]&&t[1]>=n[1]},domReady:n,asString:i,getHTML:r}),u&&(jQuery.prototype.flashembed=function(n,t){return this.each(function(){flashembed(this,n,t)})})})()
