<!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function makeArray(q){
for(i=1 ; i < q ; i++){this[i]=0}}
w=1;
howmanysites=3; // How many sites are listed below?

Sites = new makeArray(howmanysites);

<!-- STEP TWO: Use the pattern:  url~Site Title|Description for links  -->

Sites[1] = "/~HOMEPAGE|Go to B'Ahavat Yisrael Homepage";
Sites[2] = "contact_us.htm~Contact US|Let us know what you think or ask us a question";
Sites[3] = "Donations.asp~Donate!|Donate to B'Ahavat Yisrael";

function showSites() {
if (w > howmanysites) { w=1; };
var string=Sites[w] + "";
var split1=string.indexOf("~");
var split2=string.indexOf("|");
var url=string.substring(0,split1);
var name=string.substring(split1 + 1,split2);
var word=string.substring(split2 + 1,string.length);
document.form.url.value=url;
document.form.name.value=name;
document.form.word.value=word;
w+=1;
window.setTimeout('showSites()',2000);

// You can change the speed!  3000 = 3 sec delay.  5000 = 5 sec delay, etc. 

}
function visitSite() {
window.location=document.form.url.value;
}
// End -->
