// #####################################################################
// defines the browser DOM
// #####################################################################

userAgent = navigator.userAgent;
var NN=0;
var IE=0;
var DOM=0;
if (userAgent.search('MSIE')>=0) {
	IE=1;
} else {
	NN = 1; 
	if (parseInt(navigator.appVersion)>4) {
  		NN=0;IE=1;DOM=1;
	};
};

// #####################################################################
// makes a hidden div layer visible
// #####################################################################

var openDiv = '';

function showMe(div) {
	if (openDiv) {
		hideMe(openDiv);
	}
	if (div != openDiv) {
		openDiv = div;
		if (DOM) {
			document.getElementById(div).style.visibility = 'visible';
			document.getElementById(div).style.display = 'block';
		} else if (IE) {
			document.all[div].style.visibility = 'visible';
			document.all[div].style.display = 'block';
		} else if (NN) {
		    document.div.visibility = 'show';
			document.div.display = 'block';
		}
	} else {
		openDiv = '';
	}
} // end function
	
// #####################################################################
// hides a visible div layer
// ####################################################################
function hideMe(div) {
	if (DOM) {
		document.getElementById(div).style.visibility = 'hidden';
		document.getElementById(div).style.display = 'none';
	} else if (IE) {
		document.all[div].style.visibility = 'hidden';
		document.all[div].style.display = 'none';
	} else if (NN) {
		document.div.visibility = 'hide';
		document.div.display = 'none';
	}
} // end function


function thisPopup(URL, name, left, top, width, height, scrollbars) {
	var standardSetting = 'toolbar=0, location=0, directories=0, status=1, scrollbars=' + scrollbars;
	var customSetting = 'menubar=0, resizable=0, fullscreen=1, width=' + width + ', height=' + height;
	var positioning = 'left=' + left + ', top =' + top;
	// create window
	closePopup();
	oxl_win = window.open(URL, name, + '\'' + standardSetting + ', ' + customSetting + ', ' + positioning + '\'');
	oxl_win.focus();
}


function closePopup() {
	if (window.oxl_win) {
		window.oxl_win.close();
	}
}


// pop up to define which shopping list item is placed in

function zoomImage(URL, width, height) {
	var left = 0;
	var top = 0;
	width = screen.width;
	height = screen.height;
	thisPopup(URL, 'oxl_win', left, top, width, height, 0);
}




 
 
