/**
 * Overridden from userplane's f.js to display our own custom IM popup.
 */
function up_show()
{
	if (up_la.length > 0)
	{
		if (up_uid_display != up_la[0].uid)
		{
			up_uid_display = up_la[0].uid;
			showImPopup(up_uid_display);
		}
	}
	else
	{  
		hideImPopup();
		setTimeout('up_uid_display=""', 3000);
	}
}

/**
 * Do this when a user declines an instant message (clicks the x button).
 */
function declineInvite()
{
	up_clear(up_uid_display, true);
	if( imFlashOverlayMax > 0 )
	{
		dcsMultiTrack( 'WT.ti', 'flash_overlay_decline', 'DCS.dcsuri', imFlashOverlaySelector );
	}
}


/**
 * Use this for basic members when redirecting them to the upgrade page
 */
function basicImRedirect( url )
{
	up_clear(up_uid_display, true);
	setTimeout( 'window.location = "' + url + '";', 500 );
}
