var Quote=new Array()
var URL=new Array()

Quote[0]= "<i>\"Many thanks again for the Life Coaching experience, I really do feel that it has made a big difference.\"</i><br> <div align=right>Mark, Cotswolds - UK</div>";
Quote[1]= "<i>\"Richard took me through the process of Life Coaching with great confidence and empathy\".</i><br> <div align=right>Lindsey, Pembrokeshire - UK</div>";
Quote[2]= "<i>\"I’m not just thinking about it and wishing things could change anymore - I’ve taken control.\"</i><br> <div align=right>Su, San Jose - California</div>";
Quote[3]= "Try our new Solutions Hour - one issue; one focus; one hour. Call for details!!";
URL[3]= "contact.php?subject=Solutions Hour";
Quote[4]= "<i>\"I now have a much more flexible plan which incorporates contingencies, allowing me to be much more relaxed about my future.\" </i><br> <div align=right>Judy, Glos - UK</div>";
Quote[5]= "<i>\"The outcome of the time I have spent working with Richard is that I am beginning to believe that the goals I have set are achievable.\"</i><br> <div align=right>Chris, Glos - UK</div>";
Quote[6]= "Client first means guaranteed satisfaction.";
Quote[7]= "<i>\"Richard helped me to keep on track facing difficult issues and exploring significant themes.\"</i><br> <div align=right>Mark, Cotswolds - UK</div>";
Quote[8]= "<i>\"I found the journey thought provoking and stimulating and would have no problem recommending Richard to other people who may be interested in the benefits of Life Coaching.\"</i><br> <div align=right>Lindsey, Pembrokeshire - UK</div>";
Quote[9]= "Free 30 minute Introduction to Life Coaching - call now!";
URL[9]= "contact.php?subject=Free 30 Minute Introduction";
Quote[10]= "<i>\"From the outset Richard has been totally professional; punctual, never missing an appointment and flexible to my needs\"</i><br> <div align=right>Judy, Glos - UK</div>";
Quote[11]= "<i>\"Richard’s approach to Life Coaching has worked very well for me - he has a good set of tools and the flexibility to adapt them to work with me in successful partnership.\"</i><br> <div align=right>Su, San Jose - California</div>";
Quote[12]= "Try our new Solutions Hour - one issue; one focus; one hour. Call for details!";
Quote[13]= "<i>\"I found Richard actively listened, used open questions and although guided by him, I always felt that it was very much me making the decisions.\"</i><br> <div align=right>Judy, Glos - UK</div>";
Quote[14]= "<i>\"My path, my pace, Richard helped clear away brambles and bring the path into focus.\"</i><br> <div align=right>Su, San Jose - California</div>";
Quote[15]= "Checkout Shoreline Shopping - books and more for you to browse!";
URL[15]= "shopping.php";
Quote[16]= "<i>\"Richard’s non-judgmental approach meant that I felt free to express worries and concerns without of fear of criticism. I really valued this quality in Richard\"</i><br> <div align=right>Mark, Cotswolds - UK</div>";
Quote[17]= "Try our new Solutions Hour - one issue; one focus; one hour. Call for details!";
Quote[18]= "<i>\"I can now feel the benefits of Life Coaching and would certainly be happy to recommend Richard as a Life Coach.\"</i><br> <div align=right>Judy, Glos - UK</div>";
Quote[19]= "<i>\"Many thanks again for the Life Coaching experience, I really do feel that it has made a big difference.\"</i><br> <div align=right>Mark, Cotswolds - UK</div>";
Quote[20]= "<i>\"I’m not just thinking about it and wishing things could change anymore - I’ve taken control.\"</i><br> <div align=right>Su, San Jose - California</div>";
Quote[21]= "Try our new Solutions Hour - one issue; one focus; one hour. Call for details!";
URL[22]= "contact.php?subject=Solutions Hour";
Quote[22]= "<i>\"Through this [Life Coaching] relationship the seven step goal planning became an important tool foundational to the success of the life coaching experience.\"</i><br> <div align=right>Mark, Cotswolds - UK</div>";
Quote[23]= "<i>\"The outcome of the time I have spent working with Richard is that I am beginning to believe that the goals I have set are achievable.\"</i><br> <div align=right>Chris, Glos - UK</div>";
Quote[24]= "Client first means guaranteed satisfaction.";
Quote[25]= "<i>\"Richard’s non-judgmental approach meant that I felt free to express worries and concerns without of fear of criticism. I really valued this quality in Richard\"</i><br> <div align=right>Mark, Cotswolds - UK</div>";
Quote[26]= "Try our new Solutions Hour - one issue; one focus; one hour. Call for details!";
URL[26]= "contact.php?subject=Solutions Hour";
Quote[27]= "<i>\"I have started to put into practice what I have learnt and found that it is still possible to meet my targets without always putting myself under pressure.\"</i><br> <div align=right>Judy, Glos - UK</div>";
Quote[28]= "<i>\"There were some moments of light bulbs going on as I realized with Richard’s help why I had certain behavioral habits and having realized this I could perhaps move forward.\"</i><br> <div align=right>Lindsey, Pembrokeshire - UK</div>";
Quote[29]= "Free 30 minute Introduction to Life Coaching - call now!";
URL[29]= "contact.php?subject=Free 30 Minute Introduction";
Quote[30]= "<i>\"By approaching the issues from a \"Values\" standpoint, it became easier to create a solid action plan for behavior change that gets me to the desired outcome, and will withstand the typical work demands.\"</i><br> <div align=right>Su, San Jose - California</div>";
Quote[31]= "<i>\"Throughout the coaching sessions Richard was professional in his approach and the sheets he sent were easy to use and also very helpful. This was largely due how easy I found Richard to talk to.\"</i><br> <div align=right>Chris, Glos - UK</div>";
Quote[32]= "Checkout Shoreline Shopping - books and more for you to browse!";
URL[32]= "shopping.php";
Quote[33]= "<i>\"Richard helped me to identify the links between past experiences and gave me options to address this problem and work towards resolution.\"</i><br> <div align=right>Mark, Cotswolds - UK</div>";
Quote[34]= "<i>\"I’m not just thinking about it and wishing things could change anymore - I’ve taken control.\"</i><br> <div align=right>Su, San Jose - California</div>";
Quote[35]= "Free 30 minute Introduction to Life Coaching - call now!";
URL[35]= "contact.php?subject=Free 30 Minute Introduction";
Quote[36]= "Sign-up for Members Login - access to online material and Blue Shoreline Gallery.";
URL[36]= "contact.php?subject=Request Member Registration";
Quote[37]= "<i>\"I have re-used a seven-step problem solving method (introduced to me by Richard) to confidently resolve a difficulty at work.\"</i><br> <div align=right>Mark, Cotswolds - UK</div>";
Quote[38]= "<i>\"My path, my pace, Richard helped clear away brambles and bring the path into focus.\"</i><br> <div align=right>Su, San Jose - California</div>";
Quote[39]= "<i>\"I new that my lack of confidence and fear of failure was preventing me from achieving this [further nursing career]. Again anchoring helped with this.\"</i><br> <div align=right>Chris, Glos - UK</div>";
Quote[40]= "Client first means guaranteed satisfaction.";
Quote[41]= "<i>\"I felt quite challenged at times and although parts of me were resistant to change, I gradually realized that change was not only possible, but necessary.\"</i><br> <div align=right>Judy, Glos - UK</div>";
Quote[42]= "<i>\"Previously I had lacked confidence in myself and in my academic abilities. Through using the anchoring and prioritising processes I identified what I needed to do to reach my goals. I now believe that I am on the way to achieving them.\"</i><br> <div align=right>Chris, Glos - UK</div>";
Quote[43]= "Try our new Solutions Hour - one issue; one focus; one hour. Call for details!";
URL[43]= "contact.php?subject=Solutions Hour";
Quote[44]= "Free 30 minute Introduction to Life Coaching - call now!";
URL[44]= "contact.php?subject=Free 30 Minute Introduction";
Quote[45]= "Checkout Shoreline Shopping - books and more for you to browse!";
URL[45]= "shopping.php";

