var currentTab="";function detailTab(a,b){if(b){Event.stop(b)}if(currentTab!=""){$("detail_"+currentTab).hide();$("detail_tab_"+currentTab).removeClassName("act")}$("detail_"+a).show();$("detail_tab_"+a).addClassName("act");currentTab=a}function checkDetail(){function a(b){$("detail_"+b).hide();if(geId("detail_tab_"+b)){$("detail_tab_"+b).observe("click",function(c){detailTab(b,c)});if(currentTab==""){detailTab(b);$("details_container").show()}}}$$("a.tab").each(function(b){a(b.id.replace("detail_tab_",""))});$$("div#details_container h3").each(function(b){b.hide()})}Event.observe(window,"load",function(a){Event.stop(a);if(geId("details_container")){$("details_container").hide();checkDetail()}});
