<!--

var nTop = -120+10;
var nHeight = 121;
var nDirection = 1;
var nRun = 0;
var nBanner1 = 0;

var ua = navigator.userAgent.toLowerCase()
var nBrowser = 0;
if  (   (ua.indexOf("opera")==-1) &&
        ( (ua.indexOf("msie")!=-1) && (ua.indexOf("windows")!=-1) ) ||
        ( (ua.indexOf("msie 5")!=-1) && (ua.indexOf("mac")!=-1) )
    )
    {nBrowser = 1}

function SetCookie(){
    var BANNER = CheckCookie("BANNER");
    if (BANNER == null){
        var expire = new Date();
        expire = new Date(expire.getTime() + 30*24*60*60*1000);
        document.cookie = "BANNER=seen; expires="+expire;
    }
}

function CheckCookie(CookieName)
{
    var arg = CookieName+"=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg)
            return "seen";
        i = document.cookie.indexOf(" ",i) + 1;
        if (i == 0) break;
    }
    return null;
}

function Run_Banner()
{
}

function Saved_Run_Banner()
{
    var nSeen = CheckCookie('BANNER');
    if ((nBrowser) && (nSeen==null)){
        SetCookie();
        nSeen = CheckCookie('BANNER');
        drawing_div.style.left=(document.body.offsetWidth/2)-120
        Clip_Banner();
        }
}

function Clip_Banner()
{
    nRun=1;
    if ( ((nHeight < 121) && (nDirection==0)) || ((nHeight > 1) && (nDirection==1)) ) {
        if (nHeight==121) {drawing_div.style.display=""}
        (nDirection==0)?nHeight+=1:nHeight-=1;
        (nDirection==0)?nTop-=1:nTop+=1;
        drawing_div.style.clip="rect(" + nHeight + ",240,121,0)";
        drawing_div.style.top=nTop;
        setTimeout("Clip_Banner();",20);
        }
    else{
        if (nDirection==1){
            drawing_div.style.clip="rect(0,240,121,0)";
            drawing_div.style.top=nTop;
            nDirection=0;
            setTimeout("Clip_Banner();",5000);
            }
    else{
        drawing_div.style.display='none';
        nBanner1 = 1;
        }
    }
}

//-->
