/// <reference path="jquery-1.4.4-vsdoc.js" />
// svcr-functions.js - requires jquery.js 1.5+
// created by Mindfly Web Studio
// created: Feb 09, 2011
// modified: Jun 22, 2011

$(document).ready(function(){
	bg.Google.map.loadFromHCard('footer .vcard', '#map', false, 13, function() { bg.Google.map.addMarkerByAddress('3716 Home Road, Bellingham, WA, 98226');});
	inputFocusAndBlur();
});

function inputFocusAndBlur() {
	$('input[type="text"], textarea').live('focus', function() {
		switch($(this).attr('name')) {
			case 'your-name':
				if($(this).attr('value') == 'Your Name') $(this).attr('value', '');
				break;
			case 'your-email':
				if($(this).attr('value') == 'Your E-mail Address') $(this).attr('value', '');
				break;
			case 'your-message':
				if($(this).attr('value') == 'Your Message') $(this).attr('value', '');
			default:
				break;
		}
	});
	$('input[type="text"], textarea').live('blur', function() {
		if($(this).attr('value') == '') {
			switch($(this).attr('name')) {
				case 'your-name':
					$(this).attr('value', 'Your Name');
					break;
				case 'your-email':
					$(this).attr('value', 'Your E-mail Address');
					break;
				case 'your-message':
					$(this).attr('value', 'Your Message');
				default:
					break;
			}
		}
	});
}
