var animateSpeed = 1;
var object = null;
var fx = null;
var fy = null;
var cx = null;
var cy = null;
var dx = null;
var dy = null;
var stepX = null;
var stepY = null;
var slope = null;
function initAnimate(objectID,x,y){
         object = document.getElementById(objectID);
         fx = x;
         fy = y;
         cx = object.offsetLeft;
         cy = object.offsetTop;
         dx = Math.abs(fx-cx);
         dy = Math.abs(fy-cy);
         if ((dx == 0) || (dy == 0)) slope = 0;
         else slope = dy/dx;
         if (dx>=dy){
            if (cx<fx) stepX = animateSpeed;
            else if (cx>fx) stepX = - animateSpeed;
            if (cy<fy) stepY = animateSpeed*slope;
            else if (cy>fy) stepY = - animateSpeed*slope;
         }
         else if (dx<dy){
              if (cy<fy) stepY = animateSpeed;
              else if (cy>fy) stepY = - animateSpeed;
              if (cx<fx) stepX = animateSpeed/slope;
              else if (cx>fx) stepX = - animateSpeed/slope;
         }
     animateObject()
}
function animateObject() {
         if ((dx > 0) || (dy > 0)){
         object.style.left = Math.round(cx) + 'px';
         object.style.top = Math.round(cy) + 'px';
         cx = cx + stepX;
         cy = cy + stepY;
         dx = dx - Math.abs(stepX);
         dy = dy - Math.abs(stepY);
         setTimeout ('animateObject()',0);
         }
         else {
         object.style.left = fx + 'px';
         object.style.top = fy + 'px';
         }
     return;
}
var text_st = new Array(
"Thank you so much, you bring hope. - Jane",
"Thanks for the reassuring thoughts and words, good guidance. - Lucy",
"Fab, really accurate, lovely reading, thanks - Claire",
"Interesting and uncanny - Tony",
"Very good, been looking for years - Tracy",
"Very good reading Angels, very calming - Kerry",
"Thank you so much I now have my answer. God Bless you - Tracy",
"Fantastic and positive, many thanks - Lil",
"Wonderful, talented, insightful person, Angela is always right on the money - T",
"Thank you for an excellent indepth reading - Lynn",
"Brill, very accurate - Paul",
"Absolutely fantastic everything was spot on - Donna",
"Suprising but accurate. Thanks for confirming my thoughts - Wendy",
"Very very accurate - P. Davis",
"Very good reading thank you - Dev"
);

var l = text_st.length;

var rnd_no = Math.floor(l*Math.random());

