<!--
	/**********************************/
	/***		JS RESILUX			***/
	/**********************************/
	
	function disableFields(myObject) {
		var mytype;
		
		switch(myObject.htmlFor) {
			case "preforms":
				mytype	= "1";
				$('.optpreform').css('display', '');
				$('.optbottle').css('display', 'none');
				$('.optbottleus').css('display', 'none');
				$('.optbottleus_hide').css('display', '');
				break;
			case "bottles":
				mytype	= "2";
				$('.optpreform').css('display', 'none');
				$('.optbottle').css('display', '');
				$('.optbottleus').css('display', 'none');
				$('.optbottleus_hide').css('display', '');
				break;
			case "bottlesUS":
				mytype	= "3";
				$('.optpreform').css('display', 'none');
				$('.optbottle').css('display', 'none');
				$('.optbottleus').css('display', '');
				$('.optbottleus_hide').css('display', 'none');
				break;
			default:
				break;
		}
		
		$('.prodCate').load('/ajax.php?REQUEST=prodCate&type=' + mytype);
		$('.prodNeck').load('/ajax.php?REQUEST=prodNeck&type=' + mytype);
		
		$('#productSearchResults').html('Please press the search button to update the results.');
		$('#productSearchResults').css({'border': '1px dashed #666', 'padding': '10px'});
	}
	
	function showImage(myID, e) {
		var myImage = document.getElementById(myID);
		var myField = document.getElementById('ExtraContent1');
		
		// GET HEIGHT and WIDTH
		if( typeof( window.innerHeight ) == 'number' ) {
			//Non-IE
			myHeight = window.innerHeight;
		} else if( document.documentElement && document.documentElement.clientHeight) {
			//IE 6+ in 'standards compliant mode'
			myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myHeight = document.body.clientHeight;
		}
		
		if(myImage && myField) {
			var posx = 0;
			var posy = 0;
			var pos;
			
			// SET INITIAL VARS
			myField.innerHTML = myImage.innerHTML;
			myField.style.display = "block";
			myField.style.zIndex = "3";
			myField.style.backgroundColor = '#FFFFFF';
			myField.style.padding = '5px';
			myField.style.border = '1px solid #000';
			
			// GET POSITION
			if (!e) e = window.event;
			if (e.pageX || e.pageY){
				posx = e.pageX + 15;
				posy = e.pageY + 15;
				pos	 = "absolute";
			} else if (e.clientX || e.clientY) {
				posx = e.clientX + 15;// + document.getElementById('PageContent').scrollLeft;
				posy = e.clientY + 15;// + document.getElementById('PageContent').scrollTop;
				pos	 = "fixed";
			}
			
			// CORRECT POSITION
			if(myHeight <= (myField.offsetHeight + posy)) {
				posy	= myHeight - (myField.offsetHeight);
			}
			
			// SET POSITION
			myField.style.position = pos;
			myField.style.left = posx + 'px';
			myField.style.top = posy + 'px';
		}
	}
	
	function hideImage() {
		var myField = document.getElementById('ExtraContent1');
		if(myField) {
			myField.style.display = "none";
		}
	}
-->