Event.observe(window, 'load', function() {
    $('header').getElementsByClassName('logo')[0].observe('click', DannyHiemstra.LogoClick);
    DannyHiemstra.RoundedCorners();
});

var DannyHiemstra = {
    LogoClick: function() {
        document.location = 'index.html';
    },
    RoundedCorners: function() {
        $$('div.rcb').each(function(el) {
            // insert left and right top corners
            el.insert({top: new Element('span', {'class': 'rcb_tl'})});
            el.insert({top: new Element('span', {'class': 'rcb_tr'})});
            
            // insert left and right bottom corners
            el.insert({bottom: new Element('span', {'class': 'rcb_bl'})});
            el.insert({bottom: new Element('span', {'class': 'rcb_br'})});
        });
        
        // Blue cornered box
        $$('div.bcb').each(function(el) {
            // insert left and right top corners
            el.insert({top: new Element('span', {'class': 'bcb_tl'})});
            el.insert({top: new Element('span', {'class': 'bcb_tr'})});
            
            // insert left and right bottom corners
            el.insert({bottom: new Element('span', {'class': 'bcb_bl'})});
            el.insert({bottom: new Element('span', {'class': 'bcb_br'})});
        });
    }
};