function pageDynamics(){
	//$(".module").toggle().show('fast');
	//set class on input focus
	if($("input[type='text'], textarea").length > 0){
		$("input[type='text'], textarea").addClass("default").focus(function(){
			//autoselect fields that contain urls
			if($(this).val().substring(0,4) == "http"){
				$(this).select();
			}
			$(this).attr("class", "focus");
		}).blur(function(){
			$(this).attr("class", "default");
		});
	}


	if($(".thumbs a").length > 0){
		//equip rollover
		$(".thumbs a").mouseover(function(){
			$(this).find("img").css("border", "4px solid #CC99CC");
		}).mouseout(function(){
			$(this).find("img").css("border", "4px solid #27232A");
		});
		//layout them out successively	
		$(".thumbs a").hide();
		$(".thumbs a").eq(0).fadeIn('fast', function(){
			$(this).next().fadeIn('fast', arguments.callee);
		})
	}
	if($("#image img").length > 0){
		$("#image img").hide();
		$("#image img").fadeIn('slow');
	}
	if($("div.elasticbox").length > 0){
		$("div.elasticbox").hide();
		$("div.elasticbox").eq(0).show('fast', function(){
			$(this).next().show('fast', arguments.callee);
		})
	}

}
