<!--
// copyright Stephen Chapman, 30th September 2005
// you may copy this script provided that you retain the copyright notice

var divName = 'popup_div'; // div that is to follow the mouse
var divText = 'popup_text'; // div that holds the text
var offX = -300;         // X offset from mouse position
var offY = 15;         // Y offset from mouse position

// no changes required below this line
function mouseX(evt) {
	if (!evt)
		evt = window.event;
	if (evt.pageX)
		return evt.pageX;
	else if (evt.clientX)
		return evt.clientX + (document.documentElement.scrollLeft ?  document.documentElement.scrollLeft : document.body.scrollLeft);
	else
		return 0;
}

function mouseY(evt) {
	if (!evt)
		evt = window.event;
	if (evt.pageY)
		return evt.pageY;
	else if (evt.clientY)
		return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
	else
		return 0;
}

function follow(evt) {
	if (document.getElementById) {
		if (mouseY(evt) < 550) {
			var obj = document.getElementById(divName).style;
			obj.left = (parseInt(mouseX(evt))+offX) + 'px';
			obj.top = (parseInt(mouseY(evt))+offY) + 'px';
		}
	}
}

function show_div(text_type) {
	if (text_type == "aesthetics") {
		var new_text = "<span class=teal_small_text>DAY SPA</span><br>Those days of fun in the sun when you were a little younger are starting to catch up with you. A few wrinkles around your eyes or maybe your skin is starting to become dull and lifeless. We can help. Medical microdermabrasion. Laser skin rejuvenation. Laser hair and vein removal. Our Licensed Estheticians and Massage Therapists will rejuvenate your skin and body with their fabulous treatments.  A myriad of make-up and skin-care products are offered as well.";
	} else {
		var new_text = "<span class=teal_small_text>WEIGHT LOSS</span><br>Maybe you've tried every diet program available, but have never been satisfied. We will give you the tools you need to shed those pounds and reveal the real you. Premier Medical Weight Loss offers the latest in bariatric (weight loss) technology, including body composition analysis and even basal metabolic rate testing, coupled with a Board Certified physician who has years of experience and truly cares about his patients.";
	}
	
	var obj_text = document.getElementById(divText);
	obj_text.innerHTML = new_text;
	
	var obj = document.getElementById(divName).style;
	obj.visibility = 'visible';
}

function hide_div() {
	var obj = document.getElementById(divName).style;
	obj.visibility = 'hidden';
}
-->