jQuery.preloadImages = function(pid,tid)
{
	var path = "images/project/" + pid + "/" + tid + ".jpg";
	jQuery("<img>").attr("src", path );
}

	function imgSwap(iid,pid,tid,h) {
		if (!document.getElementById) { return; }
		var path = "images/project/" + pid + "/" + tid + ".jpg";
		$iid = $('#' + iid);
		$iid.fadeOut(750,function(){
			$iid.attr('src','/images/clear.gif');
			$iid.attr('src',path);
			$iid.attr('height',h);
			$iid.fadeIn(500);
		});
	 return;
	}

	function textSwap(text) {
		if (!document.getElementById) { return; }
		$s = $('#swapme');
		$s.fadeOut(750,function(){
			$s.html( text );
			$s.fadeIn();
		});
		//document.getElementById('swapme').innerHTML = text;
	}
