//////////////////////////////////////	
/////// Form Text Replacement ////////
//////////////////////////////////////

function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}

//////////////////////////////////////	
////////// Feature Slider ////////////
//////////////////////////////////////

$(function() {
	$('.panelContainer')
	.before('<div id="featurePages">')
	.cycle({ 
		fx:     'scrollBothWays', 
		speed:  500, 
		timeout: 10000,
		pager:  '#featurePages'
	});
});

//////////////////////////////////////	
////////// Twitter Widget ////////////
//////////////////////////////////////

jQuery(document).ready(function($) {
	$(".tweet").tweet({
	  join_text: "auto",
	  username: "_finderskeepers",
	  avatar_size: 48,
	  count: 3,
	  auto_join_text_default: "", 
	  auto_join_text_ed: "",
	  auto_join_text_ing: "",
	  auto_join_text_reply: "",
	  auto_join_text_url: "",
	  loading_text: "loading tweets..."
	});
  })  


//////////////////////////////////////	
////////// jQuery Shuffle ////////////
//////////////////////////////////////
 
$(function(d){d.fn.shuffle=function(c){c=[];return this.each(function(){c.push(d(this).clone(true))}).each(function(a,b){d(b).replaceWith(c[a=Math.floor(Math.random()*c.length)]);c.splice(a,1)})};d.shuffle=function(a){return d(a).shuffle()}})(jQuery);
