
/* This script is used by the homepage to show & hide the popup advert
   A cookie is set when the popup is closed, so that the popup is only shown once.
   Because the default for setCookie is to expire at the end of the session, next
   time the user logs in they'll see the advert once again */

function show_popup() {
    if (getCookie('HidePopup') != 'true')
	Effect.SlideDown('popup');
}

function close_popup() {
    setCookie('HidePopup','true');
    Effect.SlideUp('popup');
}
