if (document.images) {
    nav1on  = new Image(); nav1on.src  = "image/nav_our_office_over.gif";
    nav1off = new Image(); nav1off.src = "image/nav_our_office.gif";
    nav2on  = new Image(); nav2on.src  = "image/nav_our_people_over.gif";
    nav2off = new Image(); nav2off.src = "image/nav_our_people.gif";
    nav3on  = new Image(); nav3on.src  = "image/nav_our_services_over.gif";
    nav3off = new Image(); nav3off.src = "image/nav_our_services.gif";
    nav4on  = new Image(); nav4on.src  = "image/nav_preventative_over.gif";
    nav4off = new Image(); nav4off.src = "image/nav_preventative.gif";
    nav5on  = new Image(); nav5on.src  = "image/nav_fees_over.gif";
    nav5off = new Image(); nav5off.src = "image/nav_fees.gif";
    nav6on  = new Image(); nav6on.src  = "image/nav_appointments_over.gif";
    nav6off = new Image(); nav6off.src = "image/nav_appointments.gif";
    nav7on  = new Image(); nav7on.src  = "image/nav_resources_over.gif";
    nav7off = new Image(); nav7off.src = "image/nav_resources.gif";
    nav8on  = new Image(); nav8on.src  = "image/nav_contact_over.gif";
    nav8off = new Image(); nav8off.src = "image/nav_contact.gif";
    nav9on  = new Image(); nav9on.src  = "image/prev_dentistry_over.gif";
    nav9off = new Image(); nav9off.src = "image/prev_dentistry.gif";
    nav10on  = new Image(); nav10on.src  = "image/res_dentistry_over.gif";
    nav10off = new Image(); nav10off.src = "image/res_dentistry.gif";
    nav11on  = new Image(); nav11on.src  = "image/cos_dentistry_over.gif";
    nav11off = new Image(); nav11off.src = "image/cos_dentistry.gif";

}



function rollOn(img1,text){
    window.status = text;
    if (document.images) {
        document[img1].src=eval(img1 + "on.src");
    }
}

function rollOff(img1){
    window.status = "";
    if (document.images) {
		document[img1].src=eval(img1 + "off.src");
    }
}









function doPreload()
{

   var the_images = new Array('image/nav_our_office_over.gif','image/nav_our_people_over.gif',
   'image/nav_our_services_over.gif', 'image/nav_preventative_over.gif','image/nav_fees_over.gif','image/nav_appointments_over.gif','image/nav_resources_over.gif',
   'image/nav_contact_over.gif','image/prev_dentistry_over.gif','image/res_dentistry_over.gif','image/cos_dentistry_over.gif');
   preloadImages(the_images);
}

function preloadImages(the_images_array) {

   for(var loop = 0; loop < the_images_array.length; loop++)
	
   {
 	var an_image = new Image();
	an_image.src = the_images_array[loop];
   }
}






// function switchDiv()
//  this function takes the id of a div
//  and calls the other functions required
//  to show that div
//
function switchDiv(div_id)
{
  var style_sheet = getStyleObject(div_id);
  if (style_sheet)
  {
    hideAll();
    changeObjectVisibility(div_id,"visible");
  }
  else 
  {
    
  }
}

// function hideAll()
//  hides a bunch of divs
//
function hideAll()
{


      
}

// function getStyleObject(string) -> returns style object
//  given a string containing the id of an object
//  the function returns the stylesheet of that object
//  or false if it can't find a stylesheet.  Handles
//  cross-browser compatibility issues.
//
function getStyleObject(objectId) {
  // checkW3C DOM, then MSIE 4, then NN 4.
  //
  if(document.getElementById && document.getElementById(objectId)) {
	return document.getElementById(objectId).style;
   }
   else if (document.all && document.all(objectId)) {  
	return document.all(objectId).style;
   } 
   else if (document.layers && document.layers[objectId]) { 
	return document.layers[objectId];
   } else {
	return false;
   }
}

function changeObjectVisibility(objectId, newVisibility) {
    // first get a reference to the cross-browser style object 
    // and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
}


// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'image/sumi_says1.gif'
theImages[1] = 'image/sumi_says2.gif'
theImages[2] = 'image/sumi_says3.gif'
theImages[3] = 'image/sumi_says4.gif'
theImages[4] = 'image/sumi_says5.gif'
theImages[5] = 'image/sumi_says6.gif'
theImages[6] = 'image/sumi_says7.gif'
theImages[7] = 'image/sumi_says8.gif'
theImages[3] = 'image/sumi_says9.gif'
theImages[4] = 'image/sumi_says10.gif'
theImages[5] = 'image/sumi_says11.gif'
theImages[6] = 'image/sumi_says12.gif'
theImages[7] = 'image/sumi_says13.gif'
theImages[5] = 'image/sumi_says14.gif'
theImages[6] = 'image/sumi_says15.gif'
theImages[7] = 'image/sumi_says16.gif'
// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;


var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

 var win= null;
 function NewWindow(mypage,myname,w,h,scroll){
 var winl = (screen.width-w)/2;
 var wint = (screen.height-h)/2;
 var settings ='height='+h+',';
 settings +='width='+w+',';
 settings +='top='+wint+',';
 settings +='left='+winl+',';
 settings +='scrollbars='+scroll+',';
 settings +='resizable=no';
 win=window.open(mypage,myname,settings);
 if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
 } 

function MM_openBrWindow(theURL,winName,features) { 
 window.open(theURL,winName,features);
 }