// JavaScript Document

function SwapImage(id, url)
{
	
	var target = document.getElementById(id);
	target.src = url;
	
}

jQuery.fn.valign = function() {
	$(this)
		.wrapInner('<div class="valign-box"></div>')
		.css("position", "relative");
		
	xH = $(this).children('.valign-box').height();
	$(this).children('.valign-box')
		.css({
			"position"		: "absolute",
			"height"		: xH,
			"top"			: "50%",
			"margin-top"	: 0-(xH/2)
		});
};
