/* This goes on pages other than the index
 *
 * localDomain needs setting to correct value
 */

(function () {
    
    var old = window.onload || function () {},
        localDomain = /http:\/\/www.zspace.com.au/gi;
        
    window.onload = function (e) {
        
        var as = document.getElementsByTagName("a"),
            i = 0;
        
        for (i = 0; i != as.length; i++) {
            if (localDomain.test(as[i].href)) {
                as[i].href = "/#" + as[i].href.replace(localDomain, "").replace(/(html|htm|php|asp|jsp|cfm)$/, "").replace(/[^a-z0-9\/_-]/gi, "");
            }
        }
        
        ort.initAccordion();
        
        old(e);
    };
    
}());

frg = window.frg || {};
frg.inject = frg.inject || function() {};