var bname = navigator.appName; 
var bVer = parseInt(navigator.appVersion);
var ok=-1;
if(document.all)ok=1;
if(bname == "Netscape" && bVer >= "5")ok=1;
if(bname == "Opera" && bVer >= 5)ok=1;
if(bname == "Konqueror" && bVer >= 5)ok=1;
if(bname == "Epiphany" && bVer >= 5)ok=1;
if(bname == "Firefox" && bVer >= 5)ok=1;
if(bname == "Safari" && bVer >= 5)ok=1;
if(bname == "Iceweasel" && bVer >= 5)ok=1;
if(bname == "Mozilla" && bVer >= 5)ok=1;
/*if(navigator.userAgent.indexOf('Mac')!=-1)ok=1;*/
if(ok!=1)location="index1.html";  

function roll(n,i){
switch(n){
case 0:eval("document.images.i"+i+".src='ball.gif'");break;
case 1:eval("document.images.i"+i+".src='clear.gif'");break;
case 2:eval("document.images.i"+i+".src='ball1.gif'");break;}
}
// Array Function

function makeArray() {
var args = makeArray.arguments;
    for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
    }
this.length = args.length;}

function makeArray2() {
var args2 = makeArray2.arguments;
    for (var j = 0; j < args2.length; j++) {
    this[j] = args2[j];
    }
this.length = args2.length;
}

// This array holds the descriptions and names of the pages.

var pages = new makeArray("Find out about ...",
                          "My Dental Practice Directions and Map",
                          "British Dental Association",
                          "General Dental Council",
                          "World Dental (FDI)",
                          "Dental Guide",
                          "British Dental Health Federation",
                          "Dental Wisdom",
                          "NHS dental charges",
                          "Dental Practice Board");

// This array hold the URLs of the pages.

var urls = new makeArray("",
                         "practice.html",
                         "http://www.bda-dentistry.org.uk",
                         "http://www.gdc-uk.org",
                         "http://www.fdiworldental.org/",
                         "http://www.dentalguide.co.uk/",
                         "http://www.dentalhealth.org.uk",
                         "http://www.dentalwisdom.com",
                         "http://www.centralservicesagency.com/display/dental_charges",
                         "http://www.dpb.nhs.uk/");


var pages2 = new makeArray2("NHS Dental Charges ...",
                          "NHS Dental Fees April 2007",
                          "NHS Dental Fees April 2006",
                          "NHS Dental Fees April 2005",
                          "NHS Dental Fees May 2004",
                          "NHS Dental Fees August 2003",
                          "NHS Dental Fees June 2003",
                          "NHS Dental Fees 2002-2003",
                          "NHS Dental Fees 2001-2002",
                          "NHS Orthodontic Fees 2001-2002",
                          "British Dental Health Federation",
                          "Dental Wisdom",
                          "NHS dental charges",
                          "Dental Practice Board");

// This array hold the URLs of the pages.

var urls2 = new makeArray2("",
                         "http://www.markpreston.co.uk/fg/udaguide2007.php",
                         "http://www.markpreston.co.uk/fg/udaguide.php",
                         "http://truth.positive-internet.com/~mpreston/fg/nhsFeesApr2005.php",
                         "http://www.markpreston.uklinux.net/nhsFeesMay2004.php3",
                         "http://www.markpreston.uklinux.net/nhsFeesAug2003.php3",
                         "http://www.markpreston.uklinux.net/nhsfeesjun2003.php3",
                         "http://www.markpreston.uklinux.net/nhsfeesapr2002.php3",
                         "http://www.markpreston.uklinux.net/nhsfeesapr2001.php3",
                         "http://www.markpreston.uklinux.net/nhsorthofeesapr2001.php3",
                         "http://www.dentalhealth.org.uk",
                         "http://www.dentalwisdom.com",
                         "http://www.centralservicesagency.com/display/dental_charges",
                         "http://www.dpb.nhs.uk/");

// This function determines which page is selected and goes to it.

function goPagei(form) {
i = form.menu.selectedIndex;            
    if (i != 0) {
    window.location.href = urls[i];  
    }
}

function goPagej(form) {
j = form.menu2.selectedIndex;            
    if (j != 0) {
    window.location.href = urls2[j];  
    }
} 
