function showE(thefield){
	if (thefield.defaultValue==thefield.value) {
		thefield.value = "";
	}
} 

function switchPhoto(value) {
	setTimeout("$('photo').src = 'gallery/"+value+"';", 50);
}

function showOver(el) {
	el.src = el.src.substring(0,el.src.length-4)+"_o.png";
}
function showOut(el) {
	el.src = el.src.substring(0,el.src.length-6)+".png";
}

function slideLeft() {
	var position = parseInt($('quotes').style.left);
	var newPosition = position + 600;
	if (newPosition > 0) {
		$('quotes').style.left = '0px';
	} else {
		Effect.MoveBy( $('quotes'), 0, 600 , {duration: 0.3});
	}
}
function slideRight() {
	var SSwidth = $('quotes').childElements().length * 600; 
	var position = parseInt($('quotes').style.left);
	var newPosition = position - 600;
	if (newPosition < 600 - SSwidth) {
		$('quotes').style.left = 600 - SSwidth;
	} else {
		Effect.MoveBy( $('quotes'), 0, -600 , {duration: 0.3});
	}
}