function loadpage() {
browver= parseInt(navigator.appVersion);
browtype = navigator.appName;
browsertype = "old";
if (browtype == "Netscape" && !(browver < 3)) {
browsertype = "new"; 
}
if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
browsertype = "new";
}
if (browsertype == "new") {
var now = new Date();
mseconds = now.getSeconds();
thetimer = setTimeout("changebanner()", 30000);
banneradcode = 0;
listofimages = new Array(6);
listofurls = new Array(6);
listofimages[0] = "images/Alkhalili.gif"
listofimages[1] = "images/amiantit.gif"
listofimages[2] = "images/DhofarCat.gif"
listofimages[3] = "images/IGF2010.gif"
listofimages[4] = "images/TechnoP.gif"
listofimages[5] = "images/WJT.gif"

listofurls[0] = "http://www.alkhalili.com"
listofurls[1] = "http://www.amiantitoman.com"
listofurls[2] = "http://www.alsafwahdairy.com"
listofurls[3] = "http://www.golden-furniture.net"
listofurls[4] = "http://www.tpioman.com"
listofurls[5] = "http://www.wjtowell.com"
}
}

function changebanner(){
if (browsertype == "new") {
banneradcode++
if (banneradcode == "10") {
banneradcode = 0
}
document['adspace'].src = listofimages[banneradcode]
thetimer = setTimeout("changebanner()", 30000);
}
else if (browsertype == "old") {
}
}

function changepage() {
if (browsertype == "new") {
self.location = listofurls[banneradcode]
}
else if (browsertype == "old") {
location = "index.html"
}
}
