/*
    providing function to evaluate code in the global scope
    As provided by Mootools' (http://mootools.net) Browser.js version 1.2dev, build 1.2b2

    License:
        MIT-style license.
 */
if("undefined"===typeof $exec){function $exec(B){if(!B){return B;}if(window.execScript){window.execScript(B);}else{var A=document.createElement("script");A.setAttribute("type","text/javascript");A.text=B;document.head.appendChild(A);document.head.removeChild(A);}return B;}
/*
    providing String whith the stripScripts function
    As provided by Mootools' (http://mootools.net) String.js version 1.2dev, build 1.2b2

    License:
        MIT-style license.
 */
}if(!$defined(String.stripScripts)){String.extend({stripScripts:function(B){var A="";var C=this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){A+=arguments[1]+"\n";return"";});if(B===true){$exec(A);}else{if($type(B)=="function"){B(A,C);}}return C;}});
/*
 *
 * @version     $Id$
 * @copyright   2008, Exozet Berlin GmbH
 * @author      Robert Schulze, exozet interact <robert.schulze@exozet.com>
 *
 */
}var Exo_AdReload={groups:new Hash(),createGroup:function(B,A){if(!this.groups.hasKey(B)){this.groups.set(B,new Hash({children:new Hash()}));}this.groups.get(B).set("parameters",new Hash({url_parms:{},callbacks:[]}).merge(A));},registerPart:function(C,B,A){if(this.groups.hasKey(C)){this.groups.get(C).get("children").set(B,new Hash({source:B,target:B}).merge(A));}},addCallback:function(B,C,A){this.groups.get(B).get("parameters").get("callbacks").include({callback:C,parameters:(A||[])});},runCallbacks:function(A){this.groups.get(A).get("parameters").get("callbacks").each(function(B){B.callback.attempt(B.parameters);});},update:function(D,E){var E=E||{};if(this.groups.hasKey(D)){this.groups.get(D).set("is_loading",true);var B=$merge(this.groups.get(D).get("parameters").get("url_params"),{_cache_buster:$time()},E);var A=this.groups.get(D).get("parameters").get("sandbox");var C=$E("iframe[name="+A+"]");if(C){C.src=this.groups.get(D).get("parameters").get("url")+"?"+Object.toQueryString(B);}}},ready:function(A){(function(){this.groups.get(A).set("is_loading",false);if(this.groups.hasKey(A)){var B=this.groups.get(A).get("parameters").get("sandbox");this.groups.get(A).get("children").each(function(D){$(D.get("target")).empty();var C=frames[B].document.getElementById(D.get("source"));if(C){$(D.get("target")).innerHTML=C.innerHTML.stripScripts();}});this.runCallbacks(A);}}.bind(this)).delay(100);},isLoading:function(A){if(this.groups.hasKey(A)){return this.groups.get(A).get("is_loading");}return false;}};$extend(Exo_AdReload,{SOI:{update:function(A){var A=$H(A||{});A.each(function(C,B){window[B]=C;});}}});