$(document).ready(function(){
	$('#inner-footer-left .block ul li:last').css({'border-right':'none'});
	
	$('#s').bind('focus',function(){
		if($(this).val() == 'Search this site'){
			$(this).val('');
		}
	});
	$('#s').bind('blur',function(){
		if($(this).val() == ''){
			$(this).val('Search this site');
		}
	});
	$('.archive #center hr:last').hide();
	
});

var homeImg = {
    imgs:{},
    run:function(){
        var instance = this;
		
		// set position of flash div to relative
		$('#flash').css({'position':'relative'});
		
		// grab imgs and  drop them into a class member
        instance.imgs = $('#flash ul li img');
		
		// hide all imgs except for first one, and set position to absolute & top-left.
        instance.imgs.each(function(z, el){
			// set el position to absolute
			$(el).css({'position':'absolute','top':'0','left':'0'});
			
            if(z > 0){
               $(el).hide();
            }
        });
		
		// wait 4 seconds, then advance to next one
		setTimeout('homeImg.swapToNextImg()',3000);

    },
	swapToNextImg:function(){
		var instance = this;
		
		$(instance.imgs[0]).fadeOut();
		$(instance.imgs[1]).fadeIn();
	}
}