(function(window){var soundManager=null;function SoundManager(smURL,smID){this.flashVersion=8;this.debugMode=true;this.debugFlash=false;this.useConsole=true;this.consoleOnly=false;this.waitForWindowLoad=false;this.nullURL='about:blank';this.allowPolling=true;this.useFastPolling=false;this.useMovieStar=true;this.bgColor='#ffffff';this.useHighPerformance=false;this.flashLoadTimeout=1000;this.wmode=null;this.allowFullScreen=true;this.allowScriptAccess='always';this.useFlashBlock=false;this.useHTML5Audio=false;this.html5Test=/^probably$/i;this.audioFormats={'mp3':{type:['audio/mpeg; codecs="mp3"','audio/mpeg','audio/mp3','audio/MPA','audio/mpa-robust'],required:true},'mp4':{related:['aac','m4a'],type:['audio/mp4; codecs="mp4a.40.2"','audio/aac','audio/x-m4a','audio/MP4A-LATM','audio/mpeg4-generic'],required:true},'ogg':{type:['audio/ogg; codecs=vorbis'],required:false},'wav':{type:['audio/wav; codecs="1"','audio/wav','audio/wave','audio/x-wav'],required:false}};this.defaultOptions={'autoLoad':false,'stream':true,'autoPlay':false,'loops':1,'onid3':null,'onload':null,'whileloading':null,'onplay':null,'onpause':null,'onresume':null,'whileplaying':null,'onstop':null,'onfinish':null,'onbeforefinish':null,'onbeforefinishtime':5000,'onbeforefinishcomplete':null,'onjustbeforefinish':null,'onjustbeforefinishtime':200,'multiShot':true,'multiShotEvents':false,'position':null,'pan':0,'type':null,'volume':100};this.flash9Options={'isMovieStar':null,'usePeakData':false,'useWaveformData':false,'useEQData':false,'onbufferchange':null,'ondataerror':null};this.movieStarOptions={'onmetadata':null,'useVideo':false,'bufferTime':3,'serverURL':null,'onconnect':null};this.version=null;this.versionNumber='V2.96a.20100624';this.movieURL=null;this.url=(smURL||null);this.altURL=null;this.swfLoaded=false;this.enabled=false;this.o=null;this.movieID='sm2-container';this.id=(smID||'sm2movie');this.swfCSS={swfDefault:'movieContainer',swfError:'swf_error',swfTimedout:'swf_timedout',swfUnblocked:'swf_unblocked',sm2Debug:'sm2_debug',highPerf:'high_performance',flashDebug:'flash_debug'};this.oMC=null;this.sounds={};this.soundIDs=[];this.muted=false;this.isFullScreen=false;this.isIE=(navigator.userAgent.match(/MSIE/i));this.isSafari=(navigator.userAgent.match(/safari/i));this.debugID='soundmanager-debug';this.debugURLParam=/([#?&])debug=1/i;this.specialWmodeCase=false;this.didFlashBlock=false;this.filePattern=null;this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.baseMimeTypes=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.netStreamMimeTypes=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.netStreamTypes=['aac','flv','mov','mp4','m4v','f4v','m4a','mp4v','3gp','3g2'];this.netStreamPattern=new RegExp('\\.('+this.netStreamTypes.join('|')+')(\\?.*)?$','i');this.mimePattern=this.baseMimeTypes;this.features={buffering:false,peakData:false,waveformData:false,eqData:false,movieStar:false};this.sandbox={'type':null,'types':{'remote':'remote (domain-based) rules','localWithFile':'local with file access (no internet access)','localWithNetwork':'local with network (internet access only, no local access)','localTrusted':'local, trusted (local+internet access)'},'description':null,'noRemote':null,'noLocal':null};this.hasHTML5=null;this.html5={usingFlash:null};this.ignoreFlash=false;var SMSound,_s=this,_sm='soundManager',_id,_ua=navigator.userAgent,_wl=window.location.href.toString(),_fV=this.flashVersion,_doNothing,_init,_onready=[],_debugOpen=true,_debugTS,_didAppend=false,_appendSuccess=false,_didInit=false,_disabled=false,_windowLoaded=false,_wDS,_wdCount,_initComplete,_mergeObjects,_addOnReady,_processOnReady,_initUserOnload,_go,_waitForEI,_setVersionInfo,_handleFocus,_beginInit,_strings,_initMovie,_dcLoaded,_didDCLoaded,_getDocument,_createMovie,_setPolling,_debugLevels=['log','info','warn','error'],_defaultFlashVersion=8,_disableObject,_failSafely,_normalizeMovieURL,_oRemoved=null,_oRemovedHTML=null,_str,_flashBlockHandler,_getSWFCSS,_toggleDebug,_loopFix,_complain,_idCheck,_waitingForEI=false,_initPending=false,_smTimer,_onTimer,_startTimer,_stopTimer,_needsFlash=null,_featureCheck,_html5OK,_html5Only=false,_html5CanPlay,_html5Ext,_dcIE,_testHTML5,_is_pre=_ua.match(/pre\//i),_iPadOrPhone=_ua.match(/(ipad|iphone)/i),_isMobile=(_ua.match(/mobile/i)||_is_pre||_iPadOrPhone),_hasConsole=(typeof console!=='undefined'&&typeof console.log!=='undefined'),_isFocused=(typeof document.hasFocus!=='undefined'?document.hasFocus():null),_tryInitOnFocus=(typeof document.hasFocus==='undefined'&&this.isSafari),_okToDisable=!_tryInitOnFocus;this._use_maybe=(_wl.match(/sm2\-useHTML5Maybe\=1/i));this._overHTTP=(document.location?document.location.protocol.match(/http/i):null);this.useAltURL=!this._overHTTP;if(_iPadOrPhone||_is_pre){_s.useHTML5Audio=true;_s.ignoreFlash=true;}
if(_is_pre||this._use_maybe){_s.html5Test=/^(probably|maybe)$/i;}
(function(){var a='#sm2-usehtml5audio=',l=_wl,b=null;if(l.indexOf(a)!==-1){b=(l.substr(l.indexOf(a)+a.length)==='1');if(typeof console!=='undefined'&&typeof console.log!=='undefined'){console.log((b?'Enabling ':'Disabling ')+'useHTML5Audio via URL parameter');}
_s.useHTML5Audio=b;}}());this.supported=function(){return(_needsFlash?(_didInit&&!_disabled):(_s.useHTML5Audio&&_s.hasHTML5));};this.getMovie=function(smID){return _s.isIE?window[smID]:(_s.isSafari?_id(smID)||document[smID]:_id(smID));};this.loadFromXML=function(sXmlUrl){try{_s.o._loadFromXML(sXmlUrl);}catch(e){_failSafely();return true;}};this.createSound=function(oOptions){var _cs='soundManager.createSound(): ',thisOptions=null,oSound=null,_tO=null;if(!_didInit){throw _complain(_cs+_str('notReady'),arguments.callee.caller);}
if(arguments.length===2){oOptions={'id':arguments[0],'url':arguments[1]};}
thisOptions=_mergeObjects(oOptions);_tO=thisOptions;if(_tO.id.toString().charAt(0).match(/^[0-9]$/)){_s._wD(_cs+_str('badID',_tO.id),2);}
_s._wD(_cs+_tO.id+' ('+_tO.url+')',1);if(_idCheck(_tO.id,true)){_s._wD(_cs+_tO.id+' exists',1);return _s.sounds[_tO.id];}
function make(){thisOptions=_loopFix(thisOptions);_s.sounds[_tO.id]=new SMSound(_tO);_s.soundIDs.push(_tO.id);return _s.sounds[_tO.id];}
if(_html5OK(_tO)){oSound=make();_s._wD('Loading sound '+_tO.id+' from HTML5');oSound._setup_html5(_tO);}else{if(_fV>8&&_s.useMovieStar){if(_tO.isMovieStar===null){_tO.isMovieStar=((_tO.serverURL||(_tO.type?_tO.type.match(_s.netStreamPattern):false)||_tO.url.match(_s.netStreamPattern))?true:false);}
if(_tO.isMovieStar){_s._wD(_cs+'using MovieStar handling');}
if(_tO.isMovieStar){if(_tO.usePeakData){_wDS('noPeak');_tO.usePeakData=false;}
if(_tO.loops>1){_wDS('noNSLoop');}}}
oSound=make();if(_fV===8){_s.o._createSound(_tO.id,_tO.onjustbeforefinishtime,_tO.loops||1);}else{_s.o._createSound(_tO.id,_tO.url,_tO.onjustbeforefinishtime,_tO.usePeakData,_tO.useWaveformData,_tO.useEQData,_tO.isMovieStar,(_tO.isMovieStar?_tO.useVideo:false),(_tO.isMovieStar?_tO.bufferTime:false),_tO.loops||1,_tO.serverURL,_tO.duration||null,_tO.totalBytes||null,_tO.autoPlay,true);if(!_tO.serverURL){oSound.connected=true;if(_tO.onconnect){_tO.onconnect.apply(oSound);}}}}
if(_tO.autoLoad||_tO.autoPlay){if(oSound){if(_s.isHTML5){oSound.autobuffer='auto';oSound.preload='auto';}else{oSound.load(_tO);}}}
if(_tO.autoPlay){oSound.play();}
return oSound;};this.createVideo=function(oOptions){var fN='soundManager.createVideo(): ';if(arguments.length===2){oOptions={'id':arguments[0],'url':arguments[1]};}
if(_fV>=9){oOptions.isMovieStar=true;oOptions.useVideo=true;}else{_s._wD(fN+_str('f9Vid'),2);return false;}
if(!_s.useMovieStar){_s._wD(fN+_str('noMS'),2);}
return _s.createSound(oOptions);};this.destroySound=function(sID,bFromSound){if(!_idCheck(sID)){return false;}
for(var i=0;i<_s.soundIDs.length;i++){if(_s.soundIDs[i]===sID){_s.soundIDs.splice(i,1);continue;}}
_s.sounds[sID].unload();if(!bFromSound){_s.sounds[sID].destruct();}
delete _s.sounds[sID];};this.destroyVideo=this.destroySound;this.load=function(sID,oOptions){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].load(oOptions);};this.unload=function(sID){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].unload();};this.play=function(sID,oOptions){var fN='soundManager.play(): ';if(!_didInit){throw _complain(fN+_str('notReady'),arguments.callee.caller);}
if(!_idCheck(sID)){if(!(oOptions instanceof Object)){oOptions={url:oOptions};}
if(oOptions&&oOptions.url){_s._wD(fN+'attempting to create "'+sID+'"',1);oOptions.id=sID;return _s.createSound(oOptions).play();}else{return false;}}
return _s.sounds[sID].play(oOptions);};this.start=this.play;this.setPosition=function(sID,nMsecOffset){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].setPosition(nMsecOffset);};this.stop=function(sID){if(!_idCheck(sID)){return false;}
_s._wD('soundManager.stop('+sID+')',1);return _s.sounds[sID].stop();};this.stopAll=function(){_s._wD('soundManager.stopAll()',1);for(var oSound in _s.sounds){if(_s.sounds[oSound]instanceof SMSound){_s.sounds[oSound].stop();}}};this.pause=function(sID){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].pause();};this.pauseAll=function(){for(var i=_s.soundIDs.length;i--;){_s.sounds[_s.soundIDs[i]].pause();}};this.resume=function(sID){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].resume();};this.resumeAll=function(){for(var i=_s.soundIDs.length;i--;){_s.sounds[_s.soundIDs[i]].resume();}};this.togglePause=function(sID){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].togglePause();};this.setPan=function(sID,nPan){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].setPan(nPan);};this.setVolume=function(sID,nVol){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].setVolume(nVol);};this.mute=function(sID){var fN='soundManager.mute(): ',i=0;if(typeof sID!=='string'){sID=null;}
if(!sID){_s._wD(fN+'Muting all sounds');for(i=_s.soundIDs.length;i--;){_s.sounds[_s.soundIDs[i]].mute();}
_s.muted=true;}else{if(!_idCheck(sID)){return false;}
_s._wD(fN+'Muting "'+sID+'"');return _s.sounds[sID].mute();}};this.muteAll=function(){_s.mute();};this.unmute=function(sID){var fN='soundManager.unmute(): ',i;if(typeof sID!=='string'){sID=null;}
if(!sID){_s._wD(fN+'Unmuting all sounds');for(i=_s.soundIDs.length;i--;){_s.sounds[_s.soundIDs[i]].unmute();}
_s.muted=false;}else{if(!_idCheck(sID)){return false;}
_s._wD(fN+'Unmuting "'+sID+'"');return _s.sounds[sID].unmute();}};this.unmuteAll=function(){_s.unmute();};this.toggleMute=function(sID){if(!_idCheck(sID)){return false;}
return _s.sounds[sID].toggleMute();};this.getMemoryUse=function(){if(_fV===8){return 0;}
if(_s.o){return parseInt(_s.o._getMemoryUse(),10);}};this.disable=function(bNoDisable){if(typeof bNoDisable==='undefined'){bNoDisable=false;}
if(_disabled){return false;}
_disabled=true;_wDS('shutdown',1);for(var i=_s.soundIDs.length;i--;){_disableObject(_s.sounds[_s.soundIDs[i]]);}
_initComplete(bNoDisable);if(window.removeEventListener){window.removeEventListener('load',_initUserOnload,false);}};this.canPlayMIME=function(sMIME){var result;if(_s.hasHTML5){result=_html5CanPlay({type:sMIME});}
if(!_needsFlash||result){return result;}else{return(sMIME?(sMIME.match(_s.mimePattern)?true:false):null);}};this.canPlayURL=function(sURL){var result;if(_s.hasHTML5){result=_html5CanPlay(sURL);}
if(!_needsFlash||result){return result;}else{return(sURL?(sURL.match(_s.filePattern)?true:false):null);}};this.canPlayLink=function(oLink){if(typeof oLink.type!=='undefined'&&oLink.type){if(_s.canPlayMIME(oLink.type)){return true;}}
return _s.canPlayURL(oLink.href);};this.getSoundById=function(sID,suppressDebug){if(!sID){throw new Error('SoundManager.getSoundById(): sID is null/undefined');}
var result=_s.sounds[sID];if(!result&&!suppressDebug){_s._wD('"'+sID+'" is an invalid sound ID.',2);}
return result;};this.onready=function(oMethod,oScope){if(oMethod&&oMethod instanceof Function){if(_didInit){_wDS('queue');}
if(!oScope){oScope=window;}
_addOnReady(oMethod,oScope);_processOnReady();return true;}else{throw _str('needFunction');}};this.oninitmovie=function(){};this.onload=function(){_s._wD('soundManager.onload()',1);};this.onerror=function(){};this.getMoviePercent=function(){return(_s.o&&typeof _s.o.PercentLoaded!=='undefined'?_s.o.PercentLoaded():null);};this._writeDebug=function(sText,sType,bTimestamp){var sDID='soundmanager-debug',o,oItem,sMethod;if(!_s.debugMode){return false;}
if(typeof bTimestamp!=='undefined'&&bTimestamp){sText=sText+' | '+new Date().getTime();}
if(_hasConsole&&_s.useConsole){sMethod=_debugLevels[sType];if(typeof console[sMethod]!=='undefined'){console[sMethod](sText);}else{console.log(sText);}
if(_s.useConsoleOnly){return true;}}
try{o=_id(sDID);if(!o){return false;}
oItem=document.createElement('div');if(++_wdCount%2===0){oItem.className='sm2-alt';}
if(typeof sType==='undefined'){sType=0;}else{sType=parseInt(sType,10);}
oItem.appendChild(document.createTextNode(sText));if(sType){if(sType>=2){oItem.style.fontWeight='bold';}
if(sType===3){oItem.style.color='#ff3333';}}
o.insertBefore(oItem,o.firstChild);}catch(e){}
o=null;};this._wD=this._writeDebug;this._debug=function(){_wDS('currentObj',1);for(var i=0,j=_s.soundIDs.length;i<j;i++){_s.sounds[_s.soundIDs[i]]._debug();}};this.reboot=function(){_s._wD('soundManager.reboot()');if(_s.soundIDs.length){_s._wD('Destroying '+_s.soundIDs.length+' SMSound objects...');}
for(var i=_s.soundIDs.length;i--;){_s.sounds[_s.soundIDs[i]].destruct();}
try{if(_s.isIE){_oRemovedHTML=_s.o.innerHTML;}
_oRemoved=_s.o.parentNode.removeChild(_s.o);_s._wD('Flash movie removed.');}catch(e){_wDS('badRemove',2);}
_oRemovedHTML=null;_oRemoved=null;_s.enabled=false;_didInit=false;_waitingForEI=false;_initPending=false;_didAppend=false;_appendSuccess=false;_disabled=false;_s.swfLoaded=false;_s.soundIDs={};_s.sounds=[];_s.o=null;for(i=_onready.length;i--;){_onready[i].fired=false;}
_s._wD(_sm+': Rebooting...');window.setTimeout(function(){_s.beginDelayedInit();},20);};this.destruct=function(){_s._wD('soundManager.destruct()');_s.disable(true);};this.beginDelayedInit=function(){_windowLoaded=true;_dcLoaded();setTimeout(_waitForEI,500);setTimeout(_beginInit,20);};_html5OK=function(iO){return((iO.type?_html5CanPlay({type:iO.type}):false)||_html5CanPlay(iO.url));};_html5CanPlay=function(sURL){if(!_s.useHTML5Audio||!_s.hasHTML5){return false;}
var result,mime,fileExt,item,aF=_s.audioFormats;if(!_html5Ext){_html5Ext=[];for(item in aF){if(aF.hasOwnProperty(item)){_html5Ext.push(item);if(aF[item].related){_html5Ext=_html5Ext.concat(aF[item].related);}}}
_html5Ext=new RegExp('\\.('+_html5Ext.join('|')+')','i');}
mime=(typeof sURL.type!=='undefined'?sURL.type:null);fileExt=(typeof sURL==='string'?sURL.toLowerCase().match(_html5Ext):null);if(!fileExt||!fileExt.length){if(!mime){return false;}}else{fileExt=fileExt[0].substr(1);}
if(fileExt&&typeof _s.html5[fileExt]!=='undefined'){return _s.html5[fileExt];}else{if(!mime){if(fileExt&&_s.html5[fileExt]){return _s.html5[fileExt];}else{mime='audio/'+fileExt;}}
result=_s.html5.canPlayType(mime);_s.html5[fileExt]=result;return result;}};_testHTML5=function(){if(!_s.useHTML5Audio||typeof Audio==='undefined'){return false;}
var a=(typeof Audio!=='undefined'?new Audio():null),item,support={},aF,i;function _cp(m){var canPlay,i,j,isOK=false;if(!a||typeof a.canPlayType!=='function'){return false;}
if(m instanceof Array){for(i=0,j=m.length;i<j&&!isOK;i++){if(_s.html5[m[i]]||a.canPlayType(m[i]).match(_s.html5Test)){isOK=true;_s.html5[m[i]]=true;}}
return isOK;}else{canPlay=(a&&typeof a.canPlayType==='function'?a.canPlayType(m):false);return(canPlay&&(canPlay.match(_s.html5Test)?true:false));}}
aF=_s.audioFormats;for(item in aF){if(aF.hasOwnProperty(item)){support[item]=_cp(aF[item].type);if(aF[item]&&aF[item].related){for(i=0;i<aF[item].related.length;i++){_s.html5[aF[item].related[i]]=support[item];}}}}
support.canPlayType=(a?_cp:null);_s.html5=_mergeObjects(_s.html5,support);};_strings={notReady:'Not loaded yet - wait for soundManager.onload() before calling sound-related methods',appXHTML:_sm+'::createMovie(): appendChild/innerHTML set failed. May be app/xhtml+xml DOM-related.',spcWmode:_sm+'::createMovie(): Removing wmode, preventing win32 below-the-fold SWF loading issue',swf404:_sm+': Verify that %s is a valid path.',tryDebug:'Try '+_sm+'.debugFlash = true for more security details (output goes to SWF.)',checkSWF:'See SWF output for more debug info.',localFail:_sm+': Non-HTTP page ('+document.location.protocol+' URL?) Review Flash player security settings for this special case:\nhttp://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html\nMay need to add/allow path, eg. c:/sm2/ or /users/me/sm2/',waitFocus:_sm+': Special case: Waiting for focus-related event..',waitImpatient:_sm+': Getting impatient, still waiting for Flash%s...',waitForever:_sm+': Waiting indefinitely for Flash (will recover if unblocked)...',needFunction:_sm+'.onready(): Function object expected',badID:'Warning: Sound ID "%s" should be a string, starting with a non-numeric character',fl9Vid:'flash 9 required for video. Exiting.',noMS:'MovieStar mode not enabled. Exiting.',currentObj:'--- '+_sm+'._debug(): Current sound objects ---',waitEI:_sm+'::initMovie(): Waiting for ExternalInterface call from Flash..',waitOnload:_sm+': Waiting for window.onload()',docLoaded:_sm+': Document already loaded',onload:_sm+'::initComplete(): calling soundManager.onload()',onloadOK:_sm+'.onload() complete',init:'-- '+_sm+'::init() --',didInit:_sm+'::init(): Already called?',flashJS:_sm+': Attempting to call Flash from JS..',noPolling:_sm+': Polling (whileloading()/whileplaying() support) is disabled.',secNote:'Flash security note: Network/internet URLs will not load due to security restrictions. Access can be configured via Flash Player Global Security Settings Page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html',badRemove:'Warning: Failed to remove flash movie.',noPeak:'Warning: peakData features unsupported for movieStar formats',shutdown:_sm+'.disable(): Shutting down',queue:_sm+'.onready(): Queueing handler',smFail:_sm+': Failed to initialise.',smError:'SMSound.load(): Exception: JS-Flash communication failed, or JS error.',fbTimeout:'No flash response, applying .'+_s.swfCSS.swfTimedout+' CSS..',fbLoaded:'Flash loaded',manURL:'SMSound.load(): Using manually-assigned URL',onURL:_sm+'.load(): current URL already assigned.',badFV:'soundManager.flashVersion must be 8 or 9. "%s" is invalid. Reverting to %s.',as2loop:'Note: Setting stream:false so looping can work (flash 8 limitation)',noNSLoop:'Note: Looping not implemented for MovieStar formats',needfl9:'Note: Switching to flash 9, required for MP4 formats.'};_id=function(sID){return document.getElementById(sID);};_wdCount=0;_str=function(){var params=Array.prototype.slice.call(arguments),o=params.shift(),str=(_strings&&_strings[o]?_strings[o]:''),i,j;if(str&&params&&params.length){for(i=0,j=params.length;i<j;i++){str=str.replace('%s',params[i]);}}
return str;};_loopFix=function(sOpt){if(_fV===8&&sOpt.loops>1&&sOpt.stream){_wDS('as2loop');sOpt.stream=false;}
return sOpt;};_complain=function(sMsg,oCaller){var sPre='Error: ',errorDesc;if(!oCaller){return new Error(sPre+sMsg);}
if(typeof console!=='undefined'&&typeof console.trace!=='undefined'){console.trace();}
errorDesc=sPre+sMsg+'. \nCaller: '+oCaller.toString();return new Error(errorDesc);};_doNothing=function(){return false;};_disableObject=function(o){for(var oProp in o){if(o.hasOwnProperty(oProp)&&typeof o[oProp]==='function'){o[oProp]=_doNothing;}}
oProp=null;};_failSafely=function(bNoDisable){if(typeof bNoDisable==='undefined'){bNoDisable=false;}
if(_disabled||bNoDisable){_wDS('smFail',2);_s.disable(bNoDisable);}};_normalizeMovieURL=function(smURL){var urlParams=null;if(smURL){if(smURL.match(/\.swf(\?\.*)?$/i)){urlParams=smURL.substr(smURL.toLowerCase().lastIndexOf('.swf?')+4);if(urlParams){return smURL;}}else if(smURL.lastIndexOf('/')!==smURL.length-1){smURL=smURL+'/';}}
return(smURL&&smURL.lastIndexOf('/')!==-1?smURL.substr(0,smURL.lastIndexOf('/')+1):'./')+_s.movieURL;};_setVersionInfo=function(){if(_fV!==8&&_fV!==9){_s._wD(_str('badFV',_fV,_defaultFlashVersion));_s.flashVersion=_defaultFlashVersion;}
var isDebug=(_s.debugMode||_s.debugFlash?'_debug.swf':'.swf');if(_s.flashVersion<9&&_s.useHTML5Audio&&_s.audioFormats.mp4.required){_s._wD(_str('needfl9'));_s.flashVersion=9;}
_fV=_s.flashVersion;_s.version=_s.versionNumber+(_html5Only?' (HTML5-only mode)':(_fV===9?' (AS3/Flash 9)':' (AS2/Flash 8)'));if(_fV>8){_s.defaultOptions=_mergeObjects(_s.defaultOptions,_s.flash9Options);_s.features.buffering=true;}
if(_fV>8&&_s.useMovieStar){_s.defaultOptions=_mergeObjects(_s.defaultOptions,_s.movieStarOptions);_s.filePatterns.flash9=new RegExp('\\.(mp3|'+_s.netStreamTypes.join('|')+')(\\?.*)?$','i');_s.mimePattern=_s.netStreamMimeTypes;_s.features.movieStar=true;}else{_s.features.movieStar=false;}
_s.filePattern=_s.filePatterns[(_fV!==8?'flash9':'flash8')];_s.movieURL=(_fV===8?'soundmanager2.swf':'soundmanager2_flash9.swf').replace('.swf',isDebug);_s.features.peakData=_s.features.waveformData=_s.features.eqData=(_fV>8);};_getDocument=function(){return(document.body?document.body:(document.documentElement?document.documentElement:document.getElementsByTagName('div')[0]));};_setPolling=function(bPolling,bHighPerformance){if(!_s.o||!_s.allowPolling){return false;}
_s.o._setPolling(bPolling,bHighPerformance);};function _initDebug(){if(_s.debugURLParam.test(_wl)){_s.debugMode=true;}
var oD,oDebug,oTarget,oToggle,tmp;if(_s.debugMode){oD=document.createElement('div');oD.id=_s.debugID+'-toggle';oToggle={position:'fixed',bottom:'0px',right:'0px',width:'1.2em',height:'1.2em',lineHeight:'1.2em',margin:'2px',textAlign:'center',border:'1px solid #999',cursor:'pointer',background:'#fff',color:'#333',zIndex:10001};oD.appendChild(document.createTextNode('-'));oD.onclick=_toggleDebug;oD.title='Toggle SM2 debug console';if(_ua.match(/msie 6/i)){oD.style.position='absolute';oD.style.cursor='hand';}
for(tmp in oToggle){if(oToggle.hasOwnProperty(tmp)){oD.style[tmp]=oToggle[tmp];}}}
if(_s.debugMode&&!_id(_s.debugID)&&((!_hasConsole||!_s.useConsole)||(_s.useConsole&&_hasConsole&&!_s.consoleOnly))){oDebug=document.createElement('div');oDebug.id=_s.debugID;oDebug.style.display=(_s.debugMode?'block':'none');if(_s.debugMode&&!_id(oD.id)){try{oTarget=_getDocument();oTarget.appendChild(oD);}catch(e2){throw new Error(_str('appXHTML'));}
oTarget.appendChild(oDebug);}}
oTarget=null;_initDebug=function(){};}
_createMovie=function(smID,smURL){var specialCase=null,remoteURL=(smURL?smURL:_s.url),localURL=(_s.altURL?_s.altURL:remoteURL),oEmbed,oMovie,oTarget,tmp,movieHTML,oEl,extraClass,s,x,sClass,side='100%';smID=(typeof smID==='undefined'?_s.id:smID);if(_didAppend&&_appendSuccess){return false;}
function _initMsg(){_s._wD('-- SoundManager 2 '+_s.version+(!_html5Only&&_s.useHTML5Audio?(_s.hasHTML5?' + HTML5 audio':', no HTML5 audio support'):'')+(_s.useMovieStar?', MovieStar mode':'')+(_s.useHighPerformance?', high performance mode, ':', ')+((_s.useFastPolling?'fast':'normal')+' polling')+(_s.wmode?', wmode: '+_s.wmode:'')+(_s.debugFlash?', flash debug mode':'')+(_s.useFlashBlock?', flashBlock mode':'')+' --',1);}
if(_html5Only){_setVersionInfo();_initMsg();_s.oMC=_id(_s.movieID);_init();_didAppend=true;_appendSuccess=true;return false;}
_didAppend=true;_setVersionInfo();_s.url=_normalizeMovieURL(this._overHTTP?remoteURL:localURL);smURL=_s.url;if(_s.useHighPerformance&&_s.useMovieStar&&_s.defaultOptions.useVideo===true){specialCase='soundManager note: disabling highPerformance, not applicable with movieStar mode+useVideo';_s.useHighPerformance=false;}
_s.wmode=(!_s.wmode&&_s.useHighPerformance&&!_s.useMovieStar?'transparent':_s.wmode);if(_s.wmode!==null&&!_s.isIE&&!_s.useHighPerformance&&navigator.platform.match(/win32/i)){_s.specialWmodeCase=true;_wDS('spcWmode');_s.wmode=null;}
if(_fV===8){_s.allowFullScreen=false;}
oEmbed={name:smID,id:smID,src:smURL,width:side,height:side,quality:'high',allowScriptAccess:_s.allowScriptAccess,bgcolor:_s.bgColor,pluginspage:'http://www.macromedia.com/go/getflashplayer',type:'application/x-shockwave-flash',wmode:_s.wmode,allowfullscreen:(_s.allowFullScreen?'true':'false')};if(_s.debugFlash){oEmbed.FlashVars='debug=1';}
if(!_s.wmode){delete oEmbed.wmode;}
if(_s.isIE){oMovie=document.createElement('div');movieHTML='<object id="'+smID+'" data="'+smURL+'" type="'+oEmbed.type+'" width="'+oEmbed.width+'" height="'+oEmbed.height+'"><param name="movie" value="'+smURL+'" /><param name="AllowScriptAccess" value="'+_s.allowScriptAccess+'" /><param name="quality" value="'+oEmbed.quality+'" />'+(_s.wmode?'<param name="wmode" value="'+_s.wmode+'" /> ':'')+'<param name="bgcolor" value="'+_s.bgColor+'" /><param name="allowFullScreen" value="'+oEmbed.allowFullScreen+'" />'+(_s.debugFlash?'<param name="FlashVars" value="'+oEmbed.FlashVars+'" />':'')+'<!-- --></object>';}else{oMovie=document.createElement('embed');for(tmp in oEmbed){if(oEmbed.hasOwnProperty(tmp)){oMovie.setAttribute(tmp,oEmbed[tmp]);}}}
_initDebug();extraClass=_getSWFCSS();oTarget=_getDocument();if(oTarget){_s.oMC=_id(_s.movieID)?_id(_s.movieID):document.createElement('div');if(!_s.oMC.id){_s.oMC.id=_s.movieID;_s.oMC.className=_s.swfCSS.swfDefault+' '+extraClass;s=null;oEl=null;if(!_s.useFlashBlock){if(_s.useHighPerformance){s={position:'fixed',width:'8px',height:'8px',bottom:'0px',left:'0px',overflow:'hidden'};}else{s={position:'absolute',width:'6px',height:'6px',top:'-9999px',left:'-9999px'};}}
x=null;if(!_s.debugFlash){for(x in s){if(s.hasOwnProperty(x)){_s.oMC.style[x]=s[x];}}}
try{if(!_s.isIE){_s.oMC.appendChild(oMovie);}
oTarget.appendChild(_s.oMC);if(_s.isIE){oEl=_s.oMC.appendChild(document.createElement('div'));oEl.className='sm2-object-box';oEl.innerHTML=movieHTML;}
_appendSuccess=true;}catch(e){throw new Error(_str('appXHTML'));}}else{sClass=_s.oMC.className;_s.oMC.className=(sClass?sClass+' ':_s.swfCSS.swfDefault)+(extraClass?' '+extraClass:'');_s.oMC.appendChild(oMovie);if(_s.isIE){oEl=_s.oMC.appendChild(document.createElement('div'));oEl.className='sm2-object-box';oEl.innerHTML=movieHTML;}
_appendSuccess=true;}}
if(specialCase){_s._wD(specialCase);}
_initMsg();_s._wD('soundManager::createMovie(): Trying to load '+smURL+(!this._overHTTP&&_s.altURL?' (alternate URL)':''),1);};_idCheck=this.getSoundById;_wDS=function(o,errorLevel){if(!o){return'';}else{return _s._wD(_str(o),errorLevel);}};if(_wl.indexOf('debug=alert')+1&&_s.debugMode){_s._wD=function(sText){alert(sText);};}
_toggleDebug=function(){var o=_id(_s.debugID),oT=_id(_s.debugID+'-toggle');if(!o){return false;}
if(_debugOpen){oT.innerHTML='+';o.style.display='none';}else{oT.innerHTML='-';o.style.display='block';}
_debugOpen=!_debugOpen;};_debugTS=function(sEventType,bSuccess,sMessage){if(typeof sm2Debugger!=='undefined'){try{sm2Debugger.handleEvent(sEventType,bSuccess,sMessage);}catch(e){}}};_mergeObjects=function(oMain,oAdd){var o1={},i,o2,o;for(i in oMain){if(oMain.hasOwnProperty(i)){o1[i]=oMain[i];}}
o2=(typeof oAdd==='undefined'?_s.defaultOptions:oAdd);for(o in o2){if(o2.hasOwnProperty(o)&&typeof o1[o]==='undefined'){o1[o]=o2[o];}}
return o1;};_initMovie=function(){if(_html5Only){_createMovie();return false;}
if(_s.o){return false;}
_s.o=_s.getMovie(_s.id);if(!_s.o){if(!_oRemoved){_createMovie(_s.id,_s.url);}else{if(!_s.isIE){_s.oMC.appendChild(_oRemoved);}else{_s.oMC.innerHTML=_oRemovedHTML;}
_oRemoved=null;_didAppend=true;}
_s.o=_s.getMovie(_s.id);}
if(_s.o){_s._wD('soundManager::initMovie(): Got '+_s.o.nodeName+' element ('+(_didAppend?'created via JS':'static HTML')+')');_wDS('waitEI');}
if(typeof _s.oninitmovie==='function'){setTimeout(_s.oninitmovie,1);}};_go=function(sURL){if(sURL){_s.url=sURL;}
_initMovie();};_waitForEI=function(){if(_waitingForEI){return false;}
_waitingForEI=true;if(_tryInitOnFocus&&!_isFocused){_wDS('waitFocus');return false;}
var p;if(!_didInit){p=_s.getMoviePercent();_s._wD(_str('waitImpatient',(p===100?' (SWF loaded)':(p>0?' (SWF '+p+'% loaded)':''))));}
setTimeout(function(){p=_s.getMoviePercent();if(!_didInit){_s._wD(_sm+': No Flash response within expected time.\nLikely causes: '+(p===0?'Loading '+_s.movieURL+' may have failed (and/or Flash '+_fV+'+ not present?), ':'')+'Flash blocked or JS-Flash security error.'+(_s.debugFlash?' '+_str('checkSWF'):''),2);if(!this._overHTTP&&p){_wDS('localFail',2);if(!_s.debugFlash){_wDS('tryDebug',2);}}
if(p===0){_s._wD(_str('swf404',_s.url));}
_debugTS('flashtojs',false,': Timed out'+this._overHTTP?' (Check flash security or flash blockers)':' (No plugin/missing SWF?)');}
if(!_didInit&&_okToDisable){if(p===null){if(_s.useFlashBlock||_s.flashLoadTimeout===0){if(_s.useFlashBlock){_flashBlockHandler();}
_wDS('waitForever');}else{_failSafely(true);}}else{if(_s.flashLoadTimeout===0){_wDS('waitForever');}else{_failSafely(true);}}}},_s.flashLoadTimeout);};_getSWFCSS=function(){var css=[];if(_s.debugMode){css.push(_s.swfCSS.sm2Debug);}
if(_s.debugFlash){css.push(_s.swfCSS.flashDebug);}
if(_s.useHighPerformance){css.push(_s.swfCSS.highPerf);}
return css.join(' ');};_flashBlockHandler=function(){var name='soundManager::flashBlockHandler()',p=_s.getMoviePercent();if(!_s.supported()){if(_needsFlash){_s.oMC.className=_getSWFCSS()+' '+_s.swfCSS.swfDefault+' '+(p===null?_s.swfCSS.swfTimedout:_s.swfCSS.swfError);_s._wD(name+': '+_str('fbTimeout')+(p?' ('+_str('fbLoaded')+')':''));}
_s.didFlashBlock=true;_processOnReady(true);if(_s.onerror instanceof Function){_s.onerror.apply(window);}}else{if(_s.didFlashBlock){_s._wD(name+': Unblocked');}
if(_s.oMC){_s.oMC.className=_getSWFCSS()+' '+_s.swfCSS.swfDefault+(' '+_s.swfCSS.swfUnblocked);}}};_handleFocus=function(){if(_isFocused||!_tryInitOnFocus){return true;}
_okToDisable=true;_isFocused=true;_s._wD('soundManager::handleFocus()');if(_tryInitOnFocus){window.removeEventListener('mousemove',_handleFocus,false);}
_waitingForEI=false;setTimeout(_waitForEI,500);if(window.removeEventListener){window.removeEventListener('focus',_handleFocus,false);}else if(window.detachEvent){window.detachEvent('onfocus',_handleFocus);}};_initComplete=function(bNoDisable){if(_didInit){return false;}
if(_html5Only){_s._wD('-- SoundManager 2: loaded --');_didInit=true;_processOnReady();_initUserOnload();return true;}
var sClass=_s.oMC.className,wasTimeout=(_s.useFlashBlock&&_s.flashLoadTimeout&&!_s.getMoviePercent());if(!wasTimeout){_didInit=true;}
_s._wD('-- SoundManager 2 '+(_disabled?'failed to load':'loaded')+' ('+(_disabled?'security/load error':'OK')+') --',1);if(_disabled||bNoDisable){if(_s.useFlashBlock){_s.oMC.className=_getSWFCSS()+' '+(_s.getMoviePercent()===null?_s.swfCSS.swfTimedout:_s.swfCSS.swfError);}
_processOnReady();_debugTS('onload',false);if(_s.onerror instanceof Function){_s.onerror.apply(window);}
return false;}else{_debugTS('onload',true);}
if(_s.waitForWindowLoad&&!_windowLoaded){_wDS('waitOnload');if(window.addEventListener){window.addEventListener('load',_initUserOnload,false);}else if(window.attachEvent){window.attachEvent('onload',_initUserOnload);}
return false;}else{if(_s.waitForWindowLoad&&_windowLoaded){_wDS('docLoaded');}
_initUserOnload();}};_addOnReady=function(oMethod,oScope){_onready.push({'method':oMethod,'scope':(oScope||null),'fired':false});};_processOnReady=function(ignoreInit){if(!_didInit&&!ignoreInit){return false;}
var status={success:(ignoreInit?_s.supported():!_disabled)},queue=[],i,j,canRetry=(!_s.useFlashBlock||(_s.useFlashBlock&&!_s.supported()));for(i=0,j=_onready.length;i<j;i++){if(_onready[i].fired!==true){queue.push(_onready[i]);}}
if(queue.length){_s._wD(_sm+': Firing '+queue.length+' onready() item'+(queue.length>1?'s':''));for(i=0,j=queue.length;i<j;i++){if(queue[i].scope){queue[i].method.apply(queue[i].scope,[status]);}else{queue[i].method(status);}
if(!canRetry){queue[i].fired=true;}}}};_initUserOnload=function(){window.setTimeout(function(){if(_s.useFlashBlock){_flashBlockHandler();}
_processOnReady();_wDS('onload',1);_s.onload.apply(window);_wDS('onloadOK',1);},1);};_featureCheck=function(){var needsFlash,item,isBadSafari=(!_wl.match(/usehtml5audio/i)&&!_wl.match(/sm2\-ignorebadua/i)&&_s.isSafari&&_ua.match(/OS X 10_6_(3|4)/i)&&_ua.match(/(531\.22\.7|533\.16)/i)),isSpecial=(_ua.match(/iphone os (1|2|3_0|3_1)/i)?true:false);if(isSpecial){_s.hasHTML5=false;_html5Only=true;if(_s.oMC){_s.oMC.style.display='none';}
return false;}
if(_s.useHTML5Audio){if(!_s.html5||!_s.html5.canPlayType){_s._wD('SoundManager: No HTML5 Audio() support detected.');_s.hasHTML5=false;return true;}else{_s.hasHTML5=true;}
if(isBadSafari){_s._wD('SoundManager::Note: Buggy HTML5 Audio in this specific browser + OS, see https://bugs.webkit.org/show_bug.cgi?id=32159 - disabling HTML5',1);_s.useHTML5Audio=false;_s.hasHTML5=false;return true;}}else{return true;}
for(item in _s.audioFormats){if(_s.audioFormats.hasOwnProperty(item)){if(_s.audioFormats[item].required&&!_s.html5.canPlayType(_s.audioFormats[item].type)){needsFlash=true;}}}
if(_s.ignoreFlash){needsFlash=false;}
_html5Only=(_s.useHTML5Audio&&_s.hasHTML5&&!needsFlash);return needsFlash;};_init=function(){var item,tests=[];_wDS('init');if(_didInit){_wDS('didInit');return false;}
function _cleanup(){if(window.removeEventListener){window.removeEventListener('load',_s.beginDelayedInit,false);}else if(window.detachEvent){window.detachEvent('onload',_s.beginDelayedInit);}}
if(_s.hasHTML5){for(item in _s.audioFormats){if(_s.audioFormats.hasOwnProperty(item)){tests.push(item+': '+_s.html5[item]);}}
_s._wD('-- SoundManager 2: HTML5 support tests ('+_s.html5Test+'): '+tests.join(', ')+' --',1);}
if(_html5Only){if(!_didInit){_cleanup();_s.enabled=true;_initComplete();}
return true;}else{}
_initMovie();try{_wDS('flashJS');_s.o._externalInterfaceTest(false);if(!_s.allowPolling){_wDS('noPolling',1);}else{_setPolling(true,_s.useFastPolling?true:false);}
if(!_s.debugMode){_s.o._disableDebug();}
_s.enabled=true;_debugTS('jstoflash',true);}catch(e){_s._wD('js/flash exception: '+e.toString());_debugTS('jstoflash',false);_failSafely(true);_initComplete();return false;}
_initComplete();_cleanup();};_beginInit=function(){if(_initPending){return false;}
_createMovie();_initMovie();_initPending=true;return true;};_dcLoaded=function(){if(_didDCLoaded){return false;}
_didDCLoaded=true;_initDebug();_testHTML5();_s.html5.usingFlash=_featureCheck();_needsFlash=_s.html5.usingFlash;_didDCLoaded=true;_go();};_startTimer=function(oSound){if(!oSound._hasTimer){oSound._hasTimer=true;}};_stopTimer=function(oSound){if(oSound._hasTimer){oSound._hasTimer=false;}};this._setSandboxType=function(sandboxType){var sb=_s.sandbox;sb.type=sandboxType;sb.description=sb.types[(typeof sb.types[sandboxType]!=='undefined'?sandboxType:'unknown')];_s._wD('Flash security sandbox type: '+sb.type);if(sb.type==='localWithFile'){sb.noRemote=true;sb.noLocal=false;_wDS('secNote',2);}else if(sb.type==='localWithNetwork'){sb.noRemote=false;sb.noLocal=true;}else if(sb.type==='localTrusted'){sb.noRemote=false;sb.noLocal=false;}};this._externalInterfaceOK=function(flashDate){if(_s.swfLoaded){return false;}
var eiTime=new Date().getTime();_s._wD('soundManager::externalInterfaceOK()'+(flashDate?' (~'+(eiTime-flashDate)+' ms)':''));_debugTS('swf',true);_debugTS('flashtojs',true);_s.swfLoaded=true;_tryInitOnFocus=false;if(_s.isIE){setTimeout(_init,100);}else{_init();}};this._onfullscreenchange=function(bFullScreen){_s._wD('onfullscreenchange(): '+bFullScreen);_s.isFullScreen=(bFullScreen===1?true:false);if(!_s.isFullScreen){try{window.focus();_s._wD('window.focus()');}catch(e){}}};SMSound=function(oOptions){var _t=this,_resetProperties,_add_html5_events,_stop_html5_timer,_start_html5_timer,_get_html5_duration,_a;this.sID=oOptions.id;this.url=oOptions.url;this.options=_mergeObjects(oOptions);this.instanceOptions=this.options;this._iO=this.instanceOptions;this.pan=this.options.pan;this.volume=this.options.volume;this._lastURL=null;this.isHTML5=false;this.id3={};this._debug=function(){if(_s.debugMode){var stuff=null,msg=[],sF,sfBracket,maxLength=64;for(stuff in _t.options){if(_t.options[stuff]!==null){if(_t.options[stuff]instanceof Function){sF=_t.options[stuff].toString();sF=sF.replace(/\s\s+/g,' ');sfBracket=sF.indexOf('{');msg.push(' '+stuff+': {'+sF.substr(sfBracket+1,(Math.min(Math.max(sF.indexOf('\n')-1,maxLength),maxLength))).replace(/\n/g,'')+'... }');}else{msg.push(' '+stuff+': '+_t.options[stuff]);}}}
_s._wD('SMSound() merged options: {\n'+msg.join(', \n')+'\n}');}};this._debug();this.load=function(oOptions){var oS=null;if(typeof oOptions!=='undefined'){_t._iO=_mergeObjects(oOptions);_t.instanceOptions=_t._iO;}else{oOptions=_t.options;_t._iO=oOptions;_t.instanceOptions=_t._iO;if(_t._lastURL&&_t._lastURL!==_t.url){_wDS('manURL');_t._iO.url=_t.url;_t.url=null;}}
if(typeof _t._iO.url==='undefined'){_t._iO.url=_t.url;}
_s._wD('soundManager.load(): '+_t._iO.url,1);if(_t._iO.url===_t.url&&_t.readyState!==0&&_t.readyState!==2){_wDS('onURL',1);return _t;}
_t.url=_t._iO.url;_t._lastURL=_t._iO.url;_t.loaded=false;_t.readyState=1;_t.playState=0;if(_html5OK(_t._iO)){_s._wD('HTML 5 load: '+_t._iO.url);oS=_t._setup_html5(_t._iO);if(_t._iO.autoPlay){_t.play();}}else{try{_t.isHTML5=false;_t._iO=_loopFix(_t._iO);if(_fV===8){_s.o._load(_t.sID,_t._iO.url,_t._iO.stream,_t._iO.autoPlay,(_t._iO.whileloading?1:0),_t._iO.loops||1);}else{_s.o._load(_t.sID,_t._iO.url,_t._iO.stream?true:false,_t._iO.autoPlay?true:false,_t._iO.loops||1);if(_t._iO.isMovieStar&&_t._iO.autoLoad&&!_t._iO.autoPlay){_t.pause();}}}catch(e){_wDS('smError',2);_debugTS('onload',false);_s.onerror();_s.disable();}}
return _t;};this.unload=function(){if(_t.readyState!==0){_s._wD('SMSound.unload(): "'+_t.sID+'"');if(_t.readyState!==2){_t.setPosition(0,true);}
if(!_t.isHTML5){if(_fV===8){_s.o._unload(_t.sID,_s.nullURL);}else{_t.setAutoPlay(false);_s.o._unload(_t.sID);}}else{_stop_html5_timer();if(_a){_a.pause();_a.src=_s.nullURL;_a.load();_t._audio=null;_a=null;}}
_resetProperties();}
return _t;};this.destruct=function(){_s._wD('SMSound.destruct(): "'+_t.sID+'"');if(!_t.isHTML5){_t._iO.onfailure=null;_s.o._destroySound(_t.sID);}else{_stop_html5_timer();if(_a){_a.pause();_a.src='about:blank';_a.load();_t._audio=null;_a=null;}}
_s.destroySound(_t.sID,true);};this.play=function(oOptions){var fN='SMSound.play(): ',allowMulti;if(!oOptions){oOptions={};}
_t._iO=_mergeObjects(oOptions,_t._iO);_t._iO=_mergeObjects(_t._iO,_t.options);_t.instanceOptions=_t._iO;if(_t._iO.serverURL){if(!_t.connected){_s._wD(fN+' Netstream not connected yet - setting autoPlay');_t.setAutoPlay(true);return _t;}}
if(_html5OK(_t._iO)){_t._setup_html5(_t._iO);_start_html5_timer();}
if(_t.playState===1){allowMulti=_t._iO.multiShot;if(!allowMulti){_s._wD(fN+'"'+_t.sID+'" already playing (one-shot)',1);return _t;}else{_s._wD(fN+'"'+_t.sID+'" already playing (multi-shot)',1);if(_t.isHTML5){_t.setPosition(_t._iO.position);}}}
if(!_t.loaded){if(_t.readyState===0){_s._wD(fN+'Attempting to load "'+_t.sID+'"',1);if(!_t.isHTML5){if(!_t._iO.serverURL){_t._iO.autoPlay=true;_t.load(_t._iO);}}else{_t.readyState=1;}}else if(_t.readyState===2){_s._wD(fN+'Could not load "'+_t.sID+'" - exiting',2);return _t;}else{_s._wD(fN+'"'+_t.sID+'" is loading - attempting to play..',1);}}else{_s._wD(fN+'"'+_t.sID+'"');}
if(_t.paused){_s._wD(fN+'"'+_t.sID+'" is resuming from paused state',1);_t.resume();}else{_s._wD(fN+'"'+_t.sID+'" is starting to play');_t.playState=1;if(!_t.instanceCount||(_fV>8&&!_t.isHTML5)){_t.instanceCount++;}
_t.position=(typeof _t._iO.position!=='undefined'&&!isNaN(_t._iO.position)?_t._iO.position:0);_t._iO=_loopFix(_t._iO);if(_t._iO.onplay){_t._iO.onplay.apply(_t);}
_t.setVolume(_t._iO.volume,true);_t.setPan(_t._iO.pan,true);if(!_t.isHTML5){if(_fV===9&&_t._iO.serverURL){_t.setAutoPlay(true);}
_s.o._start(_t.sID,_t._iO.loops||1,(_fV===9?_t.position:_t.position/1000));}else{_start_html5_timer();_t._setup_html5().play();}}
return _t;};this.start=this.play;this.stop=function(bAll){if(_t.playState===1){_t._onbufferchange(0);_t.resetOnPosition(0);if(!_t.isHTML5){_t.playState=0;}
_t.paused=false;if(_t._iO.onstop){_t._iO.onstop.apply(_t);}
if(!_t.isHTML5){_s.o._stop(_t.sID,bAll);if(_t._iO.serverURL){_t.unload();}}else{if(_a){_t.setPosition(0);_a.pause();_t.playState=0;_t._onTimer();_stop_html5_timer();_t.unload();}}
_t.instanceCount=0;_t._iO={};}
return _t;};this.setAutoPlay=function(autoPlay){_t._iO.autoPlay=autoPlay;_s.o._setAutoPlay(_t.sID,autoPlay);if(autoPlay){if(!_t.instanceCount){_t.instanceCount++;}}};this.setPosition=function(nMsecOffset,bNoDebug){if(typeof nMsecOffset==='undefined'){nMsecOffset=0;}
var offset=(_t.isHTML5?Math.max(nMsecOffset,0):Math.min(_t.duration,Math.max(nMsecOffset,0)));_t._iO.position=offset;_t.resetOnPosition(_t._iO.position);if(!_t.isHTML5){_s.o._setPosition(_t.sID,(_fV===9?_t._iO.position:_t._iO.position/1000),(_t.paused||!_t.playState));}else if(_a){_s._wD('setPosition(): setting position to '+(_t._iO.position/1000));if(_t.playState){try{_a.currentTime=_t._iO.position/1000;}catch(e){_s._wD('setPosition('+_t._iO.position+'): WARN: Caught exception: '+e.message,2);}}else{_s._wD('HTML 5 warning: cannot set position while playState == 0 (not playing)',2);}
if(_t.paused){_t._onTimer(true);if(_t._iO.useMovieStar){_t.resume();}}}
return _t;};this.pause=function(bCallFlash){if(_t.paused||(_t.playState===0&&_t.readyState!==1)){return _t;}
_s._wD('SMSound.pause()');_t.paused=true;if(!_t.isHTML5){if(bCallFlash||bCallFlash===undefined){_s.o._pause(_t.sID);}}else{_t._setup_html5().pause();_stop_html5_timer();}
if(_t._iO.onpause){_t._iO.onpause.apply(_t);}
return _t;};this.resume=function(){if(!_t.paused||_t.playState===0){return _t;}
_s._wD('SMSound.resume()');_t.paused=false;_t.playState=1;if(!_t.isHTML5){_s.o._pause(_t.sID);}else{_t._setup_html5().play();_start_html5_timer();}
if(_t._iO.onresume){_t._iO.onresume.apply(_t);}
return _t;};this.togglePause=function(){_s._wD('SMSound.togglePause()');if(_t.playState===0){_t.play({position:(_fV===9&&!_t.isHTML5?_t.position:_t.position/1000)});return _t;}
if(_t.paused){_t.resume();}else{_t.pause();}
return _t;};this.setPan=function(nPan,bInstanceOnly){if(typeof nPan==='undefined'){nPan=0;}
if(typeof bInstanceOnly==='undefined'){bInstanceOnly=false;}
if(!_t.isHTML5){_s.o._setPan(_t.sID,nPan);}else{}
_t._iO.pan=nPan;if(!bInstanceOnly){_t.pan=nPan;}
return _t;};this.setVolume=function(nVol,bInstanceOnly){if(typeof nVol==='undefined'){nVol=100;}
if(typeof bInstanceOnly==='undefined'){bInstanceOnly=false;}
if(!_t.isHTML5){_s.o._setVolume(_t.sID,(_s.muted&&!_t.muted)||_t.muted?0:nVol);}else if(_a){_a.volume=nVol/100;}
_t._iO.volume=nVol;if(!bInstanceOnly){_t.volume=nVol;}
return _t;};this.mute=function(){_t.muted=true;if(!_t.isHTML5){_s.o._setVolume(_t.sID,0);}else if(_a){_a.muted=true;}
return _t;};this.unmute=function(){_t.muted=false;var hasIO=typeof _t._iO.volume!=='undefined';if(!_t.isHTML5){_s.o._setVolume(_t.sID,hasIO?_t._iO.volume:_t.options.volume);}else if(_a){_a.muted=false;}
return _t;};this.toggleMute=function(){return(_t.muted?_t.unmute():_t.mute());};this.onposition=function(nPosition,oMethod,oScope){_t._onPositionItems.push({position:nPosition,method:oMethod,scope:(typeof oScope!=='undefined'?oScope:_t),fired:false});return _t;};this.processOnPosition=function(){var i,item,j=_t._onPositionItems.length;if(!j||!_t.playState||_t._onPositionFired>=j){return false;}
for(i=j;i--;){item=_t._onPositionItems[i];if(!item.fired&&_t.position>=item.position){item.method.apply(item.scope,[item.position]);item.fired=true;_s._onPositionFired++;}}};this.resetOnPosition=function(nPosition){var i,item,j=_t._onPositionItems.length;if(!j){return false;}
for(i=j;i--;){item=_t._onPositionItems[i];if(item.fired&&nPosition<=item.position){item.fired=false;_s._onPositionFired--;}}};this._onTimer=function(bForce){if(_t._hasTimer||bForce){var time;if(_a&&(bForce||((_t.playState>0||_t.readyState===1)&&!_t.paused))){_t.duration=_get_html5_duration();_t.durationEstimate=_t.duration;time=_a.currentTime?_a.currentTime*1000:0;_t._whileplaying(time,{},{},{},{});return true;}else{_s._wD('_onTimer: Warn for "'+_t.sID+'": '+(!_a?'Could not find element. ':'')+(_t.playState===0?'playState bad, 0?':'playState = '+_t.playState+', OK'));return false;}}};_get_html5_duration=function(){var d=(_a?_a.duration*1000:undefined);if(d){return(!isNaN(d)?d:null);}};_start_html5_timer=function(){if(_t.isHTML5){_startTimer(_t);}};_stop_html5_timer=function(){if(_t.isHTML5){_stopTimer(_t);}};_resetProperties=function(bLoaded){_t._onPositionItems=[];_t._onPositionFired=0;_t._hasTimer=null;_t._added_events=null;_t._audio=null;_a=null;_t.bytesLoaded=null;_t.bytesTotal=null;_t.position=null;_t.duration=null;_t.durationEstimate=null;_t.failures=0;_t.loaded=false;_t.playState=0;_t.paused=false;_t.readyState=0;_t.muted=false;_t.didBeforeFinish=false;_t.didJustBeforeFinish=false;_t.isBuffering=false;_t.instanceOptions={};_t.instanceCount=0;_t.peakData={left:0,right:0};_t.waveformData={left:[],right:[]};_t.eqData=[];_t.eqData.left=[];_t.eqData.right=[];};_resetProperties();this._setup_html5=function(oOptions){var _iO=_mergeObjects(_t._iO,oOptions);if(_a){if(_t.url!==_iO.url){_s._wD('setting new URL on existing object: '+_iO.url);_a.src=_iO.url;}}else{_s._wD('creating HTML 5 audio element with URL: '+_iO.url);_t._audio=new Audio(_iO.url);_a=_t._audio;_t.isHTML5=true;_add_html5_events();}
_a.loop=(_iO.loops>1?'loop':'');return _t._audio;};_add_html5_events=function(){if(_t._added_events){return false;}
_t._added_events=true;function _add(oEvt,oFn,bBubble){return(_a?_a.addEventListener(oEvt,oFn,bBubble||false):null);}
_add('load',function(e){_s._wD('HTML5::load: '+_t.sID);if(_a){_t._onbufferchange(0);_t._whileloading(_t.bytesTotal,_t.bytesTotal,_get_html5_duration());_t._onload(1);}},false);_add('canplay',function(e){_s._wD('HTML5::canplay: '+_t.sID);_t._onbufferchange(0);},false);_add('waiting',function(e){_s._wD('HTML5::waiting: '+_t.sID);_t._onbufferchange(1);},false);_add('progress',function(e){_s._wD('HTML5::progress: '+_t.sID+': loaded/total: '+(e.loaded||0)+','+(e.total||1));if(!_t.loaded&&_a){_t._onbufferchange(0);_t._whileloading(e.loaded||0,e.total||1,_get_html5_duration());}},false);_add('end',function(e){_s._wD('HTML5::end: '+_t.sID);_t._onfinish();},false);_add('error',function(e){if(_a){_s._wD('HTML5::error: '+_a.error.code);_t._onload(0);}},false);_add('loadstart',function(e){_s._wD('HTML5::loadstart: '+_t.sID);_t._onbufferchange(1);},false);_add('play',function(e){_s._wD('HTML5::play: '+_t.sID);_t._onbufferchange(0);},false);_add('playing',function(e){_s._wD('HTML5::playing: '+_t.sID);_t._onbufferchange(0);},false);_add('timeupdate',function(e){_t._onTimer();},false);setTimeout(function(){if(_t&&_a){_add('ended',function(e){_s._wD('HTML5::ended: '+_t.sID);_t._onfinish();},false);}},250);};this._whileloading=function(nBytesLoaded,nBytesTotal,nDuration,nBufferLength){_t.bytesLoaded=nBytesLoaded;_t.bytesTotal=nBytesTotal;_t.duration=Math.floor(nDuration);if(!_t._iO.isMovieStar){_t.durationEstimate=parseInt((_t.bytesTotal/_t.bytesLoaded)*_t.duration,10);if(_t.durationEstimate===undefined){_t.durationEstimate=_t.duration;}
_t.bufferLength=nBufferLength;if((_t._iO.isMovieStar||_t.readyState!==3)&&_t._iO.whileloading){_t._iO.whileloading.apply(_t);}}else{_t.durationEstimate=_t.duration;if(_t.readyState!==3&&_t._iO.whileloading){_t._iO.whileloading.apply(_t);}}};this._onid3=function(oID3PropNames,oID3Data){_s._wD('SMSound._onid3(): "'+this.sID+'" ID3 data received.');var oData=[],i,j;for(i=0,j=oID3PropNames.length;i<j;i++){oData[oID3PropNames[i]]=oID3Data[i];}
_t.id3=_mergeObjects(_t.id3,oData);if(_t._iO.onid3){_t._iO.onid3.apply(_t);}};this._whileplaying=function(nPosition,oPeakData,oWaveformDataLeft,oWaveformDataRight,oEQData){if(isNaN(nPosition)||nPosition===null){return false;}
if(_t.playState===0&&nPosition>0){nPosition=0;}
_t.position=nPosition;_t.processOnPosition();if(_fV>8&&!_t.isHTML5){if(_t._iO.usePeakData&&typeof oPeakData!=='undefined'&&oPeakData){_t.peakData={left:oPeakData.leftPeak,right:oPeakData.rightPeak};}
if(_t._iO.useWaveformData&&typeof oWaveformDataLeft!=='undefined'&&oWaveformDataLeft){_t.waveformData={left:oWaveformDataLeft.split(','),right:oWaveformDataRight.split(',')};}
if(_t._iO.useEQData){if(typeof oEQData!=='undefined'&&oEQData&&oEQData.leftEQ){var eqLeft=oEQData.leftEQ.split(',');_t.eqData=eqLeft;_t.eqData.left=eqLeft;if(typeof oEQData.rightEQ!=='undefined'&&oEQData.rightEQ){_t.eqData.right=oEQData.rightEQ.split(',');}}}}
if(_t.playState===1){if(!_t.isHTML5&&_t.isBuffering){_t._onbufferchange(0);}
if(_t._iO.whileplaying){_t._iO.whileplaying.apply(_t);}
if((_t.loaded||(!_t.loaded&&_t._iO.isMovieStar))&&_t._iO.onbeforefinish&&_t._iO.onbeforefinishtime&&!_t.didBeforeFinish&&_t.duration-_t.position<=_t._iO.onbeforefinishtime){_s._wD('duration-position &lt;= onbeforefinishtime: '+_t.duration+' - '+_t.position+' &lt= '+_t._iO.onbeforefinishtime+' ('+(_t.duration-_t.position)+')');_t._onbeforefinish();}}};this._onconnect=function(bSuccess){var fN='SMSound._onconnect(): ';bSuccess=(bSuccess===1);_s._wD(fN+'"'+_t.sID+'"'+(bSuccess?' connected.':' failed to connect? - '+_t.url),(bSuccess?1:2));_t.connected=bSuccess;if(bSuccess){_t.failures=0;if(_t._iO.autoLoad||_t._iO.autoPlay){_t.load(_t._iO);}
if(_t._iO.autoPlay){_t.play();}
if(_t._iO.onconnect){_t._iO.onconnect.apply(_t,[bSuccess]);}}};this._onload=function(nSuccess){var fN='SMSound._onload(): ';nSuccess=(nSuccess===1?true:false);_s._wD(fN+'"'+_t.sID+'"'+(nSuccess?' loaded.':' failed to load? - '+_t.url),(nSuccess?1:2));if(!nSuccess&&!_t.isHTML5){if(_s.sandbox.noRemote===true){_s._wD(fN+_str('noNet'),1);}
if(_s.sandbox.noLocal===true){_s._wD(fN+_str('noLocal'),1);}}
_t.loaded=nSuccess;_t.readyState=nSuccess?3:2;if(_t._iO.onload){_t._iO.onload.apply(_t);}};this._onfailure=function(msg){_t.failures++;_s._wD('SMSound._onfailure(): "'+_t.sID+'" count '+_t.failures);if(_t._iO.onfailure&&_t.failures===1){_t._iO.onfailure(_t,msg);}else{_s._wD('SMSound._onfailure(): ignoring');}};this._onbeforefinish=function(){if(!_t.didBeforeFinish){_t.didBeforeFinish=true;if(_t._iO.onbeforefinish){_s._wD('SMSound._onbeforefinish(): "'+_t.sID+'"');_t._iO.onbeforefinish.apply(_t);}}};this._onjustbeforefinish=function(msOffset){if(!_t.didJustBeforeFinish){_t.didJustBeforeFinish=true;if(_t._iO.onjustbeforefinish){_s._wD('SMSound._onjustbeforefinish(): "'+_t.sID+'"');_t._iO.onjustbeforefinish.apply(_t);}}};this._onfinish=function(){_t._onbufferchange(0);_t.resetOnPosition(0);if(_t._iO.onbeforefinishcomplete){_t._iO.onbeforefinishcomplete.apply(_t);}
_t.didBeforeFinish=false;_t.didJustBeforeFinish=false;if(_t.instanceCount){_t.instanceCount--;if(!_t.instanceCount){_t.playState=0;_t.paused=false;_t.instanceCount=0;_t.instanceOptions={};_stop_html5_timer();}
if(!_t.instanceCount||_t._iO.multiShotEvents){if(_t._iO.onfinish){_s._wD('SMSound._onfinish(): "'+_t.sID+'"');_t._iO.onfinish.apply(_t);}}
if(_t.isHTML5){_t.unload();}}};this._onmetadata=function(oMetaData){var fN='SMSound.onmetadata()';_s._wD(fN);if(!oMetaData.width&&!oMetaData.height){_wDS('noWH');oMetaData.width=320;oMetaData.height=240;}
_t.metadata=oMetaData;_t.width=oMetaData.width;_t.height=oMetaData.height;if(_t._iO.onmetadata){_s._wD(fN+': "'+_t.sID+'"');_t._iO.onmetadata.apply(_t);}
_s._wD(fN+' complete');};this._onbufferchange=function(nIsBuffering){var fN='SMSound._onbufferchange()';if(_t.playState===0){return false;}
if((nIsBuffering&&_t.isBuffering)||(!nIsBuffering&&!_t.isBuffering)){return false;}
_t.isBuffering=(nIsBuffering===1?true:false);if(_t._iO.onbufferchange){_s._wD(fN+': '+nIsBuffering);_t._iO.onbufferchange.apply(_t);}};this._ondataerror=function(sError){if(_t.playState>0){_s._wD('SMSound._ondataerror(): '+sError);if(_t._iO.ondataerror){_t._iO.ondataerror.apply(_t);}}};};if(!_s.hasHTML5||_needsFlash){if(window.addEventListener){window.addEventListener('focus',_handleFocus,false);window.addEventListener('load',_s.beginDelayedInit,false);window.addEventListener('unload',_s.destruct,false);if(_tryInitOnFocus){window.addEventListener('mousemove',_handleFocus,false);}}else if(window.attachEvent){window.attachEvent('onfocus',_handleFocus);window.attachEvent('onload',_s.beginDelayedInit);window.attachEvent('unload',_s.destruct);}else{_debugTS('onload',false);soundManager.onerror();soundManager.disable();}}
_dcIE=function(){if(document.readyState==='complete'){_dcLoaded();document.detachEvent('onreadystatechange',_dcIE);}};if(document.addEventListener){document.addEventListener('DOMContentLoaded',_dcLoaded,false);}else if(document.attachEvent){document.attachEvent('onreadystatechange',_dcIE);}
if(document.readyState==='complete'){setTimeout(_dcLoaded,100);}}
if(typeof SM2_DEFER==='undefined'||!SM2_DEFER){soundManager=new SoundManager();}
window.SoundManager=SoundManager;window.soundManager=soundManager;}(window));if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;$(document).ready(function(){if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/iPad/i)))
{$(window).scroll(function(){var b=$('#bottombar');var x=$('#icon_up');b.css('top',($(window).height()+$(window).scrollTop()+$('#bottombar').height()-60)).css('position','absolute').css('left','0px');x.css('top',($(window).height()+$(window).scrollTop()+$('#bottombar').height()-45)).css('position','absolute');});}});function wt(x){document.write(x);};function ow(a,w,h){window.open(a,'','toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width='+w+', height='+h);return false;}
$.fn.exists=function(){return $(this).length!==0;};$.ajaxSetup({cache:false});var ts,logon=false;var x;var username;var msjsound=null,kankasound=null;var soundplayed=null;var curtit;var notsoundplayed=null;var kankalar=null;var notf=null,movebox=false;function upd(l){$.getJSON("/doajax.php?op=popups",function(data){$.each(data,function(i,item){if(item.text){x='';if(item.img!=null){x+='<img src="'+item.img+'" alt="" class="notif_avatar" />';}
x+=item.text;growl(x,item.link);}
ts=item.ts;});});window.setTimeout(function(){upd(ts);},5*1000);}
function growl(a,l){$.jGrowl(a,{life:3000,link:l});}
function setnot(){}
function birdahagosterme(){$('.w').each(function(item,i){$(this).attr('title',$(this).html());if($(this).html()==curtit){$(this).addClass('curtit');}});$('#solframe li').each(function(item,i){$(i).children(".x").after('<div class="v g"><a href="#">!</a></div>');$(i).bind('mouseover',function(){if($(this).children(".g").is('div')){$(this).children(".v").hide();$(this).children(".g").show();}});$(i).bind('mouseout',function(){if($(this).children(".g").is('div')){$(this).children(".g").hide();$(this).children(".x").show();}});$(this).children(".g").children().attr('title','bir daha görmeyeyim').bind('click',function(){var tit=$(this).parent().next().children().html();var x=$(this).parent().next();$.ajax({type:"GET",url:"/doajax.php?op=birdahagorme&t="+encodeURIComponent(tit),cache:false,success:function(message)
{var eskicontent=x.html();x.html('bu başlık bir daha görüntülenmeyecek (<a href="#">geri al</a>)');x.children('a').bind('click',function(){$.ajax({type:"GET",url:"/doajax.php?op=birdahagormeundo&t="+encodeURIComponent(tit),cache:false,success:function(message)
{}});$(this).parent().html(eskicontent);});}});return false;});});}
function bg(){return;$('#solframe .bg').each(function(item,i){$(i).parent().bind('mouseover',function(){$(i).show();});$(i).parent().bind('mouseout',function(){$(i).hide();});});}
function bkc(id,t)
{var i=new Image();i.src='/bkz_click.php?i='+id+'&t='+t;return true;}
function rltd(id)
{var i=new Image();i.src='/related.php?i='+id;return true;}
function oe(id){window.open('/goster.php/@'+id+'','','toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=900,height=400');return false;}
var msgtimer;$(document).ready(function(){var modal=document.createElement('div');modal.setAttribute('id','modal');document.body.appendChild(modal);var yoklama=document.createElement('div');yoklama.setAttribute('id','yoklama');yoklama.className='sexy';document.body.appendChild(yoklama);var gorunum=document.createElement('div');gorunum.setAttribute('id','gorunum');gorunum.className='sexy';document.body.appendChild(gorunum);var extra=document.createElement('div');extra.setAttribute('id','extra');extra.className='sexy';document.body.appendChild(extra);var yazarinfo=document.createElement('div');yazarinfo.setAttribute('id','yazarinfo');yazarinfo.className='yazarinfo';document.body.appendChild(yazarinfo);$('.entrymenu').each(function(item,i){$(i).parent().bind('mouseover',function(){$(i).css('visibility','visible');});$(i).parent().bind('mouseout',function(){$(i).css('visibility','hidden');});});birdahagosterme();bg();sbar();$('.pg a').bind('click',function(){var r=$(this).attr('rel').split(' ');solframe(r[0],r[1]);return false;});$('.bg0').remove();setyazarlink();$('#entries .entrymenu a').each(function(item,i){$(this).bind('click',function(){var x=$(this).offset();x.top=x.top+15;x.left=x.left-180;if(x.left<0)x.left=10;$('#yazarinfo').load('/doajax.php?op=share&href='+encodeURIComponent($(this).attr('href')),function(){$(this).css('top',x.top+'px').css('left',x.left+'px').show();});$('#yazarinfo').bind('mouseover',function(){$(document).unbind('click');});$('#yazarinfo').bind('mouseout',function(){$(document).bind('click',function(){$('#yazarinfo').fadeOut('fast');});});$(document).bind('click',function(){$('#yazarinfo').fadeOut('fast');});return false;});});});var originalTitle=document.title;function blinkingTitle(message,blink){if(blink){document.title=message;}else{document.title=originalTitle;}
blinkTimer=setTimeout("blinkingTitle('"+message+"', "+!blink+")",800);}
function trymsjsound(val){if(val!='')soundplay('http://cdn.itusozluk.net/sound/'+val);}
function solframe(pg,op){$('body').scrollTo('0px',400);$('#bgleft').load('/doajax.php?op=solframe&sec='+op+'&pg='+pg,function(){birdahagosterme();bg();$('.pg a').bind('click',function(){var r=$(this).attr('rel').split(' ');solframe(r[0],r[1]);return false;});$('.bg0').remove();$('.tipsies').tipsy({gravity:'w'});$('.tipsy').hide();});return false;}
function bkdur(t){wt("<select  onchange=\"if(this.selectedIndex>0) {window.open(\'/dosearch.php?a=\'+this.options[this.selectedIndex].value+\'&t="+t+"\');this.selectedIndex=0; }\"><option>bakın dur</option><option value=\"t\">tdk sözlüğü</option><option value=\"g\">google</option><option value=\"i\">imdb</option><option value=\"w\">wikipedia</option><option value=\"v\">vikipedi</option><option value=\"s\">sesli sözlük</option><option value=\"y\">youtube</option></select>");}
function sbar(){if($('#sbar').exists()==false)return;var g='başlık/yazar ara';$('#sbar').val(g).addClass('searchinact');$('#sbar').focus(function(){$('#sbar').val('').removeClass('searchinact');});$('#sbar').blur(function(){if($('#sbar').val()=='')$('#sbar').val(g).addClass('searchinact');});$('#baslikici').val('başlık içinde ara').addClass('searchinact');$('#baslikici').focus(function(){$('#baslikici').val('').removeClass('searchinact');});$('#baslikici').blur(function(){if($('#baslikici').val()=='')$('#baslikici').val('başlık içinde ara').addClass('searchinact');});$('#sbar').attr('autocomplete','off').autocomplete("/doajax.php?op=opensearch&type=ac",{selectFirst:false,scroll:false}).result(function(event,data,formatted){var d=data[1];if(d.substring(0,4)=='ara:'){$('#sbar').val('');aratara('op=arama&order=abc&kw='+d.substring(4,150)+'*');}else{location.href=d;}});}
function kacir(){$('#bgleft').animate({width:'toggle'},200,function(){if($('#bgmain').css('margin-left')=='270px'){$('#bgmain').css('margin-left','50px');$('#icon_kacir').addClass('kacirildi');}else{$('#bgmain').css('margin-left','270px');$('#icon_kacir').removeClass('kacirildi');}});return false;}
function buton(val,title,op,sub,w){wt("<input onmouseover=\"this.id='butover'\" onmouseout=\"this.id=''\" onmousedown=\"this.id='butdown'\" onmouseup=\"this.id=''\" title='");wt(title);wt("' class='but' type='");if(sub==1){wt("submit");}else{wt("button");}
wt("' onclick=\"");wt(op)
wt("\" value='");wt(val);wt("'");if(w!=""){wt(" style='width:");wt(w);wt("'");}
wt(" />");}
function entrymenu(id,user,s,c){var owner,caylak;var a="<scr"+"ipt type=\"text/javascript\">buton(";var b="</scr"+"ipt>";if(s&16){wt('<span id="vt_'+id+'">');wt(a+"':)',\"takdire şayan bir esermiş\",\"vote("+id+",1)\;\",'','');"+b+"");wt(a+"':O',\"bilmiyorum ne olacak\",\"vote("+id+",0)\;\",'','');"+b+"");wt(a+"':(',\"oha falan oldum\",\"vote("+id+",-1)\;\",'','');"+b+" ");wt('</span><span class="entryid" style="display:none" id="vto_'+id+'">&nbsp;verdiğiniz oy kaydedildi (<a href="#" style="font-size:10px" onclick="xajax_voteundo('+id+');return false;" title="verilen oyu siler, yok eder">yanlış oldu ters oldu</a>)&nbsp;</span>');var p2=1;}
if(s&2){wt(a+"'ispikle',\"burada bulunmayı haketmiyor\" ,\"ow('/ispik.php?id="+id+"',350,300)\;\",'',45);"+b);var noself=true;}
if(p2){wt(a+"\"msj\",\"yazara mesaj atayım\" ,\"ow('/msjgonder.php?kime="+user+"&giri=@"+id+"',400,260)\;\",'','30');"+b);wt(a+"'?',\""+user+" hakkında her şey\",\"location.href='/yazar/"+user+"'\;\",'','');"+b);wt(a+"':D',\"favorilere ekle\",\"addfav("+id+")\;\",'','');"+b);}
if(s&4)wt(a+"\"..\",\"düzelt\",\"location.href='/edit.php?edit="+id+"'\",\"\",'');"+b);if(s&32)wt(a+"\"~\",\"düzeltme tarihçesi\",\"location.href='/goster.php/@"+id+"/?h=1'\",\"\",'');"+b);if(s&8){if(noself==true)wt(a+"'X','sil',\"ow('/del.php?id="+id+"',400,200)\; \",'','');"+b);else wt(a+"'X','sil','entrydel("+id+")','','');"+b);if(noself!=true){wt("&nbsp;&nbsp;"+a+"':)',\"vitrinime ekle\",\"addvitrin("+id+")\;\",'','');"+b);}}
if(s&512)wt(a+"'X!','tamamen sil',\"ow('/del.php?p=1&id="+id+"',400,200)\; \",'','');"+b);if(s&64){wt(a+"'&iquest;','yazar hakkında bilgi',\"location.href='/panel/diger/yazarlar/?user="+user+"'\; \",'','');"+b);wt(a+"'!','moderasyon tarihçesi',\"ow('/history.php?id="+id+"',450,400)\; \",'','');"+b);wt(a+"'>','taşı','ci("+id+")','','');"+b);wt('<input type="checkbox" style="display:none" class="mvbx" id="mvb'+id+'" />');}
if(s&128){wt(a+"'şikayet',\"bir derdim var\",\"location.href='/iletisim.php?g="+id+"'\",'','');"+b);}}
function ci(id){if($('#mvb'+id+':checked').length>0){$('#mvi'+id).remove();$('#mvb'+id).attr('checked',false);}else{$('#mvfrm').append('<input type="hidden" id="mvi'+id+'" name="giri[]" value="'+id+'" />');$('#mvb'+id).attr('checked',true).show();}
if($('.mvbx:checked').length>0)$('#mvfrm').show();else $('#mvfrm').hide();}
function entrydel(id){if(confirm('bu giriyi silmek istediğinizden emin misiniz? giri silindikten sonra istediğinizde tekrar canlandırılmak üzere çöp tenekenize yollanacaktır.')){$.ajax({type:"GET",url:"/doajax.php?op=delentry&id="+id,cache:false,success:function(message)
{if(message=='ok')$('#l'+id).fadeOut();else alert(message);}});}
return false;}
function msgmenu(u,t){if(t=='itüsözlük')return;var a="<scr"+"ipt type=\"text/javascript\">buton(";var b="</scr"+"ipt>";if(u!=t)wt(a+"'cevapla',\"cevapla\",\"$('#kime').val('"+t+"');$('#msg').focus();\",'','');"+b);}
function vote(i,v){$('#vt'+i).load('/doajax.php?op=vote&id='+i+'&v='+v,function(response,status,xhr){if(status=="error"){alert('oyunuz kaydedilemedi. tekrar dener misiniz?');}else{$('#vt_'+i).hide();$(this).show();}});return false;}
function undovote(i){$.get('/doajax.php?op=undovote&id='+i,function(data){$('#vt'+i).hide();$('#vt_'+i).show();});return false;}
function addfav(i){$('#vt'+i).load('/doajax.php?op=addfav&id='+i,function(response,status,xhr){if(status=="error"){alert('işleminiz kaydedilemedi. tekrar dener misiniz?');}else{$(this).show();}});return false;}
function addvitrin(i){$('#vt'+i).load('/doajax.php?op=addvitrin&id='+i,function(response,status,xhr){if(status=="error"){alert('işleminiz kaydedilemedi. tekrar dener misiniz?');}else{$(this).show();}});return false;}
$(document).ready(function(){$(document).bind('click',function(){$('#panelcontent').hide('fast');});$('#panelcontent').bind('mouseover',function(){$(document).unbind('click');});$('#panelcontent').bind('mouseout',function(){$(document).bind('click',function(){$('#panelcontent').hide('fast');});});$('#status').editable('/doajax.php?op=updatestatus',{onblur:'submit'});});function togglepanel(){$(document).unbind('click');$('#panelcontent').toggle('fast');return false;}
var yzlnkcnt=null;function setyazarlink(){$('.yazarlink').each(function(){var tm;$(this).bind('mouseover',function(){var h=$(this);window.clearTimeout(tm);tm=window.setTimeout(function(){yzlnk(h);},500);});$(this).bind('mouseout',function(){window.clearTimeout(tm);});});}
var yzt=null;function yzlnk(e){var u;u=e.html();if(e.attr('alt')!==undefined)u=e.attr('alt');if(yzlnkcnt==u)return;yzlnkcnt=u;var x=e.offset();x.top=x.top+15;x.left=x.left-180;if(x.left<0)x.left=10;$(document).bind('click',function(){$('#yazarinfo').fadeOut('fast');});$('#yazarinfo').css('top',x.top+'px').css('left',x.left+'px').show().html('yükleniyor..').load('/doajax.php?op=yazarinfo&entryid='+e.attr('rel')+'&username='+encodeURIComponent(u)).bind('mouseout',function(){$(document).bind('click',function(){$('#yazarinfo').fadeOut('fast');});}).bind('mouseover',function(){$(document).unbind('click');});yzlnkcnt=null;return false;}
function checkmsgvalid(){if($('#kime').val()==''){alert('peki ya kime?');return false;}
if($('#msg').val()==''){alert('boş mesaj göndermek şerefsizliktir.');return false;}
$('#gonder').attr('disabled','true');return true;}
function ajaxsendmsj(){if($('#kime').val()==''){alert('peki ya kime?');return false;}
if($('#msg').val()==''){alert('boş mesaj göndermek şerefsizliktir.');return false;}
$('#gonder').attr('disabled','true');$.ajax({type:"POST",url:"/domsg.php",data:$('#msgfrm').serialize(),cache:false,success:function(message)
{$('#msjgonder').html('<div class="ajaxmsjsent">'+message+'</div>');}});return false;}
function cevir(){$("input[type='checkbox']").attr('checked',true);}
function kankasel(i){var x=$('#k_'+i);if(x.hasClass('selected')){$('#k_'+i+' .sc').attr('checked',false);x.removeClass('selected');}else{$('#k_'+i+' .sc').attr('checked',true);x.addClass('selected');}}
function kilitle(){var lt=document.getElementById('kitles');var lp=document.getElementById('kitlep');var ld=document.getElementById('kitlef');if(!ld||!lp|!ld){alert("bir sorun oluştu.");return false;}
if(lp.value==""){alert("şu anki şifrenizi girmezseniz herhangi bir şey yapamayız.");lp.focus();return false;}
if(lt.options[lt.selectedIndex].value>0){if(!confirm("hesabınız "+lt.options[lt.selectedIndex].text+" boyunca kapalı kalacaktır ve bu süre dolana kadar herhangi bir şekilde erişilemeyecektir. hesap kilidini süresi dolmadan açmak mümkün değildir. geri dönüşü olmayan bu işlemi yapmaya emin misiniz?")){lt.value=0;lt.focus();return false;}}else{alert("süre seçin.");lt.focus();return false;}
ld.sifre.value=lp.value;ld.zaman.value=lt.options[lt.selectedIndex].value;ld.submit();return true;}
function cf(f){if(!(/.+\@.+\..+/.test(f.e.value))){f.e.focus();alert("geçerli bir email adresi yazmadınız");return false;}
if(f.s[f.s.selectedIndex].value=="0"){f.s.focus();alert("kategori seçmediniz");return false;}
if(f.ss.value==""){f.ss.focus();alert("konuya bir şeyler yazın");return false;}
if(f.m.value==""){f.m.focus();alert("boş gönderemiyoruz mesajı");return false;}
f.sub.disabled='yes';return true;}
var isLoginned=false;function entryekle(){if($("#entrybox").val()=='')return false;var x;$('#evet').attr('disabled','true');return true;}
function turkcelestir(){if($("#entrybox").val()=='')return;$('#trk').val('çalışıyor...').attr('disabled','true');$.post("/doajax.php?op=turkcelestir",$("#entryform").serialize(),function(data){$('#entrybox').val(data);$('#trk').val('türkçeleştir').removeAttr("disabled");});return false;}
var genc;function autosave(){var c=$('#entrybox').val();var f=$("#entryform").serialize();if(c&&(genc!=c||!genc))
{$.ajax({type:"POST",url:"/doajax.php?op=autosave",data:f,cache:false,success:function(message)
{$("#timestamp").empty().append(message);}});genc=c;}
var t=setTimeout(autosave,20000);}
$(document).ready(function(){var x=setTimeout(autosave,20000);});function hen(d,a,b){var k=document.getElementById(d);if(document.selection&&!window.opera){var tn=document.selection.createRange();if(tn.parentElement()==k){tn.text=a+tn.text+b;tn.select();}else alert("önce bakınız vermek istediğiniz metni seçiyorsunuz.");}else if(k.selectionStart||k.selectionStart=='0'){var u=k.value;var end=k.selectionEnd;var start=k.selectionStart;k.value=u.substring(0,start)+a+u.substring(start,end)+b+u.substring(end);end+=a.length+b.length;k.setSelectionRange(end,end);}else k.value+=a+b;k.focus();return true;}
function aratara(data){if(data==null)data=$("#aratarafrm").serialize();$.ajax({type:"GET",url:"/doajax.php",data:data,cache:false,success:function(message)
{$('#bgleft').html(message);birdahagosterme();bg();$('.pg a').bind('click',function(){var r=$(this).attr('rel').split(' ');solframe(r[0],r[1]);return false;});$('.bg0').remove();$("body").scrollTop(0);$('#modal').hide(100);}});return false;}
function swv(i)
{$('#'+i).toggle();}
function isv()
{var v=1;if(document.getElementById('nck').value=="")v=0;if(document.getElementById('ml').value=="")v=0;if(v==0)
{alert("lütfen formu eksiksiz doldurun.");return false;}
else return true;}
function ispiptal(id){$.ajax({type:"GET",url:"/doajax.php?op=ispiptal&id="+id,cache:false,success:function(message)
{$('#isp_'+id).remove();}});return false;}
function addtkp(t){$.ajax({type:"GET",url:"/doajax.php?op=addtkp&t="+encodeURIComponent(t),cache:false,success:function(message)
{alert(message);}});return false;}
function presence(){$.ajax({type:"GET",url:"/doajax.php?op=changepresence",cache:false,success:function(message)
{var x=$('#presence_changer');if(x.hasClass('online')){x.removeClass('online').addClass('offline').attr('title','online görüneyim');}else{x.removeClass('offline').addClass('online').attr('title','offline görüneyim');}}});return false;}
var gorseller=null;var gorsel1,gorsel2,key1,key2;function randomgorsel(){if(gorseller==null)return;key1=Math.floor(Math.random()*gorseller.length);key2=key1+1;if(key2>gorseller.length-1)key2=0;gorsel1=gorseller[key1];gorsel2=gorseller[key2];$('#grsl1').children().children().attr('src',gorsel1.img).fadeOut().fadeIn();$('#grsl1').children().attr('href',gorsel1.url);$('#grsl2').children().children().attr('src',gorsel2.img).fadeOut().fadeIn();;$('#grsl2').children().attr('href',gorsel2.url);return false;}
$(document).ready(function(){$('#foot').prepend('itü sözlük, içeriği dünyanın değişik noktalarında bulunan yazarlarca oluşturulan bağımsız bir platformdur.'+' itü sözlük içeriği herhangi bir ön denetimden geçmeksizin yayımlanmakta ve doğruluğu garanti edilememektedir. bu web sitesinde yaratabileceği hukuki sakıncalar başta olmak üzere olumsuz bir durumla karşılaştığınızı düşünüyorsanız lütfen iletişim bölümünden itü sözlük ekibi ile irtibata geçiniz. itü sözlük dahilindeki her türlü içerik <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/" target="_blank">creative commons by-nc-nd</a>  koşulları altında lisanslanmıştır. '+'içerik, kaynağı belirtilmek ve üzerinde değişiklik yapmamak koşuluyla ticari olmayan amaçlarla kullanılabilir.<br /><br />');});function startupload()
{var ext=$('#fl').val().substr(($('#fl').val().length-4),4);ext=ext.toLowerCase();if((ext!=".png"&&ext!=".gif"&&ext!=".jpg"&&ext!=".jpeg")){alert('bir resim dosyası seçmelisiniz');return false;}
$('#ld').show();$('#ulfrm').hide();return true;}
$(document).ready(function(){$('.kn').bind('mouseover',function(){$(this).children('.q').removeClass('hidden');});$('.kn').bind('mouseout',function(){$(this).children('.q').addClass('hidden');});$('.bannerlar').attr('allowTransparency','true')});function loadyazar(y){var data='op=arama&order=yenieski&who='+encodeURIComponent(y);aratara(data);return false;}
function arabkz(y){var data='op=arama&order=abc&kw='+(y);aratara(data);return false;}
$.idleTimer(120000);$(document).bind("idle.idleTimer",function(){if(logon==true){$.ajax({type:"GET",url:"/doajax.php?op=idle",cache:false});$('#presence_changer').addClass('idle');}});$(document).bind("active.idleTimer",function(){if(logon==true){$.ajax({type:"GET",url:"/doajax.php?op=active",cache:false,success:checkmsg});}
$('#presence_changer').removeClass('idle');});function editorisp(ispid,v){$.ajax({type:"GET",url:"/doajax.php?op=editorisp&ispid="+ispid+"&v="+v,cache:false,success:function(message){$('#isp'+ispid).fadeOut()}});return false;}
function canlandirmaeditor(ispid,v){$.ajax({type:"GET",url:"/doajax.php?op=editorcan&ispid="+ispid+"&v="+v,cache:false,success:function(message){$('#isp'+ispid).fadeOut()}});return false;}
function pwr(){$('#prev').html($('#r').val()+' '+$('#r2').val());$('#pre').show();}
function oew(id,h,m){window.open('/goster.php/@'+id+'?c='+h+'&m='+m,'','toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=800,height=400');return false;}
$(document).ready(function(){$('a[target="ana"]').each(function(){$(this).bind('click',function(){window.opener.location.href=$(this).attr('href');return false;});});});$(document).ready(function(){if(logon==true){createkanka(kankalar,false);window.setInterval(checkkanka,70000);}
$('#title').bind('mouseover',function(){$('.bb').removeClass('hidden');}).bind('mouseout',function(){$('.bb').addClass('hidden');});});function setkankalinks(){setyazarlink();$('.kn').bind('mouseover',function(){$(this).children('.q').removeClass('hidden');});$('.kn').bind('mouseout',function(){$(this).children('.q').addClass('hidden');});$('.drm').tipsy({gravity:'e',fade:true});}
function kisalt(t,l){if(t.length>l)return t.substring(0,l)+'..';else return t;}
function createkanka(data,effect){if(data==null)return;$.each(data,function(i,kanka){if($('#knklist'+kanka.uid).length==0){var d;d='<li rel="'+kanka.uid+'" id="knklist'+kanka.uid+'"';if(effect==true)d+=' style="display:none" ';d+='class="kn';if(kanka.idle==1)d+=' idle';if(kanka.status==3)d+=' offline';d+='"><img src="'+kanka.avatar+'" class="avatar st yazarlink" alt="'+kanka.username+'" />';d+='<a href="#" onclick="return ow(\'/msjgonder.php?to='+(kanka.uid)+'\',400,260)">'+kisalt(kanka.username,20)+'</a><span class="q hidden"> <a href="/yazar/'+encodeURIComponent(kanka.username)+'" class="qinfo" title="hakkında her şey">?</a> <a href="#" onclick="return loadyazar(\''+(kanka.username)+'\')" class="qsongiri" title="son girileri">::</a></span><span class="drm" title="'+kanka.durum+'">'+kisalt(kanka.durum,20)+'</span>';d+='</li>';var t=$(d);$('#onlk').append(t);if(effect==true){$('#knklist'+kanka.uid).fadeIn('slow');if(kanka.uyr==1){soundplay('http://cdn.itusozluk.net/sound/'+kankasound);}}}else{if(kanka.idle==1)$('#knklist'+kanka.uid).addClass('idle');else $('#knklist'+kanka.uid).removeClass('idle');}});$('.kn').each(function(){var r=$(this).attr('rel');var f=false;$.each(data,function(i,k){if(k.uid==r)f=true;});if(f==false)$(this).fadeOut('slow',function(){$(this).remove();});});if($('.kn').length>0)$('#onl_kanka').removeClass('hidden');else $('#onl_kanka').addClass('hidden');setkankalinks();}
function checkkanka(){$.ajax({type:"GET",url:"/doajax.php?op=onlinekankalar",cache:false,success:function(message)
{var kankalars=eval(message);createkanka(kankalars,true);}});return false;}
function basligiduzelt(t){if(movebox==false){$('#title').after('<div class="duzeltform" id="duzeltform"><form action="/multimove.php" method="post">nereye: <input type="hidden" name="t" value="'+t+'" />'+'<input type="text" name="to" maxlength="50" size="50" value="'+t+'" /> <input type="submit" value="taşı" /> <input type="button" onclick="$(\'#duzeltform\').remove();movebox=false;" value="boşver" />'+'</div>');movebox=true;}
return false;}
function getnotimg(v){var v2;if(v.length==1)v2='0'+v;else v2=v;return'http://cdn.itusozluk.net/images/icons/numeric/red'+v2+'.png';}
function shownotif(d){$.each(d,function(i,k){var x=$('#'+k.n);if(k.v>0){x.html('<img src="'+getnotimg(k.v)+'" />').removeClass('hidden');}else{x.html('').addClass('hidden');}});}
$(document).ready(function(){if(logon==true){shownotif(notf);window.setInterval(function(){$.ajax({type:"GET",url:"/doajax.php?op=isnewnotification",cache:false,success:function(message)
{shownotif(eval(message));}});},140000);if($('#msjlamba').length!=0)var msgtimer=window.setInterval(checkmsg,60000);}});function mesajcopolay(d){$.each(d,function(i,k){var x=$('#'+k.n+'lamba');if(k.v==false){x.removeClass('yanik');}else{x.addClass('yanik');if(msjsound!=null&&soundplayed==null){soundplay('http://cdn.itusozluk.net/sound/'+msjsound);soundplayed=true;window.clearInterval(msgtimer);if(k.n=='msj')blinkingTitle('yeni mesajınız var',true);}}});}
function checkmsg(){$.ajax({type:"GET",url:"/doajax.php?op=newmsg",cache:false,success:function(message)
{mesajcopolay(eval(message));}});return false;}
$(document).ready(function(){$('.yazarcomplete').attr('autocomplete','off').autocomplete("/doajax.php?op=searchkanka",{}).result(function(event,data,formatted){});var x=$('#status');if(x.html()!='durumum')x.attr('title',x.html()).tipsy({gravity:'e'});$('input[type="button"]').bind('mouseover',function(){$(this).addClass('butover');}).bind('mouseout',function(){$(this).removeClass('butover');});$('.tipsies').tipsy({gravity:'w'});});$(document).bind('keydown','Ctrl+y',function(){openyoklama();});$(document).bind('keydown','Ctrl+s',function(){$('.sform').submit();});$(document).bind('keydown','Ctrl+1',function(){$('body').scrollTo('0px',400);});$(document).bind('keydown','Ctrl+2',function(){loadmodal('icon_aratara','/doajax.php?op=aratara',100,arataraopen);return false;});$(document).bind('keydown','Ctrl+3',function(){loadmodal('icon_sahsim','/doajax.php?op=sahsim',100,sahsimopen);return false;});$(document).bind('keydown','Ctrl+4',function(){loadmodal('online_icon','/doajax.php?op=notifications',100,notifopen);return false;});function refreshyoklama(){$('#yoklama').load('/doajax.php?op=online',function(){$('#ykl').removeClass('toploading');$('#yoklama').fadeIn('fast');setyazarlink();$('.drmv').tipsy();$('.akbkz').tipsy();$('#yoklamaara').focus().attr('autocomplete','off').bind('keyup',function(){var v=$(this).val();$('.sex').each(function(){if($(this).html().substring(0,v.length)!=v)$(this).parent().hide();else $(this).parent().show();});});});return false;}
function openyoklama(){if($('#yoklama:hidden').length>0){$('.sexy').hide();var a=$('#ykl').offset();$('#ykl').addClass('toploading');$('#yoklama').css('top',a.top+18).css('left',a.left).load('/doajax.php?op=online',function(){$('#ykl').removeClass('toploading');$('#yoklama').fadeIn('fast');setyazarlink();$('.drmv').tipsy();$('.akbkz').tipsy();$('#yoklamaara').focus().attr('autocomplete','off').bind('keyup',function(){var v=$(this).val();$('.sex').each(function(){if($(this).html().substring(0,v.length)!=v)$(this).parent().hide();else $(this).parent().show();});});});$('#yoklama').bind('click',function(){$('#yazarinfo').fadeOut('fast');}).bind('mouseout',function(){$(document).bind('click',function(){$('#yoklama').fadeOut('fast');$('#yazarinfo').fadeOut('fast');$(document).unbind('click');});}).bind('mouseover',function(){$(document).unbind('click');});}else{$('#yoklama').fadeOut('fast');}
return false;}
function opengorunum(){if($('#gorunum:hidden').length>0){$('.sexy').hide();var a=$('#gor').offset();$('#gorunum').css('top',a.top+19).css('right',5).load('/doajax.php?op=gorunum',function(){$(this).fadeIn('fast');});$('#gorunum').bind('click',function(){$('#yazarinfo').fadeOut('fast');}).bind('mouseout',function(){$(document).bind('click',function(){$('#gorunum').fadeOut('fast');$('#yazarinfo').fadeOut('fast');$(document).unbind('click');});}).bind('mouseover',function(){$(document).unbind('click');});}else{$('#gorunum').fadeOut('fast');}
return false;}
function openextra(){if($('#extra:hidden').length>0){$('.sexy').hide();var a=$('#ext').offset();$('#extra').css('top',a.top+18).css('left',a.left).load('/doajax.php?op=extra',function(){$(this).fadeIn('fast');});$('#extra').bind('click',function(){$('#yazarinfo').fadeOut('fast');}).bind('mouseout',function(){$(document).bind('click',function(){$('#extra').fadeOut('fast');$('#yazarinfo').fadeOut('fast');$(document).unbind('click');});}).bind('mouseover',function(){$(document).unbind('click');});}else{$('#extra').fadeOut('fast');}
return false;}
function changestyle(i,v){var l=$(v);l.addClass('loading');$.ajax({type:"GET",url:"/doajax.php?op=changestyle&stil="+i,cache:false,success:function(message)
{$("link.custom").attr("href","/static/css/custom/"+i+"/style.css");l.removeClass('loading');}});return false;}
$(document).ready(function(){$('.tipsiess').tipsy();$('.akbkz').tipsy();$('.tipsiesss').tipsy({gravity:'e'});});soundManager.url='/static/swf';soundManager.useHTML5Audio=false;soundManager.useFlashBlock=false;soundManager.debugMode=false;function soundplay(file){var mySound=soundManager.createSound({id:'aSound'+Math.floor(Math.random()*11),url:file});mySound.play();}
function addgorselfromgiri(){$.ajax({type:"POST",url:"/doajax.php?op=addgorsel",data:$('#newgorsf').serialize(),cache:false,success:function(message)
{if(message!='')alert(message);else $('#newgors').html('görseller başarıyla yüklendi');}});return false;}
function showengelli(){$('body').scrollTo('0px',400);$('.eng').css('display','block !important');$('#showeng').hide();return false;}
var pos;function loadmodal(icon,url,h,f){var icon,url,h,f;if($('#modal').is(':visible')&&$('#modal').attr('rel')==url){$('#modal').hide();return false;};$('#modal').hide();$('.icon').removeClass('selectedicon');$('#'+icon).addClass('loading').addClass('selectedicon');$('#modal').load(url,function(){pos=$('#'+icon).offset();$('#modal').css('left',pos.left+'px');$('#modal').show();$('#'+icon).removeClass('loading');$('#modal').attr('rel',url);if(f)f();setyazarlink();});return false;}
$(document).ready(function(){$jScroller.add("#reklam_icon","#scroller","left",2);$jScroller.start();$(document).bind('click',function(){$('#modal').hide();});$('#modal').bind('mouseover',function(){$(document).unbind('click');});$('#modal').bind('mouseout',function(){$(document).bind('click',function(){$('#modal').hide();$('.icon').removeClass('selectedicon');});});});function arataraopen(){$('#kw').focus();$('#who').attr('autocomplete','off').autocomplete("/doajax.php?op=searchkanka");}
function notifopen(){$('#newnotif').remove();}
function sahsimopen(){$('.oyy').tipsy({gravity:'e'});$('#newnotifoy').remove();}
function reklamopen(){var so=new SWFObject('http://cdn.itusozluk.net/swf/player.swf','mpl','530','325','9');so.addParam('allowfullscreen','true');so.addParam('allowscriptaccess','always');so.addParam('wmode','opaque');so.addVariable('file','http://cdn.itusozluk.net/video/lastairbender.flv?2');so.addVariable('controlbar','none');so.addVariable('autostart','true');so.addVariable('stretching','fill');so.write('mediaspace');}
function calendaradd(){$.ajax({type:"POST",url:"/doajax.php?op=calendar&sec=add",data:$('#caladd').serialize(),cache:false,success:function(message)
{$('#caladdli').prepend(message);$('#newev').val('');}});return false;}
function caldel(id){$.ajax({type:"POST",url:"/doajax.php?op=calendar&sec=del&id="+id,cache:false,success:function(message)
{$('#ev'+id).remove();}});return false;}
function notepadsave(){$('#npsbmt').val('kaydediliyor');$.ajax({type:"POST",url:"/doajax.php?op=notepad&sec=save",cache:false,data:$('#npf').serialize(),success:function(message)
{$('#npsbmt').val('kaydet');}});return false;}
function notepaddel(id){$.ajax({type:"POST",url:"/doajax.php?op=notepad&sec=del&id="+id,cache:false,data:$('#npf').serialize(),success:function(message)
{$('#modal').load('/doajax.php?op=notepad');}});return false;}
function notepadgetir(sira){$('#modal').load('/doajax.php?op=notepad&sira='+sira);}
function loadduy(id){if($('#duyc'+id).length==0){$.ajax({type:"GET",url:"/doajax.php?op=duyurular&sec=loaddoy&id="+id,success:function(message)
{$('#dy'+id).after('<li class="duycontent" id="duyc'+id+'">'+message+'</li>');}});}else $('#duyc'+id).remove();return false;}
function loadpage(page){$.ajax({type:"GET",url:"/doajax.php?op=duyurular&sec=page&pg="+page,success:function(message)
{$('#dyrlar').html(message);if(page>1){$('#dypgprev').show().unbind('click').bind('click',function(){return loadpage(page-1);});}
$('#dypgnext').show().unbind('click').bind('click',function(){return loadpage(page+1);});}});return false;}
$(document).ready(function(){$('#dypgr').html('<a href="/duyurular/?a=new" target="_blank" title="yeni duyuru" id="newd">*</a> <a href="#" id="dypgprev" style="display:none">&laquo;&laquo;</div> <a href="#" id="dypgnext">&raquo;&raquo;</a>');$('#dypgnext').show().bind('click',function(){return loadpage(2);});$('#newd').tipsy();});