// JavaScript Document

randy=Math.round((100*Math.random())*.11);

function fadein(fname,width,height) {
//var newImg = new Image();
//newImg.src = fname;
//var height = newImg.height;
//var width = newImg.width;
ttop=(370-height)/2;
ttop=10;

if (width < 250) lleft=98;
lleft=0;
//alert ('The image size is '+width+'*'+height);
//alert ('The padding is '+ttop+'*'+lleft);

str="<img  style='width:580px' src='" + fname + "' alt='Interior Motives interior design' />";
o=document.getElementById('bigpic');

opacity=99;
setOpacity (o, opacity);

ddown=1;
fadeLoop1 ();
pcounter++;
if (pcounter>totpics) return;

curPic.src=myPics[pcounter];
wid=curPic.width; hei=curPic.height;
im=myPics[pcounter];
setTimeout('fadein(im,wid,hei)',8000);

}


	
function fadeLoop1 () {
		if (ddown==1) {
		if (opacity >= 4) {
		//alert(opacity);
			setOpacity(o, opacity);
			opacity -= 3;
			window.setTimeout("fadeLoop1()", 35);
		} else {
		ddown=0;
		o.innerHTML=str;
		}
		}
		
		if (ddown==0) {
		if (opacity <= 95) {
			setOpacity(o, opacity);
			opacity += 3;
			window.setTimeout("fadeLoop1()", 80);
		} 
		}
	}


function setOpacity (o, opacity) {
		o.style.filter = "alpha(style=0,opacity:" + opacity + ")";	// IE
		o.style.KHTMLOpacity = opacity / 100;				// Konqueror
		o.style.MozOpacity = opacity / 100;					// Mozilla (old)
		o.style.opacity = opacity / 100;					// Mozilla (new)
	}
	
function opaq(id,oo) {

t=document.getElementById(id);
setOpacity (t,oo);
}

function swapTestys() {
//var randy=Math.floor(Math.random()*9);
//var randy=Math.round((100*Math.random())*.11);
randy++;
if (randy>11) randy=0;

testy=document.getElementById('testimonials');
testy.innerHTML="<blockquote>" + quotes[randy] + "</blockquote>" + "<em>" + people[randy] + "</em>";
setTimeout('swapTestys()',22500);
}





quotes=new Array();
people=new Array();
quotes[0]="We have had our tub since September. Since then there have only been three nights we haven't been in the spa. We just love it. You get a better sleep and half the fun is just gazing at the stars";
people[0]="Tom and Elsie Cowper (Greenlaw)";

quotes[1]="We use it every night, it's spot on. We shopped around and Arctic Spas were definitely the best";
people[1]="Stuart and Jill Shiel (Newtown St Boswells)";

quotes[2]="The tub's fantastic, it's indoors and I've fitted a TV to the wall so I can relax and watch my favourite sports in complete luxury";
people[2]="Steven Shiel  (Newtown St Boswells)";

quotes[3]="We love the tub, it has helped my arthritis immensely. I find using the tub after I play golf a great help, it soothes my muscles and helps me relax. We researched the market before buying and found Arctic to be the best value for money tub out there."
people[3]="Jim and Helen Linn (Bonnyrigg)";

quotes[4]="What can I say - absolutely amazing, full credit to Arctic Spas. My family has a lot of sports injuries and its unbelievable how the spa has helped. A friend of ours needs a hip replaced and after two weeks of using the tub she was off the painkillers - awesome!!!!";
people[4]="Angus Walton (Foulden, Berwickshire)";

quotes[5]="A friend was looking after our house for six weeks and she actually bought us a present for allowing her to use the tub. She absolutely loved it and is now considering buying an Arctic Spa";
people[5]="Anna (Edinburgh)";

quotes[6]="When I bought the spa, I doubted how often I would use it. I needn't have bothered. I use the tub everyday, it becomes part of your routine. The water treatment is easy and I find that I sleep better and that I am more relaxed overall. I love it"
people[6]="Rosie Hume (Portobello)";

quotes[7]="We've had some fun evenings in the tub, I am very busy at work - the spa definitely helps reduce stress levels. We've loved the tub from the moment we bought it";
people[7]="Mark and Michelle Farman (Aberdeen)";

quotes[8]="Our social life has changed since getting the tub, we now invite friends and family for dinner and a soak in the spa. I have a girls evening every weekend, the tub is brilliant. The quality of an Arctic Spa really is apparent when I look at what's available on the market. There's not many places outdoors to be when it's raining but the hot tub is one";
people[8]="Paula Parker (Prestonpans)";

quotes[9]="After only two months since installation, it would appear that this may be one of our best and most valued purchases ever. We were delighted with a quality product and a level of service that was both friendly and professional. We would and have enthusiastically recommended Arctic Spas to friends and 'hot tub virgins' alike.  Our daily ritual is eagerly anticipated and has become an extremely hedonistic way of reducing the stresses of daily life";
people[9]="Clive and Jacquie (Abernethy)";

quotes[10]="The spa is lovely, we feel more relaxed and any pain or aching has gone from our bodies. We use the spa everyday, a great addition to our garden";
people[10]="Mr and Mrs Thompson (Earleston)";

quotes[11]="We love the tub, we use it nearly every night. It's really helping ease a leg muscle complaint I have at the moment, best purchase we've made in years"

people[11]="Alex Weir (Lauder)";




