/*------------------------------------------------------------------------------------------------------------------*/
function displayPic(imgsrc,width,height) {
	var myBars		= 'directories=no,location=no,menubar=no,status=yes,titlebar=yes,toolbar=no';
	var myOptions	='scrollbars=yes,width='+width+',height='+height+',resizable=yes';
	var myFeatures	= myBars + ',' + myOptions;
	var refWindow	= open('', 'ref_Win', myFeatures);
	var content		= '<html><body><img src="'+imgsrc+'"><br><center> ';
	content			+= '<a href="javascript:window.close()">Close this window </a></center></body></html>';
	refWindow.document.write(content);
	refWindow.document.close();
}

/*------------------------------------------------------------------------------------------------------------------*/
function hideshow(item){ 
	if (which = document.getElementById(item)) {
		if (which.style.display=="none") {
			which.style.display		= "";
			//which.style.position	= position ? "absolute" : position;
		} else {
			which.style.display		= "none";
			//which.style.position	= "relative";
		} 
	}
}
/*------------------------------------------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------------------------------------------*/
function showhide(item){
	hideshow(item);
}
/*------------------------------------------------------------------------------------------------------------------*/

/* ------------------------------------------------------------------------------------------------------------------------------- */
function showElement(id) {
	var element	= document.getElementById(id);
	if (element) {	element.style.display		= '' }
}

function hideElement(id) {
	var element	= document.getElementById(id);
	if (element) {	element.style.display		= 'none'; }
}

/* ------------------------------------------------------------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------------------------------------------------------------- */
function writeToElement(id,data,mode) {
	var element	= document.getElementById(id);
	if (element) {
		if (mode) {
			if (mode.match(/a/i)) {	element.innerHTML	+= data;
			} else {				element.innerHTML	= data;	}
		} else {
			element.innerHTML	= data;
		}
	}
}

/* ------------------------------------------------------------------------------------------------------------------------------- */
function scrollToElement(id){
	var element = document.getElementById(id);
	var selectedPosX = 0;
	var selectedPosY = 0;

	while(element != null){
		selectedPosX    += element.offsetLeft;
		selectedPosY    += element.offsetTop;
		element       	= element.offsetParent;
	}
	window.scrollTo(selectedPosX,selectedPosY);
}
/* ------------------------------------------------------------------------------------------------------------------------------- */



/*------------------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------------------*/

function showGuarantees() {

	content =	'100% RISK-FREE 1-Year Guarantee',
				'We are happy to process your return immediately.\n',
				'If you care to help us improve our products, we’d love your feedback!\n',
				'To help us find your order, please enclose the invoice number or \n',
				'approximate date of purchase, and how to contact you.\n',
				'\n',
				'Please ship products for return in good condition to correct seasonal address:\n',
				'\n',
				'Winter: August 25 - June 10 ship to:\n',
				'Healing Tao\n',
				'c/o Gloria Profitola\n',
				'311 W. 95th St. Apt. 2B\n',
				'New York, N.Y. 10025\n',
				'\n',
				'Summer: June 10 to Aug. 20 ship to:\n',
				'Healing Tao\n',
				'Box 5\n',
				'Walker Valley, N.Y. 12588\n',
				'\n',
				'If any questions, please call us at 888-999-0555',
				'(outside USA: easiest to email - info@healiingdao.com';

}

/*------------------------------------------------------------------------------------------------------------------*/

