// IE doesn't cache CSS background images, so instead of a display: none; which is the simplest way, the toggle
// needed to be retooled to hide it based on visibility, which then requires setting/resetting the height manually
// and limiting the overflow.

	function switchMenu(obj, clicker) {
			var icon = document.getElementById(clicker);
			var el = document.getElementById(obj);
			if ( el.style.visibility == "visible" ) {
				el.style.visibility = "hidden";
				el.style.overflow = "hidden";
				el.style.height = "0px";
				icon.style.backgroundImage="url(images/nav/navArrowClose.gif)";
			}
			else {
				el.style.visibility = "visible";
				el.style.overflow = "hidden";
				el.style.height = "auto";
				icon.style.backgroundImage="url(images/nav/navArrowOpen.gif)";
			}
		}
		
		
		
	function listingSwitchOn(obj) {
			document.getElementById(obj).src = '/images/uploads/custom/listing_' + obj + '_on.jpg';
		}		
	function listingSwitchOff(obj) {
			document.getElementById(obj).src = '/images/uploads/custom/listing_' + obj + '.jpg';
		}