$(function() {
	// blink fields
	$('.field').live('focus', function() {
		if(this.value == this.title) {
			this.value = ''
		}
	}).live('blur', function() {
		if(this.value == '') {
			this.value = this.title
		}
	});
	
	// slideshow 
	$('.thumbs-holder ul').append('<li></li>');
	$('.thumbs-holder').customScroller({
		'prev' : $('.prev'),
		'next' : $('.next')
	});
	$('.thumbs-holder, .slideshow-nav a').mouseover(function() {
		$('.slideshow-nav a').show();
	}).mouseout(function() {
		$('.slideshow-nav a').hide();
	});
	$('.thumbs-holder a').click(function() {
		var href = $(this).attr('href');
		var img = $('.image-holder img');
		img.fadeOut(function() {
			img.attr('src', href).fadeIn();
		});
		return false;
	});
	
	// IE6 fixes
	if($.browser.msie && $.browser.version.substr(0,1) == 6) {
		DD_belatedPNG.fix('h1#logo a, #header, #nav, #nav a, #main, #nav-b, #footer, .prev, .next');
	}
});
