var TOL={Module:{},Tile:{},init:function(){function g(h){if(typeof h[0]!="undefined"&&typeof h[1]!="undefined"){TOL.log(h[0]+" was initialized.");typeof h[1].init=="function"&&h[1].init()}}for(var f=["Module","Tile"],a=[],b=[],c=0;c<f.length;c++){var e=TOL[f[c]];for(var d in e){var i=f[c]+"::"+d;try{if(typeof e[d].priority!="undefined"&&e[d].priority)switch(e[d].priority){case "first":case "1":case 1:b.unshift([i,e[d]]);break;case "last":a.push([i,e[d]]);break;default:b.push([i,e[d]]);break}else typeof e[d].delay!=
"undefined"&&e[d].delay?a.push([i,e[d]]):b.push([i,e[d]])}catch(j){console.log(d)}}}for(c=0;c<b.length;c++)g(b[c]);for(c=0;c<a.length;c++)g(a[c])},log:function(){},extractTargetId:function(g,f){for(var a=$(g).attr("className").split(" "),b=arguments.length>2?arguments[2]:"-",c=0;c<a.length;c++)if(a[c].search(f)!=-1)return a[c].split(b)[1]},unregister:function(g,f){var a=TOL[g],b="."+f.charAt(0).toLowerCase()+f.slice(1);delete a[f];$(document).unbind(b).die(b)}};
TOL.Module.OAS=function(){var g,f;return{priority:"last",init:function(){g=$("#oas_c");f==null&&TOL.Module.OAS.getList();TOL.Module.OAS.show();TOL.Module.OAS.fixExpandables()},fixExpandables:function(){$.browser.mozilla&&$("span[id^='oasad-Right']").each(function(){var a=$(this).find("object")[0];if(a){$(a).width(160).css("overflow","hidden");$(a).mouseover(function(){$(this).css("overflow","visible")}).mouseout(function(){$(this).css("overflow","hidden")})}})},getList:function(){var a="";$("span:[id^='oasloc-']").each(function(){var b=
$(this).attr("id");b=b.split("-");if(b.length==2){if(a.length>0)a+=",";a+=b[1]}});f=a.split(",");return a},show:function(){var a=false;g.children("span:[id^='oasad-']").each(function(){var b=this.id.split("-");if(b.length==2)if($.inArray(b[1],f)>-1)if(this.innerHTML.indexOf("src")>-1){if(this.innerHTML.indexOf("empty.gif")==-1){var c=document.getElementById("oas_"+b[1]),e=document.getElementById("oasloc-"+b[1]),d=document.getElementById("oasad-"+b[1]);c&&e&&d&&c.replaceChild(d,e)}}else a=true;else $(this).remove()});
a&&setTimeout("TOL.Module.OAS.show()",3000)}}}();$(document).ready(function(){TOL.init()});

