// JavaScript Document
jQuery(function( $ ){
	var contentHeight = 0;
	var footerHeight = 0;
	contentHeight = $('#content').height();
	footerHeight = contentHeight + 24 + 130;
	$('#wedge').css("height",footerHeight);
	
	$('#searchbtn').click(function() {
		document.searchform.submit();
	});
	
	$("#searchterm").focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
		
	if(ie6agent == 1)  {
		$(window).scroll(function () { 
			var scrollPos = document.documentElement.scrollTop;
			$('#header').css("top",scrollPos);
    	});
	}

});
