function clearMe(obj, text) {
	if(obj.value == text) {
		obj.value = '';
	}
}

function restoreMe(obj, text) {
	if(obj.value == '') {
		obj.value = text;
	}
}

$(document).ready(function(){
	
	// Homepage twitter actions
	
	$(".select-twitter-lacma").click(function () {
    $(".twitter-group").hide();
    $("#twitter-lacma").show();

		$('.twitter-lacma-posts').cycle({
			fx: 'scrollUp',
			timeout: 6750,
			speed: 1250
		});
  });

	$(".select-twitter-community").click(function () {
    $(".twitter-group").hide();
    $("#twitter-community").show();

		$('.twitter-community-posts').cycle({
			fx: 'scrollUp',
			timeout: 6750,
			speed: 1250
		});
  });

	$(".select-twitter-espanol").click(function () {
    $(".twitter-group").hide();
    $("#twitter-espanol").show();

		$('.twitter-espanol-posts').cycle({
			fx: 'scrollUp',
			timeout: 6750,
			speed: 1250
		});
  });

	// Start first twitter cycle-through

	$('.twitter-lacma-posts').cycle({
		fx: 'scrollUp',
		timeout: 6000
	});
	
	// Fix logo in IE6

	$(function(){
		$('h1#logo').pngFix();}
	);
	
});