var reviewsList = new Array(
	'Well, finally, a one-stop service warranty site. It\'s about time.',
	'I have read the contract over and this warranty looks as good as any I have seen.',
	'This is one of the best deals around. I am going to purchase this.',
	'Wow how simple and easy. One plan for all of those items that you want or need an extended service plan on. I like that idea. Keep it all under one number.'
);

var fnDisplayReviews = function(a) {
    if (document.getElementById("reviews")) {
        document.getElementById("reviews").innerHTML = '"' + a[Math.round(Math.random() * (a.length-1))] + '"';
        setTimeout("fnDisplayReviews(reviewsList)", 5000);
    }
};

var fnLoadReviews = function() {

    var returnFalse = function() {
        return false;
    }
    
    var fnPrepReviews = function() {
        fnDisplayReviews(reviewsList);
    };

    var addLoadEvent = function(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				if (oldonload) {
					oldonload();
				}
				func();
			};
		}
	};
	
	return {
		init: function() { 
			addLoadEvent(fnPrepReviews);
		},
		
		limitTo: function(el) {
			root = el;
		},
		
		run: function() {
			fnPrepReviews();
		}
	};
}();

fnLoadReviews.init();
