//GEO javascripts

//pop-up window function - no toolbar etc.
 
function det_win(target_win)
{
window.open(target_win,'NewWin', 'scrollbars, status=no, resizable, width =800, height =800');
}

function det_win2(target_win)
{
window.open(target_win,'NewWin2', 'scrollbars = no, status=no, resizable, width = 300, height= 400, toolbar = no, menu = no');
}

function det_win3(target_win)
{
window.open(target_win,'NewWin3', 'scrollbars, status=no, resizable, width =520, height =620');
}



//pop-up - definable size
function det_win4(target_win,wd,ht)
{
NewWin = window.open(target_win,'NewWin', 'scrollbars = no, toolbar = no, status=no, resizable = yes, width='+wd+', height='+ht+'');
}



// Status bar scroll

var speed = 100 
var pause = 3000 
var timerID = null
var texttype = false
var ar = new Array()

ar[0] = "The NEW Weather Satellite Observers Group"
ar[1] = "Now one year old!"
ar[2] = "A few FREE First Quarterly issues still available!"
ar[3] = " "
var msgnow = 0
var offset = 0

function stopBanner() {
        if (texttype)
                clearTimeout(timerID)
        texttype = false
}

function startBanner() {
        stopBanner()
        showBanner()
}

function showBanner() {
        var text = ar[msgnow]

        if (offset < text.length) {
                if (text.charAt(offset) == " ")
                        offset++                        

                var partialMessage = text.substring(0, offset + 1) 
                window.status = partialMessage
                offset++ 
                timerID = setTimeout("showBanner()", speed)
                texttype = true
        } else {
                offset = 0
                msgnow++
                if (msgnow == ar.length)
                        msgnow = 0

                timerID = setTimeout("showBanner()", pause)
                texttype = true
        }
}
