/* Menu highlighting */
function highlight(navid, subnavid, tertnavid) {
	if (navid) {
		document.getElementById('nav_' + navid ).className = 'current';
		subnav = document.getElementById('subnav_' + navid );
		if (subnav) {
			subnav.style.display = 'block';
		}
	}
	
	// This needs to be able to cope with list managed menus...
	if (subnavid) {
		var elt = document.getElementById( 'subnav_' + subnavid );
		if (elt) { className = 'current'; }
	}
	
	if (tertnavid) {
		var elt = document.getElementById( 'tertnav_' + tertnavid );
		if (elt) { className = 'current'; }
	}
	return
}



function show_checkout_step() {
	// Check to see if there's a hidden field defining the checkout step,
	// otherwise don't do anything
	
	var stepimg = document.getElementById('checkoutStep');

	var this_step = '';
	var this_step_elt = document.getElementById('thisStep');
	if (this_step_elt) {
		this_step = this_step_elt.value;
		stepimg.src = '/img/checkout/checkout_' + this_step + '.gif';
		stepimg.style.display = 'inline';
	}

}


function popup_petcam() {	
	w = window.open('http://home.btconnect.com/new-priory.com/petcam/newpriory.html', 'popupPetcam','width=300,height=300,left=50,top=50,scrollbars=no');
	w.focus();
}