<!-- Begin
// Edit the variables below:
// URLs of the messageboard-images
// you may add as many messageboard-images as you like. They must have all the same size

var messageboard = new Array()

messageboard[0]="CMAhdr.gif"

// URL of the background-images
// It must have the same height as the messageboard-images

var bgimage="testX.jpg"

// height of messageboard-images (pixels)

var messageboardheight=150

// width of the messageboard-images (pixels)

var messageboardwidth=400

// width of the background-image. It should as wide as the messageboard-image or wider

var bgdivwidth=1200

// distance of the messageboard-images to the top margin of the document (pixels)

var messageboardtop=1

// distance of the messageboard-images to the left margin of the document (pixels)

var messageboardleft=1

// do not edit the variables below

var i_messageboard=0

// the speed of the animation. The smaller the value the slower the speed.

var step=5
var imgpreload=new Array()
for (i=0;i<=messageboard.length-1;i++) {
        imgpreload[i]=new Image()
        imgpreload[i].src=messageboard[i]
}
var bgimgpreload=new Image()
bgimgpreload.src=bgimage
var bgdivtop=messageboardtop
var bgdivleft=messageboardleft
var bgdivheight=messageboardheight
var cliptop=0
var clipright=messageboardwidth
var clipbottom=bgdivheight
var clipleft=0
var clippoints
var contentbg=""
var pause=150
var timer
function init() {
        clipleft=0
        clipright=messageboardwidth
        contentbg="<table cellpadding=0 cellspacing=0 border=0><tr>"
        contentbg+="<td><img src='"+bgimage+"' border='0' width='"+bgdivwidth+"' height='"+messageboardheight+"'></td>"
        contentbg+="<td><img src='"+bgimage+"' border='0' width='"+bgdivwidth+"' height='"+messageboardheight+"'></td>"
        contentbg+="<td><img src='"+bgimage+"' border='0' width='"+bgdivwidth+"' height='"+messageboardheight+"'></td>"
        contentbg+="</tr></table>"

    if (document.all) {
                 bgdiv.innerHTML=contentbg
                 text.innerHTML="<img src='"+messageboard[0]+"' border='0' width='"+messageboardwidth+"' height='"+messageboardheight+"'>"
             document.all.text.style.posTop=messageboardtop
         document.all.text.style.posLeft=messageboardleft
         document.all.bgdiv.style.posTop=bgdivtop
         document.all.bgdiv.style.posLeft=bgdivleft
         movebackground()
     }
         if (document.layers) {
                 document.bgdiv.document.write(contentbg)
                 document.bgdiv.document.close()
                 document.text.document.write("<img src='"+messageboard[i]+"' border='0' width='"+messageboardwidth+"' height='"+messageboardheight+"'>")
                 document.text.document.close()
             document.text.top=messageboardtop
         document.text.left=messageboardleft
         document.bgdiv.top=bgdivtop
         document.bgdiv.left=bgdivleft
         movebackground()
    }
}

function restart() {
        clipleft=0
        clipright=messageboardwidth
    if (document.all) {
        document.all.bgdiv.style.posLeft=bgdivleft
    }
        if (document.layers) {
        document.bgdiv.left=bgdivleft
    }
        movebackground()
}

function movebackground() {

if (document.all) {
    if (document.all.bgdiv.style.posLeft >=(-bgdivwidth+messageboardwidth+bgdivleft+step)) {
        clipleft+=step
        clipright=clipleft+messageboardwidth
        clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
                document.all.bgdiv.style.clip=clippoints
        document.all.bgdiv.style.posLeft-=step
        timer= setTimeout("movebackground()",pause)
    }
    else {
        clearTimeout(timer)
        i_messageboard++
        if (i_messageboard>=messageboard.length) {i_messageboard=0}
        text.innerHTML="<img src='"+messageboard[i_messageboard]+"' border=0>"
        restart()
    }
}
if (document.layers) {
        if (document.bgdiv.left >=(-bgdivwidth+messageboardwidth+bgdivleft+step-22)) {
        clipleft+=step
        clipright=clipleft+messageboardwidth
                document.bgdiv.clip.top=cliptop
                document.bgdiv.clip.left=clipleft
                document.bgdiv.clip.bottom=clipbottom
                document.bgdiv.clip.right=clipright
        document.bgdiv.left-=step
        timer= setTimeout("movebackground()",pause)
    }
    else {
        clearTimeout(timer)
        i_messageboard++
        if (i_messageboard>=messageboard.length) {i_messageboard=0}
        document.text.document.write("<img src='"+messageboard[i_messageboard]+"' border=0>")
                document.text.document.close()
        restart()
    }
}
}
-->
