// JavaScript Document
function setEntryPage(Name, value){ //set cookie value
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
{return;}
else
{document.cookie = Name+"="+value;}
}
function getEntryPage(Name){ //get cookie value
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1]; //return its value
return 0;
}
function rightpage(){
var answer="";
var answer2="";
var answer3="";
var pageno=0;
pageno=getEntryPage("intuity");
switch (pageno){
	
	case '0': //hypnotherapy windsor
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-windsor.htm'>Hypnotherapy Windsor";
		break;	
	case '1': //hypnotherapy staines
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-staines.htm'>Hypnotherapy Staines";
		break;
	case '2': //hypnotherapy brighton
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-brighton.htm'>Hypnotherapy Brighton";
		break;
	case '3': //hypnotherapy east grinstead
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-east-grinstead.htm'>Hypnosis East Grinstead";
		break;
		case '4': //hypnotherapy chertsey
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-chertsey.htm'>Hypnotherapy Chertsey";
		break;
		case '5': //hypnotherapy addlestone
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-addlestone.htm'>Hypnotherapy Addlestone";
		break;
		case '6': //hypnotherapy ashford
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-ashford.htm'>Hypnotherapy Ashford";
		break;
		case '7': //hypnotherapy egham
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-egham.htm'>Hypnotherapy Egham";
		break;
		case '8': //hypnotherapy forest row
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-forest-row.htm'>Hypnotherapy Forest Row";
		break;
	case '12': //stop smoking Windsor
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-windsor.htm'>Stop Smoking Windsor";
		break;
	case '13': //stop smoking Staines
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-staines.htm'>Stop Smoking Staines";
		break;
	case '14': //stop smoking ashford
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-ashford.htm'>Stop Smoking Ashford";
		break;
	case '15': //stop smoking chertsey
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-chertsey.htm'>Stop Smoking Chertsey";
		break;		
	case '16': //stop smoking brighton
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-brighton.htm'>Stop Smoking Brighton";
		break;
	case '17': //stop smoking east grinstead
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-east-grinstead.htm'>Stop Smoking East Grinstead";
		break;
	case '18': //weight loss windsor
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-windsor.htm'>Weight Loss Windsor";
		answer2="<a href='weight-loss-windsor.htm'><h3>Back to 'Weight Loss Windsor' page</h3></a>";
		break;
	case '19': //weight loss staines
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-staines.htm'>Weight Loss Staines";
		answer2="<a href='weight-loss-staines.htm'><h3>Back to 'Weight Loss Staines' page</h3></a>";
		break;
	case '20': //weight loss ashford
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-ashford.htm'>Weight Loss Ashford";
		answer2="<a href='weight-loss-ashford.htm'><h3>Back to 'Weight Loss Ashford' page</h3></a>";
		break;
	case '21': //weight loss chertsey
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-chertsey.htm'>Weight Loss Chertsey";
		answer2="<a href='weight-loss-chertsey.htm'><h3>Back to 'Weight Loss Chertsey' page</h3></a>";
		break;
	case '22': //weight loss brighton
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-brighton.htm'>Weight Loss Brighton";
		answer2="<a href='weight-loss-brighton.htm'><h3>Back to 'Weight Loss Brighton' page</h3></a>";
		break;
	case '23': //weight loss east grinstead
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-east-grinstead.htm'>Weight Loss East Grinstead";
		answer2="<a href='weight-loss-east-grinstead.htm'><h3>Back to 'Weight Loss East Gristead' page</h3></a>";
		break;
			case '24': //hypnotherapy ascot
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-ascot.htm'>Hypnotherapy Ascot";
		break;
		case '25': //hypnotherapy slough
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-slough.htm'>Hypnotherapy Slough";
		break;
		case '26': //stop smoking Slough
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-slough.htm'>Stop Smoking Slough";
		break;
		case '27': //weight loss slough
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-slough.htm'>Weight Loss Slough";
		answer2="<a href='weight-loss-slough.htm'><h3>Back to 'Weight Loss Slough' page</h3></a>";
		break;
		case '28': //hypnotherapy crawley
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='hypnotherapy-crawley.htm'>Hypnotherapy Crawley";
		break;
		case '29': //stop smoking Crawley
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-crawley.htm'>Stop Smoking Crawley";
		break;
		case '30': //weight loss Crawley
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-crawley.htm'>Weight Loss Crawley";
		answer2="<a href='weight-loss-crawley.htm'><h3>Back to 'Weight Loss Crawley' page</h3></a>";
		break;
		case '31': //stop smoking ascot
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-ascot.htm'>Stop Smoking Ascot";
		break;
		case '32': //stop smoking addlestone
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-addlestone.htm'>Stop Smoking Addlestone";
		break;
		case '33': //weight loss Ascot
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-ascot.htm'>Weight Loss Ascot";
		answer2="<a href='weight-loss-ascot.htm'><h3>Back to 'Weight Loss Ascot' page</h3></a>";
		break;
		case '34': //weight loss Addlestone
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-addlestone.htm'>Weight Loss Addlestone";
		answer2="<a href='weight-loss-addlestone.htm'><h3>Back to 'Weight Loss Addlestone' page</h3></a>";
		break;
		case '35': //stop smoking egham
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-egham.htm'>Stop Smoking Egham";
		break;
		case '36': //stop smoking forest row
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='stop-smoking-forest-row.htm'>Stop Smoking Forest Row";
		break;
		case '37': //weight loss forest row
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-forest-row.htm'>Weight Loss Forest Row";
		answer2="<a href='weight-loss-forest-row.htm'><h3>Back to 'Weight Loss Forest Row' page</h3></a>";
		break;
		case '38': //weight loss egham
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss-egham.htm'>Weight Loss Egham";
		answer2="<a href='weight-loss-egham.htm'><h3>Back to 'Weight Loss Egham' page</h3></a>";
		break;
		case '40': //diet brighton
		answer = "'boxleft2'><div class='middleboxleft'><div class='boxtxt1'><a href='diet-brighton.htm'>Dieting in Brighton</a></div><br><div class='boxtxt1a'>Quote &quot;Diet2 Brighton&quot; for £10 off</div></div></div><img src='img/boxbottom13.gif'>";
		answer2="<a href='diet-brighton.htm'><h3>Back to 'Dieting in Brighton' page</h3></a>";
		break;
		case '41': //slimming brighton
		answer = "'boxleft2'><div class='middleboxleft'><div class='boxtxt1'><a href='slimming-brighton.htm'>Slimming in Brighton</a></div><br><div class='boxtxt1a'>Quote &quot;Slimming2 Brighton&quot; for £10 off</div></div></div><img src='img/boxbottom13.gif'>";
		answer2="<a href='slimming-brighton.htm'><h3>Back to 'Slimming in Brighton' page</h3></a>";
		break;
		case '42': //weight loss2 brighton
		answer = "'boxleft2'><div class='middleboxleft'><div class='boxtxt1'><a href='weight-loss2-brighton.htm'>Weight Loss in Brighton</a></div><br><div class='boxtxt1a'>Quote &quot;Weight Loss2 Brighton&quot; for £10 off</div></div></div><img src='img/boxbottom13.gif'>";
		answer2="<a href='weight-loss2-brighton.htm'><h3>Back to 'Weight Loss in Brighton' page</h3></a>";
		break;
		case '43': //anxiety brighton
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='anxiety-brighton.htm'>Anxiety Hypnotherapy Brighton";
		answer2="<a href='anxiety-brighton.htm'><h3>Back to 'Anxiety Hypnotherapy Brighton' page</h3></a>";
		break;
		case '44': //addictions brighton
		answer = "'boxleft1'><div class='middleboxleft'><div class='boxtxt1'><a href='addictions-brighton.htm'>Addiction Hypnotherapy Brighton";
		answer2="<a href='addictions-brighton.htm'><h3>Back to 'Addiction Hypnotherapy Brighton' page</h3></a>";
		break;
	default: //entered via home page
		answer = "";
		/*answer = "'boxleft2'><div class='middleboxleft'><div class='boxtxt1'><a href='workshops.htm'>Next Healing Workshop<br><br>Saturday 10th September 2011";*/
}
if(answer!="" && document.getElementById('rightlink')){document.getElementById('rightlink').innerHTML ="<img src='img/boxtop13.gif'><div class="+answer+"</a></div></div></div><img src='img/boxbottom13.gif'>";}
if(answer2!="" && document.getElementById('bottomlink')){document.getElementById('bottomlink').innerHTML =  answer2;}
}
