Element.implement({getJSONData:function(A){var B=/({.*})/;var D=B.exec(this.getProperty(A||"class"));var C={};if(D&&D[1]){C=JSON.decode(D[1]);}return C;}});function verifyFlashVersion(C){var B=Browser.Plugins.Flash.version.toString().split(".");B[0]=parseInt(B[0],10);B[1]=parseInt(B[1],10)||0;B[2]=Browser.Plugins.Flash.build;var A=C.toString().split(".");A[0]=parseInt(A[0],10);A[1]=parseInt(A[1],10)||0;A[2]=parseInt(A[2],10)||0;return(B[0]>A[0]||(B[0]==A[0]&&B[1]>A[1])||(B[0]==A[0]&&B[1]==A[1]&&B[2]>=A[2]));
}(function(){var A=function(){var C=$$("script[src]"),E={};for(var D=0,B=C.length;D<B;D=D+1){E[C[D].get("src")]=C[D];}return E;};Asset.javascripts=function(E,D){D=$merge({onComplete:function(){}},D);var B=$splat(E),C=0,F=A();B.map(function(H){switch($type(H)){case"string":H={src:H,properties:{}};break;case"object":if(!H.src){return false;}H.properties=H.properties||{};break;}var G=(H.properties.onLoad||H.properties.onload)||function(){},I=function(){G.bind(this)();C=C+1;if(C===B.length){D.onComplete();
}};if(F[H.src]){I.bind(F[H.src])();return F[H.src];}return Asset.javascript(H.src,$extend(H.properties,{onload:function(){I.bind(this)();}}));});return B;};}());
