currentIndx=0;
topImages=new Array();

topImages[0]='/images/banners/LG_1.jpg';
topImages[1]='/images/banners/LG_2.jpg';
topImages[2]='/images/banners/LG_3.jpg';
topImages[3]='/images/banners/LG_4.jpg';
topImages[4]='/images/banners/LG_5.jpg';
topImages[5]='/images/banners/LG_6.jpg';
topImages[6]='/images/banners/LG_7.jpg';
 
imagesPreloaded = new Array(7) // Number of images to be displayed

for (var i = 0; i < topImages.length ; i++)
{
imagesPreloaded[i] = new Image(680,113)
imagesPreloaded[i].src=topImages[i]
}

function Content(Indx) {
document.imgTop.src=imagesPreloaded[currentIndx].src

function dCONTENT(elementid,content){
	if (document.all)
		document.getElementById(elementid).innerHTML=content;
	else if (document.getElementById){
	rng = document.createRange();
	el = document.getElementById(elementid);
	rng.setStartBefore(el);
	htmlFrag = rng.createContextualFragment(content);
	while (el.hasChildNodes()) el.removeChild(el.lastChild);
	el.appendChild(htmlFrag);}
}
}

function Next(){
if (currentIndx<imagesPreloaded.length-1){
	currentIndx=currentIndx+1;
	Content(currentIndx)
}
else {
	currentIndx=0
	Content(currentIndx)
}
}


function Back(){
if (currentIndx>0){
	currentIndx=currentIndx-1;
	Content(currentIndx)
}
else {
	currentIndx=1 // highet image to load when coming from zero
	Content(currentIndx)
}}


function automatically() {
if (currentIndx<imagesPreloaded.length){
	currentIndx=currentIndx
} else {
	currentIndx=0
}

	Content(currentIndx)
	currentIndx=currentIndx+1;
	var delay = setTimeout("automatically()",3500)

}