window.addEvent('domready', function() {

	// index page stuff...
	
	if ($(document.body).className.indexOf('home') != -1) {
	
		$('showbox').setOpacity(0.10);
		$('showtxt').getFirst().getNext().setOpacity(0.50);
		
	}
	
	
	// backpage stuff...
	
	else {
		var logo = $('band').getFirst().getFirst();
		
		logo.addEvent('click', function() {
    		location.href = '/';


    	});
    	
    	
    	// remove title attribute from featured images
    	
    	logo.setStyle('cursor', 'pointer');
    	
    	var featimgs = $$('img.wp-post-image');
    	
    	if (featimgs) {
    		featimgs.each(function(e) {
				e.removeAttribute('title');
			});
    	}
    	

		// stuff for lunch & dinner menu pages...

		var pageurl = document.location.toString();
	
		//if ((pageurl.indexOf('lunch') != -1) || (pageurl.indexOf('dinner') != -1)) {
			var dots = $$('div.dots');
		
			dots.each(function(e) {
				iw = e.getPrevious().getSize().x;
				e.setStyle('width', 440 - iw);
			});
		//}

    }    
	
	// remove dotted outline on links in IE8...
    
    if (document.documentElement.attachEvent)
    	document.documentElement.attachEvent('onmousedown',function() {
        event.srcElement.hideFocus=true
    });
    
});
