function shipFields(){
	if ($("#same_as_billing").is(':checked')) {
		$("#shipaddress").hide();
	}
	else {
		$("#shipaddress").show(250);
	}
}

/* Apply JQuery Cycle to all divs of class imageContainer */
$(document).ready(function(){
	$(".imageContainer").cycle({ 
	    fx:    'fade', random:1,
	    speed:  900 
	 });
	
	 nextfest = new Date();
	 nextfest.setTime(1283486400000);

	 $(".countdown").countdown({until: nextfest, format: "DHMS"});
 
 /* Replace search feild background text */
		
		// on focus
		$('#search-field').focus(function(){
			$('.overlabel').hide();
		});
		
		// on blur
		$('#search-field').blur(function(){
			var searchValue = $('#search-field').val();
			if (searchValue.length > 1) {
				$('.overlabel').hide();
			}
			else {
				$('.overlabel').show();
			}
		});
		
		// if there is a value in the search field
		$("#password").ready(function(){
			var searchValue = $('#search-field').val();
			if (searchValue.length > 1) { 
				$('.overlabel').hide();
			} else { 
				$('#search-field').show();
			}
		}); 
		
		shipFields();
 
 		$("#same_as_billing").click(shipFields);
 
 })
 
/* Suckerfish Hover Script for IE6, from http://htmldog.com/articles/suckerfish/dropdowns/ */

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);