

window.addEvent('domready', function(){
    if (Browser.Platform.ios
        || Browser.Platform.name == 'ipod'){
        $('footerWrapper').setStyles({'position': 'static'
                                     });
	
        $('chippy').setStyles({'display': 'none'});
    }
    else {
        $('chippy').addEvent('mouseenter', showThere)
            .addEvent('mouseleave', hideThere);
    }
    
    new Asset.image(imgDir + '/tim-t-hover.png');
    new Asset.image(imgDir + '/eric-t-hover.png');
    
    if ($('timShirt')){
	$('timShirt').addEvent('mouseenter', function(){
            this.src = imgDir + '/tim-t-hover.png';
	})
            .addEvent('mouseleave', function(){
		this.src = imgDir + '/tim-t.png';
            });
    }
    
    if ($('ericShirt')){
	$('ericShirt').addEvent('mouseenter', function(){
            this.src = imgDir + '/eric-t-hover.png';
	})
            .addEvent('mouseleave', function(){
		this.src = imgDir + '/eric-t.png';
            });
    }
    
    if ($('teAddr')){
	var domain = 'timanderic.com';
	var addr = 'timanderic' + '@' + domain;
	$('teAddr').set('href', 'ma' + 'ilto:' + addr)
	    .empty()
	    .appendText(addr);
    }

});

function showThere(){
    $('theresMyChippy').setStyle('visibility', 'visible');
}

function hideThere(){
    $('theresMyChippy').setStyle('visibility', 'hidden');
}


