// reflow page for correct cross-browser footer positioning

function reflow() {
    var bodydiv = document.getElementById("body");
    bodydiv.style.minHeight = "100%";
}



// workaround for absence of target attributes in xhtml strict

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}




function loadAll() {
   reflow();
   externalLinks();
   //startMoo();
   //startSlideshow();
   if (document.title.search(/Portfolio\s-\s/) != -1)
      enableTooltips("portfolio_imgs");
   //ScrollLinks.start();
   
}
window.onload = loadAll;
