$(document).ready(function() {
	
	//$(".corner").corner();
	//$(".corner-bottom").corner("bottom");
	
	$('a[href^=http]').click(function(){
		return confirm("By clicking on the OK button below, you will leave the 1st Pacific Bank Web site and be transferred to a third-party site.  1st Pacific Bank is not responsible for any content on third-party sites.");
	});
	
	$('a[rel*=fancybox]').fancybox();
	
	$(".feature-box").hover(function(){
		$(this).addClass("pointer");
	});
	
	$(".feature-box").click(function(){
		var url = $(this).find("a").attr("href");
		location.href = url;
	});
	
	// Label tags hint at what belongs in them	
	if ($(".overlabel").find("input").val()) {
		$(this).hide();
	}
	
	$(".overlabel").find("input").focus(function() {
		$(this).prev().hide();
	})
	.blur(function(){
		if (this.value == '') {
			$(this).prev().show();
		}
	});
	
	$(".overlabel").find("label").click(function(){
		$(this).next().trigger("focus");
	})
			
});