// JavaScript Document

function getQuotes(PAGE)
{
	var arr_quotes = new Array ('<span class="quotes">Bayonne 1 Facility:</span> <i>"I am 91 years old and I have come a long way with my treatment due to my wonderful staff - I am so thankful for their patience and kindness"</i>',
	                            '<span class="quotes">Bedminster Facility:</span> <i>"Wonderful people - very professional - compassionate atmosphere"</i>',
	                            '<span class="quotes">Brick (Route 88) Facility:</span> <i>"Very patient, professional and caring - I\'m very happy with their "people skills" "</i>',
	                            '<span class="quotes">Clifton 2 Facility:</span> <i>"The staff was professional and extremely knowledgeable which made me feel that I could have faith in not having surgery again - I would absolutely recommend this clinic"</i>',   
								'<span class="quotes">Eatontown Facility:</span> <i>"Great job & great results - thanks!"</i>',
								'<span class="quotes">Edison Facility:</span> <i>"My experience at Kessler has exceeded my expectations - staff is highly trained, professional and personable - I recommend your facility to everyone"</i>',
		                        '<span class="quotes">Fair Lawn 2 Facility:</span> <i>"Great and wonderful experience with my physical therapy - thank you very much"</i>',
		                        '<span class="quotes">Flemington Facility:</span> <i>"I appreciate the professionalism of the therapist - they are attentive - don\'t leave the patients waiting - l like the privacy of the curtains"</i>',
								'<span class="quotes">Hackensack Facility:</span> <i>"Wonderful therapists that were very helpful and always had a smile - a nice place"</i>',
		                        '<span class="quotes">Howell Facility:</span> <i>"You guys are the best!!"</i>',
		                        '<span class="quotes">Jackson Facility:</span> <i>"Nice and friendly staff - I feel great"</i>',
		                        '<span class="quotes">Lakewood Facility:</span> <i>"This facility is so amazing - the staff is like family they treat you with so much love - they are all so professional and awesome atmosphere I would love to do therapy forever"</i>',
		                        '<span class="quotes">Linden 2 Facility:</span> <i>"I would recommend Kessler to any new patients in need for therapy"</i>',
		                        '<span class="quotes">North Bergen Facility:</span> <i>"Therapist have been extremely helpful & encouraging during my recovery - Much progress has been accomplished thanks to their attention to detail"</i>',
		                        '<span class="quotes">North Brunswick Facility:</span> <i>"My therapist was extremely knowledgeable, professional, helpful and really facilitated my recovery from shoulder surgery"</i>',
								'<span class="quotes">Paramus Facility:</span> <i>"All staff are extremely nice & helpful"</i>',
                                '<span class="quotes">Parsippany Facility:</span> <i>"Very caring & friendly staff - I love coming here"</i>',
                                '<span class="quotes">Riverdale Facility:</span> <i>"Staff is extremely competent and friendly - they make a difficult experience easier and push to improve - always encouraging and supportive"</i>',
								'<span class="quotes">South Orange Facility:</span> <i>"I was given extremely good care - professionalism is great -  I would recommend Kessler"</i>',
		                        '<span class="quotes">Union 2 Facility:</span> <i>"Very good customer service & work ethics"</i>',
		                        '<span class="quotes">West Paterson/Woodland Park Facility:</span> <i>"I would definitely recommend this clinic to someone - the therapist here do a very good job and I am feeling much better everyday"</i>'						
								);
					
	var maxQ = arr_quotes.length;
	
	if (PAGE == "feedback") {
		var i;
		for (i = 0; i < maxQ; i++)
			document.writeln(arr_quotes[i] + "<br><br>");
	}
	
	return(arr_quotes);	
}

function opacity(id, opacStart, opacEnd, millisec) {
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i--) {
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}

function resetOpac(id) {
	var object = document.getElementById(id).style; 
	object.opacity = 100;
	object.MozOpacity = 100;
	object.KhtmlOpacity = 100;
	object.filter = "alpha(opacity=1)";
}
