<!-- Beginning of JavaScript dissolving Applet -------------------

var message = new Array()
message[0]="Welcome to CBSI..."
message[1]="One Stop Shopping..."
message[2]="For ALL of I.T. !!"

var i_message=0

// coverleft of 150 good for 640x480.
// coverleft of 200 good for 800x600.
// coverleft of 280 great for 800x600.
// coverleft of 280 lowest acceptable for 800x600.
// coverleft of 180 good compromise.
var covertop=110
var coverleft=280

var coverwidth=900
var coverheight=40

var texttop=covertop
var textleft=coverleft

//corresponding width attribute in the <style> file tag to match
var textwidth=300
var textheight=coverheight

var cliptop=0
var clipright=textwidth
var clipbottom=coverheight
var clipleft=0

var clippoints

// speeds of the wipeing effect
var step=10
var pause=50

var timer

function init() {
    if (document.all) {
	    document.all.text.style.posTop=texttop
        document.all.text.style.posLeft=textleft
        document.all.cover.style.posTop=covertop
        document.all.cover.style.posLeft=coverleft
        clipleft=0
        fadeout()
    }
}

function fadeout() {
    if (document.all.cover.style.posLeft >=(-coverwidth+textwidth+coverleft+step)) {   
        clipleft+=step
        clipright=clipleft+textwidth
        clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
		document.all.cover.style.clip=clippoints
        document.all.cover.style.posLeft-=step
        timer= setTimeout("fadeout()",pause)
    }
    else {
        clearTimeout(timer)
        i_message++
        if (i_message>=message.length) {i_message=0}
        text.innerHTML=message[i_message]   
        fadein()
 
    }
}

function fadein() {
    if (document.all.cover.style.posLeft <=coverleft) {   
        clipleft-=step
        clipright=clipleft+textwidth
        clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
		document.all.cover.style.clip=clippoints
        document.all.cover.style.posLeft+=step
        timer= setTimeout("fadein()",pause)
    }
    else {
        clearTimeout(timer)
        init()
    }
}

// -- End of JavaScript code ---------------->
