/********************************************************************************
// This is part of the css file

#divBg {
	POSITION: absolute;
	TOP: 120px;
	VISIBILITY: hidden;
}

// To be placed into the Body section  


//<div id=divBg align="center">
   // <div style="background-color:#FFFFFF"><img alt="Indonesian Protaction Guide for foriegners" border=0 src="../images/indonesian.gif" height="1200" width=2000> </div>
  //</div>
  
  
  
/********************************************************************************
Copyright (C) 1999 Thomas Brattli
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts. 
This may be used freely as long as this msg is intact!
********************************************************************************
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
Browsercheck:*/
ie=document.all?1:0
n=document.layers?1:0
//These are the variables you have to set:
//Width of the Background Image
bgWidth=60
//How many pixels should it move every step? 
var move=10;
//Timer speed (in milliseconds)
bgSpeed=50
//Do you want it to move with the page if the user scroll the page?
var moveOnScroll=false
/********************************************************************************
You should't have to change anything below this.
********************************************************************************/
//Defining variables
var tim;
var ltop;
//Object constructor
function makeObj(obj){
    this.css=(n) ? eval('document.'+obj):eval(obj+'.style')						
	this.go=0
	this.width=n?this.css.document.width:eval(obj+'.offsetWidth')
	this.left=b_getleft
}
//Get's the top position.
function b_getleft(){
	var gleft=(n) ? eval(this.css.left):eval(this.css.pixelLeft);
	return gleft;
}
//Bg out
function slideIn(){
	if(oBg.left()<-move){
		oBg.css.left=oBg.left()+move
		tim=setTimeout("slideIn()",bgSpeed)
	}
}
/********************************************************************************
Checking if the page is scrolled, if it is move the menu after
********************************************************************************/
function checkScrolled(){
	if(!Bg.go) oBg.css.top=eval(scrolled)+ltop
	if(n) setTimeout('checkScrolled()',30)
}
/********************************************************************************
Inits the page, makes the menu object, moves it to the right place, 
show it
********************************************************************************/
function slideBgInit(){
	oBg=new makeObj('divBg')
	scrolled=n?"window.pageYOffset":"document.body.scrollTop"
	oBg.css.left=-oBg.width
	oBg.css.visibility='visible'
	slideIn()
	if(moveOnScroll) ie?window.onscroll=checkScrolled:checkScrolled();
}
//Initing menu on pageload
onload=slideBgInit;