//<!--

//this runs on everypage 

if (document.images) {

	services_off = new Image();
	services_off.src = "../images/menu/services.gif";
	services_on = new Image();
	services_on.src = "../images/menu_hov/services.gif";
	// ONMOUSEOVER="turnOn('services_')" ONMOUSEOUT="turnOff('services_')" 
	
	food_off = new Image();
	food_off.src = "../images/menu/food.gif";
	food_on = new Image();
	food_on.src = "../images/menu_hov/food.gif";
	// ONMOUSEOVER="turnOn('food_')" ONMOUSEOUT="turnOff('food_')" 
	
	facilities_off = new Image();
	facilities_off.src = "../images/menu/facilities.gif";
	facilities_on = new Image();
	facilities_on.src = "../images/menu_hov/facilities.gif";
	// ONMOUSEOVER="turnOn('facilities_')" ONMOUSEOUT="turnOff('facilities_')" 
	
	referrals_off = new Image();
	referrals_off.src = "../images/menu/referrals.gif";
	referrals_on = new Image();
	referrals_on.src = "../images/menu_hov/referrals.gif";
	// ONMOUSEOVER="turnOn('facilities_')" ONMOUSEOUT="turnOff('facilities_')" 
	
	staff_off = new Image();
	staff_off.src = "../images/menu/staff.gif";
	staff_on = new Image();
	staff_on.src = "../images/menu_hov/staff.gif";
	// ONMOUSEOVER="turnOn('staff_')" ONMOUSEOUT="turnOff('staff_')" 
	
	superstars_off = new Image();
	superstars_off.src = "../images/menu/superstars.gif";
	superstars_on = new Image();
	superstars_on.src = "../images/menu_hov/superstars.gif";
	// ONMOUSEOVER="turnOn('superstars_')" ONMOUSEOUT="turnOff('superstars_')" 
	
	
	links_off = new Image();
	links_off.src = "../images/menu/links.gif";
	links_on = new Image();
	links_on.src = "../images/menu_hov/links.gif";
	// ONMOUSEOVER="turnOn('links_')" ONMOUSEOUT="turnOff('links_')" 
	
	feedback_off = new Image();
	feedback_off.src = "../images/menu/feedback.gif";
	feedback_on = new Image();
	feedback_on.src = "../images/menu_hov/feedback.gif";
	// ONMOUSEOVER="turnOn('feedback_')" ONMOUSEOUT="turnOff('feedback_')" 
	
	directions_off = new Image();
	directions_off.src = "../images/menu/directions.gif";
	directions_on = new Image();
	directions_on.src = "../images/menu_hov/directions.gif";
	// ONMOUSEOVER="turnOn('directions_')" ONMOUSEOUT="turnOff('directions_')" 
	
	contact_off = new Image();
	contact_off.src = "../images/menu/contact.gif";
	contact_on = new Image();
	contact_on.src = "../images/menu_hov/contact.gif";
	// ONMOUSEOVER="turnOn('contact_')" ONMOUSEOUT="turnOff('contact_')" 
	
	dirMain_off = new Image();
	dirMain_off.src = "images/fishcreek_vets_maplink1.gif";
	dirMain_on = new Image();
	dirMain_on.src = "images/maplink_hov.gif";
	// ONMOUSEOVER="turnOn('dirMain_')" ONMOUSEOUT="turnOff('dirMain_')" 
	
	enter_off = new Image();
	enter_off.src = "images/fishcreek_vets_enter.gif";
	enter_on = new Image();
	enter_on.src = "images/fishcreek_vets_enter_hov.gif";
	// ONMOUSEOVER="turnOn('dirMain_')" ONMOUSEOUT="turnOff('dirMain_')"
	
	directions1_off = new Image();
	directions1_off.src = "../images/fishcreek_emergencyNumber.gif";
	directions1_on = new Image();
	directions1_on.src = "../images/fishcreek_emergency_hov.gif";
	// ONMOUSEOVER="turnOn('directions2_')" ONMOUSEOUT="turnOff('directions2_')"
	
	directions2_off = new Image();
	directions2_off.src = "../images/fishcreek_emergency_number2.gif";
	directions2_on = new Image();
	directions2_on.src = "../images/fishcreek_emergency_hov2.gif";
	// ONMOUSEOVER="turnOn('directions2_')" ONMOUSEOUT="turnOff('directions2_')" 
	
	
	

};

//end run on everypage
// startSound(1) stopSound(0) 
function turnOn(imageName,sound) { if (document.images) { document[imageName].src = eval(imageName + "on.src"); }};
function turnOff(imageName) { if (document.images) { document[imageName].src = eval(imageName + "off.src"); }};

function dirRollOn() { turnOn('directions1_');turnOn('directions2_'); };
function dirRollOff() { turnOff('directions1_');turnOff('directions2_'); };

function newWindow(path){

	smallWindow = window.open
	(path,'info','status=no,resizable=yes,scrollbars=no,screenX=25,left=25,screenY=5,top=5,width=596,height=297');
	smallWindow.focus();
};

var aySound = new Array();
// Below: source for sound files to be preloaded
aySound[0] = "../sounds/qDog.wav";
aySound[1] = "../sounds/qCat.wav";
aySound[2] = "../sounds/qDogDouble.wav";
aySound[3] = "../sounds/qBird.wav";

// DO NOT edit below this line
document.write('<BGSOUND ID="auIEContainer">')
IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
ver4 = IE||NS? 1:0;
onload=auPreload;

function auPreload() {
if (!ver4) return;
if (NS) auEmb = new Layer(0,window);
else {
Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";
document.body.insertAdjacentHTML("BeforeEnd",Str);
}
var Str = '';
for (i=0;i<aySound.length;i++)
Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>"
if (IE) auEmb.innerHTML = Str;
else {
auEmb.document.open();
auEmb.document.write(Str);
auEmb.document.close();
}
auCon = IE? document.all.auIEContainer:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? aySound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
}
function startSound(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }

