function showurlin(url, dest, options) {
	switch(dest) {
	case 'popup':
		window.open(url, 'popup', options);
		break;
	case 'original':
    	if (window.opener && window.opener.location)
			window.opener.location.href = url;
		break;
	default:
	}
}

function imgSwap(obj, newsrc) {
	obj.oldsrc = obj.src;
	obj.src = newsrc;
}

function imgRestore(obj) {
	if(obj.oldsrc) obj.src = obj.oldsrc;
}

