var Texpand=Class.create();Texpand.prototype={initialize:function(b){var c=this;this.element=$(b);this.increment=30;if(this.element.tagName.toLowerCase()!='textarea')throw('Texpand: can only be initialized with a <textarea> but got <'+this.element.tagName.toLowerCase()+'>');if(typeof Prototype=='undefined'||(parseFloat(Prototype.Version.split(".")[0]+"."+Prototype.Version.split(".")[1])<1.6))throw('Texpand: requires Prototype 1.6.0+');if(typeof Effect=='undefined')throw('Textpand: requires Script.aculo.us, specifically Effects');this.element.insert({after:'<div id="texpand-mimic-'+this.element.identify()+'"></div>'});this.mimic=this.element.next();this.mimic.update(this.element.value);if(Prototype.Browser.IE){var d=this.element.getStyle('fontSize');if(d.search(/em/)>=0){var e=parseFloat(d.replace(/em/,''))*10;this.element.setStyle({fontSize:e+'px'})}}var f={};var g=$w('borderBottomColor borderBottomStyle borderBottomWidth borderTopColor borderTopStyle borderTopWidth borderRightColor borderRightStyle borderRightWidth borderLeftColor borderLeftStyle borderLeftWidth fontSize fontFamily fontWeight letterSpacing lineHeight marginTop marginRight marginBottom marginLeft paddingTop paddingRight paddingBottom paddingLeft textAlign textIndent width wordSpacing');g.each(function(a){f[a]=c.element.getStyle(a)});this.mimic.setStyle(f);this.mimic.setStyle({display:'block',position:'absolute',left:'-9999px',top:'-9999px'});this.element.observe("keyup",c._autoExpand.bind(c));return this.element},_autoExpand:function(b){this.mimic.update(this.element.value.replace(/\n/gm,'<br />'));var c=this.mimic.getHeight();var d=this.element.getHeight();var e=d-c;var f=d+(this.increment-e);if(e<this.increment){var g=Effect.Queues.get('texpand'+this.element.identify());g.each(function(a){a.cancel()});this.element.morph('height: '+f+'px;',{duration:0.1,queue:{position:'end',scope:'texpand'+this.element.identify(),limit:2}})}}};
/*
SoundManager 2: Javascript Sound for the Web
--------------------------------------------
http://schillmania.com/projects/soundmanager2/
Copyright (c) 2008, Scott Schiller. All rights reserved.
Code licensed under the BSD License:
http://schillmania.com/projects/soundmanager2/license.txt
V2.94a.20090206
*/
var soundManager=null;function SoundManager(b,a){this.flashVersion=8;this.debugMode=true;this.useConsole=true;this.consoleOnly=false;this.waitForWindowLoad=false;this.nullURL="null.mp3";this.allowPolling=true;this.useMovieStar=false;this.bgColor="#ffffff";this.useHighPerformance=false;this.flashLoadTimeout=750;this.defaultOptions={autoLoad:false,stream:true,autoPlay:false,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,position:null,pan:0,volume:100};this.flash9Options={onbufferchange:null,isMovieStar:null,usePeakData:false,useWaveformData:false,useEQData:false};this.movieStarOptions={onmetadata:null,useVideo:false};var f=null;var e=this;this.version=null;this.versionNumber="V2.94a.20090206";this.movieURL=null;this.url=null;this.altURL=null;this.swfLoaded=false;this.enabled=false;this.o=null;this.id=(a||"sm2movie");this.oMC=null;this.sounds={};this.soundIDs=[];this.muted=false;this.wmode=null;this.isIE=(navigator.userAgent.match(/MSIE/i));this.isSafari=(navigator.userAgent.match(/safari/i));this.isGecko=(navigator.userAgent.match(/gecko/i));this.debugID="soundmanager-debug";this._debugOpen=true;this._didAppend=false;this._appendSuccess=false;this._didInit=false;this._disabled=false;this._windowLoaded=false;this._hasConsole=(typeof console!="undefined"&&typeof console.log!="undefined");this._debugLevels=["log","info","warn","error"];this._defaultFlashVersion=8;this._oRemoved=null;this._oRemovedHTML=null;var g=function(h){return document.getElementById(h)};this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.netStreamTypes=["aac","flv","mov","mp4","m4v","f4v","m4a","mp4v","3gp","3g2"];this.netStreamPattern=new RegExp("\\.("+this.netStreamTypes.join("|")+")(\\?.*)?$","i");this.filePattern=null;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._setVersionInfo=function(){if(e.flashVersion!=8&&e.flashVersion!=9){alert('soundManager.flashVersion must be 8 or 9. "'+e.flashVersion+'" is invalid. Reverting to '+e._defaultFlashVersion+".");e.flashVersion=e._defaultFlashVersion}e.version=e.versionNumber+(e.flashVersion==9?" (AS3/Flash 9)":" (AS2/Flash 8)");if(e.flashVersion>8){e.defaultOptions=e._mergeObjects(e.defaultOptions,e.flash9Options);e.features.buffering=true}if(e.flashVersion>8&&e.useMovieStar){e.defaultOptions=e._mergeObjects(e.defaultOptions,e.movieStarOptions);e.filePatterns.flash9=new RegExp("\\.(mp3|"+e.netStreamTypes.join("|")+")(\\?.*)?$","i");e.features.movieStar=true}else{e.useMovieStar=false;e.features.movieStar=false}e.filePattern=e.filePatterns[(e.flashVersion!=8?"flash9":"flash8")];e.movieURL=(e.flashVersion==8?"soundmanager2.swf":"soundmanager2_flash9.swf");e.features.peakData=e.features.waveformData=e.features.eqData=(e.flashVersion==9)};this._overHTTP=(document.location?document.location.protocol.match(/http/i):null);this._waitingforEI=false;this._initPending=false;this._tryInitOnFocus=(this.isSafari&&typeof document.hasFocus=="undefined");this._isFocused=(typeof document.hasFocus!="undefined"?document.hasFocus():null);this._okToDisable=!this._tryInitOnFocus;this.useAltURL=!this._overHTTP;var d="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html";this.supported=function(){return(e._didInit&&!e._disabled)};this.getMovie=function(h){return e.isIE?window[h]:(e.isSafari?g(h)||document[h]:g(h))};this.loadFromXML=function(h){try{e.o._loadFromXML(h)}catch(i){e._failSafely();return true}};this.createSound=function(i){if(!e._didInit){throw new Error("soundManager.createSound(): Not loaded yet - wait for soundManager.onload() before calling sound-related methods")}if(arguments.length==2){i={id:arguments[0],url:arguments[1]}}var j=e._mergeObjects(i);var h=j;if(e._idCheck(h.id,true)){return e.sounds[h.id]}if(e.flashVersion>8&&e.useMovieStar){if(h.isMovieStar===null){h.isMovieStar=(h.url.match(e.netStreamPattern)?true:false)}if(h.isMovieStar&&(h.usePeakData||h.useWaveformData||h.useEQData)){h.usePeakData=false;h.useWaveformData=false;h.useEQData=false}}e.sounds[h.id]=new f(h);e.soundIDs[e.soundIDs.length]=h.id;if(e.flashVersion==8){e.o._createSound(h.id,h.onjustbeforefinishtime)}else{e.o._createSound(h.id,h.url,h.onjustbeforefinishtime,h.usePeakData,h.useWaveformData,h.useEQData,h.isMovieStar,(h.isMovieStar?h.useVideo:false))}if(h.autoLoad||h.autoPlay){if(e.sounds[h.id]){e.sounds[h.id].load(h)}}if(h.autoPlay){e.sounds[h.id].play()}return e.sounds[h.id]};this.createVideo=function(h){if(arguments.length==2){h={id:arguments[0],url:arguments[1]}}if(e.flashVersion>=9){h.isMovieStar=true;h.useVideo=true}else{return false}return e.createSound(h)};this.destroySound=function(j,h){if(!e._idCheck(j)){return false}for(var k=0;k<e.soundIDs.length;k++){if(e.soundIDs[k]==j){e.soundIDs.splice(k,1);continue}}e.sounds[j].unload();if(!h){e.sounds[j].destruct()}delete e.sounds[j]};this.destroyVideo=this.destroySound;this.load=function(h,i){if(!e._idCheck(h)){return false}e.sounds[h].load(i)};this.unload=function(h){if(!e._idCheck(h)){return false}e.sounds[h].unload()};this.play=function(h,i){if(!e._idCheck(h)){if(typeof i!="Object"){i={url:i}}if(i&&i.url){i.id=h;e.createSound(i)}else{return false}}e.sounds[h].play(i)};this.start=this.play;this.setPosition=function(h,i){if(!e._idCheck(h)){return false}e.sounds[h].setPosition(i)};this.stop=function(h){if(!e._idCheck(h)){return false}e.sounds[h].stop()};this.stopAll=function(){for(var h in e.sounds){if(e.sounds[h] instanceof f){e.sounds[h].stop()}}};this.pause=function(h){if(!e._idCheck(h)){return false}e.sounds[h].pause()};this.pauseAll=function(){for(var h=e.soundIDs.length;h--;){e.sounds[e.soundIDs[h]].pause()}};this.resume=function(h){if(!e._idCheck(h)){return false}e.sounds[h].resume()};this.resumeAll=function(){for(var h=e.soundIDs.length;h--;){e.sounds[e.soundIDs[h]].resume()}};this.togglePause=function(h){if(!e._idCheck(h)){return false}e.sounds[h].togglePause()};this.setPan=function(h,i){if(!e._idCheck(h)){return false}e.sounds[h].setPan(i)};this.setVolume=function(i,h){if(!e._idCheck(i)){return false}e.sounds[i].setVolume(h)};this.mute=function(h){if(typeof h!="string"){h=null}if(!h){for(var j=e.soundIDs.length;j--;){e.sounds[e.soundIDs[j]].mute()}e.muted=true}else{if(!e._idCheck(h)){return false}e.sounds[h].mute()}};this.muteAll=function(){e.mute()};this.unmute=function(h){if(typeof h!="string"){h=null}if(!h){for(var j=e.soundIDs.length;j--;){e.sounds[e.soundIDs[j]].unmute()}e.muted=false}else{if(!e._idCheck(h)){return false}e.sounds[h].unmute()}};this.unmuteAll=function(){e.unmute()};this.getMemoryUse=function(){if(e.flashVersion==8){return 0}if(e.o){return parseInt(e.o._getMemoryUse(),10)}};this.setPolling=function(h){if(!e.o||!e.allowPolling){return false}e.o._setPolling(h)};this.disable=function(j){if(typeof j=="undefined"){j=false}if(e._disabled){return false}e._disabled=true;for(var h=e.soundIDs.length;h--;){e._disableObject(e.sounds[e.soundIDs[h]])}e.initComplete(j)};this.canPlayURL=function(h){return(h?(h.match(e.filePattern)?true:false):null)};this.getSoundById=function(i,j){if(!i){throw new Error("SoundManager.getSoundById(): sID is null/undefined")}var h=e.sounds[i];return h};this.onload=function(){soundManager._wD("<em>Warning</em>: soundManager.onload() is undefined.",2)};this.onerror=function(){};this._idCheck=this.getSoundById;var c=function(){return false};c._protected=true;this._disableObject=function(i){for(var h in i){if(typeof i[h]=="function"&&typeof i[h]._protected=="undefined"){i[h]=c}}h=null};this._failSafely=function(h){if(typeof h=="undefined"){h=false}if(!e._disabled||h){e.disable(h)}};this._normalizeMovieURL=function(h){var i=null;if(h){if(h.match(/\.swf(\?.*)?$/i)){i=h.substr(h.toLowerCase().lastIndexOf(".swf?")+4);if(i){return h}}else{if(h.lastIndexOf("/")!=h.length-1){h=h+"/"}}}return(h&&h.lastIndexOf("/")!=-1?h.substr(0,h.lastIndexOf("/")+1):"./")+e.movieURL};this._getDocument=function(){return(document.body?document.body:(document.documentElement?document.documentElement:document.getElementsByTagName("div")[0]))};this._getDocument._protected=true;this._createMovie=function(n,l){if(e._didAppend&&e._appendSuccess){return false}if(window.location.href.indexOf("debug=1")+1){e.debugMode=true}e._didAppend=true;e._setVersionInfo();var u=(l?l:e.url);var k=(e.altURL?e.altURL:u);e.url=e._normalizeMovieURL(e._overHTTP?u:k);l=e.url;var m=null;if(e.useHighPerformance&&e.useMovieStar){m="Note: disabling highPerformance, not applicable with movieStar mode on";e.useHighPerformance=false}e.wmode=(e.useHighPerformance&&!e.useMovieStar?"transparent":"");var t={name:n,id:n,src:l,width:"100%",height:"100%",quality:"high",allowScriptAccess:"always",bgcolor:e.bgColor,pluginspage:"http://www.macromedia.com/go/getflashplayer",type:"application/x-shockwave-flash",wmode:e.wmode};var w={id:n,data:l,type:"application/x-shockwave-flash",width:"100%",height:"100%",wmode:e.wmode};var o={movie:l,AllowScriptAccess:"always",quality:"high",bgcolor:e.bgColor,wmode:e.wmode};var j=null;var r=null;if(e.isIE){j=document.createElement("div");var h='<object id="'+n+'" data="'+l+'" type="application/x-shockwave-flash" width="100%" height="100%"><param name="movie" value="'+l+'" /><param name="AllowScriptAccess" value="always" /><param name="quality" value="high" />'+(e.useHighPerformance&&!e.useMovieStar?'<param name="wmode" value="'+e.wmode+'" /> ':"")+'<param name="bgcolor" value="'+e.bgColor+'" /><!-- --></object>'}else{j=document.createElement("embed");for(r in t){if(t.hasOwnProperty(r)){j.setAttribute(r,t[r])}}}var q="soundManager._createMovie(): appendChild/innerHTML set failed. May be app/xhtml+xml DOM-related.";var i=e._getDocument();if(i){e.oMC=g("sm2-container")?g("sm2-container"):document.createElement("div");if(!e.oMC.id){e.oMC.id="sm2-container";e.oMC.className="movieContainer";var z=null;var p=null;if(e.useHighPerformance){z={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px"}}else{z={position:"absolute",width:"1px",height:"1px",top:"-999px",left:"-999px"}}var y=null;for(y in z){if(z.hasOwnProperty(y)){e.oMC.style[y]=z[y]}}try{if(!e.isIE){e.oMC.appendChild(j)}i.appendChild(e.oMC);if(e.isIE){p=e.oMC.appendChild(document.createElement("div"));p.className="sm2-object-box";p.innerHTML=h}e._appendSuccess=true}catch(v){throw new Error(q)}}else{e.oMC.appendChild(j);if(e.isIE){p=e.oMC.appendChild(document.createElement("div"));p.className="sm2-object-box";p.innerHTML=h}e._appendSuccess=true}}};this._writeDebug=function(h,j,i){};this._writeDebug._protected=true;this._wdCount=0;this._wdCount._protected=true;this._wD=this._writeDebug;this._toggleDebug=function(){};this._toggleDebug._protected=true;this._debug=function(){};this._debugTS=function(j,h,i){};this._debugTS._protected=true;this._mergeObjects=function(j,h){var m={};for(var k in j){if(j.hasOwnProperty(k)){m[k]=j[k]}}var l=(typeof h=="undefined"?e.defaultOptions:h);for(var n in l){if(l.hasOwnProperty(n)&&typeof m[n]=="undefined"){m[n]=l[n]}}return m};this.createMovie=function(h){if(h){e.url=h}e._initMovie()};this.go=this.createMovie;this._initMovie=function(){if(e.o){return false}e.o=e.getMovie(e.id);if(!e.o){if(!e.oRemoved){e._createMovie(e.id,e.url)}else{if(!e.isIE){e.oMC.appendChild(e.oRemoved)}else{e.oMC.innerHTML=e.oRemovedHTML}e.oRemoved=null;e._didAppend=true}e.o=e.getMovie(e.id)}};this.waitForExternalInterface=function(){if(e._waitingForEI){return false}e._waitingForEI=true;if(e._tryInitOnFocus&&!e._isFocused){return false}if(e.flashLoadTimeout>0){setTimeout(function(){if(!e._didInit&&e._okToDisable){e._failSafely(true)}},e.flashLoadTimeout)}};this.handleFocus=function(){if(e._isFocused||!e._tryInitOnFocus){return true}e._okToDisable=true;e._isFocused=true;if(e._tryInitOnFocus){window.removeEventListener("mousemove",e.handleFocus,false)}e._waitingForEI=false;setTimeout(e.waitForExternalInterface,500);if(window.removeEventListener){window.removeEventListener("focus",e.handleFocus,false)}else{if(window.detachEvent){window.detachEvent("onfocus",e.handleFocus)}}};this.initComplete=function(h){if(e._didInit){return false}e._didInit=true;if(e._disabled||h){e.onerror.apply(window);return false}else{}if(e.waitForWindowLoad&&!e._windowLoaded){if(window.addEventListener){window.addEventListener("load",e.initUserOnload,false)}else{if(window.attachEvent){window.attachEvent("onload",e.initUserOnload)}}return false}else{e.initUserOnload()}};this.initUserOnload=function(){e.onload.apply(window)};this.init=function(){e._initMovie();if(e._didInit){return false}if(window.removeEventListener){window.removeEventListener("load",e.beginDelayedInit,false)}else{if(window.detachEvent){window.detachEvent("onload",e.beginDelayedInit)}}try{e.o._externalInterfaceTest(false);e.setPolling(true);if(!e.debugMode){e.o._disableDebug()}e.enabled=true}catch(h){e._failSafely(true);e.initComplete();return false}e.initComplete()};this.beginDelayedInit=function(){e._windowLoaded=true;setTimeout(e.waitForExternalInterface,500);setTimeout(e.beginInit,20)};this.beginInit=function(){if(e._initPending){return false}e.createMovie();e._initMovie();e._initPending=true;return true};this.domContentLoaded=function(){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",e.domContentLoaded,false)}e.go()};this._externalInterfaceOK=function(){if(e.swfLoaded){return false}e.swfLoaded=true;e._tryInitOnFocus=false;if(e.isIE){setTimeout(e.init,100)}else{e.init()}};this._setSandboxType=function(h){var i=e.sandbox;i.type=h;i.description=i.types[(typeof i.types[h]!="undefined"?h:"unknown")];if(i.type=="localWithFile"){i.noRemote=true;i.noLocal=false}else{if(i.type=="localWithNetwork"){i.noRemote=false;i.noLocal=true}else{if(i.type=="localTrusted"){i.noRemote=false;i.noLocal=false}}}};this.reboot=function(){if(e.soundIDs.length){}for(var h=e.soundIDs.length;h--;){e.sounds[e.soundIDs[h]].destruct()}try{if(e.isIE){e.oRemovedHTML=e.o.innerHTML}e.oRemoved=e.o.parentNode.removeChild(e.o)}catch(j){}e.enabled=false;e._didInit=false;e._waitingForEI=false;e._initPending=false;e._didInit=false;e._didAppend=false;e._appendSuccess=false;e._didInit=false;e._disabled=false;e._waitingforEI=true;e.swfLoaded=false;e.soundIDs={};e.sounds=[];e.o=null;window.setTimeout(function(){soundManager.beginDelayedInit()},20)};this.destruct=function(){e.disable(true)};f=function(h){var i=this;this.sID=h.id;this.url=h.url;this.options=e._mergeObjects(h);this.instanceOptions=this.options;this._iO=this.instanceOptions;this.pan=this.options.pan;this.volume=this.options.volume;this._debug=function(){if(e.debugMode){var l=null;var n=[];var k=null;var m=null;var j=64;for(l in i.options){if(i.options[l]!==null){if(i.options[l] instanceof Function){k=i.options[l].toString();k=k.replace(/\s\s+/g," ");m=k.indexOf("{");n[n.length]=" "+l+": {"+k.substr(m+1,(Math.min(Math.max(k.indexOf("\n")-1,j),j))).replace(/\n/g,"")+"... }"}else{n[n.length]=" "+l+": "+i.options[l]}}}}};this._debug();this.id3={};this.resetProperties=function(j){i.bytesLoaded=null;i.bytesTotal=null;i.position=null;i.duration=null;i.durationEstimate=null;i.loaded=false;i.playState=0;i.paused=false;i.readyState=0;i.muted=false;i.didBeforeFinish=false;i.didJustBeforeFinish=false;i.isBuffering=false;i.instanceOptions={};i.instanceCount=0;i.peakData={left:0,right:0};i.waveformData=[];i.eqData=[]};i.resetProperties();this.load=function(j){if(typeof j!="undefined"){i._iO=e._mergeObjects(j);i.instanceOptions=i._iO}else{j=i.options;i._iO=j;i.instanceOptions=i._iO}if(typeof i._iO.url=="undefined"){i._iO.url=i.url}if(i._iO.url==i.url&&i.readyState!==0&&i.readyState!=2){return false}i.loaded=false;i.readyState=1;i.playState=0;try{if(e.flashVersion==8){e.o._load(i.sID,i._iO.url,i._iO.stream,i._iO.autoPlay,(i._iO.whileloading?1:0))}else{e.o._load(i.sID,i._iO.url,i._iO.stream?true:false,i._iO.autoPlay?true:false);if(i._iO.isMovieStar&&i._iO.autoLoad&&!i._iO.autoPlay){i.pause()}}}catch(k){e.onerror();e.disable()}};this.unload=function(){if(i.readyState!==0){if(i.readyState!=2){i.setPosition(0,true)}e.o._unload(i.sID,e.nullURL);i.resetProperties()}};this.destruct=function(){e.o._destroySound(i.sID);e.destroySound(i.sID,true)};this.play=function(k){if(!k){k={}}i._iO=e._mergeObjects(k,i._iO);i._iO=e._mergeObjects(i._iO,i.options);i.instanceOptions=i._iO;if(i.playState==1){var j=i._iO.multiShot;if(!j){return false}}if(!i.loaded){if(i.readyState===0){i._iO.stream=true;i._iO.autoPlay=true;i.load(i._iO)}else{if(i.readyState==2){return false}}}if(i.paused){i.resume()}else{i.playState=1;if(!i.instanceCount||e.flashVersion==9){i.instanceCount++}i.position=(typeof i._iO.position!="undefined"&&!isNaN(i._iO.position)?i._iO.position:0);if(i._iO.onplay){i._iO.onplay.apply(i)}i.setVolume(i._iO.volume,true);i.setPan(i._iO.pan,true);e.o._start(i.sID,i._iO.loop||1,(e.flashVersion==9?i.position:i.position/1000))}};this.start=this.play;this.stop=function(j){if(i.playState==1){i.playState=0;i.paused=false;if(i._iO.onstop){i._iO.onstop.apply(i)}e.o._stop(i.sID,j);i.instanceCount=0;i._iO={}}};this.setPosition=function(k,j){if(typeof k=="undefined"){k=0}var l=Math.min(i.duration,Math.max(k,0));i._iO.position=l;e.o._setPosition(i.sID,(e.flashVersion==9?i._iO.position:i._iO.position/1000),(i.paused||!i.playState))};this.pause=function(){if(i.paused||i.playState===0){return false}i.paused=true;e.o._pause(i.sID);if(i._iO.onpause){i._iO.onpause.apply(i)}};this.resume=function(){if(!i.paused||i.playState===0){return false}i.paused=false;e.o._pause(i.sID);if(i._iO.onresume){i._iO.onresume.apply(i)}};this.togglePause=function(){if(!i.playState){i.play({position:(e.flashVersion==9?i.position:i.position/1000)});return false}if(i.paused){i.resume()}else{i.pause()}};this.setPan=function(k,j){if(typeof k=="undefined"){k=0}if(typeof j=="undefined"){j=false}e.o._setPan(i.sID,k);i._iO.pan=k;if(!j){i.pan=k}};this.setVolume=function(j,k){if(typeof j=="undefined"){j=100}if(typeof k=="undefined"){k=false}e.o._setVolume(i.sID,(e.muted&&!i.muted)||i.muted?0:j);i._iO.volume=j;if(!k){i.volume=j}};this.mute=function(){i.muted=true;e.o._setVolume(i.sID,0)};this.unmute=function(){i.muted=false;var j=typeof i._iO.volume!="undefined";e.o._setVolume(i.sID,j?i._iO.volume:i.options.volume)};this._whileloading=function(j,k,l){if(!i._iO.isMovieStar){i.bytesLoaded=j;i.bytesTotal=k;i.duration=Math.floor(l);i.durationEstimate=parseInt((i.bytesTotal/i.bytesLoaded)*i.duration,10);if(i.readyState!=3&&i._iO.whileloading){i._iO.whileloading.apply(i)}}else{i.bytesLoaded=j;i.bytesTotal=k;i.duration=Math.floor(l);i.durationEstimate=i.duration;if(i.readyState!=3&&i._iO.whileloading){i._iO.whileloading.apply(i)}}};this._onid3=function(n,k){var o=[];for(var m=0,l=n.length;m<l;m++){o[n[m]]=k[m]}i.id3=e._mergeObjects(i.id3,o);if(i._iO.onid3){i._iO.onid3.apply(i)}};this._whileplaying=function(k,l,j,m){if(isNaN(k)||k===null){return false}i.position=k;if(i._iO.usePeakData&&typeof l!="undefined"&&l){i.peakData={left:l.leftPeak,right:l.rightPeak}}if(i._iO.useWaveformData&&typeof j!="undefined"&&j){i.waveformData=j}if(i._iO.useEQData&&typeof m!="undefined"&&m){i.eqData=m}if(i.playState==1){if(i._iO.whileplaying){i._iO.whileplaying.apply(i)}if(i.loaded&&i._iO.onbeforefinish&&i._iO.onbeforefinishtime&&!i.didBeforeFinish&&i.duration-i.position<=i._iO.onbeforefinishtime){i._onbeforefinish()}}};this._onload=function(j){j=(j==1?true:false);i.loaded=j;i.readyState=j?3:2;if(i._iO.onload){i._iO.onload.apply(i)}};this._onbeforefinish=function(){if(!i.didBeforeFinish){i.didBeforeFinish=true;if(i._iO.onbeforefinish){i._iO.onbeforefinish.apply(i)}}};this._onjustbeforefinish=function(j){if(!i.didJustBeforeFinish){i.didJustBeforeFinish=true;if(i._iO.onjustbeforefinish){i._iO.onjustbeforefinish.apply(i)}}};this._onfinish=function(){if(i._iO.onbeforefinishcomplete){i._iO.onbeforefinishcomplete.apply(i)}i.didBeforeFinish=false;i.didJustBeforeFinish=false;if(i.instanceCount){i.instanceCount--;if(!i.instanceCount){i.playState=0;i.paused=false;i.instanceCount=0;i.instanceOptions={};if(i._iO.onfinish){i._iO.onfinish.apply(i)}}}else{}};this._onmetadata=function(j){if(!j.width&&!j.height){j.width=320;j.height=240}i.metadata=j;i.width=j.width;i.height=j.height;if(i._iO.onmetadata){i._iO.onmetadata.apply(i)}};this._onbufferchange=function(j){if(j==i.isBuffering){return false}i.isBuffering=(j==1?true:false);if(i._iO.onbufferchange){i._iO.onbufferchange.apply(i)}}};if(window.addEventListener){window.addEventListener("focus",e.handleFocus,false);window.addEventListener("load",e.beginDelayedInit,false);window.addEventListener("unload",e.destruct,false);if(e._tryInitOnFocus){window.addEventListener("mousemove",e.handleFocus,false)}}else{if(window.attachEvent){window.attachEvent("onfocus",e.handleFocus);window.attachEvent("onload",e.beginDelayedInit);window.attachEvent("unload",e.destruct)}else{soundManager.onerror();soundManager.disable()}}if(document.addEventListener){document.addEventListener("DOMContentLoaded",e.domContentLoaded,false)}}soundManager=new SoundManager();
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();
//  Lightview 2.5.1 - 05-09-2009
//  Copyright (c) 2008-2009 Nick Stakenburg (http://www.nickstakenburg.com)
//
//  Licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License
//  http://creativecommons.org/licenses/by-nc-nd/3.0/
//  More information on this project:
//  http://www.nickstakenburg.com/projects/lightview/
var Scriptaculous = {Version: '1.8.2'}
var Lightview = {
Version: '2.5.1',
// Configuration
options: {
backgroundColor: '#FFFFFF',                            // Background color of the view
border: 12,                                            // Size of the border
buttons: {
opacity: {                                           // Opacity of inner buttons
disabled: 0.4,
normal: 0.75,
hover: 1
},
side: { display: true },                             // Toggle side buttons
innerPreviousNext: { display: true },                // Toggle the inner previous and next button
slideshow: { display: true },                        // Toggle slideshow button
topclose: { side: 'right' }                          // 'right' or 'left'
},
controller: {                                          // The controller is used on sets
backgroundColor: '#4d4d4d',
border: 6,
buttons: {
innerPreviousNext: true,
side: false
},
margin: 18,
opacity: 0.7,
radius: 6,
setNumberTemplate: '#{position} von #{total}'
},
cyclic: false,                                         // Makes galleries cyclic, no end/begin
images: '/assets/style/lightview/',                        // The directory of the images, from this file
imgNumberTemplate: 'Bild #{position} von #{total}',    // Want a different language? change it here
keyboard: true,                                        // Toggle keyboard buttons
menubarPadding: 6,                                     // Space between menubar and content in px
overlay: {                                             // Overlay
background: '#464A51',                                  // Background color, Mac Firefox & Mac Safari use overlay.png
close: true,
opacity: 0.7,
display: true
},
preloadHover: false,                                   // Preload images on mouseover
radius: 12,                                            // Corner radius of the border
removeTitles: true,                                    // Set to false if you want to keep title attributes intact
resizeDuration: 0.45,                                  // The duration of the resize effect in seconds
slideshowDelay: 5,                                     // Delay in seconds before showing the next slide
titleSplit: '::',                                      // The characters you want to split title with
transition: function(pos) {                            // Or your own transition
return ((pos/=0.5) < 1 ? 0.5 * Math.pow(pos, 4) :
-0.5 * ((pos-=2) * Math.pow(pos,3) - 2));
},
viewport: true,                                        // Stay within the viewport, true is recommended
zIndex: 5000,                                          // zIndex of #lightview, #overlay is this -1
startDimensions: {                                     // Dimensions Lightview starts at
width: 100,
height: 100
},
closeDimensions: {                                     // Modify if you've changed the close button images
large: { width: 77, height: 22 },
small: { width: 25, height: 22 }
},
sideDimensions: {                                      // Modify if you've changed the side button images
width: 16,
height: 22
},
defaultOptions : {                                     // Default options for each type of view
image: {
menubar: 'top',
closeButton: 'small',
topclose: true,
keyboard: true
},
gallery: {
menubar: 'bottom',
controls: true,
closeButton: 'small',
topclose: true,
keyboard: true
},
ajax:   {
width: 400,
height: 300,
menubar: 'top',
closeButton: 'small',
overflow: 'auto'
},
iframe: {
width: 400,
height: 300,
menubar: 'top',
scrolling: true,
closeButton: 'small'
},
inline: {
width: 400,
height: 300,
menubar: 'top',
closeButton: 'small',
overflow: 'auto'
},
flash: {
width: 400,
height: 300,
menubar: 'bottom',
closeButton: 'large'
},
quicktime: {
width: 480,
height: 220,
autoplay: true,
controls: true,
closeButton: 'large'
}
}
},
classids: {
quicktime: 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
flash: 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
},
codebases: {
quicktime: 'http://www.apple.com/qtactivex/qtplugin.cab#version=7,5,5,0',
flash: 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0'
},
errors: {
requiresPlugin: "<div class='message'> The content your are attempting to view requires the <span class='type'>#{type}</span> plugin.</div><div class='pluginspage'><p>Please download and install the required plugin from:</p><a href='#{pluginspage}' target='_blank'>#{pluginspage}</a></div>"
},
mimetypes: {
quicktime: 'video/quicktime',
flash: 'application/x-shockwave-flash'
},
pluginspages: {
quicktime: 'http://www.apple.com/quicktime/download',
flash: 'http://www.adobe.com/go/getflashplayer'
},
// used with auto detection
typeExtensions: {
flash: 'swf',
image: 'bmp gif jpeg jpg png',
iframe: 'asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt',
quicktime: 'avi mov mpg mpeg movie'
}
};
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(u(){G l=!!1d.8P("3j").5h,2H=1l.1T.2I&&(u(a){G b=E 4p("8Q ([\\\\d.]+)").8R(a);O b?3J(b[1]):-1})(35.4q)<7,2t=(1l.1T.5i&&!1d.3K),2R=35.4q.22("6x")>-1&&3J(35.4q.3L(/6x[\\/\\s](\\d+)/)[1])<3,4r=!!35.4q.3L(/8S/i)&&(2t||2R);18.1o(11,{8T:"1.6.1",8U:"1.8.2",V:{1b:"5j",3k:"Y"},5k:u(a){q((8V 1J[a]=="8W")||(n.5l(1J[a].8X)<n.5l(n["6y"+a]))){8Y("11 8Z "+a+" >= "+n["6y"+a])}},5l:u(a){G v=a.2S(/6z.*|\\./g,"");v=4s(v+"0".90(4-v.1s));O a.22("6z")>-1?v-1:v},5m:u(){n.5k("1l");q(!!1J.17&&!1J.6A){n.5k("6A")}q(/^(91?:\\/\\/|\\/)/.4t(n.F.1f)){n.1f=n.F.1f}10{G b=/Y(?:-[\\w\\d.]+)?\\.92(.*)/;n.1f=(($$("93 94[1x]").6B(u(s){O s.1x.3L(b)})||{}).1x||"").2S(b,"")+n.F.1f}q(!l){q(1d.5n>=8&&!1d.6C.3l){1d.6C.95("3l","96:97-98-99:9a","#5o#6D")}10{1d.1i("5p:3M",u(){G a=1d.9b();a.9c="3l\\\\:*{9d:3N(#5o#6D)}"})}}},5q:u(){n.1C=n.F.1C;n.W=(n.1C>n.F.W)?n.1C:n.F.W;n.1K=n.F.1K;n.1U=n.F.1U;n.4u()}});18.1o(11,{6E:14,2g:u(){G a=3O.9e;a.5r++;q(a.5r==n.6E){$(1d.29).5s("Y:3M")}}});11.2g.5r=0;18.1o(11,{4u:u(){n.Y=E N("U",{2T:"Y"});G d,3m,4v=1V(n.1U);q(2t){n.Y.19=u(){n.I("1j:-3n;1e:-3n;1p:1W;");O n};n.Y.1c=u(){n.I("1p:1y");O n};n.Y.1y=u(){O(n.1L("1p")=="1y"&&3J(n.1L("1e").2S("M",""))>-6F)}}$(1d.29).Q(n.2u=E N("U",{2T:"6G"}).I({2U:n.F.2U-1,1b:(!(2R||2H))?"4w":"36",2a:4r?"3N("+n.1f+"2u.1w) 1e 1j 3o":n.F.2u.2a}).1q(4r?1:n.F.2u.1F).19()).Q(n.Y.I({2U:n.F.2U,1e:"-3n",1j:"-3n"}).1q(0).Q(n.6H=E N("U",{R:"9f"}).Q(n.3P=E N("3p",{R:"9g"}).Q(n.6I=E N("1D",{R:"9h"}).I(3m=18.1o({1M:-1*n.1U.H+"M"},4v)).Q(n.4x=E N("U",{R:"5t"}).I(18.1o({1M:n.1U.H+"M"},4v)).Q(E N("U",{R:"1G"})))).Q(n.6J=E N("1D",{R:"9i"}).I(18.1o({6K:-1*n.1U.H+"M"},4v)).Q(n.4y=E N("U",{R:"5t"}).I(3m).Q(E N("U",{R:"1G"}))))).Q(n.6L=E N("U",{R:"6M"}).Q(n.4z=E N("U",{R:"5t 9j"}).Q(n.9k=E N("U",{R:"1G"})))).Q(E N("3p",{R:"9l"}).Q(E N("1D",{R:"6N 9m"}).Q(d=E N("U",{R:"9n"}).I({J:n.W+"M"}).Q(E N("3p",{R:"6O 9o"}).Q(E N("1D",{R:"6P"}).Q(E N("U",{R:"2v"})).Q(E N("U",{R:"38"}).I({1j:n.W+"M"})))).Q(E N("U",{R:"6Q"})).Q(E N("3p",{R:"6O 9p"}).Q(E N("1D",{R:"6P"}).I("1N-1e: "+(-1*n.W)+"M").Q(E N("U",{R:"2v"})).Q(E N("U",{R:"38"}).I("1j: "+(-1*n.W)+"M")))))).Q(n.4A=E N("1D",{R:"9q"}).I("J: "+(9r-n.W)+"M").Q(E N("U",{R:"9s"}).Q(E N("U",{R:"6R"}).I("1N-1e: "+n.W+"M").Q(n.2V=E N("U",{R:"9t"}).1q(0).I("3q: 0 "+n.W+"M").Q(n.6S=E N("U",{R:"9u 38"})).Q(n.1r=E N("U",{R:"9v 6T"}).Q(n.2h=E N("U",{R:"1G 6U"}).I(1V(n.F.1K.3a)).I({2a:n.F.12}).1q(n.F.1E.1F.3b)).Q(n.2W=E N("3p",{R:"9w"}).Q(n.5u=E N("1D",{R:"9x"}).Q(n.1H=E N("U",{R:"9y"})).Q(n.2i=E N("U",{R:"9z"}))).Q(n.5v=E N("U",{R:"9A"}).Q(n.3Q=E N("1D",{R:"9B"}).Q(E N("U"))).Q(n.4B=E N("1D",{R:"9C"}).Q(n.9D=E N("U",{R:"1G"}).1q(n.F.1E.1F.3b).I({12:n.F.12}).1O(n.1f+"9E.1w",{12:n.F.12})).Q(n.9F=E N("U",{R:"1G"}).1q(n.F.1E.1F.3b).I({12:n.F.12}).1O(n.1f+"9G.1w",{12:n.F.12}))).Q(n.2b=E N("1D",{R:"9H"}).Q(n.3c=E N("U",{R:"1G"}).1q(n.F.1E.1F.3b).I({12:n.F.12}).1O(n.1f+"6V.1w",{12:n.F.12})))))).Q(n.6W=E N("U",{R:"9I "}))))).Q(n.3r=E N("U",{R:"6X"}).Q(n.9J=E N("U",{R:"1G"}).I("2a: 3N("+n.1f+"3r.5w) 1e 1j 4C-3o")))).Q(E N("1D",{R:"6N 9K"}).Q(d.9L(2c))).Q(n.1X=E N("1D",{R:"9M"}).19().I("1N-1e: "+n.W+"M; 2a: 3N("+n.1f+"9N.5w) 1e 1j 3o"))))).Q(E N("U",{2T:"3R"}).19());G f=E 2j();f.1z=u(){f.1z=1l.2w;n.1U={H:f.H,J:f.J};G a=1V(n.1U),3m;n.3P.I({23:0-(f.J/2).2k()+"M",J:f.J+"M"});n.6I.I(3m=18.1o({1M:-1*n.1U.H+"M"},a));n.4x.I(18.1o({1M:a.H},a));n.6J.I(18.1o({6K:-1*n.1U.H+"M"},a));n.4y.I(3m);n.2g()}.X(n);f.1x=n.1f+"2x.1w";$w("2V 1H 2i 3Q").3S(u(e){n[e].I({12:n.F.12})}.X(n));G g=n.6H.2y(".2v");$w("6Y 6Z bl br").1g(u(a,i){q(n.1C>0){n.5x(g[i],a)}10{g[i].Q(E N("U",{R:"38"}))}g[i].I({H:n.W+"M",J:n.W+"M"}).70("2v"+a.1P());n.2g()}.X(n));n.Y.2y(".6Q",".38",".6R").3s("I",{12:n.F.12});G S={};$w("2x 1h 2l").1g(u(s){n[s+"3t"].1Q=s;G b=n.1f+s+".1w";q(s=="2l"){S[s]=E 2j();S[s].1z=u(){S[s].1z=1l.2w;n.1K[s]={H:S[s].H,J:S[s].J};G a=n.F.1E.2l.1Q,2e=18.1o({"5y":a,23:n.1K[s].J+"M"},1V(n.1K[s]));2e["3q"+a.1P()]=n.W+"M";n[s+"3t"].I(2e);n.6L.I({J:S[s].J+"M",1e:-1*n.1K[s].J+"M"});n[s+"3t"].5z().1O(b).I(1V(n.1K[s]));n.2g()}.X(n);S[s].1x=n.1f+s+".1w"}10{n[s+"3t"].1O(b)}},n);G C={};$w("3a 5A").1g(u(a){C[a]=E 2j();C[a].1z=u(){C[a].1z=1l.2w;n.1K[a]={H:C[a].H,J:C[a].J};n.2g()}.X(n);C[a].1x=n.1f+"71"+a+".1w"},n);G L=E 2j();L.1z=u(){L.1z=1l.2w;n.3r.I({H:L.H+"M",J:L.J+"M",23:-0.5*L.J+0.5*n.W+"M",1M:-0.5*L.H+"M"});n.2g()}.X(n);L.1x=n.1f+"3r.5w";G h=E 2j();h.1z=u(a){h.1z=1l.2w;G b={H:h.H+"M",J:h.J+"M"};n.2b.I(b);n.3c.I(b);n.2g()}.X(n);h.1x=n.1f+"72.1w";$w("2x 1h").1g(u(s){G S=s.1P(),i=E 2j();i.1z=u(){i.1z=1l.2w;n["3u"+S+"3v"].I({H:i.H+"M",J:i.J+"M"});n.2g()}.X(n);i.1x=n.1f+"9O"+s+".1w";n["3u"+S+"3v"].1X=s},n);$w("2b 4B 3Q").1g(u(c){n[c].19=n[c].19.1A(u(a,b){n.2e.1b="36";a(b);O n});n[c].1c=n[c].1c.1A(u(a,b){n.2e.1b="9P";a(b);O n})},n);n.Y.2y("*").3s("I",{2U:n.F.2U+1});n.Y.19();n.2g()},73:u(){17.2J.2m("Y").3S(u(e){e.74()});n.1Y=1I;q(n.y.1Z()){n.75=n.76;q(n.13&&!n.13.1y()){n.13.I("1p:1W").1c();n.3d.1q(0)}}10{n.75=1I;n.13.19()}q(4s(n.4z.1L("23"))<n.1K.2l.J){n.5B(2K)}n.77();n.78();E 17.1m({V:n.V,1t:u(){$w("1e 3T").1g(u(a){G b=a.1P();n["3w"+b].2n();G c={};n["3w"+b]=E N("U",{R:"9Q"+b}).19();c[a]=n["3w"+b];n.2V.Q(c)}.X(n))}.X(n)});n.5C();n.1n=1I},5D:u(){q(!n.3U||!n.3V){O}n.3V.Q({2X:n.3U.I({2z:n.3U.79})});n.3V.2n();n.3V=1I},1c:u(b){n.1u=1I;G c=18.7a(b);q(18.7b(b)||c){q(c&&b.3x("#")){n.1c({1k:b,F:18.1o({4D:2c},3O[1]||{})});O}n.1u=$(b);q(!n.1u){O}n.1u.9R();n.y=n.1u.24||E 11.3W(n.1u)}10{q(b.1k){n.1u=$(1d.29);n.y=E 11.3W(b)}10{q(18.7c(b)){n.1u=n.4E(n.y.26)[b];n.y=n.1u.24}}}q(!n.y.1k){O}n.73();q(n.y.2o()||n.y.1Z()){n.7d(n.y.26);n.1n=n.5E(n.y.26);q(n.y.1Z()){n.2A=n.1n.1s>1?n.7e:0;n.2Y=n.1n.9S(u(a){O a.2Z()})}}n.3X();n.7f();q(n.y.1k!="#3R"&&18.7g(11.4F).7h(" ").22(n.y.1a)>=0){q(!11.4F[n.y.1a]){$("3R").1B(E 4G(n.9T.9U).3K({1a:n.y.1a.1P(),5F:n.5G[n.y.1a]}));G d=$("3R").2f();n.1c({1k:"#3R",1H:n.y.1a.1P()+" 9V 9W",F:d});O 2K}}G e=18.1o({1r:"3T",2l:2K,5H:"9X",3Y:n.y.2o()&&n.F.1E.3Y.2z,5I:n.F.5I,2b:(n.y.2o()&&n.F.1E.2b.2z)||(n.2Y),2B:"1W",7i:n.F.2u.9Y,3Z:n.F.3Z},n.F.9Z[n.y.1a]||{});n.y.F=18.1o(e,n.y.F);q(n.y.1Z()){n.y.F.2l=(n.1n.1s<=1)}q(!(n.y.1H||n.y.2i||(n.1n&&n.1n.1s>1))&&n.y.F.2l){n.y.F.1r=2K}n.1R="3w"+(n.y.F.1r=="1e"?"7j":"7k");q(n.y.2Z()){q(!l&&!n.y.7l){n.y.7l=2c;G f=E N("3l:2p",{1x:n.y.1k,2z:"a0"}).I("J:5J;H:5J;");$(1d.29).Q(f);N.2n.3e(0.1,f)}q(n.y.2o()||n.y.1Z()){n.1b=n.1n.22(n.y);n.7m()}n.27=n.y.4H;q(n.27){n.4I()}10{n.5K();G f=E 2j();f.1z=u(){f.1z=1l.2w;n.4J();n.27={H:f.H,J:f.J};n.4I()}.X(n);f.1x=n.y.1k}}10{q(n.y.1Z()){n.1b=n.1n.22(n.y)}n.27=n.y.F.7n?m.2f():{H:n.y.F.H,J:n.y.F.J};n.4I()}},4K:(u(){u 5L(a,b,c){a=$(a);G d=1V(c);a.1B(E N("7o",{2T:"2C",1x:b,a1:"",a2:"4C"}).I(d))}G k=(u(){u 7p(a,b,c){a=$(a);G d=18.1o({"5y":"1j"},1V(c));G e=E N("3l:2p",{1x:b,2T:"2C"}).I(d);a.1B(e);e.4L=e.4L}u 7q(b,c,d){b=$(b);G f=1V(d),2p=E 2j();2p.1z=u(){3j=E N("3j",f);b.1B(3j);40{G a=3j.5h("2d");a.a3(2p,0,0,d.H,d.J)}41(e){5L(b,c,d)}}.X(n);2p.1x=c}q(1l.1T.2I){O 7p}10{O 7q}})();O u(){G c=n.7r(n.y.1k),2L=n.1Y||n.27;q(n.y.2Z()){G d=1V(2L);n[n.1R].I(d);q(n.1Y){k(n[n.1R],n.y.1k,2L)}10{5L(n[n.1R],n.y.1k,2L)}}10{q(n.y.5M()){4M(n.y.1a){2M"42":G f=18.5N(n.y.F.42)||{};G g=u(){n.4J();q(n.y.F.4D){n[n.1R].I({H:"1S",J:"1S"});n.27=n.5O(n[n.1R])}E 17.1m({V:n.V,1t:n.4N.X(n)})}.X(n);q(f.4O){f.4O=f.4O.1A(u(a,b){g();a(b)})}10{f.4O=g}n.5K();E a4.a5(n[n.1R],n.y.1k,f);2D;2M"2E":q(n.1Y){2L.J-=n.3f.J}n[n.1R].1B(n.2E=E N("2E",{a6:0,a7:0,1x:n.y.1k,2T:"2C",2q:"a8"+(7s.a9()*aa).2k(),7t:(n.y.F&&n.y.F.7t)?"1S":"4C"}).I(18.1o({W:0,1N:0,3q:0},1V(2L))));2D;2M"4P":G h=n.y.1k,2r=$(h.5P(h.22("#")+1));q(!2r||!2r.43){O}G i=2r.2f();2r.Q({ab:n.3V=E N(2r.43).19()});2r.79=2r.1L("2z");n.3U=2r.1c();n[n.1R].1B(n.3U);n[n.1R].2y("2y, 3y, 5Q").1g(u(b){n.44.1g(u(a){q(a.1u==b){b.I({1p:a.1p})}})}.X(n));q(n.y.F.4D){n.27=i;E 17.1m({V:n.V,1t:n.4N.X(n)})}2D}}10{G j={20:"3y",2T:"2C",H:2L.H,J:2L.J};4M(n.y.1a){2M"45":18.1o(j,{5F:n.5G[n.y.1a],3z:[{20:"2F",2q:"7u",2N:n.y.F.7u},{20:"2F",2q:"7v",2N:"ac"},{20:"2F",2q:"13",2N:n.y.F.7w},{20:"2F",2q:"ad",2N:2c},{20:"2F",2q:"1x",2N:n.y.1k},{20:"2F",2q:"7x",2N:n.y.F.7x||2K}]});18.1o(j,1l.1T.2I?{ae:n.af[n.y.1a],ag:n.ah[n.y.1a]}:{2W:n.y.1k,1a:n.7y[n.y.1a]});2D;2M"46":18.1o(j,{2W:n.y.1k,1a:n.7y[n.y.1a],ai:"aj",5H:n.y.F.5H,5F:n.5G[n.y.1a],3z:[{20:"2F",2q:"ak",2N:n.y.1k},{20:"2F",2q:"al",2N:"2c"}]});q(n.y.F.7z){j.3z.47({20:"2F",2q:"am",2N:n.y.F.7z})}2D}n[n.1R].I(1V(2L)).1B(n.5R(j)).1c();q(n.y.48()){(u(){40{q("7A"7B $("2C")){$("2C").7A(n.y.F.7w)}}41(e){}}.X(n)).an()}}}}})(),5O:u(b){b=$(b);G d=b.ao(),5S=[],5T=[];d.47(b);d.1g(u(c){q(c!=b&&c.1y()){O}5S.47(c);5T.47({2z:c.1L("2z"),1b:c.1L("1b"),1p:c.1L("1p")});c.I({2z:"ap",1b:"36",1p:"1y"})});G e={H:b.aq,J:b.ar};5S.1g(u(r,a){r.I(5T[a])});O e},4Q:u(){G a=$("2C");q(a){4M(a.43.4R()){2M"3y":q(1l.1T.5i&&n.y.48()){40{a.7C()}41(e){}a.as=""}q(a.7D){a.2n()}10{a=1l.2w}2D;2M"2E":a.2n();q(1l.1T.at&&1J.7E.2C){5U 1J.7E.2C}2D;5o:a.2n();2D}}$w("7k 7j").1g(u(S){n["3w"+S].I("H:1S;J:1S;").1B("").19()},n)},7F:1l.K,4I:u(){E 17.1m({V:n.V,1t:n.4S.X(n)})},4S:u(){n.3g();q(!n.y.5V()){n.4J()}q(!((n.y.F.4D&&n.y.7G())||n.y.5V())){n.4N()}q(!n.y.4T()){E 17.1m({V:n.V,1t:n.4K.X(n)})}q(n.y.F.2l){E 17.1m({V:n.V,1t:n.5B.X(n,2c)})}},7H:u(){E 17.1m({V:n.V,1t:n.7I.X(n)});q(n.y.4T()){E 17.1m({3e:0.2,V:n.V,1t:n.4K.X(n)})}q(n.3A){E 17.1m({V:n.V,1t:n.7J.X(n)})}q(n.y.48()){E 17.1m({V:n.V,1t:N.I.X(n,n[n.1R],"1p:1y")})}},2O:u(){q(17.2J.2m(11.V.3k).5W.1s){O}n.1c(n.30().2O)},1h:u(){q(17.2J.2m(11.V.3k).5W.1s){O}n.1c(n.30().1h)},4N:u(){n.7F();G a=n.5X(),31=n.7K();q(n.y.F.3Z&&(a.H>31.H||a.J>31.J)){q(n.y.F.7n){n.1Y=31;n.3g();a=31}10{G c=n.7L(),b=31;q(n.y.4U()){G d=[31.J/c.J,31.H/c.H,1].au();n.1Y={H:(n.27.H*d).2k(),J:(n.27.J*d).2k()}}10{n.1Y={H:c.H>b.H?b.H:c.H,J:c.J>b.J?b.J:c.J}}n.3g();a=18.5N(n.1Y);q(n.y.4U()){a.J+=n.3f.J}}}10{n.3g();n.1Y=1I}n.5Y(a)},49:u(a){n.5Y(a,{28:0})},5Y:(u(){G e,4V,4W,7M,7N,2A,b;G f=(u(){G w,h;u 4X(p){w=(e.H+p*4V).4a(0);h=(e.J+p*4W).4a(0)}G a;q(2H){a=u(p){n.Y.I({H:(e.H+p*4V).4a(0)+"M",J:(e.J+p*4W).4a(0)+"M"});n.4A.I({J:h-1*n.W+"M"})}}10{q(2R){a=u(p){G v=n.4Y(),o=1d.3Z.7O();n.Y.I({1b:"36",1M:0,23:0,H:w+"M",J:h+"M",1j:(o[0]+(v.H/2)-(w/2)).4b()+"M",1e:(o[1]+(v.J/2)-(h/2)).4b()+"M"});n.4A.I({J:h-1*n.W+"M"})}}10{a=u(p){n.Y.I({1b:"4w",H:w+"M",J:h+"M",1M:((0-w)/2).2k()+"M",23:((0-h)/2-2A).2k()+"M"});n.4A.I({J:h-1*n.W+"M"})}}}O u(p){4X.3B(n,p);a.3B(n,p)}})();O u(a){G c=3O[1]||{};e=n.Y.2f();b=2*n.W;H=a.H?a.H+b:e.H;J=a.J?a.J+b:e.J;n.5Z();q(e.H==H&&e.J==J){E 17.1m({V:n.V,1t:n.60.X(n,a)});O}G d={H:H+"M",J:J+"M"};4V=H-e.H;4W=J-e.J;7M=4s(n.Y.1L("1M").2S("M",""));7N=4s(n.Y.1L("23").2S("M",""));2A=n.13.1y()?(n.2A/2):0;q(!2H){18.1o(d,{1M:0-H/2+"M",23:0-J/2+"M"})}q(c.28==0){f.3B(n,1)}10{n.61=E 17.7P(n.Y,0,1,18.1o({28:n.F.av,V:n.V,7Q:n.F.7Q,1t:n.60.X(n,a)},c),f.X(n))}}})(),60:u(a){q(!n.3f){O}G b=n[n.1R],4Z;q(n.y.F.2B=="1S"){4Z=b.2f()}b.I({J:(a.J-n.3f.J)+"M",H:a.H+"M"});q(n.y.F.2B!="1W"&&(n.y.5V()||n.y.7G())){q(1l.1T.2I){q(n.y.F.2B=="1S"){G c=b.2f();b.I("2B:1y");G d={7R:"1W",7S:"1W"},62=0,51=15;q(4Z.J>a.J){d.7S="1S";d.H=c.H-51;d.aw="7T";62=51}q(4Z.H-62>a.H){d.7R="1S";d.J=c.J-51;d.ax="7T"}b.I(d)}10{b.I({2B:n.y.F.2B})}}10{b.I({2B:n.y.F.2B})}}10{b.I("2B:1W")}n.3X();n.61=1I;n.7H()},7I:u(){E 17.1m({V:n.V,1t:n.5Z.X(n)});E 17.1m({V:n.V,1t:u(){n[n.1R].1c();n.3g();q(n.1r.1y()){n.1r.I("1p:1y").1q(1)}}.X(n)});E 17.ay([E 17.7U(n.2V,{7V:2c,52:0,53:1}),E 17.54(n.3P,{7V:2c})],{V:n.V,28:0.25,1t:u(){q(n.1u){n.1u.5s("Y:az")}}.X(n)});q(n.y.2o()||(n.2Y&&n.F.13.1E.1Q)){E 17.1m({V:n.V,1t:n.7W.X(n)})}},78:(u(){u 2X(){n.4Q();n.4z.I({23:n.1K.2l.J+"M"});n.5D();q(n.y.48()){n[n.1R].I("1p:1W")}}u 7X(p){n.2V.1q(p);n.3P.1q(p)}O u(){q(!n.Y.1y()){n.2V.1q(0);n.3P.1q(0);n.4Q();O}E 17.7P(n.Y,1,0,{28:0.2,V:n.V,1t:2X.X(n)},7X.X(n))}})(),7Y:u(){$w("5v 2W 5u 1H 2i 3Q 4B 2b 2h").1g(u(a){N.19(n[a])},n);n.1r.I("1p:1W").1q(0)},3g:u(){n.7Y();q(!n.y.F.1r){n.3f={H:0,J:0};n.63=0;n.1r.19()}10{n.1r.1c()}q(n.y.1H||n.y.2i){n.5u.1c();n.2W.1c()}q(n.y.1H){n.1H.1B(n.y.1H).1c()}q(n.y.2i){n.2i.1B(n.y.2i).1c()}q(n.1n&&n.1n.1s>1){q(n.y.1Z()){n.2G.1B(E 4G(n.F.13.7Z).3K({1b:n.1b+1,64:n.1n.1s}));q(n.13.1L("1p")=="1W"){n.13.I("1p:1y");q(n.65){17.2J.2m("Y").2n(n.65)}n.65=E 17.54(n.3d,{V:n.V,28:0.1})}}10{n.2W.1c();q(n.y.2Z()){n.5v.1c();n.3Q.1c().5z().1B(E 4G(n.F.aA).3K({1b:n.1b+1,64:n.1n.1s}));q(n.y.F.2b){n.3c.1c();n.2b.1c()}}}}G a=n.y.1Z();q((n.y.F.3Y||a)&&n.1n.1s>1){G b={2x:(n.F.32||n.1b!=0),1h:(n.F.32||((n.y.2o()||a)&&n.30().1h!=0))};$w("2x 1h").1g(u(z){G Z=z.1P(),3C=b[z]?"80":"1S";q(a){n["13"+Z].I({3C:3C}).1q(b[z]?1:n.F.1E.1F.66)}10{n["3u"+Z+"3v"].I({3C:3C}).1q(b[z]?n.F.1E.1F.3b:n.F.1E.1F.66)}}.X(n));q(n.y.F.3Y||n.F.13.3Y){n.4B.1c()}}n.4c.1q(n.2Y?1:n.F.1E.1F.66).I({3C:n.2Y?"80":"1S"});n.81();q(!n.1r.aB().6B(N.1y)){n.1r.19();n.y.F.1r=2K}n.82()},81:u(){G a=n.1K.5A.H,3a=n.1K.3a.H,3h=n.1Y?n.1Y.H:n.27.H,55=aC,H=0,2h=n.y.F.2h||"3a",2a=n.F.aD;q(n.y.F.2l||n.y.1Z()||!n.y.F.2h){2a=1I}10{q(3h>=55+a&&3h<55+3a){2a="5A";H=a}10{q(3h>=55+3a){2a=2h;H=n.1K[2h].H}}}q(H>0){n.2W.1c();n.2h.I({H:H+"M"}).1c()}10{n.2h.19()}q(2a){n.2h.1O(n.1f+"71"+2a+".1w",{12:n.F.12})}n.63=H},5K:u(){n.67=E 17.54(n.3r,{28:0.2,52:0,53:1,V:n.V})},4J:u(){q(n.67){17.2J.2m("Y").2n(n.67)}E 17.83(n.3r,{28:0.2,V:n.V,3e:0.2})},84:u(){q(!n.y.2Z()){O}G a=(n.F.32||n.1b!=0),1h=(n.F.32||((n.y.2o()||n.y.1Z())&&n.30().1h!=0));n.4x[a?"1c":"19"]();n.4y[1h?"1c":"19"]();G b=n.1Y||n.27;n.1X.I({J:b.J+"M",23:n.W+(n.y.F.1r=="1e"?n.1r.4d():0)+"M"});G c=((b.H/2-1)+n.W).4b();q(a){n.1X.Q(n.3D=E N("U",{R:"1G aE"}).I({H:c+"M"}));n.3D.1Q="2x"}q(1h){n.1X.Q(n.3E=E N("U",{R:"1G aF"}).I({H:c+"M"}));n.3E.1Q="1h"}q(a||1h){n.1X.1c()}},7W:u(){q(!n.y||!n.F.1E.1Q.2z||!n.y.2Z()){O}n.84();n.1X.1c()},5Z:u(){n.1X.1B("").19();n.4x.19().I({1M:n.1U.H+"M"});n.4y.19().I({1M:-1*n.1U.H+"M"})},7f:(u(){u 2X(){n.Y.1q(1)}q(!2t){2X=2X.1A(u(a,b){a(b);n.Y.1c()})}O u(){q(n.Y.1L("1F")!=0){O}q(n.F.2u.2z){E 17.54(n.2u,{28:0.2,52:0,53:4r?1:n.F.2u.1F,V:n.V,aG:n.68.X(n),1t:2X.X(n)})}10{2X.3B(n)}}})(),19:u(){q(1l.1T.2I&&n.2E&&n.y.4T()){n.2E.2n()}q(2t&&n.y.48()){G a=$$("3y#2C")[0];q(a){40{a.7C()}41(e){}}}q(n.Y.1L("1F")==0){O}n.2s();n.1X.19();q(!1l.1T.2I||!n.y.4T()){n.2V.19()}q(17.2J.2m("69").5W.1s>0){O}17.2J.2m("Y").1g(u(e){e.74()});E 17.1m({V:n.V,1t:n.5D.X(n)});E 17.7U(n.Y,{28:0.1,52:1,53:0,V:{1b:"5j",3k:"69"}});E 17.83(n.2u,{28:0.16,V:{1b:"5j",3k:"69"},1t:n.85.X(n)})},85:u(){n.4Q();n.Y.19();n.2V.1q(0).1c();n.1X.1B("").19();n.6S.1B("").19();n.6W.1B("").19();n.5C();n.86();E 17.1m({V:n.V,1t:n.49.X(n,n.F.aH)});E 17.1m({V:n.V,1t:u(){q(n.1u){n.1u.5s("Y:1W")}$w("1u 1n y 1Y 2Y aI 3w").3S(u(a){n[a]=1I}.X(n))}.X(n)})},82:u(){n.1r.I("3q:0;");G a={},3h=n[(n.1Y?"aJ":"i")+"aK"].H;n.1r.I({H:3h+"M"});n.2W.I({H:3h-n.63-1+"M"});a=n.5O(n.1r);q(n.y.F.1r){a.J+=n.F.6a;4M(n.y.F.1r){2M"3T":n.1r.I("3q:"+n.F.6a+"M 0 0 0");2D;2M"1e":n.1r.I("3q: 0 0 "+n.F.6a+"M 0");2D}}n.1r.I({H:"87%"});n.3f=n.y.F.1r?a:{H:a.H,J:0}},3X:(u(){G a,2A;u 4X(){a=n.Y.2f();2A=n.13.1y()?(n.2A/2):0}G b;q(2H){b=u(){n.Y.I({1e:"50%",1j:"50%"})}}10{q(2t||2R){b=u(){G v=n.4Y(),o=1d.3Z.7O();n.Y.I({1M:0,23:0,1j:(o[0]+(v.H/2)-(a.H/2)).4b()+"M",1e:(o[1]+(v.J/2)-(a.J/2)).4b()+"M"})}}10{b=u(){n.Y.I({1b:"4w",1j:"50%",1e:"50%",1M:(0-a.H/2).2k()+"M",23:(0-a.J/2-2A).2k()+"M"})}}}O u(){4X.3B(n);b.3B(n)}})(),88:u(){n.2s();n.3A=2c;n.1h.X(n).3e(0.25);n.3c.1O(n.1f+"72.1w",{12:n.F.12}).19();n.4c.1O(n.1f+"89.1w",{12:n.F.13.12})},2s:u(){q(n.3A){n.3A=2K}q(n.6b){aL(n.6b)}n.3c.1O(n.1f+"6V.1w",{12:n.F.12});n.4c.1O(n.1f+"8a.1w",{12:n.F.13.12})},6c:u(){q(n.y.1Z()&&!n.2Y){O}n[(n.3A?"56":"5q")+"aM"]()},7J:u(){q(n.3A){n.6b=n.1h.X(n).3e(n.F.aN)}},aO:u(){$$("a[33~=Y], 3F[33~=Y]").1g(u(a){G b=a.24;q(!b){O}q(b.4e){a.8b("1H",b.4e)}a.24=1I})},4E:u(a){G b=a.22("][");q(b>-1){a=a.5P(0,b+1)}O $$(\'a[26^="\'+a+\'"], 3F[26^="\'+a+\'"]\')},5E:u(a){O n.4E(a).8c("24")},8d:u(){$(1d.29).1i("2P",n.8e.1v(n));$w("34 4f").1g(u(e){n.1X.1i(e,u(a){G b=a.3G("U");q(!b){O}q(n.3D&&n.3D==b||n.3E&&n.3E==b){n.57(a)}}.1v(n))}.X(n));n.1X.1i("2P",u(c){G d=c.3G("U");q(!d){O}G e=(n.3D&&n.3D==d)?"2O":(n.3E&&n.3E==d)?"1h":1I;q(e){n[e].1A(u(a,b){n.2s();a(b)}).X(n)()}}.1v(n));$w("2x 1h").1g(u(s){G S=s.1P(),2s=u(a,b){n.2s();a(b)},4g=u(a,b){G c=b.1u().1X;q((c=="2x"&&(n.F.32||n.1b!=0))||(c=="1h"&&(n.F.32||((n.y.2o()||n.y.1Z())&&n.30().1h!=0)))){a(b)}};n[s+"3t"].1i("34",n.57.1v(n)).1i("4f",n.57.1v(n)).1i("2P",n[s=="1h"?s:"2O"].1A(2s).1v(n));n["3u"+S+"3v"].1i("2P",n[s=="1h"?s:"2O"].1A(4g).1A(2s).1v(n)).1i("34",N.1q.58(n["3u"+S+"3v"],n.F.1E.1F.8f).1A(4g).1v(n)).1i("4f",N.1q.58(n["3u"+S+"3v"],n.F.1E.1F.3b).1A(4g).1v(n));n["13"+S].1i("2P",n[s=="1h"?s:"2O"].1A(4g).1A(2s).1v(n))},n);G f=[n.2h,n.3c];q(!2t){f.1g(u(b){b.1i("34",N.1q.X(n,b,n.F.1E.1F.8f)).1i("4f",N.1q.X(n,b,n.F.1E.1F.3b))},n)}10{f.3s("1q",1)}n.3c.1i("2P",n.6c.1v(n));n.4c.1i("2P",n.6c.1v(n));q(2t||2R){G g=u(a,b){q(n.Y.1L("1e").6d(0)=="-"){O}a(b)};1m.1i(1J,"4h",n.3X.1A(g).1v(n));1m.1i(1J,"49",n.3X.1A(g).1v(n))}q(2R){1m.1i(1J,"49",n.68.1v(n))}q(2H){u 6e(){q(n.13){n.13.I({1j:((1d.6f.aP||0)+m.59()/2).2k()+"M"})}}1m.1i(1J,"4h",6e.1v(n));1m.1i(1J,"49",6e.1v(n))}q(n.F.aQ){n.8g=u(a){G b=a.3G("a[33~=Y], 3F[33~=Y]");q(!b){O}a.56();q(!b.24){E 11.3W(b)}n.8h(b)}.1v(n);$(1d.29).1i("34",n.8g)}},5B:u(a){q(n.8i){17.2J.2m("aR").2n(n.aS)}G b={23:(a?0:n.1K.2l.J)+"M"};n.8i=E 17.8j(n.4z,{2e:b,28:0.16,V:n.V,3e:a?0.15:0})},8k:u(){G a={};$w("H J").1g(u(d){G D=d.1P(),5a=1d.6f;a[d]=1l.1T.2I?[5a["6g"+D],5a["4h"+D]].aT():1l.1T.5i?1d.29["4h"+D]:5a["4h"+D]});O a},68:u(){q(!2R){O}n.2u.I(1V(n.8k()))},8e:(u(){G b=".6U, .6M .1G, .6X, .8l";O u(a){q(n.y&&n.y.F&&a.3G(b+(n.y.F.7i?", #6G":""))){n.19()}}})(),57:u(a){G b=a.2r,1Q=b.1Q,w=n.1U.H,6g=(a.1a=="34")?0:1Q=="2x"?w:-1*w,2e={1M:6g+"M"};q(!n.4i){n.4i={}}q(n.4i[1Q]){17.2J.2m("8m"+1Q).2n(n.4i[1Q])}n.4i[1Q]=E 17.8j(n[1Q+"3t"],{2e:2e,28:0.2,V:{3k:"8m"+1Q,aU:1},3e:(a.1a=="4f")?0.1:0})},30:u(){q(!n.1n){O}G a=n.1b,1s=n.1n.1s;G b=(a<=0)?1s-1:a-1,1h=(a>=1s-1)?0:a+1;O{2O:b,1h:1h}},5x:u(a,b){G c=3O[2]||n.F,1C=c.1C,W=c.W;1b={1e:(b.6d(0)=="t"),1j:(b.6d(1)=="l")};q(l){G d=E N("3j",{R:"aV"+b.1P(),H:W+"M",J:W+"M"});d.I("5y:1j");a.Q(d);G e=d.5h("2d");e.aW=c.12;e.aX((1b.1j?1C:W-1C),(1b.1e?1C:W-1C),1C,0,7s.aY*2,2c);e.aZ();e.8n((1b.1j?1C:0),0,W-1C,W);e.8n(0,(1b.1e?1C:0),W,W-1C)}10{G f=E N("3l:b0",{b1:c.12,b2:"5J",b3:c.12,b4:(1C/W*0.5).4a(2)}).I({H:2*W-1+"M",J:2*W-1+"M",1b:"36",1j:(1b.1j?0:(-1*W))+"M",1e:(1b.1e?0:(-1*W))+"M"});a.Q(f);f.4L=f.4L}},77:(u(){u 6h(){O $$("3y, 5Q, 2y")}q(1l.1T.2I&&1d.5n>=8){6h=u(){O 1d.b5("3y, 5Q, 2y")}}O u(){q(n.6i){O}G a=6h();n.44=[];8o(G i=0,1s=a.1s;i<1s;i++){G b=a[i];n.44.47({1u:b,1p:b.2e.1p});b.2e.1p="1W"}n.6i=2c}})(),86:u(){n.44.1g(u(a,i){a.1u.2e.1p=a.1p});5U n.44;n.6i=2K},5X:u(){O{H:n.27.H,J:n.27.J+n.3f.J}},7L:u(){G i=n.5X(),b=2*n.W;O{H:i.H+b,J:i.J+b}},7K:u(){G a=21,6j=2*n.1U.J+a,v=n.4Y();O{H:v.H-6j,J:v.J-6j}},4Y:u(){G v=m.2f();q(n.13&&n.13.1y()&&n.1n&&n.1n.1s>1){v.J-=n.2A}O v}});G m={2f:u(){O{H:n.59(),J:n.4d()}}};(u(a){G B=1l.1T,5b=1d,1u,6k={};u 8p(){q(2t){O 5b}q(B.b6&&1J.3J(1J.b7.b8())<9.5){O 5b.29}O 5b.6f}u 6l(D){q(!1u){1u=8p()}6k[D]="b9"+D;a["2m"+D]=u(){O 1u[6k[D]]};O a["2m"+D]()}a.59=6l.58("ba");a.4d=6l.58("bb")})(m);(u(){u 8q(a,b){q(!n.y){O}a(b)}$w("3g 4K").1g(u(a){n[a]=n[a].1A(8q)},11)})();u 1V(b){G c={};18.7g(b).1g(u(a){c[a]=b[a]+"M"});O c}18.1o(11,{8r:u(){q(!n.y.F.5I){O}n.5c=n.8s.1v(n);1d.1i("8t",n.5c)},5C:u(){q(n.5c){1d.bc("8t",n.5c)}},8s:u(a){G b=bd.be(a.2Q).4R(),2Q=a.2Q,3H=(n.y.2o()||n.2Y)&&!n.61,2b=n.y.F.2b,4j;q(n.y.4U()){a.56();4j=(2Q==1m.8u||["x","c"].6m(b))?"19":(2Q==37&&3H&&(n.F.32||n.1b!=0))?"2O":(2Q==39&&3H&&(n.F.32||n.30().1h!=0))?"1h":(b=="p"&&2b&&3H)?"88":(b=="s"&&2b&&3H)?"2s":1I;q(b!="s"){n.2s()}}10{4j=(2Q==1m.8u)?"19":1I}q(4j){n[4j]()}q(3H){q(2Q==1m.bf&&n.1n.bg()!=n.y){n.1c(0)}q(2Q==1m.bh&&n.1n.bi()!=n.y){n.1c(n.1n.1s-1)}}}});11.4S=11.4S.1A(u(a,b){n.8r();a(b)});18.1o(11,{7d:u(a){G b=n.4E(a);q(!b){O}b.3S(11.4k)},7m:u(){q(n.1n.1s==0){O}G a=n.30();n.8v([a.1h,a.2O])},8v:u(c){G d=(n.1n&&n.1n.6m(c)||18.bj(c))?n.1n:c.26?n.5E(c.26):1I;q(!d){O}G e=$A(18.7c(c)?[c]:c.1a?[d.22(c)]:c).bk();e.1g(u(a){G b=d[a];n.6n(b)},n)},8w:u(a,b){a.4H={H:b.H,J:b.J}},6n:u(a){q(a.4H||a.5d||!a.1k){O}G P=E 2j();P.1z=u(){P.1z=1l.2w;a.5d=1I;n.8w(a,P)}.X(n);a.5d=2c;P.1x=a.1k},8h:u(a){G b=a.24;q(b&&b.4H||b.5d||!b.2Z()){O}n.6n(b)}});N.bm({1O:u(a,b){a=$(a);G c=18.1o({8x:"1e 1j",3o:"4C-3o",6o:"7v",12:""},3O[2]||{});a.I(2H?{bn:"bo:bp.bq.bs(1x=\'"+b+"\'\', 6o=\'"+c.6o+"\')"}:{2a:c.12+" 3N("+b+") "+c.8x+" "+c.3o});O a}});18.1o(11,{6p:u(a,b){G c;$w("46 2p 2E 45").1g(u(t){q(E 4p("\\\\.("+n.bt[t].2S(/\\s+/g,"|")+")(\\\\?.*)?","i").4t(a)){c=t}}.X(n));q(c){O c}q(a.3x("#")){O"4P"}q(1d.8y&&1d.8y!=(a).2S(/(^.*\\/\\/)|(:.*)|(\\/.*)/g,"")){O"2E"}O"2p"},7r:u(a){G b=a.bu(/\\?.*/,"").3L(/\\.([^.]{3,4})$/);O b?b[1]:1I},5R:u(b){G c="<"+b.20;8o(G d 7B b){q(!["3z","6q","20"].6m(d)){c+=" "+d+\'="\'+b[d]+\'"\'}}q(E 4p("^(?:3F|bv|bw|br|bx|by|bz|7o|8z|bA|bB|bC|2F|bD|bE|bF)$","i").4t(b.20)){c+="/>"}10{c+=">";q(b.3z){b.3z.1g(u(a){c+=n.5R(a)}.X(n))}q(b.6q){c+=b.6q}c+="</"+b.20+">"}O c}});(u(){1d.1i("5p:3M",u(){G c=(35.6r&&35.6r.1s);u 4l(a){G b=2K;q(c){b=($A(35.6r).8c("2q").7h(",").22(a)>=0)}10{40{b=E bG(a)}41(e){}}O!!b}q(c){1J.11.4F={46:4l("bH bI"),45:4l("6s")}}10{1J.11.4F={46:4l("8A.8A"),45:4l("6s.6s")}}})})();11.3W=bJ.bK({bL:u(b){q(b.24){O}G c=18.7b(b);q(c&&!b.24){b.24=n;q(b.1H){b.24.4e=b.1H;q(11.F.8B){b.bM("1H","")}}}n.1k=c?b.bN("1k"):b.1k;q(n.1k.22("#")>=0){n.1k=n.1k.5P(n.1k.22("#"))}G d=b.26;q(d){n.26=d;q(d.3x("4m")){n.1a="4m"}10{q(d.3x("5e")){q(d.bO("][")){G e=d.8C("]["),6t=e[1].3L(/([a-bP-Z]*)/)[1];q(6t){n.1a=6t;G f=e[0]+"]";b.8b("26",f);n.26=f}}10{n.1a=11.6p(n.1k)}}10{n.1a=d}}}10{n.1a=11.6p(n.1k);n.26=n.1a}$w("42 46 4m 2E 2p 4P 45 8D 8E 5e").3S(u(a){G T=a.1P(),t=a.4R();q("2p 4m 8E 8D 5e".22(a)<0){n["bQ"+T]=u(){O n.1a==t}.X(n)}}.X(n));q(c&&b.24.4e){G g=b.24.4e.8C(11.F.bR).3s("bS");q(g[0]){n.1H=g[0]}q(g[1]){n.2i=g[1]}G h=g[2];n.F=(h&&18.7a(h))?bT("({"+h+"})"):{}}10{n.1H=b.1H;n.2i=b.2i;n.F=b.F||{}}q(n.F.6u){n.F.42=18.5N(n.F.6u);5U n.F.6u}},2o:u(){O n.1a.3x("4m")},1Z:u(){O n.26.3x("5e")},2Z:u(){O(n.2o()||n.1a=="2p")},5M:u(){O"2E 4P 42".22(n.1a)>=0},4U:u(){O!n.5M()}});11.4k=u(a){G b=$(a);E 11.3W(a);O b};(u(){u 8F(a){G b=a.3G("a[33~=Y], 3F[33~=Y]");q(!b){O}a.56();n.4k(b);n.1c(b)}u 8G(a){G b=a.3G("a[33~=Y], 3F[33~=Y]");q(!b){O}n.4k(b)}u 8H(a){G b=a.2r,1a=a.1a,3i=a.3i;q(3i&&3i.43){q(1a==="5m"||1a==="bU"||(1a==="2P"&&3i.43.4R()==="8z"&&3i.1a==="bV")){b=3i}}q(b.bW==bX.bY){b=b.7D}O b}u 8I(a,b){q(!a){O}G c=a.R;O(c.1s>0&&(c==b||E 4p("(^|\\\\s)"+b+"(\\\\s|$)").4t(c)))}u 8J(a){G b=8H(a);q(b&&8I(b,"Y")){n.4k(b)}}1d.1i("Y:3M",u(){$(1d.29).1i("2P",8F.1v(11));q(11.F.8B&&1l.1T.2I&&1d.5n>=8){$(1d.29).1i("34",8J.1v(11))}10{$(1d.29).1i("34",8G.1v(11))}})})();18.1o(11,{5f:u(){G b=n.F.13,W=b.W;$(1d.29).Q(n.13=E N("U",{2T:"bZ"}).I({2U:n.F.2U+1,c0:b.1N+"M",1b:"36",1p:"1W"}).Q(n.c1=E N("U",{R:"c2"}).Q(E N("U",{R:"5g c3"}).I("1N-1j: "+W+"M").Q(E N("U",{R:"2v"}))).Q(E N("U",{R:"6v"}).I({1N:"0 "+W+"M",J:W+"M"})).Q(E N("U",{R:"5g c4"}).I("1N-1j: -"+W+"M").Q(E N("U",{R:"2v"})))).Q(n.3I=E N("U",{R:"6w 6T"}).Q(n.3d=E N("3p",{R:"c5"}).I("1N: 0 "+W+"M").Q(E N("1D",{R:"c6"}).Q(n.2G=E N("U"))).Q(E N("1D",{R:"4n c7"}).Q(n.c8=E N("U",{R:"1G"}).1O(n.1f+"8K.1w",{12:b.12}))).Q(E N("1D",{R:"4n c9"}).Q(n.ca=E N("U",{R:"1G"}).1O(n.1f+"cb.1w",{12:b.12}))).Q(E N("1D",{R:"4n cc"}).Q(n.4c=E N("U",{R:"1G"}).1O(n.1f+"8a.1w",{12:b.12}))).Q(E N("1D",{R:"4n 8l"}).Q(n.cd=E N("U",{R:"1G"}).1O(n.1f+"ce.1w",{12:b.12}))))).Q(n.cf=E N("U",{R:"cg"}).Q(E N("U",{R:"5g ch"}).I("1N-1j: "+W+"M").Q(E N("U",{R:"2v"}))).Q(E N("U",{R:"6v"}).I({1N:"0 "+W+"M",J:W+"M"})).Q(E N("U",{R:"5g ci"}).I("1N-1j: -"+W+"M").Q(E N("U",{R:"2v"})))));$w("2x 1h").1g(u(s){G S=s.1P();n["13"+S].1X=s},n);q(2t){n.13.19=u(){n.I("1j:-3n;1e:-3n;1p:1W;");O n};n.13.1c=u(){n.I("1p:1y");O n};n.13.1y=u(){O(n.1L("1p")=="1y"&&3J(n.1L("1e").2S("M",""))>-6F)}}n.13.2y(".4n U").3s("I",1V(n.8L));G c=n.13.2y(".2v");$w("6Y 6Z bl br").1g(u(a,i){q(b.1C>0){n.5x(c[i],a,b)}10{c[i].Q(E N("U",{R:"38"}))}c[i].I({H:b.W+"M",J:b.W+"M"}).70("2v"+a.1P())},n);n.13.5z(".6w").I("H:87%;");n.13.I(2H?{1b:"36",1e:"1S",1j:""}:{1b:"4w",1e:"1S",1j:"50%"});n.13.2y(".6v",".6w",".1G",".38").3s("I",{12:b.12});n.2G.1B(E 4G(b.7Z).3K({1b:8M,64:8M}));n.2G.I({H:n.2G.59()+"M",J:n.3d.4d()+"M"});n.8N();n.2G.1B("");n.13.19().I("1p:1y");n.8d();n.2g()},8N:u(){G b,4o,13=n.F.13,W=13.W;q(2H){b=n.3d.2f(),4o=b.H+2*W;n.3d.I({H:b.H+"M",1N:0});n.3I.I("H:1S;");n.3d.I({cj:W+"M"});n.3I.I({H:4o+"M"});$w("1e 3T").1g(u(a){n["13"+a.1P()].I({H:4o+"M"})},n);n.13.I("1N-1j:-"+(4o/2).2k()+"M")}10{n.3I.I("H:1S");b=n.3I.2f();n.2G.ck().I({8O:b.J+"M",H:n.2G.2f().H+"M"});n.13.I({H:b.H+"M",1M:(0-(b.H/2).2k())+"M"});n.3I.I({H:b.H+"M"});$w("1e 3T").1g(u(a){n["13"+a.1P()].I({H:b.H+"M"})},n)}n.7e=13.1N+b.J+2*W;n.76=n.13.4d();n.2G.I({8O:b.J+"M"})}});11.5f=11.5f.1A(u(a,b){G c=E 2j();c.1z=u(){c.1z=1l.2w;n.8L={H:c.H,J:c.J};a(b)}.X(n);c.1x=n.1f+"8K.1w";G d=(E 2j()).1x=n.1f+"89.1w"});11.4u=11.4u.1A(u(a,b){a(b);n.5f()});11.19=11.19.1A(u(a,b){q(n.y&&n.y.1Z()){n.13.19();n.2G.1B("")}a(b)})})();11.5m();1d.1i("5p:3M",11.5q.X(11));',62,765,'|||||||||||||||||||||||this|||if||||function||||view||||||new|options|var|width|setStyle|height|||px|Element|return||insert|className|||div|queue|border|bind|lightview||else|Lightview|backgroundColor|controller||||Effect|Object|hide|type|position|show|document|top|images|each|next|observe|left|href|Prototype|Event|views|extend|visibility|setOpacity|menubar|length|afterFinish|element|bindAsEventListener|png|src|visible|onload|wrap|update|radius|li|buttons|opacity|lv_Button|title|null|window|closeDimensions|getStyle|marginLeft|margin|setPngBackground|capitalize|side|_contentPosition|auto|Browser|sideDimensions|pixelClone|hidden|prevnext|scaledInnerDimensions|isSet|tag||indexOf|marginTop|_view||rel|innerDimensions|duration|body|background|slideshow|true||style|getDimensions|_lightviewLoadedEvent|closeButton|caption|Image|round|topclose|get|remove|isGallery|image|name|target|stopSlideshow|BROWSER_IS_WEBKIT_419|overlay|lv_Corner|emptyFunction|prev|select|display|controllerOffset|overflow|lightviewContent|break|iframe|param|setNumber|BROWSER_IS_IE_LT7|IE|Queues|false|dimensions|case|value|previous|click|keyCode|BROWSER_IS_FIREFOX_LT3|replace|id|zIndex|center|data|after|isSetGallery|isImage|getSurroundingIndexes|bounds|cyclic|class|mouseover|navigator|absolute||lv_Fill||large|normal|slideshowButton|controllerCenter|delay|menubarDimensions|fillMenuBar|imgWidth|currentTarget|canvas|scope|ns_vml|sideNegativeMargin|9500px|repeat|ul|padding|loading|invoke|ButtonImage|inner|Button|content|startsWith|object|children|sliding|call|cursor|prevButton|nextButton|area|findElement|staticGallery|controllerMiddle|parseFloat|evaluate|match|loaded|url|arguments|sideButtons|imgNumber|lightviewError|_each|bottom|inlineContent|inlineMarker|View|restoreCenter|innerPreviousNext|viewport|try|catch|ajax|tagName|overlappingRestore|quicktime|flash|push|isQuicktime|resize|toFixed|floor|controllerSlideshow|getHeight|_title|mouseout|blockInnerPrevNext|scroll|sideEffect|action|Extend|detectPlugin|gallery|lv_ButtonWrapper|finalWidth|RegExp|userAgent|FIX_OVERLAY_WITH_PNG|parseInt|test|build|sideStyle|fixed|prevButtonImage|nextButtonImage|topcloseButtonImage|resizeCenter|innerPrevNext|no|autosize|getSet|Plugin|Template|preloadedDimensions|afterEffect|stopLoading|insertContent|outerHTML|switch|resizeWithinViewport|onComplete|inline|clearContent|toLowerCase|afterShow|isIframe|isMedia|wdiff|hdiff|init|getViewportDimensions|contentDimensions||scrollbarWidth|from|to|Appear|minimum|stop|toggleSideButton|curry|getWidth|ddE|doc|keyboardEvent|isPreloading|set|buildController|lv_controllerCornerWrapper|getContext|WebKit|end|require|convertVersionString|load|documentMode|default|dom|start|counter|fire|lv_Wrapper|dataText|innerController|gif|createCorner|float|down|small|toggleTopClose|disableKeyboardNavigation|restoreInlineContent|getViews|pluginspage|pluginspages|wmode|keyboard|1px|startLoading|insertImageUsingHTML|isExternal|clone|getHiddenDimensions|substr|embed|createHTML|restore|styles|delete|isAjax|effects|getInnerDimensions|_resize|hidePrevNext|_afterResize|resizing|corrected|closeButtonWidth|total|_controllerCenterEffect|disabled|loadingEffect|maxOverlay|lightview_hide|menubarPadding|slideTimer|toggleSlideshow|charAt|centerControllerIELT7|documentElement|offset|getOverlappingElements|preventingOverlap|safety|property|define|member|preloadImageDimensions|sizingMethod|detectType|html|plugins|QuickTime|relType|ajaxOptions|lv_controllerBetweenCorners|lv_controllerMiddle|Firefox|REQUIRED_|_|Scriptaculous|find|namespaces|VML|_lightviewLoadedEvents|9500|lv_overlay|container|prevSide|nextSide|marginRight|topButtons|lv_topButtons|lv_Frame|lv_Half|lv_CornerWrapper|lv_Filler|lv_WrapDown|contentTop|clearfix|lv_Close|inner_slideshow_play|contentBottom|lv_Loading|tl|tr|addClassName|close_|inner_slideshow_stop|prepare|cancel|controllerHeight|_controllerHeight|hideOverlapping|hideContent|_inlineDisplayRestore|isString|isElement|isNumber|extendSet|_controllerOffset|appear|keys|join|overlayClose|Bottom|Top|_VMLPreloaded|preloadSurroundingImages|fullscreen|img|insertImageUsingVML|insertImageUsingCanvas|detectExtension|Math|scrolling|autoplay|scale|controls|loop|mimetypes|flashvars|SetControllerVisible|in|Stop|parentNode|frames|adjustDimensionsToView|isInline|finishShow|showContent|nextSlide|getBounds|getOuterDimensions|mleft|mtop|getScrollOffsets|Tween|transition|overflowX|overflowY|15px|Opacity|sync|showPrevNext|tween|hideData|setNumberTemplate|pointer|setCloseButtons|setMenubarDimensions|Fade|setPrevNext|afterHide|showOverlapping|100|startSlideshow|controller_slideshow_stop|controller_slideshow_play|writeAttribute|pluck|addObservers|delegateClose|hover|_preloadImageHover|preloadImageHover|_topCloseEffect|Morph|getScrollDimensions|lv_controllerClose|lightview_side|fillRect|for|getRootElement|guard|enableKeyboardNavigation|keyboardDown|keydown|KEY_ESC|preloadFromSet|setPreloadedDimensions|align|domain|input|ShockwaveFlash|removeTitles|split|external|media|handleClick|handleMouseOver|elementIE8|hasClassNameIE8|handleMouseOverIE8|controller_prev|controllerButtonDimensions|999|_fixateController|lineHeight|createElement|MSIE|exec|mac|REQUIRED_Prototype|REQUIRED_Scriptaculous|typeof|undefined|Version|throw|requires|times|https|js|head|script|add|urn|schemas|microsoft|com|vml|createStyleSheet|cssText|behavior|callee|lv_Container|lv_Sides|lv_PrevSide|lv_NextSide|lv_topcloseButtonImage|topcloseButton|lv_Frames|lv_FrameTop|lv_Liquid|lv_HalfLeft|lv_HalfRight|lv_Center|150|lv_WrapUp|lv_WrapCenter|lv_contentTop|lv_MenuBar|lv_Data|lv_DataText|lv_Title|lv_Caption|lv_innerController|lv_ImgNumber|lv_innerPrevNext|innerPrevButton|inner_prev|innerNextButton|inner_next|lv_Slideshow|lv_contentBottom|loadingButton|lv_FrameBottom|cloneNode|lv_PrevNext|blank|inner_|relative|lv_content|blur|all|errors|requiresPlugin|plugin|required|transparent|close|defaultOptions|none|alt|galleryimg|drawImage|Ajax|Updater|frameBorder|hspace|lightviewContent_|random|99999|before|tofit|enablejavascript|codebase|codebases|classid|classids|quality|high|movie|allowFullScreen|FlashVars|defer|ancestors|block|clientWidth|clientHeight|innerHTML|Gecko|min|resizeDuration|paddingRight|paddingBottom|Parallel|opened|imgNumberTemplate|childElements|180|borderColor|lv_PrevButton|lv_NextButton|beforeStart|startDimensions|_openEffect|scaledI|nnerDimensions|clearTimeout|Slideshow|slideshowDelay|updateViews|scrollLeft|preloadHover|lightview_topCloseEffect|topCloseEffect|max|limit|cornerCanvas|fillStyle|arc|PI|fill|roundrect|fillcolor|strokeWeight|strokeColor|arcSize|querySelectorAll|Opera|opera|version|client|Width|Height|stopObserving|String|fromCharCode|KEY_HOME|first|KEY_END|last|isArray|uniq||addMethods|filter|progid|DXImageTransform|Microsoft||AlphaImageLoader|typeExtensions|gsub|base|basefont|col|frame|hr|link|isindex|meta|range|spacer|wbr|ActiveXObject|Shockwave|Flash|Class|create|initialize|setAttribute|getAttribute|include|zA|is|titleSplit|strip|eval|error|radio|nodeType|Node|TEXT_NODE|lightviewController|marginBottom|controllerTop|lv_controllerTop|lv_controllerCornerWrapperTopLeft|lv_controllerCornerWrapperTopRight|lv_controllerCenter|lv_controllerSetNumber|lv_controllerPrev|controllerPrev|lv_controllerNext|controllerNext|controller_next|lv_controllerSlideshow|controllerClose|controller_close|controllerBottom|lv_controllerBottom|lv_controllerCornerWrapperBottomLeft|lv_controllerCornerWrapperBottomRight|paddingLeft|up'.split('|'),0,{}));
if($('wohnservice')){
var body = $('wohnservice');
if(body.hasClassName('black')) {
Lightview.options.backgroundColor = "#ffcc00";
Lightview.options.overlay.background = "#000000";
} else if (body.hasClassName('yellow')) {
Lightview.options.backgroundColor = "#000000";
Lightview.options.overlay.background = "#ffcc00";
} else if (body.hasClassName('white')) {
Lightview.options.backgroundColor = "#000099";
Lightview.options.overlay.background = "#ffffff";
} else if (body.hasClassName('blue')) {
Lightview.options.backgroundColor = "#ffffff";
Lightview.options.overlay.background = "#000099";
}
}
// -----------------------------------------------------------------------------------
/*
JSTarget function by Roger Johansson, www.456bereastreet.com
*/
var JSTarget = {
init: function(att,val,warning) {
if (document.getElementById && document.createElement && document.appendChild) {
var strAtt = ((typeof att == 'undefined') || (att == null)) ? 'rel' : att;
var strVal = ((typeof val == 'undefined') || (val == null)) ? 'extern' : val;
var arrLinks = document.getElementsByTagName('a');
var oLink;
var oRegExp = new RegExp("(^|\\s)" + strVal + "(\\s|$)");
for (var i = 0; i < arrLinks.length; i++) {
oLink = arrLinks[i];
if ((strAtt == 'class') && (oRegExp.test(oLink.className)) || (oRegExp.test(oLink.getAttribute(strAtt)))) {
oLink.onclick = JSTarget.openWin;
}
}
oWarning = null;
}
},
openWin: function(e) {
var event = (!e) ? window.event : e;
if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return true;
else {
var oWin = window.open(this.getAttribute('href'), '_blank');
if (oWin) {
if (oWin.focus) oWin.focus();
return false;
}
oWin = null;
return true;
}
}
};
// -----------------------------------------------------------------------------------
// ARIA Functions
function addARIARole(el, strRole) {
if(!el) return false;
el.setAttribute('role', strRole);
}
function removeARIARole(el) {
if(!el) return false;
el.removeAttribute('role');
}
function addARIARequired(el) {
if(!el) return false;
el.setAttribute('aria-required', 'true');
}
function addARIAInvalid (el) {
if(!el) return false;
el.setAttribute('aria-invalid', 'true');
}
function setupARIARequired () {
$$('#content form li.req input').each(function(obj){
addARIARequired(obj);
});
// all required fields outside of "main" container
var phrase = $("suchbegriff");
if(phrase) { addARIARequired(phrase);}
}
function setupARIAInvalid () {
$$('#content form li.error input').each(function(obj){
addARIAInvalid(obj);
});
}
function addARIALive (el,rel,ato,liv) {
if(!el) return false;
if(rel) { el.setAttribute('aria-relevant',rel);	}
if(rel) { el.setAttribute('aria-atomic',ato);	}
if(rel) { el.setAttribute('aria-live',liv);	}
}
function setupARIA() {
// Add ARIA roles to the document
addARIARole($('content'), 'main');
addARIARole($('nav'), 'navigation');
addARIARole($('search'), 'search');
addARIARole($('footer'), 'contentinfo');
setupARIARequired();
setupARIAInvalid();
}
// -----------------------------------------------------------------------------------
//
function focusLabels() {
if (!document.getElementsByTagName) return false;
var labels = document.getElementsByTagName("label");
for (var i=0; i<labels.length; i++) {
if (!labels[i].getAttribute("for")) continue;
labels[i].onclick = function() {
var id = this.getAttribute("for");
if (!document.getElementById(id)) return false;
var element = document.getElementById(id);
element.focus();
}
}
}
function resetFields(whichform) {
for (var i=0; i<whichform.elements.length; i++) {
var element = whichform.elements[i];
if (element.type == "submit" || element.type == "checkbox" || element.type == "radio") continue;
if (!element.defaultValue) continue;
element.onfocus = function() {
if (this.value == this.defaultValue) {
this.value = "";
}
}
element.onblur = function() {
if (this.value == "") {
this.value = this.defaultValue;
}
}
}
}
// -----------------------------------------------------------------------------------
// dafuer muss texpand.packed.js geladen sein.
// Alle Textareas im content vergössern automatisch um den gesamten Inhalt anzuzeigen
function textExpand() {
$('content').select('textarea').each(function(el) {
new Texpand(el);
});
}
function jumpToFrame() {
location.href = "#iframe_anchor";
}
// -----------------------------------------------------------------------------------
//	cloneInput v 0.1 - 2009-12-07
//	by Sindre Wimberger - wimberger@sindre.at
//
var cloneInput = Class.create ({
options: {
src: '',
target: '',
sync: false
},
initialize: function(options) {
this.options  = Object.extend(Object.extend({ },this.options), options || {});
if($(this.options.src) && $(this.options.target)) {
this.src = $(this.options.src)
this.target = $(this.options.target)
//				this.sync(this.src);
if (this.options.sync) {
this.src.observe('change', function(ev) {this.sync(ev);}.bind(this));
this.src.observe('keyup', function(ev) {this.sync(ev);}.bind(this));
} else {
this.src.observe('blur', function(ev) {this.update(ev);}.bind(this));
}
}
},
sync: function(ev) {
if($F(this.src)) {
this.target.value = $F(this.src);
}
},
update: function(ev) {
if($F(this.src) && ($F(this.target) == "")) {
this.target.value = $F(this.src);
}
}
});
// -----------------------------------------------------------------------------------
document.observe("dom:loaded", function() {
if ($('print')) { $('print').show(); }
if($('search')) { resetFields($('search')); }
focusLabels();
JSTarget.init();
setupARIA();
textExpand();
loadAnimation();
if($('buchung2')) {
new cloneInput({
src: 'f_name',
target: 'tf_name1'
});
new cloneInput({
src: 'l_name',
target: 'tl_name1'
});
new cloneInput({
src: 'email',
target: 'temail1'
});
}
});
/*
SoundManager 2 Demo: Play MP3 links "in-place"
----------------------------------------------
http://schillmania.com/projects/soundmanager2/
A simple demo making MP3s playable "inline"
and easily styled/customizable via CSS.
Requires SoundManager 2 Javascript API.
*/
function InlinePlayer() {
var self = this;
var pl = this;
var sm = soundManager; // soundManager instance
this.excludeClass = 'inline-exclude'; // CSS class for ignoring MP3 links
this.links = [];
this.sounds = [];
this.soundsByURL = [];
this.indexByURL = [];
this.lastSound = null;
this.soundCount = 0;
var isIE = (navigator.userAgent.match(/msie/i));
this.config = {
playNext: false, // stop after one sound, or play through list until end
autoPlay: false  // start playing the first sound right away
}
this.css = {
// CSS class names appended to link during various states
sDefault: 'sm2_link', // default state
sLoading: 'sm2_loading',
sPlaying: 'sm2_playing',
sPaused: 'sm2_paused'
}
this.addEventHandler = function(o,evtName,evtHandler) {
typeof(attachEvent)=='undefined'?o.addEventListener(evtName,evtHandler,false):o.attachEvent('on'+evtName,evtHandler);
}
this.removeEventHandler = function(o,evtName,evtHandler) {
typeof(attachEvent)=='undefined'?o.removeEventListener(evtName,evtHandler,false):o.detachEvent('on'+evtName,evtHandler);
}
this.classContains = function(o,cStr) {
return (typeof(o.className)!='undefined'?o.className.match(new RegExp('(\\s|^)'+cStr+'(\\s|$)')):false);
}
this.addClass = function(o,cStr) {
if (!o || !cStr || self.classContains(o,cStr)) return false;
o.className = (o.className?o.className+' ':'')+cStr;
}
this.removeClass = function(o,cStr) {
if (!o || !cStr || !self.classContains(o,cStr)) return false;
o.className = o.className.replace(new RegExp('( '+cStr+')|('+cStr+')','g'),'');
}
this.getSoundByURL = function(sURL) {
return (typeof self.soundsByURL[sURL] != 'undefined'?self.soundsByURL[sURL]:null);
}
this.isChildOfNode = function(o,sNodeName) {
if (!o || !o.parentNode) {
return false;
}
o = o.parentNode;
sNodeName = sNodeName.toLowerCase();
do {
o = o.parentNode;
} while (o && o.parentNode && o.nodeName.toLowerCase() != sNodeName);
return (o.nodeName.toLowerCase() == sNodeName?o:null);
}
this.events = {
// handlers for sound events as they're started/stopped/played
play: function() {
pl.removeClass(this._data.oLink,this._data.className);
this._data.className = pl.css.sPlaying;
pl.addClass(this._data.oLink,this._data.className);
},
stop: function() {
pl.removeClass(this._data.oLink,this._data.className);
this._data.className = '';
},
pause: function() {
pl.removeClass(this._data.oLink,this._data.className);
this._data.className = pl.css.sPaused;
pl.addClass(this._data.oLink,this._data.className);
},
resume: function() {
pl.removeClass(this._data.oLink,this._data.className);
this._data.className = pl.css.sPlaying;
pl.addClass(this._data.oLink,this._data.className);
},
finish: function() {
pl.removeClass(this._data.oLink,this._data.className);
this._data.className = '';
if (pl.config.playNext) {
var nextLink = (pl.indexByURL[this._data.oLink.href]+1);
if (nextLink<pl.links.length) {
pl.handleClick({'target':pl.links[nextLink]});
}
}
}
}
this.stopEvent = function(e) {
if (typeof e != 'undefined' && typeof e.preventDefault != 'undefined') {
e.preventDefault();
} else if (typeof event != 'undefined' && typeof event.returnValue != 'undefined') {
event.returnValue = false;
}
return false;
}
this.getTheDamnLink = (isIE)?function(e) {
// I really didn't want to have to do this.
return (e && e.target?e.target:window.event.srcElement);
}:function(e) {
return e.target;
}
this.handleClick = function(e) {
// a sound link was clicked
var o = self.getTheDamnLink(e);
if (o.nodeName.toLowerCase() != 'a') {
o = self.isChildOfNode(o,'a');
if (!o) return true;
}
var sURL = o.getAttribute('href');
if (!o.href || !o.href.match(/\.mp3(\\?.*)$/i) || self.classContains(o,self.excludeClass)) {
if (isIE && o.onclick) {
return false; // IE will run this handler before .onclick(), everyone else is cool?
}
return true; // pass-thru for non-MP3/non-links
}
sm._writeDebug('handleClick()');
var soundURL = (o.href);
var thisSound = self.getSoundByURL(soundURL);
if (thisSound) {
// already exists
if (thisSound == self.lastSound) {
// and was playing (or paused)
thisSound.togglePause();
} else {
// different sound
thisSound.togglePause(); // start playing current
sm._writeDebug('sound different than last sound: '+self.lastSound.sID);
if (self.lastSound) self.stopSound(self.lastSound);
}
} else {
// create sound
thisSound = sm.createSound({
id:'inlineMP3Sound'+(self.soundCount++),
url:soundURL,
onplay:self.events.play,
onstop:self.events.stop,
onpause:self.events.pause,
onresume:self.events.resume,
onfinish:self.events.finish
});
// tack on some custom data
thisSound._data = {
oLink: o, // DOM node for reference within SM2 object event handlers
className: self.css.sPlaying
};
self.soundsByURL[soundURL] = thisSound;
self.sounds.push(thisSound);
if (self.lastSound) self.stopSound(self.lastSound);
thisSound.play();
// stop last sound
}
self.lastSound = thisSound; // reference for next call
if (typeof e != 'undefined' && typeof e.preventDefault != 'undefined') {
e.preventDefault();
} else {
event.returnValue = false;
}
return false;
}
this.stopSound = function(oSound) {
soundManager.stop(oSound.sID);
soundManager.unload(oSound.sID);
}
this.init = function() {
sm._writeDebug('inlinePlayer.init()');
var oLinks = document.getElementsByTagName('a');
// grab all links, look for .mp3
var foundItems = 0;
for (var i=0; i<oLinks.length; i++) {
if (oLinks[i].href.match(/\.mp3/i) && !self.classContains(oLinks[i],self.excludeClass)) {
self.addClass(oLinks[i],self.css.sDefault); // add default CSS decoration
self.links[foundItems] = (oLinks[i]);
self.indexByURL[oLinks[i].href] = foundItems; // hack for indexing
foundItems++;
}
}
if (foundItems>0) {
self.addEventHandler(document,'click',self.handleClick);
if (self.config.autoPlay) {
self.handleClick({target:self.links[0],preventDefault:function(){}});
}
}
sm._writeDebug('inlinePlayer.init(): Found '+foundItems+' relevant items.');
}
this.init();
}
var inlinePlayer = null;
soundManager.debugMode = true; // disable or enable debug output
soundManager.url = '/assets/flash/'; // path to directory containing SM2 SWF
soundManager.onload = function() {
// soundManager.createSound() etc. may now be called
inlinePlayer = new InlinePlayer();
}