

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Jeroen Haan :: http://www.haan.net/ */

/* -----------------------------------------------
   Floating layer - v.1
   (c) 2006 www.haan.net
   contact: jeroen@haan.net
   You may use this script but please leave the credits on top intact.
   Please inform us of any improvements made.
   When usefull we will add your credits.
  ------------------------------------------------ */

x = 400;
y = 70;
var caption = new Array();
	caption[1] = "A tail pull encouraging Beco to stretch forward creating a full stretch of the spine from tip of tail to poll.";
	caption[2] = "Ear rotations for Jeremy – this helps to relax the 17 muscles that move the ear, as well as the neck muscles which attach near the base.   An excellent technique to relieve tension around the face and neck.";
	caption[3] = "Some lovely deep and relaxing shoulder work – a common area of tightness.";
	caption[4] = "Releasing any tension around the jaw.";


function setVisible(obj,index)
{
    obj = document.getElementById(obj);
	obj.replaceChild(document.createTextNode(caption[index]),obj.firstChild);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt(obj)
{
    obj = document.getElementById(obj);
    if (document.documentElement)
    {
        theLeft = document.documentElement.scrollLeft;
        theTop = document.documentElement.scrollTop;
    }
    else if (document.body)
    {
        theLeft = document.body.scrollLeft;
        theTop = document.body.scrollTop;
    }
    theLeft += x;
    theTop += y;
    obj.style.left = theLeft + 'px' ;
    obj.style.top = theTop + 'px' ;
    setTimeout("placeIt('layer2')",500);
}
window.onscroll = setTimeout("placeIt('layer2')",500);


