$(document).ready(function() {
	
	$('.flash_replace a').click(function() {
		swfobject.embedSWF(path+"/video/aboutwfm.swf", "replace_me", "543", "407", "9.0.0", "/video/expressInstall.swf");
		return false;
	});
	
});

// Removes PX from heights
function rmPix(varin) {
	out = varin.replace("px", "") * 1;
	return out;
}

// replaces form values
function form_replace() {
	$('form').find('input:text, textarea').each(function() {
		if ( $('body').attr('class') == 'admin' ) {} else {
		
			$(this).focus(function() { value = $(this).val(); $(this).val(''); });
			$(this).blur(function() {
				if ( $.trim($(this).val()) == '' ) { $(this).val(value); }
			})
		}
	});
}

// Evens out floated inline block elements
function even_divs(obj) {
	big = 0;
	$(obj).each(function() {
		var height = $(this).height();
		if ( height >= big ) { big = height; } // Get the largest object
	});
	$(obj).each(function() { 
		current = rmPix($(this).css('padding-bottom')); //Current padding
		height = $(this).height();
		var padding = (big - height) + current;//new padding based on need to expand. 
		$(this).delay(125).animate({paddingBottom: padding}, 250).delay(125);
	});
}



