var scrollerwidth='918px'
var scrollerheight='100px'
var scrollerbgcolor='white'
//3000 miliseconds=3 seconds
var pausebetweenimages=3000

var pengurang = 5
var lagidiem = 1

var ooooo1='<div style="position:absolute; top: 200px; padding : 0 0 0 20px;">ini isinya</div>'

var slideimages=new Array()
slideimages[0]='<a href="http://www.asianbraindomains.com/domain.php"><img src="promo/hosting1.png" border=0"></a>'
slideimages[1]='<img src="promo/hosting2.png">'


var slidetext=new Array()
slidetext[0]='<div style="position:absolute;top:170px;width : 450px; height : 50px;">1bisa dimodif kapan ajah isi text yang nantinya ada ditengah</div>'
slidetext[1]='<div style="position:absolute;top:170px;width : 450px; height : 50px;">2bisa dimodif kapan ajah isi text yang nantinya ada ditengah</div>'

     
var ie=document.all
var dom=document.getElementById

if (slideimages.length>1)
	i=1
else
	i=0

function move1(whichdiv){
	tdiv=eval(whichdiv)
	if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
		tdiv.style.top=0+"px"
		setTimeout("move1(tdiv)",pausebetweenimages)
		setTimeout("move2(scrollerdiv2)",pausebetweenimages)
		return
	}
	if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
		tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
		setTimeout("move1(tdiv)",20)
	}else{
		tdiv.style.top=scrollerheight
		tdiv.innerHTML=slideimages[i]
		if (i==slideimages.length-1)
			i=0
		else
			i++
	}
}

function move2(whichdiv){
	tdiv2=eval(whichdiv)
	if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
		tdiv2.style.top=0+"px"
		setTimeout("move2(tdiv2)",pausebetweenimages)
		setTimeout("move1(scrollerdiv1)",pausebetweenimages)
		return
	}
	if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
		tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
		setTimeout("move2(scrollerdiv2)",20)
	}else{
		tdiv2.style.top=scrollerheight
		tdiv2.innerHTML=slideimages[i]
		if (i==slideimages.length-1)
			i=0
		else
			i++
	}
}

function startscroll(){
		scrollerdiv1=ie? halindex.headerbawah.first2 : document.getElementById("first2")
		scrollerdiv2=ie? halindex.headerbawah.second2 : document.getElementById("second2")
		move1(scrollerdiv1)
		scrollerdiv2.style.top=scrollerheight
		scrollerdiv2.style.visibility='visible'
//		alert(scrollerdiv2.style.top)
		
}

// JavaScript Document