var _imgbase="media/"; var ready = false; var imageDB = new Array();
function getImages(){
	if (document.images){
		imageDB['salon_btn']=new Array();
		imageDB['salon_btn']['on'] = new Image(); imageDB['salon_btn']['on'].src=_imgbase +"salon_btn_on.gif";
		imageDB['salon_btn']['off'] = new Image(); imageDB['salon_btn']['off'].src=_imgbase +"salon_btn.gif";
		imageDB['spa_btn']=new Array();
		imageDB['spa_btn']['on'] = new Image(); imageDB['spa_btn']['on'].src=_imgbase +"spa_btn_on.gif";
		imageDB['spa_btn']['off'] = new Image(); imageDB['spa_btn']['off'].src=_imgbase +"spa_btn.gif";
		imageDB['giftcard_btn']=new Array();
		imageDB['giftcard_btn']['on'] = new Image(); imageDB['giftcard_btn']['on'].src=_imgbase +"giftcard_btn_on.gif";
		imageDB['giftcard_btn']['off'] = new Image(); imageDB['giftcard_btn']['off'].src=_imgbase +"giftcard_btn.gif";
		imageDB['aveda_btn']=new Array();
		imageDB['aveda_btn']['on'] = new Image(); imageDB['aveda_btn']['on'].src=_imgbase +"aveda_btn_on.gif";
		imageDB['aveda_btn']['off'] = new Image(); imageDB['aveda_btn']['off'].src=_imgbase +"aveda_btn.gif";
		imageDB['online_btn']=new Array();
		imageDB['online_btn']['on'] = new Image(); imageDB['online_btn']['on'].src=_imgbase +"online_btn_on.gif";
		imageDB['online_btn']['off'] = new Image(); imageDB['online_btn']['off'].src=_imgbase +"online_btn.gif";
		imageDB['weddings_btn']=new Array();
		imageDB['weddings_btn']['on'] = new Image(); imageDB['weddings_btn']['on'].src=_imgbase +"weddings_btn_on.gif";
		imageDB['weddings_btn']['off'] = new Image(); imageDB['weddings_btn']['off'].src=_imgbase +"weddings_btn.gif";
		imageDB['whatsnew_btn']=new Array();
		imageDB['whatsnew_btn']['on'] = new Image(); imageDB['whatsnew_btn']['on'].src=_imgbase +"whatsnew_btn_on.gif";
		imageDB['whatsnew_btn']['off'] = new Image(); imageDB['whatsnew_btn']['off'].src=_imgbase +"whatsnew_btn.gif";
		imageDB['info_btn']=new Array();
		imageDB['info_btn']['on'] = new Image(); imageDB['info_btn']['on'].src=_imgbase +"info_btn_on.gif";
		imageDB['info_btn']['off'] = new Image(); imageDB['info_btn']['off'].src=_imgbase +"info_btn.gif";
		ready = true;
	}
}

function imgOn(_sect){
	if (ready) document.images[_sect].src=imageDB[_sect]['on'].src;
	return true;
}

function imgOff(_sect){
	if (ready) document.images[_sect].src=imageDB[_sect]['off'].src;
	return true;
}