$(document).ready(function() {

	// change header images in IE6
	if($.browser.msie && $.browser.version == 6) {
		$('#images img[@src$=.png]').each(function(i){
			var w = $(this).attr("alt");
			var x = $(this).attr("src");
			var y = $(this).attr("class");
			var z = $(this).attr("id");
			x = x.substring(0, x.indexOf('.png'));
			$(this).replaceWith('<img alt="' + w + '" src="' + x + '.gif" class="' + y + '" id="' + z + '"/>');
		});
	}


	// inits focus state changes for everyone BUT IE
	if($.browser.msie) {
	} else{
		$('input[type!=submit]').focus(function(){
			$(this).css({'background':'#ffffff'});
		});
	
		$('input[type!=submit]').blur(function(){
			if($(this).val() != ''){
				$(this).css({'background':'#ffffff'});
			} else {
				$(this).css({'background':'transparent'});
			}
		});
		
		$('textarea').focus(function(){
			$(this).css({'background':'#ffffff'});
		});
	
		$('textarea').blur(function(){
			if($(this).val() != ''){
				$(this).css({'background':'#ffffff'});
			} else {
				$(this).css({'background':'transparent'});
			}
		});
		
		$('input[type!=submit]').blur();
		$('textarea[type!=submit]').blur();
	}
	
});// --- End jQuery Document.Ready ---