var Interface = Object();
var InterfaceClass = Class.create();
InterfaceClass.prototype = {
    initialize: function() {
        registerBehaviors();
    }
}

function registerBehaviors() {
    // Add dropdown nav behavior for IE6-
    if (document.all && $('mainNav')) {
        var node = $('mainNav').select('li');
        for (i = 0; i < node.length; i++) {
            if (node[i].getElementsByTagName('ul').length > 0) {
                node[i].onmouseover = function() {
                    this.className += ' over';
                }
                node[i].onmouseout = function() {
                    this.className = this.className.replace(new RegExp(' over\\b'), '');
                }
    }
}
}
$('mainNav').firstDescendant().select('li').each(function(e) {
    new Effect.Opacity(e.ancestors()[0], {from:1.0, to:0.95, duration:0});
    });
    if ($('searchBox')) {
        $('searchBox').observe('focus', function(e) {
        if (Event.element(e).value == 'Search...') Event.element(e).value = '';
        Event.element(e).addClassName('focus');
    }).observe('blur', function(e) {
    if (Event.element(e).value == '') {
        Event.element(e).removeClassName('focus');
        Event.element(e).value = 'Search...';
    }
    });
    }
}
