function hideShowSticker() {
	var transfer = document.getElementById('transfer');
	if (transfer) {
		if (transfer.style.display == 'none')
			transfer.style.display = 'block'
		else
			transfer.style.display = 'none'

		setTimeout('hideShowSticker();', 3000)
	}
}

function popup(sender, w, h) {
	var href = sender.href;
	window.open(href, '_blank', 'menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,location=0,width=' + w + ',height=' + h)
	return false;
}

function showOtherInput(inputID) {
	var otherInput = document.getElementById(inputID);
	if (otherInput) {
		otherInput.style.display = 'block';            
	}
}

function hideOtherInput(inputID) {
	var otherInput = document.getElementById(inputID);
	if (otherInput) {
		otherInput.value = '';
		otherInput.style.display = 'none';
	}
}

function animateFlashContainer() {
	var wrapper = $('#flash_wrapper'),
		currHeight = wrapper.height(),
		naturalHeight = wrapper.css('height', 'auto').height();

	if (currHeight != naturalHeight) {
		wrapper.height(currHeight).animate({ 'height': naturalHeight }, function() {
			wrapper.css('height', 'auto');
		});
	}
}