var Sign= '';
var Step= '';
var QuoteNumMax= 45;
var QuoteNum= Math.round(Math.random() * (QuoteNumMax - 1));
var MouseHovered= 0;
var LastColour= '#CCCCCC';

function changeMouseHovered(val) {
	MouseHovered= val;
	if (MouseHovered == 0) {
		document.getElementById('faderbox').style.color= LastColour;
	}
}

function changeFadeURL() {

if (URL[QuoteNum]) {
	document.location= './' + URL[QuoteNum];
} else {
	document.location= 'testimonials.php';
}

}

function startFade() {

doFade(91, 1);

}

function doFade(Step, Sign) {
	
	if (MouseHovered == 0) {
		LastColour= rgbtohex(Step, Step, Step);
		document.getElementById('faderbox').style.color= rgbtohex(Step, Step, Step);
	} else {
		document.getElementById('faderbox').style.color= '#333399';
	}
	
	if (Step == 211) { Timeout= 750; }
	if (Step == 221) { 
		NextSign= 0; 
		NextStep= 211;
		if (QuoteNum > QuoteNumMax) { QuoteNum= 0; } else { QuoteNum= QuoteNum + 1; }
		if (Quote[QuoteNum]) {
			document.getElementById('faderbox').innerHTML= Quote[QuoteNum];	
		}
		Timeout= 250;
	} else {
		if (Step == 81) { 
			NextSign= 1; 
			NextStep= 91;
			Timeout= 1500;
		} else {
			NextSign= Sign;
			if (Sign == '1') {
				NextStep= Step + 10
			} else {
				NextStep= Step - 10;
			}
			Timeout= 250;
		}
	}

	setTimeout("doFade(NextStep, NextSign);", Timeout);

}

