function onResize(aa){var ba=document.getElementById("mainDiv");var ca=getScreenDimensions();if(ca.availWidth<g_minWidth&&!ba.style.width){ba.style.width=g_minWidth+"px";}
if(ca.availWidth>=g_minWidth&&ba.style.width!=""){ba.style.width="";}
if(ca.availHeight<g_minHeight&&!ba.style.height){ba.style.height=g_minHeight+"px";}
if(ca.availHeight>=g_minHeight&&ba.style.height!=""){ba.style.height="";}
return true;}
function onInit(da){if(_GET("noFlash")=="1"){return;}
onResize();da.onresize=onResize;var re=/\#([^\#]+)$/;var ea=re.exec(document.location.href);var fa=ea?ea[1]:defaultCategory;var ga=document.location.href.substr(0,g_baseDir.length);if(ga.toLowerCase()!=g_baseDir.toLowerCase()){document.location.href=dircat(g_baseDir,document.location.href.substr(g_baseDir.length));}
else{createFlash('flash_c4ca4238a0b923820dcc509a6f75849b','staal.swf','100%','100%',{id:'mainFlash',wmode:'transparent',quality:'high',xmlUrl:g_baseDir,category:fa,home:homeCategory,filter:filter},function(){document.location.href="index.php?noFlash=1";return true;},9);var ha=document.location.href;var ia=false;window.setInterval(function(){if(ha!=document.location.href){var ea=re.exec(document.location.href);var fa=ea?ea[1]:false;if(fa&&(ia!=false||fa!="/home")){openPage(fa);}
ia=fa;ha=document.location.href;}},250);}}
function openPage(id){var ja=getFlash(document.body);var ka=typeof id=="string"?("<string>"+id+"</string>"):("<number>"+id+"</number>");ja.CallFunction("<invoke name=\"loadContent\" returntype=\"javascript\"><arguments>"+ka+"</arguments></invoke>");}
function setAnchor(la){document.location.href="#"+la;}
