function embiggen(elem,factor) {
	factor=factor || 2;
	elem=$(elem);
	elem.height(elem.height()*factor);
}

function startSplash(duration,fade) {
	duration=duration || 3000;
	fade=fade || 20;
	var splashes=window.splashes;
	splashes.duration=duration;
	splashes.fade=fade;
	splash=$("#splash");
	splash2=$(document.createElement("img"));
	splash.attr("src",splashes[0]);
	splash2.attr("src",splashes[1]);
//	alert(splash2.attr("src"));
	splash2.attr("id","splash2");
	splash.before(splash2);
	splashes.next=1;
	setTimeout("rotate(100)",duration);
	
}

function rotate(opacity) {
	var splashes=window.splashes;
	if (opacity < 1) {
		splash.attr("src",splash2.attr("src"));
		splash.css("opacity","1");
		var prev=splashes.next;
		next=(prev+1) % splashes.length;
		splashes.next=next;
		splash2.attr("src",splashes[next]);
		setTimeout("rotate(100)",splashes.duration);
	} else {
		opacity-=1;
		splash.css("opacity",opacity/100);
		var call="rotate("+opacity+")";
//		alert(call);
		setTimeout(call,splashes.fade);
	}
}
