<!--

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

function MM_closeBrWindow(theURL,winName) 
		{window.close(theURL,winName);
}

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
// Preload Object

Preload = new Object ();
Preload.images = new Array ();

Preload.add = function (src) {
	this.images[this.images.length] = src;
}
Preload.run = function () {
	if (!document.createElement) return;
	var holder, img;
	holder = document.createElement ("div");
	document.body.appendChild (holder);
	with (holder) {
		with (style) {
			position = "absolute";
			left = "0px";
			top = "0px";
			visibility = "hidden";
		}
	}
	for (var i = 0; i < this.images.length; i++) {
		img = document.createElement ("img");
		img.setAttribute ("src", this.images[i]);
		holder.appendChild (img);
	}
}

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
// Swap Class

Swap = function (name) {
	this.name = name;
	this.images = new Object ();
	this.restoresrc = null;
}
Swap.prototype.add = function (state, src) {
	this.images[state] = new Image ();
	this.images[state].src = src;
	Preload.add (src);
}
Swap.prototype.swap = function (state) {
	var img = document.images[this.name];
	this.restoresrc = img.src;
	img.src = this.images[state].src;
}
Swap.prototype.restore = function () {
	if (this.restoresrc) {
		document.images[this.name].src = this.restoresrc;
		this.restoresrc = null;
	}
}

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
// Test

img1 = new Swap ("home");
img1.add ("over", "images/nav_home_on.gif");

img2 = new Swap ("contact");
img2.add ("over", "images/nav_contact_on.gif");

img3 = new Swap ("appt");
img3.add ("over", "images/nav_appt_on.gif");

img4 = new Swap ("about");
img4.add ("over", "images/nav_about_on.gif");

img5 = new Swap ("endo");
img5.add ("over", "images/nav_endo_on.gif");

img6 = new Swap ("pain");
img6.add ("over", "images/nav_pain_on.gif");

img7 = new Swap ("forms");
img7.add ("over", "images/nav_forms_on.gif");

window.onload = function () {
	Preload.run ();
}

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// 
// Coded by Travis Beckham
// http://www.squidfingers.com | http://www.podlob.com
// If want to use this code, feel free to do so, but please leave this message intact.
//
// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// 7.23.02

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

// remove outlines from anchor links
function blurMe(){
	this.blur();
}
function blurLinks(){
	if(!document.getElementById){
		return;
	}
	links = document.getElementsByTagName('a');
	for(i=0; i<links.length; i++){
		links[i].onfocus = blurMe;
	}
}
window.onload = blurLinks;

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

// check dom
var w3c = document.getElementById ?true:false;
var ie4 = (document.all && !w3c) ?true:false;
var ns4 = document.layers ?true:false;

// show hide layers
function getStyle(name, nest){
	nest = nest ? 'document.'+nest+'.' : '';
	return w3c ? document.getElementById(name).style : ie4 ? document.all[name].style : ns4 ? eval(nest+'document.'+name) : false;
}
function showVis(name,nest){
	getStyle(name,nest).visibility = 'visible';
}
function hideVis(name,nest){
	getStyle(name,nest).visibility = 'hidden';
}

// write menu layers
function writeMenu(name,left,top,width){
	var d;
	if(ns4){
		d = '<layer name="'+name+'" width="'+width+'" z-index="1000" visibility="hidden" ';
	}else{
		d = '<div id="'+name+'" style="position:absolute; width:'+width+'px; z-index:1000; visibility:hidden" ';
	}
	d += 'onMouseOver="showVis(\''+name+'\')" onMouseOut="hideVis(\'' +name+ '\')">';
	return d;
}
function endMenu(){
	return ns4 ? '<\/layer>' : '<\/div>';
}

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



//-->