GIF89a;
Direktori : /home/serb/public_html/freichat/client/jquery/js/ |
Current File : /home/serb/public_html/freichat/client/jquery/js/combined.min.js |
(function(e){function t(t,n){function r(e){return o.preferFlash&&xt&&!o.ignoreFlash&&void 0!==o.flash[e]&&o.flash[e]}function i(e){return function(t){var n=this._s;return!n||!n._a?null:e.call(this,t)}}this.setupOptions={url:t||null,flashVersion:8,debugMode:!0,debugFlash:!1,useConsole:!0,consoleOnly:!0,waitForWindowLoad:!1,bgColor:"#ffffff",useHighPerformance:!1,flashPollingInterval:null,html5PollingInterval:null,flashLoadTimeout:1e3,wmode:null,allowScriptAccess:"always",useFlashBlock:!1,useHTML5Audio:!0,html5Test:/^(probably|maybe)$/i,preferFlash:!0,noSWFCache:!1};this.defaultOptions={autoLoad:!1,autoPlay:!1,from:null,loops:1,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onposition:null,onstop:null,onfailure:null,onfinish:null,multiShot:!0,multiShotEvents:!1,position:null,pan:0,stream:!0,to:null,type:null,usePolicyFile:!1,volume:100};this.flash9Options={isMovieStar:null,usePeakData:!1,useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null};this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null};this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a","m4b"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!1},ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}};this.movieID="sm2-container";this.id=n||"sm2movie";this.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.versionNumber="V2.97a.20121104";this.altURL=this.movieURL=this.version=null;this.enabled=this.swfLoaded=!1;this.oMC=null;this.sounds={};this.soundIDs=[];this.didFlashBlock=this.muted=!1;this.filePattern=null;this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.features={buffering:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1};this.sandbox={};this.html5={usingFlash:null};this.flash={};this.ignoreFlash=this.html5Only=!1;var s,o=this,u=null,a=null,f,l=navigator.userAgent,c=e,h=c.location.href.toString(),p=document,d,v,m,g,y=[],b=!1,w=!1,E=!1,S=!1,x=!1,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q,R,U,z,W,X,V,$=null,J=null,K,G,Y,Z,et,tt,nt,rt=!1,it=!1,st,ot,ut,at=0,ft=null,lt,ct=null,ht,pt,dt,vt,mt,gt,yt,bt,wt=Array.prototype.slice,Et=!1,St,xt,Tt,Nt,Ct,kt,Lt=l.match(/(ipad|iphone|ipod)/i),At=l.match(/msie/i),Ot=l.match(/webkit/i),Mt=l.match(/safari/i)&&!l.match(/chrome/i),_t=l.match(/opera/i),Dt=l.match(/(mobile|pre\/|xoom)/i)||Lt,Pt=!h.match(/usehtml5audio/i)&&!h.match(/sm2\-ignorebadua/i)&&Mt&&!l.match(/silk/i)&&l.match(/OS X 10_6_([3-7])/i),Ht=void 0!==p.hasFocus?p.hasFocus():null,Bt=Mt&&(void 0===p.hasFocus||!p.hasFocus()),jt=!Bt,Ft=/(mp3|mp4|mpa|m4a|m4b)/i,It=p.location?p.location.protocol.match(/http/i):null,qt=!It?"http://":"",Rt=/^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i,Ut="mpeg4 aac flv mov mp4 m4v f4v m4a m4b mp4v 3gp 3g2".split(" "),zt=RegExp("\\.("+Ut.join("|")+")(\\?.*)?$","i");this.mimePattern=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.useAltURL=!It;Dt&&(o.useHTML5Audio=!0,o.preferFlash=!1,Lt&&(Et=o.ignoreFlash=!0));var Wt;try{Wt=void 0!==Audio&&void 0!==(_t&&void 0!==opera&&10>opera.version()?new Audio(null):new Audio).canPlayType}catch(Xt){Wt=!1}this.hasHTML5=Wt;this.setup=function(e){var t=!o.url;void 0!==e&&E&&ct&&o.ok()&&(void 0!==e.flashVersion||void 0!==e.url)&&tt(K("setupLate"));C(e);t&&F&&void 0!==e.url&&o.beginDelayedInit();!F&&void 0!==e.url&&"complete"===p.readyState&&setTimeout(B,1);return o};this.supported=this.ok=function(){return ct?E&&!S:o.useHTML5Audio&&o.hasHTML5};this.getMovie=function(e){return f(e)||p[e]||c[e]};this.createSound=function(e,t){function n(){r=Z(r);o.sounds[r.id]=new s(r);o.soundIDs.push(r.id);return o.sounds[r.id]}var r,i=null;if(!E||!o.ok())return tt(void 0),!1;void 0!==t&&(e={id:e,url:t});r=N(e);r.url=lt(r.url);if(nt(r.id,!0))return o.sounds[r.id];pt(r)?(i=n(),i._setup_html5(r)):(8<g&&null===r.isMovieStar&&(r.isMovieStar=!(!r.serverURL&&!(r.type&&r.type.match(Rt)||r.url.match(zt)))),r=et(r,void 0),i=n(),8===g?a._createSound(r.id,r.loops||1,r.usePolicyFile):(a._createSound(r.id,r.url,r.usePeakData,r.useWaveformData,r.useEQData,r.isMovieStar,r.isMovieStar?r.bufferTime:!1,r.loops||1,r.serverURL,r.duration||null,r.autoPlay,!0,r.autoLoad,r.usePolicyFile),r.serverURL||(i.connected=!0,r.onconnect&&r.onconnect.apply(i))),!r.serverURL&&(r.autoLoad||r.autoPlay)&&i.load(r));!r.serverURL&&r.autoPlay&&i.play();return i};this.destroySound=function(e,t){if(!nt(e))return!1;var n=o.sounds[e],r;n._iO={};n.stop();n.unload();for(r=0;r<o.soundIDs.length;r++)if(o.soundIDs[r]===e){o.soundIDs.splice(r,1);break}t||n.destruct(!0);delete o.sounds[e];return!0};this.load=function(e,t){return!nt(e)?!1:o.sounds[e].load(t)};this.unload=function(e){return!nt(e)?!1:o.sounds[e].unload()};this.onposition=this.onPosition=function(e,t,n,r){return!nt(e)?!1:o.sounds[e].onposition(t,n,r)};this.clearOnPosition=function(e,t,n){return!nt(e)?!1:o.sounds[e].clearOnPosition(t,n)};this.start=this.play=function(e,t){var n=!1;return!E||!o.ok()?(tt("soundManager.play(): "+K(!E?"notReady":"notOK")),n):!nt(e)?(t instanceof Object||(t={url:t}),t&&t.url&&(t.id=e,n=o.createSound(t).play()),n):o.sounds[e].play(t)};this.setPosition=function(e,t){return!nt(e)?!1:o.sounds[e].setPosition(t)};this.stop=function(e){return!nt(e)?!1:o.sounds[e].stop()};this.stopAll=function(){for(var e in o.sounds)o.sounds.hasOwnProperty(e)&&o.sounds[e].stop()};this.pause=function(e){return!nt(e)?!1:o.sounds[e].pause()};this.pauseAll=function(){var e;for(e=o.soundIDs.length-1;0<=e;e--)o.sounds[o.soundIDs[e]].pause()};this.resume=function(e){return!nt(e)?!1:o.sounds[e].resume()};this.resumeAll=function(){var e;for(e=o.soundIDs.length-1;0<=e;e--)o.sounds[o.soundIDs[e]].resume()};this.togglePause=function(e){return!nt(e)?!1:o.sounds[e].togglePause()};this.setPan=function(e,t){return!nt(e)?!1:o.sounds[e].setPan(t)};this.setVolume=function(e,t){return!nt(e)?!1:o.sounds[e].setVolume(t)};this.mute=function(e){var t=0;e instanceof String&&(e=null);if(e)return!nt(e)?!1:o.sounds[e].mute();for(t=o.soundIDs.length-1;0<=t;t--)o.sounds[o.soundIDs[t]].mute();return o.muted=!0};this.muteAll=function(){o.mute()};this.unmute=function(e){e instanceof String&&(e=null);if(e)return!nt(e)?!1:o.sounds[e].unmute();for(e=o.soundIDs.length-1;0<=e;e--)o.sounds[o.soundIDs[e]].unmute();o.muted=!1;return!0};this.unmuteAll=function(){o.unmute()};this.toggleMute=function(e){return!nt(e)?!1:o.sounds[e].toggleMute()};this.getMemoryUse=function(){var e=0;a&&8!==g&&(e=parseInt(a._getMemoryUse(),10));return e};this.disable=function(e){var t;void 0===e&&(e=!1);if(S)return!1;S=!0;for(t=o.soundIDs.length-1;0<=t;t--)W(o.sounds[o.soundIDs[t]]);T(e);bt.remove(c,"load",O);return!0};this.canPlayMIME=function(e){var t;o.hasHTML5&&(t=dt({type:e}));!t&&ct&&(t=e&&o.ok()?!!(8<g&&e.match(Rt)||e.match(o.mimePattern)):null);return t};this.canPlayURL=function(e){var t;o.hasHTML5&&(t=dt({url:e}));!t&&ct&&(t=e&&o.ok()?!!e.match(o.filePattern):null);return t};this.canPlayLink=function(e){return void 0!==e.type&&e.type&&o.canPlayMIME(e.type)?!0:o.canPlayURL(e.href)};this.getSoundById=function(e){if(!e)throw Error("soundManager.getSoundById(): sID is null/undefined");return o.sounds[e]};this.onready=function(e,t){if("function"===typeof e)t||(t=c),L("onready",e,t),A();else throw K("needFunction","onready");return!0};this.ontimeout=function(e,t){if("function"===typeof e)t||(t=c),L("ontimeout",e,t),A({type:"ontimeout"});else throw K("needFunction","ontimeout");return!0};this._wD=this._writeDebug=function(){return!0};this._debug=function(){};this.reboot=function(){var e,t;for(e=o.soundIDs.length-1;0<=e;e--)o.sounds[o.soundIDs[e]].destruct();if(a)try{At&&(J=a.innerHTML),$=a.parentNode.removeChild(a)}catch(n){}J=$=ct=null;o.enabled=F=E=rt=it=b=w=S=o.swfLoaded=!1;o.soundIDs=[];o.sounds={};a=null;for(e in y)if(y.hasOwnProperty(e))for(t=y[e].length-1;0<=t;t--)y[e][t].fired=!1;c.setTimeout(o.beginDelayedInit,20)};this.getMoviePercent=function(){return a&&"PercentLoaded"in a?a.PercentLoaded():null};this.beginDelayedInit=function(){x=!0;B();setTimeout(function(){if(it)return!1;q();H();return it=!0},20);M()};this.destruct=function(){o.disable(!0)};s=function(e){var t,n,r=this,i,s,f,l,c,h,p=!1,d=[],v=0,m,y,b=null;n=t=null;this.sID=this.id=e.id;this.url=e.url;this._iO=this.instanceOptions=this.options=N(e);this.pan=this.options.pan;this.volume=this.options.volume;this.isHTML5=!1;this._a=null;this.id3={};this._debug=function(){};this.load=function(e){var t=null;void 0!==e?r._iO=N(e,r.options):(e=r.options,r._iO=e,b&&b!==r.url&&(r._iO.url=r.url,r.url=null));r._iO.url||(r._iO.url=r.url);r._iO.url=lt(r._iO.url);e=r.instanceOptions=r._iO;if(e.url===r.url&&0!==r.readyState&&2!==r.readyState)return 3===r.readyState&&e.onload&&e.onload.apply(r,[!!r.duration]),r;r.loaded=!1;r.readyState=1;r.playState=0;r.id3={};if(pt(e))t=r._setup_html5(e),t._called_load||(r._html5_canplay=!1,r.url!==e.url&&(r._a.src=e.url,r.setPosition(0)),r._a.autobuffer="auto",r._a.preload="auto",r._a._called_load=!0,e.autoPlay&&r.play());else try{r.isHTML5=!1,r._iO=et(Z(e)),e=r._iO,8===g?a._load(r.id,e.url,e.stream,e.autoPlay,e.usePolicyFile):a._load(r.id,e.url,!!e.stream,!!e.autoPlay,e.loops||1,!!e.autoLoad,e.usePolicyFile)}catch(n){R({type:"SMSOUND_LOAD_JS_EXCEPTION",fatal:!0})}r.url=e.url;return r};this.unload=function(){0!==r.readyState&&(r.isHTML5?(l(),r._a&&(r._a.pause(),mt(r._a,"about:blank"),b="about:blank")):8===g?a._unload(r.id,"about:blank"):a._unload(r.id),i());return r};this.destruct=function(e){r.isHTML5?(l(),r._a&&(r._a.pause(),mt(r._a),Et||f(),r._a._s=null,r._a=null)):(r._iO.onfailure=null,a._destroySound(r.id));e||o.destroySound(r.id,!0)};this.start=this.play=function(e,t){var n,i;i=!0;i=null;t=void 0===t?!0:t;e||(e={});r.url&&(r._iO.url=r.url);r._iO=N(r._iO,r.options);r._iO=N(e,r._iO);r._iO.url=lt(r._iO.url);r.instanceOptions=r._iO;if(r._iO.serverURL&&!r.connected)return r.getAutoPlay()||r.setAutoPlay(!0),r;pt(r._iO)&&(r._setup_html5(r._iO),c());1===r.playState&&!r.paused&&((n=r._iO.multiShot)||(i=r));if(null!==i)return i;e.url&&e.url!==r.url&&r.load(r._iO);r.loaded||(0===r.readyState?(r.isHTML5||(r._iO.autoPlay=!0),r.load(r._iO),r.instanceOptions=r._iO):2===r.readyState&&(i=r));if(null!==i)return i;!r.isHTML5&&9===g&&0<r.position&&r.position===r.duration&&(e.position=0);if(r.paused&&0<=r.position&&(!r._iO.serverURL||0<r.position))r.resume();else{r._iO=N(e,r._iO);if(null!==r._iO.from&&null!==r._iO.to&&0===r.instanceCount&&0===r.playState&&!r._iO.serverURL){n=function(){r._iO=N(e,r._iO);r.play(r._iO)};if(r.isHTML5&&!r._html5_canplay)r.load({oncanplay:n}),i=!1;else if(!r.isHTML5&&!r.loaded&&(!r.readyState||2!==r.readyState))r.load({onload:n}),i=!1;if(null!==i)return i;r._iO=y()}(!r.instanceCount||r._iO.multiShotEvents||!r.isHTML5&&8<g&&!r.getAutoPlay())&&r.instanceCount++;r._iO.onposition&&0===r.playState&&h(r);r.playState=1;r.paused=!1;r.position=void 0!==r._iO.position&&!isNaN(r._iO.position)?r._iO.position:0;r.isHTML5||(r._iO=et(Z(r._iO)));r._iO.onplay&&t&&(r._iO.onplay.apply(r),p=!0);r.setVolume(r._iO.volume,!0);r.setPan(r._iO.pan,!0);r.isHTML5?(c(),i=r._setup_html5(),r.setPosition(r._iO.position),i.play()):(i=a._start(r.id,r._iO.loops||1,9===g?r._iO.position:r._iO.position/1e3,r._iO.multiShot),9===g&&!i&&r._iO.onplayerror&&r._iO.onplayerror.apply(r))}return r};this.stop=function(e){var t=r._iO;1===r.playState&&(r._onbufferchange(0),r._resetOnPosition(0),r.paused=!1,r.isHTML5||(r.playState=0),m(),t.to&&r.clearOnPosition(t.to),r.isHTML5?r._a&&(e=r.position,r.setPosition(0),r.position=e,r._a.pause(),r.playState=0,r._onTimer(),l()):(a._stop(r.id,e),t.serverURL&&r.unload()),r.instanceCount=0,r._iO={},t.onstop&&t.onstop.apply(r));return r};this.setAutoPlay=function(e){r._iO.autoPlay=e;r.isHTML5||(a._setAutoPlay(r.id,e),e&&!r.instanceCount&&1===r.readyState&&r.instanceCount++)};this.getAutoPlay=function(){return r._iO.autoPlay};this.setPosition=function(e){void 0===e&&(e=0);var t=r.isHTML5?Math.max(e,0):Math.min(r.duration||r._iO.duration,Math.max(e,0));r.position=t;e=r.position/1e3;r._resetOnPosition(r.position);r._iO.position=t;if(r.isHTML5){if(r._a&&r._html5_canplay&&r._a.currentTime!==e)try{r._a.currentTime=e,(0===r.playState||r.paused)&&r._a.pause()}catch(n){}}else e=9===g?r.position:e,r.readyState&&2!==r.readyState&&a._setPosition(r.id,e,r.paused||!r.playState,r._iO.multiShot);r.isHTML5&&r.paused&&r._onTimer(!0);return r};this.pause=function(e){if(r.paused||0===r.playState&&1!==r.readyState)return r;r.paused=!0;r.isHTML5?(r._setup_html5().pause(),l()):(e||void 0===e)&&a._pause(r.id,r._iO.multiShot);r._iO.onpause&&r._iO.onpause.apply(r);return r};this.resume=function(){var e=r._iO;if(!r.paused)return r;r.paused=!1;r.playState=1;r.isHTML5?(r._setup_html5().play(),c()):(e.isMovieStar&&!e.serverURL&&r.setPosition(r.position),a._pause(r.id,e.multiShot));!p&&e.onplay?(e.onplay.apply(r),p=!0):e.onresume&&e.onresume.apply(r);return r};this.togglePause=function(){if(0===r.playState)return r.play({position:9===g&&!r.isHTML5?r.position:r.position/1e3}),r;r.paused?r.resume():r.pause();return r};this.setPan=function(e,t){void 0===e&&(e=0);void 0===t&&(t=!1);r.isHTML5||a._setPan(r.id,e);r._iO.pan=e;t||(r.pan=e,r.options.pan=e);return r};this.setVolume=function(e,t){void 0===e&&(e=100);void 0===t&&(t=!1);r.isHTML5?r._a&&(r._a.volume=Math.max(0,Math.min(1,e/100))):a._setVolume(r.id,o.muted&&!r.muted||r.muted?0:e);r._iO.volume=e;t||(r.volume=e,r.options.volume=e);return r};this.mute=function(){r.muted=!0;r.isHTML5?r._a&&(r._a.muted=!0):a._setVolume(r.id,0);return r};this.unmute=function(){r.muted=!1;var e=void 0!==r._iO.volume;r.isHTML5?r._a&&(r._a.muted=!1):a._setVolume(r.id,e?r._iO.volume:r.options.volume);return r};this.toggleMute=function(){return r.muted?r.unmute():r.mute()};this.onposition=this.onPosition=function(e,t,n){d.push({position:parseInt(e,10),method:t,scope:void 0!==n?n:r,fired:!1});return r};this.clearOnPosition=function(e,t){var n,e=parseInt(e,10);if(isNaN(e))return!1;for(n=0;n<d.length;n++)if(e===d[n].position&&(!t||t===d[n].method))d[n].fired&&v--,d.splice(n,1)};this._processOnPosition=function(){var e,t;e=d.length;if(!e||!r.playState||v>=e)return!1;for(e-=1;0<=e;e--)t=d[e],!t.fired&&r.position>=t.position&&(t.fired=!0,v++,t.method.apply(t.scope,[t.position]));return!0};this._resetOnPosition=function(e){var t,n;t=d.length;if(!t)return!1;for(t-=1;0<=t;t--)n=d[t],n.fired&&e<=n.position&&(n.fired=!1,v--);return!0};y=function(){var e=r._iO,t=e.from,n=e.to,i,s;s=function(){r.clearOnPosition(n,s);r.stop()};i=function(){if(null!==n&&!isNaN(n))r.onPosition(n,s)};null!==t&&!isNaN(t)&&(e.position=t,e.multiShot=!1,i());return e};h=function(){var e,t=r._iO.onposition;if(t)for(e in t)if(t.hasOwnProperty(e))r.onPosition(parseInt(e,10),t[e])};m=function(){var e,t=r._iO.onposition;if(t)for(e in t)t.hasOwnProperty(e)&&r.clearOnPosition(parseInt(e,10))};c=function(){r.isHTML5&&st(r)};l=function(){r.isHTML5&&ot(r)};i=function(e){e||(d=[],v=0);p=!1;r._hasTimer=null;r._a=null;r._html5_canplay=!1;r.bytesLoaded=null;r.bytesTotal=null;r.duration=r._iO&&r._iO.duration?r._iO.duration:null;r.durationEstimate=null;r.buffered=[];r.eqData=[];r.eqData.left=[];r.eqData.right=[];r.failures=0;r.isBuffering=!1;r.instanceOptions={};r.instanceCount=0;r.loaded=!1;r.metadata={};r.readyState=0;r.muted=!1;r.paused=!1;r.peakData={left:0,right:0};r.waveformData={left:[],right:[]};r.playState=0;r.position=null;r.id3={}};i();this._onTimer=function(e){var i,s=!1,o={};if(r._hasTimer||e){if(r._a&&(e||(0<r.playState||1===r.readyState)&&!r.paused))i=r._get_html5_duration(),i!==t&&(t=i,r.duration=i,s=!0),r.durationEstimate=r.duration,i=1e3*r._a.currentTime||0,i!==n&&(n=i,s=!0),(s||e)&&r._whileplaying(i,o,o,o,o);return s}};this._get_html5_duration=function(){var e=r._iO;return(e=r._a&&r._a.duration?1e3*r._a.duration:e&&e.duration?e.duration:null)&&!isNaN(e)&&Infinity!==e?e:null};this._apply_loop=function(e,t){e.loop=1<t?"loop":""};this._setup_html5=function(e){var e=N(r._iO,e),t=decodeURI,n=Et?u:r._a,o=t(e.url),a;Et?o===St&&(a=!0):o===b&&(a=!0);if(n){if(n._s)if(Et)n._s&&n._s.playState&&!a&&n._s.stop();else if(!Et&&o===t(b))return r._apply_loop(n,e.loops),n;a||(i(!1),n.src=e.url,St=b=r.url=e.url,n._called_load=!1)}else r._a=e.autoLoad||e.autoPlay?new Audio(e.url):_t&&10>opera.version()?new Audio(null):new Audio,n=r._a,n._called_load=!1,Et&&(u=n);r.isHTML5=!0;r._a=n;n._s=r;s();r._apply_loop(n,e.loops);e.autoLoad||e.autoPlay?r.load():(n.autobuffer=!1,n.preload="auto");return n};s=function(){if(r._a._added_events)return!1;var e;r._a._added_events=!0;for(e in Ct)Ct.hasOwnProperty(e)&&r._a&&r._a.addEventListener(e,Ct[e],!1);return!0};f=function(){var e;r._a._added_events=!1;for(e in Ct)Ct.hasOwnProperty(e)&&r._a&&r._a.removeEventListener(e,Ct[e],!1)};this._onload=function(e){e=!!e||!r.isHTML5&&8===g&&r.duration;r.loaded=e;r.readyState=e?3:2;r._onbufferchange(0);r._iO.onload&&r._iO.onload.apply(r,[e]);return!0};this._onbufferchange=function(e){if(0===r.playState||e&&r.isBuffering||!e&&!r.isBuffering)return!1;r.isBuffering=1===e;r._iO.onbufferchange&&r._iO.onbufferchange.apply(r);return!0};this._onsuspend=function(){r._iO.onsuspend&&r._iO.onsuspend.apply(r);return!0};this._onfailure=function(e,t,n){r.failures++;if(r._iO.onfailure&&1===r.failures)r._iO.onfailure(r,e,t,n)};this._onfinish=function(){var e=r._iO.onfinish;r._onbufferchange(0);r._resetOnPosition(0);r.instanceCount&&(r.instanceCount--,r.instanceCount||(m(),r.playState=0,r.paused=!1,r.instanceCount=0,r.instanceOptions={},r._iO={},l(),r.isHTML5&&(r.position=0)),(!r.instanceCount||r._iO.multiShotEvents)&&e&&e.apply(r))};this._whileloading=function(e,t,n,i){var s=r._iO;r.bytesLoaded=e;r.bytesTotal=t;r.duration=Math.floor(n);r.bufferLength=i;r.durationEstimate=!r.isHTML5&&!s.isMovieStar?s.duration?r.duration>s.duration?r.duration:s.duration:parseInt(r.bytesTotal/r.bytesLoaded*r.duration,10):r.duration;r.isHTML5||(r.buffered=[{start:0,end:r.duration}]);(3!==r.readyState||r.isHTML5)&&s.whileloading&&s.whileloading.apply(r)};this._whileplaying=function(e,t,n,i,s){var o=r._iO;if(isNaN(e)||null===e)return!1;r.position=Math.max(0,e);r._processOnPosition();!r.isHTML5&&8<g&&(o.usePeakData&&void 0!==t&&t&&(r.peakData={left:t.leftPeak,right:t.rightPeak}),o.useWaveformData&&void 0!==n&&n&&(r.waveformData={left:n.split(","),right:i.split(",")}),o.useEQData&&void 0!==s&&s&&s.leftEQ&&(e=s.leftEQ.split(","),r.eqData=e,r.eqData.left=e,void 0!==s.rightEQ&&s.rightEQ&&(r.eqData.right=s.rightEQ.split(","))));1===r.playState&&(!r.isHTML5&&8===g&&!r.position&&r.isBuffering&&r._onbufferchange(0),o.whileplaying&&o.whileplaying.apply(r));return!0};this._oncaptiondata=function(e){r.captiondata=e;r._iO.oncaptiondata&&r._iO.oncaptiondata.apply(r,[e])};this._onmetadata=function(e,t){var n={},i,s;i=0;for(s=e.length;i<s;i++)n[e[i]]=t[i];r.metadata=n;r._iO.onmetadata&&r._iO.onmetadata.apply(r)};this._onid3=function(e,t){var n=[],i,s;i=0;for(s=e.length;i<s;i++)n[e[i]]=t[i];r.id3=N(r.id3,n);r._iO.onid3&&r._iO.onid3.apply(r)};this._onconnect=function(e){e=1===e;if(r.connected=e)r.failures=0,nt(r.id)&&(r.getAutoPlay()?r.play(void 0,r.getAutoPlay()):r._iO.autoLoad&&r.load()),r._iO.onconnect&&r._iO.onconnect.apply(r,[e])};this._ondataerror=function(){0<r.playState&&r._iO.ondataerror&&r._iO.ondataerror.apply(r)}};I=function(){return p.body||p._docElement||p.getElementsByTagName("div")[0]};f=function(e){return p.getElementById(e)};N=function(e,t){var n=e||{},r,i;r=void 0===t?o.defaultOptions:t;for(i in r)r.hasOwnProperty(i)&&void 0===n[i]&&(n[i]="object"!==typeof r[i]||null===r[i]?r[i]:N(n[i],r[i]));return n};k={onready:1,ontimeout:1,defaultOptions:1,flash9Options:1,movieStarOptions:1};C=function(e,t){var n,r=!0,i=void 0!==t,s=o.setupOptions;for(n in e)if(e.hasOwnProperty(n))if("object"!==typeof e[n]||null===e[n]||e[n]instanceof Array)i&&void 0!==k[t]?o[t][n]=e[n]:void 0!==s[n]?(o.setupOptions[n]=e[n],o[n]=e[n]):void 0===k[n]?(tt(K(void 0===o[n]?"setupUndef":"setupError",n),2),r=!1):o[n]instanceof Function?o[n].apply(o,e[n]instanceof Array?e[n]:[e[n]]):o[n]=e[n];else if(void 0===k[n])tt(K(void 0===o[n]?"setupUndef":"setupError",n),2),r=!1;else return C(e[n],n);return r};var Vt=function(e){var e=wt.call(e),t=e.length;Jt?(e[1]="on"+e[1],3<t&&e.pop()):3===t&&e.push(!1);return e},$t=function(e,t){var n=e.shift(),r=[Kt[t]];if(Jt)n[r](e[0],e[1]);else n[r].apply(n,e)},Jt=c.attachEvent,Kt={add:Jt?"attachEvent":"addEventListener",remove:Jt?"detachEvent":"removeEventListener"};bt={add:function(){$t(Vt(arguments),"add")},remove:function(){$t(Vt(arguments),"remove")}};Ct={abort:i(function(){}),canplay:i(function(){var e=this._s,t;if(e._html5_canplay)return!0;e._html5_canplay=!0;e._onbufferchange(0);t=void 0!==e._iO.position&&!isNaN(e._iO.position)?e._iO.position/1e3:null;if(e.position&&this.currentTime!==t)try{this.currentTime=t}catch(n){}e._iO._oncanplay&&e._iO._oncanplay()}),canplaythrough:i(function(){var e=this._s;e.loaded||(e._onbufferchange(0),e._whileloading(e.bytesLoaded,e.bytesTotal,e._get_html5_duration()),e._onload(!0))}),ended:i(function(){this._s._onfinish()}),error:i(function(){this._s._onload(!1)}),loadeddata:i(function(){var e=this._s;!e._loaded&&!Mt&&(e.duration=e._get_html5_duration())}),loadedmetadata:i(function(){}),loadstart:i(function(){this._s._onbufferchange(1)}),play:i(function(){this._s._onbufferchange(0)}),playing:i(function(){this._s._onbufferchange(0)}),progress:i(function(e){var t=this._s,n,r,i=0,i=e.target.buffered;n=e.loaded||0;var s=e.total||1;t.buffered=[];if(i&&i.length){n=0;for(r=i.length;n<r;n++)t.buffered.push({start:1e3*i.start(n),end:1e3*i.end(n)});i=1e3*(i.end(0)-i.start(0));n=i/(1e3*e.target.duration)}isNaN(n)||(t._onbufferchange(0),t._whileloading(n,s,t._get_html5_duration()),n&&s&&n===s&&Ct.canplaythrough.call(this,e))}),ratechange:i(function(){}),suspend:i(function(e){var t=this._s;Ct.progress.call(this,e);t._onsuspend()}),stalled:i(function(){}),timeupdate:i(function(){this._s._onTimer()}),waiting:i(function(){this._s._onbufferchange(1)})};pt=function(e){return e.serverURL||e.type&&r(e.type)?!1:e.type?dt({type:e.type}):dt({url:e.url})||o.html5Only};mt=function(e,t){e&&(e.src=t)};dt=function(e){if(!o.useHTML5Audio||!o.hasHTML5)return!1;var t=e.url||null,e=e.type||null,n=o.audioFormats,i;if(e&&void 0!==o.html5[e])return o.html5[e]&&!r(e);if(!vt){vt=[];for(i in n)n.hasOwnProperty(i)&&(vt.push(i),n[i].related&&(vt=vt.concat(n[i].related)));vt=RegExp("\\.("+vt.join("|")+")(\\?.*)?$","i")}i=t?t.toLowerCase().match(vt):null;!i||!i.length?e&&(t=e.indexOf(";"),i=(-1!==t?e.substr(0,t):e).substr(6)):i=i[1];i&&void 0!==o.html5[i]?t=o.html5[i]&&!r(i):(e="audio/"+i,t=o.html5.canPlayType({type:e}),t=(o.html5[i]=t)&&o.html5[e]&&!r(e));return t};yt=function(){function e(e){var n,r,i=n=!1;if(!t||"function"!==typeof t.canPlayType)return n;if(e instanceof Array){n=0;for(r=e.length;n<r;n++)if(o.html5[e[n]]||t.canPlayType(e[n]).match(o.html5Test))i=!0,o.html5[e[n]]=!0,o.flash[e[n]]=!!e[n].match(Ft);n=i}else e=t&&"function"===typeof t.canPlayType?t.canPlayType(e):!1,n=!(!e||!e.match(o.html5Test));return n}if(!o.useHTML5Audio||!o.hasHTML5)return!1;var t=void 0!==Audio?_t&&10>opera.version()?new Audio(null):new Audio:null,n,r,i={},s;s=o.audioFormats;for(n in s)if(s.hasOwnProperty(n)&&(r="audio/"+n,i[n]=e(s[n].type),i[r]=i[n],n.match(Ft)?(o.flash[n]=!0,o.flash[r]=!0):(o.flash[n]=!1,o.flash[r]=!1),s[n]&&s[n].related))for(r=s[n].related.length-1;0<=r;r--)i["audio/"+s[n].related[r]]=i[n],o.html5[s[n].related[r]]=i[n],o.flash[s[n].related[r]]=i[n];i.canPlayType=t?e:null;o.html5=N(o.html5,i);return!0};K=function(){};Z=function(e){8===g&&1<e.loops&&e.stream&&(e.stream=!1);return e};et=function(e){if(e&&!e.usePolicyFile&&(e.onid3||e.usePeakData||e.useWaveformData||e.useEQData))e.usePolicyFile=!0;return e};tt=function(){};d=function(){return!1};W=function(e){for(var t in e)e.hasOwnProperty(t)&&"function"===typeof e[t]&&(e[t]=d)};X=function(e){void 0===e&&(e=!1);(S||e)&&o.disable(e)};V=function(e){var t=null;if(e)if(e.match(/\.swf(\?.*)?$/i)){if(t=e.substr(e.toLowerCase().lastIndexOf(".swf?")+4))return e}else e.lastIndexOf("/")!==e.length-1&&(e+="/");e=(e&&-1!==e.lastIndexOf("/")?e.substr(0,e.lastIndexOf("/")+1):"./")+o.movieURL;o.noSWFCache&&(e+="?ts="+(new Date).getTime());return e};D=function(){g=parseInt(o.flashVersion,10);8!==g&&9!==g&&(o.flashVersion=g=8);var e=o.debugMode||o.debugFlash?"_debug.swf":".swf";o.useHTML5Audio&&!o.html5Only&&o.audioFormats.mp4.required&&9>g&&(o.flashVersion=g=9);o.version=o.versionNumber+(o.html5Only?" (HTML5-only mode)":9===g?" (AS3/Flash 9)":" (AS2/Flash 8)");8<g?(o.defaultOptions=N(o.defaultOptions,o.flash9Options),o.features.buffering=!0,o.defaultOptions=N(o.defaultOptions,o.movieStarOptions),o.filePatterns.flash9=RegExp("\\.(mp3|"+Ut.join("|")+")(\\?.*)?$","i"),o.features.movieStar=!0):o.features.movieStar=!1;o.filePattern=o.filePatterns[8!==g?"flash9":"flash8"];o.movieURL=(8===g?"soundmanager2.swf":"soundmanager2_flash9.swf").replace(".swf",e);o.features.peakData=o.features.waveformData=o.features.eqData=8<g};U=function(e,t){if(!a)return!1;a._setPolling(e,t)};z=function(){o.debugURLParam.test(h)&&(o.debugMode=!0)};nt=this.getSoundById;Y=function(){var e=[];o.debugMode&&e.push("sm2_debug");o.debugFlash&&e.push("flash_debug");o.useHighPerformance&&e.push("high_performance");return e.join(" ")};G=function(){K("fbHandler");var e=o.getMoviePercent(),t={type:"FLASHBLOCK"};if(o.html5Only)return!1;o.ok()?o.oMC&&(o.oMC.className=[Y(),"movieContainer","swf_loaded"+(o.didFlashBlock?" swf_unblocked":"")].join(" ")):(ct&&(o.oMC.className=Y()+" movieContainer "+(null===e?"swf_timedout":"swf_error")),o.didFlashBlock=!0,A({type:"ontimeout",ignoreInit:!0,error:t}),R(t))};L=function(e,t,n){void 0===y[e]&&(y[e]=[]);y[e].push({method:t,scope:n||null,fired:!1})};A=function(e){e||(e={type:o.ok()?"onready":"ontimeout"});if(!E&&e&&!e.ignoreInit||"ontimeout"===e.type&&(o.ok()||S&&!e.ignoreInit))return!1;var t={success:e&&e.ignoreInit?o.ok():!S},n=e&&e.type?y[e.type]||[]:[],r=[],i,t=[t],s=ct&&o.useFlashBlock&&!o.ok();e.error&&(t[0].error=e.error);e=0;for(i=n.length;e<i;e++)!0!==n[e].fired&&r.push(n[e]);if(r.length){e=0;for(i=r.length;e<i;e++)r[e].scope?r[e].method.apply(r[e].scope,t):r[e].method.apply(this,t),s||(r[e].fired=!0)}return!0};O=function(){c.setTimeout(function(){o.useFlashBlock&&G();A();"function"===typeof o.onload&&o.onload.apply(c);o.waitForWindowLoad&&bt.add(c,"load",O)},1)};Tt=function(){if(void 0!==xt)return xt;var e=!1,t=navigator,n=t.plugins,r,i=c.ActiveXObject;if(n&&n.length)(t=t.mimeTypes)&&t["application/x-shockwave-flash"]&&t["application/x-shockwave-flash"].enabledPlugin&&t["application/x-shockwave-flash"].enabledPlugin.description&&(e=!0);else if(void 0!==i&&!l.match(/MSAppHost/i)){try{r=new i("ShockwaveFlash.ShockwaveFlash")}catch(s){}e=!!r}return xt=e};ht=function(){var e,t,n=o.audioFormats;if(Lt&&l.match(/os (1|2|3_0|3_1)/i))o.hasHTML5=!1,o.html5Only=!0,o.oMC&&(o.oMC.style.display="none");else if(o.useHTML5Audio&&(!o.html5||!o.html5.canPlayType))o.hasHTML5=!1;if(o.useHTML5Audio&&o.hasHTML5)for(t in n)if(n.hasOwnProperty(t)&&(n[t].required&&!o.html5.canPlayType(n[t].type)||o.preferFlash&&(o.flash[t]||o.flash[n[t].type])))e=!0;o.ignoreFlash&&(e=!1);o.html5Only=o.hasHTML5&&o.useHTML5Audio&&!e;return!o.html5Only};lt=function(e){var t,n,r=0;if(e instanceof Array){t=0;for(n=e.length;t<n;t++)if(e[t]instanceof Object){if(o.canPlayMIME(e[t].type)){r=t;break}}else if(o.canPlayURL(e[t])){r=t;break}e[r].url&&(e[r]=e[r].url);e=e[r]}return e};st=function(e){e._hasTimer||(e._hasTimer=!0,!Dt&&o.html5PollingInterval&&(null===ft&&0===at&&(ft=c.setInterval(ut,o.html5PollingInterval)),at++))};ot=function(e){e._hasTimer&&(e._hasTimer=!1,!Dt&&o.html5PollingInterval&&at--)};ut=function(){var e;if(null!==ft&&!at)return c.clearInterval(ft),ft=null,!1;for(e=o.soundIDs.length-1;0<=e;e--)o.sounds[o.soundIDs[e]].isHTML5&&o.sounds[o.soundIDs[e]]._hasTimer&&o.sounds[o.soundIDs[e]]._onTimer()};R=function(e){e=void 0!==e?e:{};"function"===typeof o.onerror&&o.onerror.apply(c,[{type:void 0!==e.type?e.type:null}]);void 0!==e.fatal&&e.fatal&&o.disable()};Nt=function(){if(!Pt||!Tt())return!1;var e=o.audioFormats,t,n;for(n in e)if(e.hasOwnProperty(n)&&("mp3"===n||"mp4"===n))if(o.html5[n]=!1,e[n]&&e[n].related)for(t=e[n].related.length-1;0<=t;t--)o.html5[e[n].related[t]]=!1};this._setSandboxType=function(){};this._externalInterfaceOK=function(){if(o.swfLoaded)return!1;(new Date).getTime();o.swfLoaded=!0;Bt=!1;Pt&&Nt();setTimeout(m,At?100:1)};q=function(e,t){function n(e,t){return'<param name="'+e+'" value="'+t+'" />'}if(b&&w)return!1;if(o.html5Only)return D(),o.oMC=f(o.movieID),m(),w=b=!0,!1;var r=t||o.url,i=o.altURL||r,s=I(),u=Y(),a=null,a=p.getElementsByTagName("html")[0],c,h,d,a=a&&a.dir&&a.dir.match(/rtl/i),e=void 0===e?o.id:e;D();o.url=V(It?r:i);t=o.url;o.wmode=!o.wmode&&o.useHighPerformance?"transparent":o.wmode;if(null!==o.wmode&&(l.match(/msie 8/i)||!At&&!o.useHighPerformance)&&navigator.platform.match(/win32|win64/i))o.wmode=null;s={name:e,id:e,src:t,quality:"high",allowScriptAccess:o.allowScriptAccess,bgcolor:o.bgColor,pluginspage:qt+"www.macromedia.com/go/getflashplayer",title:"JS/Flash audio component (SoundManager 2)",type:"application/x-shockwave-flash",wmode:o.wmode,hasPriority:"true"};o.debugFlash&&(s.FlashVars="debug=1");o.wmode||delete s.wmode;if(At)r=p.createElement("div"),h=['<object id="'+e+'" data="'+t+'" type="'+s.type+'" title="'+s.title+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+qt+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">',n("movie",t),n("AllowScriptAccess",o.allowScriptAccess),n("quality",s.quality),o.wmode?n("wmode",o.wmode):"",n("bgcolor",o.bgColor),n("hasPriority","true"),o.debugFlash?n("FlashVars",s.FlashVars):"","</object>"].join("");else for(c in r=p.createElement("embed"),s)s.hasOwnProperty(c)&&r.setAttribute(c,s[c]);z();u=Y();if(s=I())if(o.oMC=f(o.movieID)||p.createElement("div"),o.oMC.id)d=o.oMC.className,o.oMC.className=(d?d+" ":"movieContainer")+(u?" "+u:""),o.oMC.appendChild(r),At&&(c=o.oMC.appendChild(p.createElement("div")),c.className="sm2-object-box",c.innerHTML=h),w=!0;else{o.oMC.id=o.movieID;o.oMC.className="movieContainer "+u;c=u=null;o.useFlashBlock||(o.useHighPerformance?u={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"}:(u={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px"},a&&(u.left=Math.abs(parseInt(u.left,10))+"px")));Ot&&(o.oMC.style.zIndex=1e4);if(!o.debugFlash)for(d in u)u.hasOwnProperty(d)&&(o.oMC.style[d]=u[d]);try{At||o.oMC.appendChild(r),s.appendChild(o.oMC),At&&(c=o.oMC.appendChild(p.createElement("div")),c.className="sm2-object-box",c.innerHTML=h),w=!0}catch(v){throw Error(K("domError")+" \n"+v.toString())}}return b=!0};H=function(){if(o.html5Only)return q(),!1;if(a||!o.url)return!1;a=o.getMovie(o.id);a||($?(At?o.oMC.innerHTML=J:o.oMC.appendChild($),$=null,b=!0):q(o.id,o.url),a=o.getMovie(o.id));"function"===typeof o.oninitmovie&&setTimeout(o.oninitmovie,1);return!0};M=function(){setTimeout(_,1e3)};_=function(){var e,t=!1;if(!o.url||rt)return!1;rt=!0;bt.remove(c,"load",M);if(Bt&&!Ht)return!1;E||(e=o.getMoviePercent(),0<e&&100>e&&(t=!0));setTimeout(function(){e=o.getMoviePercent();if(t)return rt=!1,c.setTimeout(M,1),!1;!E&&jt&&(null===e?o.useFlashBlock||0===o.flashLoadTimeout?o.useFlashBlock&&G():X(!0):0!==o.flashLoadTimeout&&X(!0))},o.flashLoadTimeout)};P=function(){if(Ht||!Bt)return bt.remove(c,"focus",P),!0;Ht=jt=!0;rt=!1;M();bt.remove(c,"focus",P);return!0};kt=function(){};T=function(e){if(E)return!1;if(o.html5Only)return E=!0,O(),!0;var t=!0,n;if(!o.useFlashBlock||!o.flashLoadTimeout||o.getMoviePercent())E=!0,S&&(n={type:!xt&&ct?"NO_FLASH":"INIT_TIMEOUT"});if(S||e)o.useFlashBlock&&o.oMC&&(o.oMC.className=Y()+" "+(null===o.getMoviePercent()?"swf_timedout":"swf_error")),A({type:"ontimeout",error:n,ignoreInit:!0}),R(n),t=!1;S||(o.waitForWindowLoad&&!x?bt.add(c,"load",O):O());return t};v=function(){var e,t=o.setupOptions;for(e in t)t.hasOwnProperty(e)&&(void 0===o[e]?o[e]=t[e]:o[e]!==t[e]&&(o.setupOptions[e]=o[e]))};m=function(){if(E)return!1;if(o.html5Only)return E||(bt.remove(c,"load",o.beginDelayedInit),o.enabled=!0,T()),!0;H();try{a._externalInterfaceTest(!1),U(!0,o.flashPollingInterval||(o.useHighPerformance?10:50)),o.debugMode||a._disableDebug(),o.enabled=!0,o.html5Only||bt.add(c,"unload",d)}catch(e){return R({type:"JS_TO_FLASH_EXCEPTION",fatal:!0}),X(!0),T(),!1}T();bt.remove(c,"load",o.beginDelayedInit);return!0};B=function(){if(F)return!1;F=!0;v();z();!xt&&o.hasHTML5&&o.setup({useHTML5Audio:!0,preferFlash:!1});yt();o.html5.usingFlash=ht();ct=o.html5.usingFlash;kt();!xt&&ct&&o.setup({flashLoadTimeout:1});p.removeEventListener&&p.removeEventListener("DOMContentLoaded",B,!1);H();return!0};gt=function(){"complete"===p.readyState&&(B(),p.detachEvent("onreadystatechange",gt));return!0};j=function(){x=!0;bt.remove(c,"load",j)};Tt();bt.add(c,"focus",P);bt.add(c,"load",M);bt.add(c,"load",j);p.addEventListener?p.addEventListener("DOMContentLoaded",B,!1):p.attachEvent?p.attachEvent("onreadystatechange",gt):R({type:"NO_DOM2_EVENTS",fatal:!0})}var n=null;if(void 0===e.SM2_DEFER||!SM2_DEFER)n=new t;e.SoundManager=t;e.soundManager=n})(window);(function(e){e.fn.dcSlick=function(t){var n={classWrapper:"dc-slick",classContent:"dc-slick-content",width:260,idWrapper:"dc-slick-9",location:"left",align:"top",offset:"100px",speed:"slow",tabText:"Click",classTab:"tab",classOpen:"slick-open",classClose:"slick-close",classToggle:"slick-toggle",autoClose:true};var t=e.extend(n,t);var r=this;return r.each(function(t){function i(t){var r=e("."+n.classContent,t);var i=v.css("border-top-width");var s=v.css("border-right-width");var o=v.css("border-bottom-width");var u=v.css("border-left-width");var f=m.outerWidth(true);var l=f+"px";var h=m.outerHeight(true);var p=h+"px";var d=r.height();var g=r.outerHeight(true)-d;var y=C-h;e(t).addClass(n.location).addClass("align-"+n.align).css({position:"fixed",zIndex:1e4});if(x>y){d=y-T-g;N=y+"px"}r.css({height:d+"px"});if(n.location=="left"){e(t).css({marginLeft:"-"+S});m.css({marginRight:"-"+l});e(t).css({top:n.offset})}if(n.location=="right"){e(t).css({marginRight:"-"+S});m.css({marginLeft:"-"+l});e(t).css({top:n.offset})}if(n.location=="top"){e(t).css({marginTop:"-"+N});m.css({marginBottom:"-"+p});if(n.align=="left"){e(t).css({left:n.offset});m.css({left:0})}else{e(t).css({right:n.offset});m.css({right:0})}}if(n.location=="bottom"){e(t).css({marginBottom:"-"+N});m.css({marginTop:"-"+p});if(n.align=="left"){e(t).css({left:n.offset});m.css({left:0})}else{e(t).css({right:n.offset});m.css({right:0})}}}function s(){v.css({zIndex:1e4});if(v.hasClass("active")){if(n.location=="bottom"){v.animate({marginBottom:"-"+N},n.speed)}if(n.location=="top"){v.animate({marginTop:"-"+N},n.speed)}if(n.location=="left"){v.animate({marginLeft:"-"+S},n.speed)}if(n.location=="right"){v.animate({marginRight:"-"+S},n.speed)}v.removeClass("active")}}function o(){e("."+n.classWrapper).css({zIndex:1e4});v.css({zIndex:10001});if(n.location=="bottom"){v.animate({marginBottom:"-=5px"},"fast").animate({marginBottom:0},n.speed)}if(n.location=="top"){v.animate({marginTop:"-=5px"},"fast").animate({marginTop:0},n.speed)}if(n.location=="left"){v.animate({marginLeft:"-=5px"},"fast").animate({marginLeft:0},n.speed)}if(n.location=="right"){v.animate({marginRight:"-=5px"},"fast").animate({marginRight:0},n.speed)}v.addClass("active")}var u=r.html();r.css("float","left");var f=r.width();var l='<div class="'+n.classTab+'"><span>'+n.tabText+"</span></div>";e(this).remove();var h=n.idWrapper;var p='<div id="'+h+'" class="'+n.classWrapper+'">'+l+'<div class="'+n.classContent+'">'+u+"</div></div>";e("body").append(p);var v=e("#"+h);var m=e("."+n.classTab,v);m.css({position:"absolute"});var g=e("."+n.classOpen);var y=e("."+n.classClose);var b=e("."+n.classToggle);var w=v.height();var E=v.outerWidth();var S=E+"px";var x=v.outerHeight();var T=x-w;var N=x+"px";var C=e(window).height();i(v);if(n.autoClose==true){e("body").mouseup(function(t){if(v.hasClass("active")){if(!e(t.target).parents("#"+n.idWrapper+"."+n.classWrapper).length){if(!(e(t.target).hasClass(n.classOpen)||e(t.target).hasClass(n.classToggle))){s();FreiChat.frei_tab_click()}}}})}m.click(function(){if(v.hasClass("active")){s()}else{o()}});e(g).click(function(e){o();e.preventDefault()});e(y).click(function(e){if(v.hasClass("active")){s()}e.preventDefault()});e(b).click(function(e){if(v.hasClass("active")){s()}else{o()}e.preventDefault()})})}})(jQuery);(function(e){e.fn.dragx=function(t){var n={repos:false,draggable:true,containment:"document",scroll:false,handle:this,stack:this,animate:true,id:freichatusers,restore:false,restoreElem:"#frei_",speed:500,right:"0px"};var r=e.extend(n,t);r.handle="#chatboxhead_"+r.id;var i=e(this);var s=Get_Cookie("frei_stat_"+r.id);if(s!=null){s=s.split("&")}else{s=new Array("en","closed","max","clear",null,null)}if(r.draggable==true){i.draggable();i.draggable({start:function(){i.css("height",$jn("#frei_"+r.id).height())},stop:function(e,t){var n=i.offset().top-$jn(window).scrollTop();if(r.animate==true){if(n<0){i.animate({top:"0px"},r.speed,function(){Set_Cookie("frei_stat_"+r.id,s[0]+"&"+s[1]+"&"+s[2]+"&"+s[3]+"&"+n+"&"+i.offset().left)})}else{Set_Cookie("frei_stat_"+r.id,s[0]+"&"+s[1]+"&"+s[2]+"&"+s[3]+"&"+n+"&"+i.offset().left)}}}},{containment:r.containment},{scroll:r.scroll},{handle:r.handle},{cursor:"move"})}else{i.draggable("disable")}if(r.repos==true){if(s[4]!=0&&s[5]!=0)i.css({top:s[4]+"px",left:s[5]+"px"})}if(r.restore==true){i.css({top:"auto",left:"auto"});i.animate({bottom:"0px",right:r.right},r.speed,function(){})}return i}})(jQuery)