function hextorgb(n1,n2,n3,n4,n5,n6) {

n1 = replacevals(n1);
n2 = replacevals(n2);
n3 = replacevals(n3);
n4 = replacevals(n4);
n5 = replacevals(n5);
n6 = replacevals(n6);

var returnval = ((16 * n1) + (1 * n2));
var returnval1 = 16 * n3 + n4;
var returnval2 = 16 * n5 + n6;

return ((16 * n1) + (1 * n2))+","+((16 * n3) + (1 * n4))+","+((16 * n5) + (1 * n6));

}

function replacevals(n) {

if (n == "a") { n = "10"; }
if (n == "b") { n = "11"; }
if (n == "c") { n = "12"; }
if (n == "d") { n = "13"; }
if (n == "e") { n = "14"; }
if (n == "f") { n = "15"; }

return n

}

function replacevalsreverse(thenum) {
if (thenum == 10) { thenum = "a"; }
if (thenum == 11) { thenum = "b"; }
if (thenum == 12) { thenum = "c"; }
if (thenum == 13) { thenum = "d"; }
if (thenum == 14) { thenum = "e"; }
if (thenum == 15) { thenum = "f"; }

return thenum;
}

function rgbtohex(num1, num2, num3) {
return calc10to16(num1) + calc10to16(num2) + calc10to16(num3);

}

function calc10to16(num) {
if (num < 16) {
var thenum = replacevalsreverse(num);
return thenum;
}
else {
var themod=num % 16;
var thenum=((num-themod) / 16);
thenum = replacevalsreverse(thenum)
themod = replacevalsreverse(themod)

return ""+thenum+themod
}
}

function doSelect(formObject,selectvalue) {
	for (x=0;x<formObject.options.length;x++) {
		ValueVar= formObject.options[x].value
		if (ValueVar == selectvalue) {
			formObject.selectedIndex=x
		}
	}
}