$(document).ready(function(){
	// Clear field value when clicked
	$(".has_default_value").focus(function(){
		if ( $(this).val() == $(this).attr("title") ) {
			$(this).val("");
		}
	});
	$(".has_default_value").blur(function(){
		if ( $(this).val() == "" ) {
			$(this).val($(this).attr("title"));
		}
	});			  
	// Remove focus outlines
	$("a").keypress(function(){
		this.blur();
		this.hideFocus = false;
		this.style.outline = null;
	});
	$("a").mousedown(function(){
		this.blur();
		this.hideFocus = true;
		this.style.outline = 'none';
	});
	// Rollovers
	$(".rollover").hover(function(){
		this.src = this.src.replace("_off", "_on");
	},
	function(){
		this.src = this.src.replace("_on", "_off");
	});
	$(".rollover").each(function(){
		rollover_src = $(this).attr("src");
		rollover_activate = rollover_src.replace(/_off/gi, "_on");
		$("<img>").attr("src", rollover_activate);
	});
	// Shadowbox
//	Shadowbox.init(document.ready);
});
