quoteRotator = {
					i: 1,
					quotes: ["I have found Medical-Objects to be invaluable in terms of patient care and communication with other doctors. <span id='quoteauthor'>Dr Isobel Macpherson, General Practitioner</span>|gp",
"We have cut our postage costs by 70% by being able to send correspondence back to GP\'s via this program. <span id='quoteauthor'>Linda Outen, Practice Manager</span>|spec",
"A fantastic way to communicate efficiently with GP’s. Paper files are now almost a thing of the past. Well done Medical Objects! <span id='quoteauthor'>Liz Powell Diabetes and Support Management Brisbane</span>|ah",
"Medical-Objects is an easy way of checking results and reports at ones\' convenience and makes mobile medicine a reality. <span id='quoteauthor'>Dr Michael Donovan, MBBS FRACS Surgeon</span>|spec",
"I love using Medical-Objects Referral Client (Trinity)<br /> <span id='quoteauthor'>Dr Robert Meehan, Queen St Medical Centre</span>|gp",
"It has cut the cost of printing reports, as well as saving patients’ time. <span id='quoteauthor'>Karen Quigley, Lakes Radiology NSW</span>|rad",
"‘Fantastic, I don’t know how I managed without it. It’s great to get the reports so quickly’ <span id='quoteauthor'>Dr Isobel Macpherson, General Practitioner</span>|GP",

					],
					numQuotes: 7,
					fadeDuration: 2,
					fadeoutDuration: 1,
					delay: 3,
					previous: 0,
					quotesInit: function(){
						if (this.numQuotes < 1){
							document.getElementById('quoterotator').innerHTML="No Quotes Found";
						} else {
							this.quoteRotate();
							setInterval('quoteRotator.quoteRotate()', (this.fadeDuration + this.fadeoutDuration + this.delay) * 1000);
						}
					},
					quoteRotate: function($tagName){
						if ($tagName != 'all') {
							//Only showing quotes that match the tag specified
							if (this.quotes[this.i - 1].split("|")[1].toUpperCase() == $tagName.toUpperCase()) {
								//There was a match for the tag
								jQuery('#quoterotator').hide().html(this.quotes[this.i - 1].split("|")[0]).fadeIn(this.fadeDuration * 1000).animate({opacity: 1.0}, this.delay * 1000).fadeOut(this.fadeoutDuration * 1000);
							} else {
								//No match, find our next quote in the array that matches and show it
								for (var x=this.i;x<=this.numQuotes;x++) {
								
									if (x == this.numQuotes) x = 0;
									
									if (this.quotes[x].split("|")[1].toUpperCase() == $tagName.toUpperCase()) {
										jQuery('#quoterotator').hide().html(this.quotes[x].split("|")[0]).fadeIn(this.fadeDuration * 1000).animate({opacity: 1.0}, this.delay * 1000).fadeOut(this.fadeoutDuration * 1000);
										this.i = x + 1;
										break;
									} else {
										if (x == this.i -1) {
											//Done an entire loop, no matches, bailing out
											document.getElementById('quoterotator').innerHTML="No Quotes Found";
											break;
										}
									}
									
								}
								
							}
						} else {
							//Showing all quotes
							jQuery('#quoterotator').hide().html(this.quotes[this.i - 1].split("|")[0]).fadeIn(this.fadeDuration * 1000).animate({opacity: 1.0}, this.delay * 1000).fadeOut(this.fadeoutDuration * 1000);
						}
						this.i = this.i % (this.numQuotes) + 1;
					}
				}
