
    var popupWindow;
    var theObjTop;
    var popupWindow;

    function showDetails(subject, details) {
        var head = '<html><head><title>' + subject + '</title></head>';
        head += '<body><center><h3>' + subject + '</h3>';
        var foot = '<font size=3>' + details + '</font>';
        foot += '<p><a href="#" onClick="window.close();">Close this Window.</a></p>';
        foot += '</center>';
        popupWindow = window.open('',subject,'width=400,height=250,resizable=no,scrollbars=no,toolbars=no');
        popupWindow.document.write(head + foot);
    }

    function scroll_welcome_message() {
        try {
            if ((get_cookie('CookiesAccepted') && get_cookie('WelcomeMessageDisplayed') != null )) {
                null;
            }  else {
                theObj = document.getElementById('welcomeMessage');
                theObjTop = -240;
                theObj.style.visibility = 'visible';
                really_scroll_welcome_message();
            }
        } catch (error) { alert('Failed to locate object welcomeMessage'); }
    }

    function really_scroll_welcome_message() {
        try {
            theObj.style.top = theObjTop;
            if (theObjTop <= 50) {
                theObjTop += 1;
                setTimeout('really_scroll_welcome_message()', 10);
            } else if ((theObjTop >= 51) && (theObjTop <= 51)) {
                theObjTop += 1;
                setTimeout('really_scroll_welcome_message()', 3000);
            } else if ((theObjTop >= 52) && (theObjTop <= 700)) {
                theObjTop += 1;
                setTimeout('really_scroll_welcome_message()', 10);
            } else {
                setTimeout('remove_welcome_message()', 7000);
            }
        } catch (error) {}
    }

    function remove_welcome_message() {
        try {
            theObj.style.visibility = 'hidden';
            theObj.style.top = -400;
            set_cookie('WelcomeMessageDisplayed', 'true', '', '/', '', '');
        } catch (error) {}
    }

    // Functions, get_cookie(), set_cookie(), delete_cookie are courtesy of
    // Martin Webb and Bill Dortch from:
    //      http://tech.irt.org/articles/js064/index.htm

    function get_cookie(name) {
        try {
            //Check if browser has accepted cookies
            if (document.cookie.indexOf('CookiesAccepted') || document.cookie.length >= 1) {
                var start = document.cookie.indexOf(name+"=");
                var len = start+name.length+1;
                if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
                if (start == -1) return null;
                var end = document.cookie.indexOf(";",len);
                if (end == -1) end = document.cookie.length;
                var cookieValue = unescape(document.cookie.substring(len,end));
                if (cookieValue != '' && cookieValue != null && cookieValue != undefined && cookieValue != 'x0') {
                    return cookieValue;
                } else { return null; }
            } else {
                return null;
            }
        } catch (error) {}
    }

    function set_cookie(name, value, expires, path, domain, secure) {
        try {
            path = (path) ? path : '/';
            document.cookie = name + "=" + ((value != '') ? escape(value) : '') +
                ( (expires) ? ";expires=" + expires.toGMTString() : "") +
                ( (path) ? ";path=" + path : "") +
                ( (domain) ? ";domain=" + domain : "") +
                ( (secure) ? ";secure" : "");
            return 1;
        } catch (error) {}
    }



