<!--
//IMAGE PRELOAD
var bigN_l = new Image();
bigN_l.src = "images/bigN_l2.gif";
var bigN_r = new Image();
bigN_r.src = "images/bigN_r2.gif";

//BROWSER SNIFF
var isIE4 = (document.all && !document.getElementById) ? true : false;
var isIE5 = (document.all && document.getElementById) ? true : false;
var isNS6 = (!document.all && document.getElementById) ? true : false;

var obj = null;

//FUNCTIONS
function swapImg(name,state) {
    if(document.images) {               
        document[name].src = eval(name + state + ".src");
    }
}

function navSwap(which,color) {
    if (isIE4){
        obj = eval('document.all.nb' + which + '.style');
        obj.backgroundColor = color;
    } else if (isNS6 || isIE5){
        obj = document.getElementById('nb' + which);
        obj.style.backgroundColor = color;
    } else if (document.layers){
        document.layers['nav_' + which].layerBackgroundColor = color;
    }
}

//SUBNAV CONTROLS
var navPersistAbout = false;
var navPersistCasestudies = false;

function subNav(which,state) {
    if (isNS6 || isIE4 || isIE5){
        var hidden = 'hidden';
        var visible = 'visible';
    } else if (document.layers){
        var hidden = 'hide';
        var visible = 'show';
    }

    var newVis;
    if (state == 0) {
        newVis = hidden;
    } else {
        newVis = visible;
    }

    
    if (isIE4 || isIE5){
        obj = eval('document.all.nav_' + which + '.style');
        obj.visibility = newVis;
    } else if (isNS6){
        obj = document.getElementById('nav_' + which);
        obj.style.visibility = newVis;
    } else if (document.layers['nav_test']){
        document.layers['nav_' + which].visibility = newVis;
    }
}

function clearSubNav(current) {
    if ((current != 'about') && (!navPersistAbout)) {
        subNav('about',0);
    }
    if ((current != 'casestudies') && (!navPersistCasestudies)) {
        subNav('casestudies',0);
    }
}

//RARE BRICK
function rareBrick() {
    var x=10;
    var y=10;
    var dx=725;
    var dy=380;

    var w = window.open('http://www.rarebrick.com', 'RareBrick', 'width=' + dx + ',height=' + dy + ',status=no,resizable=yes,menubar=no,location=no,scrollbars=yes,toolbar=no');
    w.resizeBy(40,40);
    w.focus();
}

//-->
