function AFLAX(c,b,d,a){if(c!=null){AFLAX.path=c}if(b!=null){AFLAX.tracing=b}if(a==undefined||a==null){a=""}this.id="aflax_obj_"+AFLAX.count++;if(d!=undefined||d==true){if(document.getElementById("flashSettings")==null&&arguments.length>0){var e="width: 215px; height: 138px; position: absolute; z-index: 100;left: -500px; top: -500px";document.write('<div id="flashSettings" style="'+e+'">Flash Settings Dialog</div>\n');AFLAX.settings=new AFLAX();AFLAX.settings.addFlashToElement("flashSettings",215,138,"#FFFFFF",a,true)}}}AFLAX.version="0.41";AFLAX.tracing=false;AFLAX.count=0;AFLAX.path="aflax.swf";AFLAX.settings=null;AFLAX.prototype.id=null;AFLAX.prototype.flash=null;AFLAX.prototype.root=null;AFLAX.prototype.stage=null;AFLAX.prototype.getHTML=function(a,g,j,f,h,b){var c=new com.deconcept.PlayerVersion([8,0,0]);var e=com.deconcept.FlashObjectUtil.getPlayerVersion();if(e.versionIsValid(c)==false){return"<div style='border:2px solid #FF0000'>Um unseren Creator nutzen zu k&ouml;nnen installieren Sie bitte den <a target='_blank' href='http://www.macromedia.com/go/getflashplayer'>Flash Player</a> Version 8.0 or h&ouml;her.</div>"}j=j||"#FFFFFF";var d='<object width="'+a+'" height="'+g+'" id="'+this.id+'" type="application/x-shockwave-flash" data="'+AFLAX.path+"?"+f+'"';if(b){d+='style="position: absolute"'}d+='><param name="allowScriptAccess" value="sameDomain" /><param name="bgcolor" value="'+j+'" /><param name="movie" value="'+AFLAX.path+'" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><param name="FlashVars" value="'+f+'" />';if(h){d+='<param name="wmode" value="transparent" />'}d+="</object>";if(AFLAX.tracing){d+='<div style="border:1px solid #ddd;padding: 4px;background-color: #fafafa;font-size: 8pt;" id="aflaxlogger"></div>'}return d};AFLAX.prototype.addFlashToElement=function(c,b,h,k,g,j){var e=typeof c=="string"?document.getElementById(c):c;var f=this.getHTML(b,h,k,g,j);var a=document.createElement("div");a.innerHTML=f;var d=a.removeChild(a.firstChild);while(e.firstChild){e.removeChild(e.firstChild)}e.appendChild(d);return d};AFLAX.prototype.insertFlash=function(d,a,c,g,f,b){var e=this.getHTML(d,a,c,g,f,b);document.write(e);if(AFLAX.tracing){AFLAX.trace("AFLAX Logger initialized.")}return document.getElementById(this.id)};AFLAX.prototype.getRoot=function(){if(this.root==null){this.root=new AFLAX.MovieClip(this,null,"_root")}return this.root};AFLAX.prototype.getStage=function(){if(this.stage==null){this.stage=new AFLAX.MovieClip(this,null,"_stage");this.stage.exposeProperty("width",this.stage);this.stage.exposeProperty("height",this.stage);this.stage.exposeProperty("scaleMode",this.stage);this.stage.exposeProperty("showMenu",this.stage);this.stage.exposeProperty("align",this.stage)}return this.stage};AFLAX.prototype.getFlash=function(){if(this.flash==null){this.flash=document[this.id]}return this.flash};AFLAX.returnsHash={"true":true,"false":false,"undefined":undefined,"null":null,"NaN":NaN};AFLAX.prototype.callFunction=function(b){var a=this.getFlash().CallFunction('<invoke name="'+b+'" returntype="javascript">'+__flash__argumentsToXML(arguments,1)+"</invoke>");if(AFLAX.returnsHash.hasOwnProperty(a)){a=AFLAX.returnsHash[a]}else{if(a.charAt(0)=='"'){if(a.charAt(a.length-1)=='"'){a=a.substring(1,a.length-1)}}else{a=a-0}}return a};AFLAX.prototype.storeValue=function(b,d,a,c){if(c==true){d="[JSON]"+JSON.stringify(d)}if(a==undefined||a==null){return this.callFunction("aflaxStoreValue",[b,d])}else{return this.callFunction("aflaxStoreValue",[b,d,a])}};AFLAX.prototype.getStoredValue=function(a){var b=this.callFunction("aflaxGetValue",[a]);b=b.split('\\"').join('"');b=b.split("\\'").join("'");alert(b);if(b.substring(0,6)=="[JSON]"){return JSON.parse(b.substring(6))}else{return b}};AFLAX.hideFlashSettings=function(){var a=document.getElementById("flashSettings");a.style.left=-500+"px";a.style.top=-500+"px"};AFLAX.showFlashSettings=function(a,d,c){if(a==undefined){a=100}if(d==undefined){d=100}if(c==undefined){c=1}var b=document.getElementById("flashSettings");b.style.left=a+"px";b.style.top=d+"px";AFLAX.settings.callStaticFunction("System","showSettings",c)};AFLAX.prototype.callStaticFunction=function(d,c){var a=new Array();a[0]=d;a[1]=c;for(var b=2;b<arguments.length;b++){a[b]=arguments[b]}return this.callFunction("aflaxCallStaticFunction",a)};AFLAX.prototype.getStaticProperty=function(b,a){return this.callFunction("aflaxGetStaticProperty",[b,a])};AFLAX.prototype.attachEventListener=function(c,b,a){var d=c;if(c.id!=undefined){d=c.id}this.callFunction("aflaxAttachEventListener",[d,b,a])};AFLAX.prototype.callBulkFunctions=function(b){var e=new Array(b.length);for(var d=0,c=b.length;d<c;d++){var f=b[d];e[d]=f.join("\1")}var a=e.join("\2");this.callFunction("aflaxBulkCallFunction",a)};AFLAX.prototype.updateAfterEvent=function(){this.callFunction("aflaxUpdateAfterEvent")};AFLAX.prototype.createFlashArray=function(d){var c=new AFLAX.FlashObject(this,"Array");c.exposeFunction("push",c);c.exposeFunction("reverse",c);c.exposeProperty("length",c);var a=d.length;for(var b=0;b<a;b++){c.push(d[b])}return c};AFLAX.extend=function(a,c){var b=function(){};b.prototype=a.prototype;c.prototype=new b();c.prototype.baseConstructor=a;c.prototype.superClass=a.prototype;c.prototype._prototype=c.prototype;if(a.prototype.superClass==undefined){a.prototype.superClass=Object.prototype}return c};AFLAX.extractArgs=function(b,d){var a=new Array();for(var c=d;c<b.length;c++){a[c-d]=b[c]}return a};AFLAX.FlashObject=function(e,d,g,f){if(arguments.length==0){return}this.aflax=e;this.flash=this.aflax.getFlash();this._prototype=AFLAX.FlashObject.prototype;if(g==null||g==undefined){g=new Array()}if(d!=null&&d!=undefined){var c=new Array();c[0]=d;for(i=0;i<g.length;i++){var b=g[i];if(b.id!=undefined){b="ref:"+b.id}c[i+1]=b}this.id=this.aflax.callFunction("aflaxCreateObject",c)}else{if(f!=null&&f!=undefined){this.id=f}}if(this.bound==false){}};AFLAX.FlashObject.prototype.bound=false;AFLAX.FlashObject.prototype.id=null;AFLAX.FlashObject.prototype._prototype=null;AFLAX.FlashObject.prototype.aflax=null;AFLAX.FlashObject.prototype.flash=null;AFLAX.FlashObject.prototype.callFunction=function(functionName){var args=new Array();args[0]=this.id;args[1]=functionName;for(i=1;i<arguments.length;i++){var val=arguments[i];if(val==null){val="null"}if(typeof(val)=="string"){if(val.substring(0,4)=="ref:"){var varPart=val.substring(4);var restPart=null;if(varPart.indexOf(".")!=-1){restPart=varPart.substring(varPart.indexOf("."));varPart=varPart.substring(0,varPart.indexOf("."))}val="ref:"+eval(varPart).id;if(restPart!=null){val+=restPart}}}if(val.id!=undefined){val="ref:"+val.id}args[i+1]=val}var retval=this.aflax.callFunction("aflaxCallFunction",args);return retval};AFLAX.FlashObject.prototype.bind=function(b,e,f){if(b!=null&&b!=undefined){for(var a=0;a<b.length;a++){this.exposeProperty(b[a])}}if(e!=null&&e!=undefined){for(var c=0;c<e.length;c++){this.exposeFunction(e[c])}}if(f!=null&&f!=undefined){for(var d=0;d<f.length;d++){this.mapFunction(f[d])}}};AFLAX.FlashObject.prototype.exposeProperty=function(b,c){var a=b.substring(0,1).toUpperCase()+b.substring(1);var d=this._prototype;if(c!=null){d=c}d["get"+a]=function(){var e=this.aflax.callFunction("aflaxGetProperty",[this.id,b]);if(e==null){return null}if(e==undefined){return}if(typeof(e)=="string"){return e.split("\\r").join("\r").split("\\n").join("\n")}else{return e}};d["set"+a]=function(e){this.aflax.callFunction("aflaxSetProperty",[this.id,b,e])}};AFLAX.FlashObject.prototype.exposeFunction=function(b,a){var c=this._prototype;if(a!=null){c=a}c[b]=function(){var d=new Array();d[0]=this.id;d[1]=b;for(var e=0;e<arguments.length;e++){d[e+2]=arguments[e]}return this.aflax.callFunction("aflaxCallFunction",d)}};AFLAX.FlashObject.prototype.mapFunction=function(b,a){var c=this._prototype;if(a!=null){c=a}c[b]=function(){var e=new Array();e[0]=this.id;for(var f=0;f<arguments.length;f++){var d=arguments[f];if(d.id!=undefined){d=d.id}e[f+1]=d}var g="aflax"+b.substring(0,1).toUpperCase()+b.substring(1);return this.aflax.callFunction(g,e)}};AFLAX.MovieClip=function(b,a,c){if(arguments.length==0){return}arguments.callee.prototype.baseConstructor.call(this,b,null,null,c);if(c==undefined||c==null){if(a!=undefined&&a!=null&&this.flash.aflaxCreateEmptyMovieClip!=undefined&&this.flash.aflaxCreateEmptyMovieClip!=null){this.id=this.aflax.callFunction("aflaxCreateEmptyMovieClip",[a])}else{this.id=this.aflax.callFunction("aflaxCreateEmptyMovieClip",["_root"])}}if(AFLAX.MovieClip.bound==false){this.bind(AFLAX.MovieClip.movieClipProperties,AFLAX.MovieClip.movieClipFunctions,AFLAX.MovieClip.movieClipMappings);AFLAX.MovieClip.bound=true}};AFLAX.extend(AFLAX.FlashObject,AFLAX.MovieClip);AFLAX.MovieClip.prototype.drawCircle=function(p,o,g){var a=g;var t=Math.PI/180;var d=8;var c=45*t;var h=g/Math.cos(c/2);var e=0;var l=e-c/2;var b=new Array(d+1);var k=0;b[k++]=[this.id,"moveTo",p+a,o];for(var f=0;f<d;f++){e+=c;l+=c;var s=a*Math.cos(e);var q=a*Math.sin(e);var m=h*Math.cos(l);var j=h*Math.sin(l);b[k++]=[this.id,"curveTo",p+m,o+j,p+s,o+q]}this.aflax.callBulkFunctions(b)};AFLAX.MovieClip.bound=false;AFLAX.MovieClip.movieClipProperties=["_x","_y","_height","_width","_rotation","_xmouse","_ymouse","_xscale","_yscale","_alpha","blendMode","_visible","cacheAsBitmap"];AFLAX.MovieClip.movieClipFunctions=["moveTo","lineTo","curveTo","lineStyle","beginFill","endFill","clear","getURL","removeMovieClip"];AFLAX.MovieClip.movieClipMappings=["attachVideo","createTextField","addEventHandler","attachBitmap","applyFilter","loadMovie"];AFLAX.MovieClip.prototype.clone=function(){var a=this.aflax.callFunction("aflaxDuplicateMovieClip",[this.id]);var b=new AFLAX.MovieClip(this.aflax,null,a);return b};AFLAX.CameraClip=function(c,a){if(arguments.length==0){return}arguments.callee.prototype.baseConstructor.call(this,c,a,null);if(a==undefined||a==null){a="_root"}this.id=this.aflax.callFunction("aflaxCreateVideoClip",[a]);var b=this.aflax.callFunction("aflaxGetCamera");this.attachVideo(b)};AFLAX.CameraClip.GetCameras=function(a){return a.getFlash().aflaxGetStaticProperty(["Camera","names"])};AFLAX.extend(AFLAX.MovieClip,AFLAX.CameraClip);AFLAX.VideoClip=function(f,b,c,e,a){if(arguments.length==0){return}arguments.callee.prototype.baseConstructor.call(this,f,b,null);if(b==undefined||b==null){b="_root"}this.id=this.aflax.callFunction("aflaxCreateVideoClip",[b]);var g=new AFLAX.FlashObject(this.aflax,"NetConnection");g.callFunction("connect",null);var d=new AFLAX.FlashObject(this.aflax,"NetStream",[g]);d.exposeProperty("time",d);this.netStream=d;this.attachVideo(d);if(a!=null&&a!=undefined){this.aflax.flash.aflaxAttachVideoStatusEvent([d.id,a])}if(e!=null&&e!=undefined){this.aflax.flash.aflaxAttachCuePointEvent([d.id,e])}d.callFunction("setBufferTime",0);d.callFunction("play",c)};AFLAX.extend(AFLAX.MovieClip,AFLAX.VideoClip);AFLAX.VideoClip.prototype.netStream=null;AFLAX.VideoClip.GetStatusValue=function(e,d){var c=e;var a=c.split(";");var f=new Array();for(var b=0;b<a.length;b++){var g=a[b].split("=");if(g[0]!=""){f[g[0]]=g[1]}}return f[d]};AFLAX.VideoClip.NetStream_Buffer_Empty="NetStream.Buffer.Empty";AFLAX.VideoClip.NetStream_Buffer_Full="NetStream.Buffer.Full";AFLAX.VideoClip.NetStream_Buffer_Flush="NetStream.Buffer.Flush";AFLAX.VideoClip.NetStream_Play_Start="NetStream.Play.Start";AFLAX.VideoClip.NetStream_Play_Stop="NetStream.Play.Stop";AFLAX.VideoClip.NetStream_Play_StreamNotFound="NetStream.Play.StreamNotFound";AFLAX.VideoClip.NetStream_Seek_InvalidTime="NetStream.Seek.InvalidTime";AFLAX.VideoClip.NetStream_Seek_Notify="NetStream.Seek.Notify";AFLAX.TextField=function(a,b){if(arguments.length==0){return}arguments.callee.prototype.baseConstructor.call(this,a,null,b);if(AFLAX.TextField.bound==false){this.bind(AFLAX.TextField.textFieldProperties,AFLAX.TextField.textFieldFunctions);AFLAX.TextField.bound=true}};AFLAX.extend(AFLAX.MovieClip,AFLAX.TextField);AFLAX.TextField.bound=false;AFLAX.TextField.textFieldProperties=["type","multiline","wordWrap","text","htmlText","embedFonts"];AFLAX.TextField.textFieldFunctions=["setTextFormat"];if(AFLAX.tracing==true){window.onerror=AFLAX.windowError}AFLAX.windowError=function(c,b,a){AFLAX.trace("Error on line "+a+" of document "+b+": "+c);return true};AFLAX.trace=function(a){if(AFLAX.tracing==true){var d=document.getElementById("aflaxlogger");if(d!=null){var b=document.createElement("p");b.style.margin=0;b.style.padding=0;b.style.textAlign="left";var c=document.createTextNode(a);b.appendChild(c);d.appendChild(b)}}};AFLAX.Socket=function(f,g,c,b,e,h){var d=f.getFlash();var a=new AFLAX.FlashObject(f,"XMLSocket");d.aflaxAttachSocketEvents([a.id,b,e,h]);a.exposeFunction("connect",a);a.exposeFunction("close",a);a.exposeFunction("send",a);a.connect(g,c);return a};if(typeof com=="undefined"){var com;com=new Object()}if(typeof com.deconcept=="undefined"){com.deconcept=new Object()}if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object()}if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object()}com.deconcept.FlashObjectUtil.getPlayerVersion=function(){var b=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){b=new com.deconcept.PlayerVersion(a.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(window.ActiveXObject){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");b=new com.deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}catch(d){}}}return b};com.deconcept.PlayerVersion=function(a){this.major=parseInt(a[0])||0;this.minor=parseInt(a[1])||0;this.rev=parseInt(a[2])||0};com.deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};Array.prototype.______array="______array";var JSON={org:"http://www.JSON.org",copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(a){var g,e,b,f="",d;switch(typeof a){case"object":if(a){if(a.______array=="______array"){for(e=0;e<a.length;++e){d=this.stringify(a[e]);if(f){f+=","}f+=d}return"["+f+"]"}else{if(typeof a.toString!="undefined"){for(e in a){d=a[e];if(typeof d!="undefined"&&typeof d!="function"){d=this.stringify(d);if(f){f+=","}f+=this.stringify(e)+":"+d}}return"{"+f+"}"}}}return"null";case"number":return isFinite(a)?String(a):"null";case"string":b=a.length;f='"';for(e=0;e<b;e+=1){g=a.charAt(e);if(g>=" "){if(g=="\\"||g=='"'){f+="\\"}f+=g}else{switch(g){case"\b":f+="\\b";break;case"\f":f+="\\f";break;case"\n":f+="\\n";break;case"\r":f+="\\r";break;case"\t":f+="\\t";break;default:g=g.charCodeAt();f+="\\u00"+Math.floor(g/16).toString(16)+(g%16).toString(16)}}}return f+'"';case"boolean":return String(a);default:return"null"}},parse:function(m){var d=0;var a=" ";function l(n){throw {name:"JSONError",message:n,at:d-1,text:m}}function g(){a=m.charAt(d);d+=1;return a}function j(){while(a!=""&&a<=" "){g()}}function k(){var p,q="",o,n;if(a=='"'){outer:while(g()){if(a=='"'){g();return q}else{if(a=="\\"){switch(g()){case"b":q+="\b";break;case"f":q+="\f";break;case"n":q+="\n";break;case"r":q+="\r";break;case"t":q+="\t";break;case"u":n=0;for(p=0;p<4;p+=1){o=parseInt(g(),16);if(!isFinite(o)){break outer}n=n*16+o}q+=String.fromCharCode(n);break;default:q+=a}}else{q+=a}}}}l("Bad string")}function h(){var n=[];if(a=="["){g();j();if(a=="]"){g();return n}while(a){n.push(c());j();if(a=="]"){g();return n}else{if(a!=","){break}}g();j()}}l("Bad array")}function e(){var n,p={};if(a=="{"){g();j();if(a=="}"){g();return p}while(a){n=k();j();if(a!=":"){break}g();p[n]=c();j();if(a=="}"){g();return p}else{if(a!=","){break}}g();j()}}l("Bad object")}function f(){var p="",o;if(a=="-"){p="-";g()}while(a>="0"&&a<="9"){p+=a;g()}if(a=="."){p+=".";while(g()&&a>="0"&&a<="9"){p+=a}}if(a=="e"||a=="E"){p+="e";g();if(a=="-"||a=="+"){p+=a;g()}while(a>="0"&&a<="9"){p+=a;g()}}o=+p;if(!isFinite(o)){l("Bad number")}else{return o}}function b(){switch(a){case"t":if(g()=="r"&&g()=="u"&&g()=="e"){g();return true}break;case"f":if(g()=="a"&&g()=="l"&&g()=="s"&&g()=="e"){g();return false}break;case"n":if(g()=="u"&&g()=="l"&&g()=="l"){g();return null}break}l("Syntax error")}function c(){j();switch(a){case"{":return e();case"[":return h();case'"':return k();case"-":return f();default:return a>="0"&&a<="9"?f():b()}}return c()}};
