$(document).ready(function(){

	/* using this for select field overlap fix - google chrome doesn't like activeXOverlap function */
	var isIE6 = /msie|MSIE 6/.test(navigator.userAgent);

	/* remove button onfocus outline */
	$('button').focus(function(){$(this).blur();});
	
	/* form field default value toggle */
	$('.default-value').each(function() {
		var default_value = this.value;
		$(this).css('color', '#000'); /* this could be in the style sheet instead */
		$(this).focus(function() {
			if(this.value == default_value) {
				this.value = '';
				$(this).css('color', '#000');
			}
		});
		$(this).blur(function() {
			if(this.value == '') {
				$(this).css('color', '#000');
				this.value = default_value;
			}
		});
	});
	
	/* ie 6 form select field overlap fix - see jquery-select-overlap.js */
	if(isIE6) {
		$(function() {
			$('.overlap-fix').activeXOverlap();
		});
	}
	
});
