var i = 1;
banner1= new Image();
banner1.src = "images/xray_01.jpg";
banner2 = new Image();
banner2.src = "images/xray_02.jpg";
banner3 = new Image();
banner3.src = "images/xray_03.jpg";
banner4 = new Image();
banner4.src = "images/xray_04.jpg";
banner5 = new Image();
banner5.src = "images/xray_05.jpg";
banner6 = new Image();
banner6.src = "images/xray_06.jpg";
banner7 = new Image();
banner7.src = "images/xray_07.jpg";
banner8 = new Image();
banner8.src = "images/xray_08.jpg";
banner9 = new Image();
banner9.src = "images/xray_09.jpg";
banner10 = new Image();
banner10.src = "images/xray_10.jpg";
banner11 = new Image();
banner11.src = "images/xray_11.jpg";
banner12 = new Image();
banner12.src = "images/xray_12.jpg";

var links = new Array

links[1] = "#"
links[2] = "#"
links[3] = "#"
links[4] = "#"
links[5] = "#"
links[6] = "#"
links[7] = "#"
links[8] = "#"
links[9] = "#"
links[10] = "#"
links[11] = "#"
links[12] = "#"

var description = new Array

description[1] = "Biologically Oriented Prosthetics by BioPro"
description[2] = "Biologically Oriented Prosthetics by BioPro"
description[3] = "Biologically Oriented Prosthetics by BioPro"
description[4] = "Biologically Oriented Prosthetics by BioPro"
description[5] = "Biologically Oriented Prosthetics by BioPro"
description[6] = "Biologically Oriented Prosthetics by BioPro"
description[7] = "Biologically Oriented Prosthetics by BioPro"
description[8] = "Biologically Oriented Prosthetics by BioPro"
description[9] = "Biologically Oriented Prosthetics by BioPro"
description[10] = "Biologically Oriented Prosthetics by BioPro"
description[11] = "Biologically Oriented Prosthetics by BioPro"
description[12] = "Biologically Oriented Prosthetics by BioPro"

function loadBanner(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=3;	
        Timer();

}

function Timer(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime){
		if (i < 12){
			i++;
			document.banner.src = eval("banner" + i + ".src");
		}
		else{
			i = 1;
			document.banner.src = eval("banner" + i + ".src");
		}
		loadBanner();
	}
        else{
                window.setTimeout("Timer()",1000)}

}

function clickLink(){
	top.location = links[i]
}

function descript(){
	window.status = description[i]
}

function nothing() {
	window.status=""
}
