	var NORMAL_STATE = 4;
	var aTestimonials = new Array();
	var iDelay = 4000;

	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house1.jpg' align='left' style='margin: 3px'/>1.&nbsp;&ldquo;I really appreciated that Charley took the time to explain the different options for financing. I didn&rsquo;t feel rushed or pressured to make a decision.&rdquo; &ndash; PB/Nashua, NH";
	aTestimonials[aTestimonials.length++] = "2.&nbsp;&ldquo;You didn&rsquo;t try to persuade me to buy over my means, or coerce me into a loan that I wasn&rsquo;t comfortable with. Instead, you talked to me like a friend or relative would, and full of sincerity&hellip; When someone mentions refinancing or mortgages, I don&rsquo;t [just] tell them to go with Charley Farley Home Loans: I tell them they are crazy to look anywhere else.&rdquo; &ndash; BL";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house3.jpg' align='right' style='margin: 3px' />3.&nbsp;&ldquo;This is our first time purchasing a home and we knew very little about the process. My husband and I really appreciated the extra time you took to explain everything, answer our questions, and to make sure we understood each document. You were a huge help to make this process as easy as it was.&rdquo; &ndash; LD/Merrimack, NH";
	aTestimonials[aTestimonials.length++] = "4.&nbsp;&ldquo;Working with Charley and is team was a true pleasure for what can obviouly be a most stressful experience We appreciated all their help.&rdquo; &ndash; DT/Nashua, NH";
	aTestimonials[aTestimonials.length++] = "5.&nbsp;&ldquo;Charley went beyond professionalism - he was kind and funny, not to mention patient -- qualities I particularly appreciated since everything else was so stressful.&rdquo; &ndash; KP/Nashua, NH";
	aTestimonials[aTestimonials.length++] = "6.&nbsp;&ldquo;I cannot thank you enough for being an amazing mortgage consultant! You made the process seem easy and painless. Thank you, Charley! I will certainly recommend you to all my friends and family.&rdquo; &ndash; EH/Concord, NH";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house7.jpg' align='left' style='margin: 3px' />7.&nbsp;&ldquo;The process was so easy, so pleasant, so smooth. Thank you for making this such a positive experience.&rdquo; &ndash; AS/Bedford, NH";
	aTestimonials[aTestimonials.length++] = "8.&nbsp;&ldquo;[We] had heard horror stories about the home buying process from friends. But my experience couldn&rsquo;t have been better. The entire staff at Charley Farley Home Loans was very pleasant to deal with and always helpful.&rdquo; &ndash; JD/Nashua, NH";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house9.jpg' align='right' style='margin: 3px' />9.&nbsp;&ldquo;Having been through the mortgage process previously, this was like night and day&hellip;.I felt everything was done so right, I was actually waiting for something to go wrong! I would use Charley Farley Home Loans again, without a doubt, and will tell everyone I know to do so, as well.&rdquo; &ndash; SM/Litchfield, NH";
	aTestimonials[aTestimonials.length++] = "10.&nbsp;&ldquo;Best experience yet. Questions and issues were dealt with up front. The closing process was very simple. Great job!&rdquo; &ndash; SN/Nashua, NH";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/fam2.jpg' align='left' style='margin: 3px' />11.&nbsp;&ldquo;After all the horror stories I had heard about home buying/closings, I was a bit apprehensive. As it turned out, it was an extremely trouble-free and positive experience, because of the professionalism of all parties involved.&rdquo; &ndash; GP/Nashua, NH";
	aTestimonials[aTestimonials.length++] = "12.&nbsp;&ldquo;It was nice to have someone looking out for me while finding a home. It helped take some of the worries away. I recommended Charley to friends of mine, who I hope will have the same experience I did.&rdquo; &ndash; PH/Milford, NH";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/fam4.jpg' align='right' style='margin: 3px' />13.&nbsp;&ldquo;Charley was highly recommended to me and I am completely satisfied with his timely and knowledgeable advice.&rdquo; &ndash; DD/Mont Vernon, NH";
	aTestimonials[aTestimonials.length++] = "14.&nbsp;&ldquo;Charley Farley was extremely helpful to me during the year before I finally closed on a new home. He fielded many questions and gave me good advice - all before he even knew if I would be buying a house. I will definitely call him again.&rdquo; &ndash; MK/Nashua, NH";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/fam6.jpg' align='left' style='margin: 3px' />15.&nbsp;&ldquo;We were in a situation where time was of the essence. Charley and his staff were extremely efficient and very courteous to our children.&rdquo; &ndash; TH/Litchfield, NH";
	aTestimonials[aTestimonials.length++] = "16.&nbsp;&ldquo;We are very grateful to Charley for helping us despite short notice. Charley is very good at what he does, is very straightforward, and made us feel confident that we would be able to handle our mortgage.&rdquo; &ndash; MF/Wilton, NH";
	aTestimonials[aTestimonials.length++] = "17.&nbsp;&ldquo;Thank you so much for all of your help during my loan application and closing processes. You made everything very clear and took time that not many others would have considered and I truly thank you. I will continue to refer individuals to you as I already have!! Your customer service, communication skills and attention to your clients are exceptional.&ldquo; &ndash; JF/Concord, NH";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house5.jpg' align='right' style='margin: 3px' />18.&nbsp;&ldquo;This was the second time I used Charley for a home loan and the experience was as good the second time around as the first.&rdquo; &ndash; DP/Litchfield, NH";
	aTestimonials[aTestimonials.length++] = "19.&nbsp;&ldquo;Charley makes us feel very comfortable with the whole prcess and we trust his professional help.&rdquo; &ndash; KM/Londonderry, NH";
	aTestimonials[aTestimonials.length++] = "20.&nbsp;&ldquo;Charley went out of his way to extend himself during odd hours to provide service to accommodate our busy schedules.&rdquo; &ndash; RD/Amherst, NH";
	aTestimonials[aTestimonials.length++] = "21.&nbsp;&ldquo;Thank you so much for all your help with our recent home purchase. As always, you were informative, professional and flexible with our situation. Thanks for the extra push at the end to make it happen on time, too!&rdquo; &ndash; satisfied client";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house2.jpg' align='left' style='margin: 3px' />22.&nbsp;&ldquo;Many thanks to you and your staff for successfully guiding me through the mortgage application process. With your help, I know I have become a more informed consumer and I especially appreciate your patience and humor in answering all my incessant questions. I closed on my new home with no problems and am very pleased with the rate you were able to provide me.&rdquo; &ndash; MS/Hudson, NH";
	aTestimonials[aTestimonials.length++] = "23.&nbsp;&ldquo;Charley went over and beyond. Highest praise for his help in obtaining financing of new residence and separation agreement for old residence.&rdquo; &ndash; satisfied client";
	aTestimonials[aTestimonials.length++] = "24.&nbsp;&ldquo;Charley Farley was excellent! We appreciate his attention to detail and competence.&ldquo; - B. Walsh ";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house4.jpg' align='right' style='margin: 3px' />25.&nbsp;&ldquo;Charley Farley was certainly professional to work with. He was clear, concise and prompt.&ldquo; - E. Carballo ";
	aTestimonials[aTestimonials.length++] = "26.&nbsp;&ldquo;Charley Farley is extremely competent and easy to work with.&ldquo; - S. Richards ";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house6.jpg' align='left' style='margin: 3px' />27.&nbsp;&ldquo;Charley went above and beyond his job to assist us in obtaining our loan.&ldquo; -  R. Smith ";
	//aTestimonials[aTestimonials.length++] = "28.&nbsp;&ldquo;Thank you for everything you have done for us in making our dreams come true. You were absolutely the perfect person to help us purchase our first home. You took the time to answer any and all questions in a timely manner. You [also] made sure that we not only knew but completely understood every single piece of paper that was passed in front of us. You definitely made the process of buying a house a lot easier. At the closing, when the attorney passed paperwork to us to sign, we knew what everything was and there were very few questions as to what the terminology meant. No matter who we talk to about the house, we always mention that things wouldn't have gone as well if you were not there helping us through things every step of the way. We cannot thank you enough for the tremendous help and support you provided us. You will definitely be getting a call from us if/when we decide to buy another house.&ldquo; - CT";
	aTestimonials[aTestimonials.length++] = "29.&nbsp;&ldquo;Charley was great through the whole process of purchasing my first home!&rdquo; &ndash; LP/Merrimack, NH";
	aTestimonials[aTestimonials.length++] = "30.&nbsp;&ldquo;Although obtaining a first mortgage can be confusing, working with Charley made our mortgage process enjoyable and comfortable. I would tell all my friends to try Charley Farley Home Loans for their mortgage needs.&rdquo; &ndash; HB/Nashua, NH";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/house8.jpg' align='right' style='margin: 3px' />31.&nbsp;&ldquo;As a first-time home buyer, I was completely overwhelmed with what was involved. Charley put my mind at ease and was extremely helpful and supportive.&rdquo; &ndash; PM/Manchester, NH";
	aTestimonials[aTestimonials.length++] = "32.&nbsp;&ldquo;We are very grateful and appreciative to Charley Farley for all he did to complete the acquisition of our first home. He shared his expertise and knowledge in a timely and positive manner. He returned our phone calls with accurate information and advice. His personality was a welcome to us as we went through the lending process. Yes, we most certainly would seek his services again if the need to purchase another home would arise and we would gladly recommend Charley Farley to anyone.&rdquo; &ndash; RM/Merrimack, NH";
	aTestimonials[aTestimonials.length++] = "33.&nbsp;&ldquo;We were first-time home buyers and Charley assisted us in making the right choices, based on our overall life goals, current savings, and projected growth. I cannot say enough great things about the professionalism and character of Charley and am grateful that we chose Charley to do business with.&rdquo; &ndash; JD/Merrimack, NH";
	aTestimonials[aTestimonials.length++] = "34.&nbsp;&ldquo;Thank you so much for taking such good care of [my clients] during their home buying process! You made what can be a fairly complicated (and scary!) process for this young couple and their first home, be efficient, friendly and smooth. When we were &ldquo;losing&rdquo; homes to other buyers, and scrambling to find another possibility, you were always available to &ldquo;run the numbers again&rdquo; for me and generate (yet another!) pre-approval letter for them, so that we could submit another offer.&rdquo; &ndash; area Realtor";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/fam1.jpg' align='left' style='margin: 3px' />35.&nbsp;&ldquo;Thank you for all your help in finally making my dream of home ownership come true. You were not just a mortgage consultant, but a friend. You made the entire process quick and painless... and actually fun! I wish you continued success and if there is anyone who seeks a mortgage, I will gladly give him your name.&rdquo; &ndash; MC/Manchester, NH";
	aTestimonials[aTestimonials.length++] = "36.&nbsp;&ldquo;Working with Charley Farley was a dream come true for us. He made possible what we thought was impossible&hellip; home ownership!&rdquo; &ndash; KK/Manchester, NH";
	aTestimonials[aTestimonials.length++] = "37.&nbsp;&ldquo;In truth, my dealings with Charley Farley Home Loans were, by far, the most positive throughout the entire homebuilding process. Charley always made himself available to answer any question I may have had, no matter how busy he was. Most importantly, Charley delivered exactly as he said he would, without exception. Personally and professionally, I recommend him highly and have already recommended him to others.&rdquo; &ndash; satisfied client";
	aTestimonials[aTestimonials.length++] = "38.&nbsp;&ldquo;This is our first (and last) home purchase, and I had heard horror stories about closings and mortgage companies. I can honestly say that working with Charley was a pleasure. When I was having problems with the builder, Charley called to see if everything was worked out. I felt like I wasn&rsquo;t bothering him with my many phone calls and I would definitely use or refer him to others.&rdquo; &ndash; SN/Litchfield, NH ";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/fam3.jpg' align='right' style='margin: 3px' />39.&nbsp;&ldquo;We had a great experience with Charley Farley Home Loans! Closing figures were accurate - we even got cash back at closing! Charley was very helpful and informative every step of the way&rdquo; &ndash; KS/Londonderry, NH ";
	aTestimonials[aTestimonials.length++] = "40.&nbsp;&ldquo;I have full trust in Charley Farley Home Loans that I will always get a good deal!&rdquo; &ndash; NG/Hooksett, NH ";
	aTestimonials[aTestimonials.length++] = "41.&nbsp;&ldquo;You are the best I have dealt with. I&rsquo;ll recommend you at any opportunity I get. Thanks for all your help.&rdquo; &ndash; MB/Ossipee, NH ";
	aTestimonials[aTestimonials.length++] = "42.&nbsp;&ldquo;First Rate!&rdquo; &ndash; satisfied client ";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/fam5.jpg' align='left' style='margin: 3px' />43.&nbsp;&ldquo;If you&rsquo;re considering refinance, I highly recommend Charley Farley. He&rsquo;s a real straight shooter and I can&rsquo;t say enough good things about doing business with him.&rdquo; &ndash; satisfied client ";
	aTestimonials[aTestimonials.length++] = "44.&nbsp;&ldquo;Charley Farley is a miracle worker and the best. Thank you!&rdquo; &ndash; MR/Amherst, NH ";
	aTestimonials[aTestimonials.length++] = "45.&nbsp;&ldquo;We appreciate the professionalism of Charley Farley throughout the process.&ldquo; - B. Yates ";
	aTestimonials[aTestimonials.length++] = "<img src='/images/testimonials/fam7.jpg' align='right' style='margin: 3px' />46.&nbsp;&ldquo;It's always a pleasure to work with people who know their craft. &ldquo;- J. Desouza";
	aTestimonials[aTestimonials.length++] = "47.&nbsp;&ldquo;Charley and his staff were great through the entire process.  They were informative, easy to get a hold of, dedicated and explanative.&rdquo; &ndash; M&T Fifield ";
	aTestimonials[aTestimonials.length++] = "48.&nbsp;&ldquo;My wife and I recently secured a loan for our first home together and the experience could not have been smoother.  You and your staff were always very informative and took the time to answere any questions we had in a timely fashion.  I would not hesitate to send anyone I know who is in the market for a  new loan or refinancing an existing one to your company.&rdquo; &ndash; L Cardinale ";
	aTestimonials[aTestimonials.length++] = "49.&nbsp;&ldquo;Thank you for helping us with the purchase of our first home.  We are so happy to be here and are busy getting settled.  Your help made the process less difficult than we thought it would be.   Buying a house is such a daunting task, but knowing that you both were available to walk us through made it easier.&rdquo; &ndash; H Blais ";

	function doFlatTestimonialList(){
		var sTestimonialsContent = '';
		sTestimonialsContent = '<table cellpadding=0 cellspacing=0 border=0>';

		for (var x=0; x<aTestimonials.length; x++){
			sTestimonialsContent += '<tr><td style="font-size: 9pt; padding-bottom: 3px">'+aTestimonials[x]+'</td></tr>';
			//document.getElementById('divTestimonials').innerHTML += '<tr><td style="width:100%; height: 1px; background-color: black"></td></tr>';
		}

		sTestimonialsContent += '</table>';
		document.getElementById('divTestimonials').innerHTML = sTestimonialsContent;
	}

	function LeftElipsis(str, n){
		if (n <= 0)
			return str;
		else if (n > String(str).length)
			return str;
		else
			return String(str).substring(0,n) + '...';
	}

	function doMouseOver(srcobj){
		document.getElementById('details').innerHTML = srcobj.description;
		return false;
	}

	function randOrd(){
		return (Math.round(Math.random())-0.5);
	} 

	function cmscroller(){
		var DivID = 'cmScroll';
		var DivClass = 'cmScroll';
		var delay = 100;

		this.FeedData = aTestimonials;
		this.ScrollerID = DivID;
		this.Delay = delay;
		this.isMouseOver = 0;
		this.HiddenScrollerID = 1;
		this.width = 0;
		this.height = 0;

		aTestimonials.sort(randOrd);

		document.write('<DIV id="'+DivID+'" class="'+DivClass+'">');
		document.write('<DIV class="innerDIV" style="position: absolute; width: 100%" id="'+DivID+'1">');
		if (aTestimonials.length > 0){
			this.Delay = iDelay;
			document.write(aTestimonials[0]);
			document.write('</DIV><DIV class="innerDIV" style="position: absolute; width: 100%; visibility: hidden" id="'+DivID+'2">');
			document.write(aTestimonials[1]);

			if (false){
				document.write('<div style="min-height: 100px;">'+aTestimonials[0]+'</div><div style="height: 100px;">'+aTestimonials[1]+'</div>');
				document.write('</DIV><DIV class="innerDIV" style="position: absolute; width: 100%; visibility: hidden" id="'+DivID+'2">');
				document.write('<div style="height: 100px;">'+aTestimonials[2]+'</div><div style="height: 100px;">'+aTestimonials[3]+'</div>');
			}
		}
		else{
			document.write('Loading Testimonials...</DIV><DIV class="innerDIV" style="position: absolute; width: 100%; visibility: hidden" id="'+DivID+'2">');
		}
		document.write('</DIV></DIV>');

		var oScrollerInstance = this
		if (window.addEventListener)
			window.addEventListener("load", function(){oScrollerInstance.initialize()}, false)
		else if (window.attachEvent)
			window.attachEvent("onload", function(){oScrollerInstance.initialize()})
		else if (document.getElementById)
			setTimeout(function(){oScrollerInstance.initialize()}, 500)
	}

	cmscroller.prototype.initialize = function(){
		this.ScrollerDIV = document.getElementById(this.ScrollerID);
		this.VisibleDIV = document.getElementById(this.ScrollerID+"1");
		this.HiddenDIV = document.getElementById(this.ScrollerID+"2");
		this.width = this.ScrollerDIV.offsetWidth;
		this.VisibleDIVtop = parseInt(cmscroller.doGetPadding(this.ScrollerDIV));
		this.VisibleDIV.style.width = this.HiddenDIV.style.width = this.ScrollerDIV.offsetWidth-(this.VisibleDIVtop*2)+"px";
		this.doGetInline(this.VisibleDIV, this.HiddenDIV);
		this.HiddenDIV.style.visibility = "visible";
		var oScrollerInstance = this;
		document.getElementById(this.ScrollerID).onmouseover = function(){oScrollerInstance.isMouseOver = 1};
		document.getElementById(this.ScrollerID).onmouseout = function(){oScrollerInstance.isMouseOver = 0};
		if (window.attachEvent)
			window.attachEvent("onunload", function(){oScrollerInstance.ScrollerDIV.onmouseover = oScrollerInstance.ScrollerDIV.onmouseout = null});
		setTimeout(function(){oScrollerInstance.doAnimateDIV()}, this.Delay);
	}


	cmscroller.prototype.doAnimateDIV = function(){
		var oScrollerInstance = this;
		var iScrollCoeficient = 10;

		this.VisibleDIV.style.width = this.HiddenDIV.style.width = this.width-(this.VisibleDIVtop*2)+"px";
		if (parseInt(this.HiddenDIV.style.top)>(this.VisibleDIVtop+iScrollCoeficient)){ //move 5px, lower for slower but smoother animation
			this.VisibleDIV.style.top = parseInt(this.VisibleDIV.style.top)-iScrollCoeficient+"px";
			this.HiddenDIV.style.top = parseInt(this.HiddenDIV.style.top)-iScrollCoeficient+"px";
			setTimeout(function(){oScrollerInstance.doAnimateDIV()}, 50);
		}
		else{
			this.doGetInline(this.HiddenDIV, this.VisibleDIV);
			this.swapDIVs();
			if (this.FeedData.length > 0 && this.Delay < 500) {
				oScrollerInstance.doSetData();
				this.Delay = iDelay;
			}
			else{
				setTimeout(function(){oScrollerInstance.doSetData()}, this.Delay);
			}
		}
	}

	cmscroller.prototype.swapDIVs = function(){
		var oTmpDIV = this.VisibleDIV;
		this.VisibleDIV = this.HiddenDIV;
		this.HiddenDIV = oTmpDIV;
	}

	cmscroller.prototype.doGetInline = function(oDiv1, oDiv2){
		oDiv1.style.top = this.VisibleDIVtop+"px";
		oDiv2.style.top = Math.max(oDiv1.parentNode.offsetHeight, oDiv1.offsetHeight)+"px";
	}

	cmscroller.prototype.doSetData = function(){
		var oScrollerInstance = this;
		if (this.isMouseOver == 1)
			setTimeout(function(){oScrollerInstance.doSetData()}, 100);
		else{
			var iID = this.HiddenScrollerID;
			//var iID2 = (iID+1>this.FeedData.length-1)? 0 : iID+1;
			//var iID3 = (iID2+1>this.FeedData.length-1)? 0 : iID2+1;
			//this.HiddenScrollerID = (iID3+1>this.FeedData.length-1)? 0 : iID3+1;
			this.HiddenScrollerID = (iID+1>this.FeedData.length-1)? 0 : iID+1;
			if (this.FeedData[this.HiddenScrollerID] == undefined)
			{
				this.HiddenDIV.innerHTML = "Loading..."
				setTimeout(function(){oScrollerInstance.doSetData()}, this.Delay);
			}
			else
			{
				this.HiddenDIV.innerHTML = this.FeedData[this.HiddenScrollerID];
				//this.HiddenDIV.innerHTML = '<div style="height: 100px;">'+this.FeedData[iID2]+'</div><div style="height: 100px;">'+this.FeedData[iID3]+'</div>'
				this.doAnimateDIV();
			}
		}
	}

	cmscroller.doGetPadding = function(oScroller){
		if (oScroller.currentStyle)
			return oScroller.currentStyle["paddingTop"];
		else if (window.getComputedStyle)
			return window.getComputedStyle(oScroller, "").getPropertyValue("padding-top");
		else
			return false;
	}
