if (document.getElementById)
document.documentElement.className = 'jsclass'; //hide content for DOM capable browsers


var randomcontentdisplay={
	divholders:new Object(),
	masterclass: "randomcontent",

	init:function(){
		if (!document.getElementById)
			return
		var alldivs=document.getElementsByTagName("div")
		var randomcontentsearch=new RegExp(this.masterclass+"\\s+(group\\d+)", "i") //check for CSS class="randomcontent groupX" (x=integer)
		for (var i=0; i<alldivs.length; i++){
			if (randomcontentsearch.test(alldivs[i].className)){
				if (typeof this.divholders[RegExp.$1]=="undefined") //if array to hold this group of divs doesn't exist yet
					this.divholders[RegExp.$1]=new Array() //create array first
					this.divholders[RegExp.$1].push(alldivs[i]) //add this div to the array
			}
		}
	this.showone()
	},

	showone:function(){
		for (group in this.divholders){ //loop thru each array within object
			var chosenOne=Math.floor(Math.random()*this.divholders[group].length) //randomly pick one entry from array
			this.divholders[group][chosenOne].style.display="block" //display content corresponding to the chosen entry
		}
	}
}


<!--
var CONTENT = new Array();
CONTENT[0] = "<em>&quot;I have received information that I believe wills separate me from 95&#37; of the other advisors. The sales tools are 2nd to none. They have already helped me close over 1 million. I learned more info on the Shield which will help even more with concept selling. Great experience.&quot;</em>"
CONTENT[1] = "<em>&quot;Having worked with several FMO's and 2 career shops over my 25 years in the insurance business, I find it refreshing to see APAG's commitment to real assistance to agents in providing better service for our clients. I look forward to using the Shield and WAM, which help present complex topics in simpler ways. Being able to provide quality proposals and adjust to changes the client suggests will be invaluable.&quot;</em>"
CONTENT[2] = "<em>&quot;It was a very informational 2 day training. The speakers were very knowledgeable on teaching us how conceptional selling works. I was given a lot of personalized attention and all of my questions were answered to my satisfaction. The Shield software is a great tool to make presentations, and most importantly, to close business. Very High Class!&quot;</em> - DG -"
CONTENT[3] = "<em>&quot;I have been associated with APAG for about seven years. Every time I come to a meeting I always get really good information. They do a fabulous job of staying ahead of the marketing organizations that I have used. I have gotten more useful information from this group than any other group I have ever used. I have been an independent agent for 15 years and I would recommend them to anybody.&quot;</em> - TP -"
CONTENT[4] = "<em>&quot;Tom, Thank you for what you've brought to the table here. Your knowledge, experience and willingness to pass that along through mentorship is refreshing. I'm very impressed with the support group you've assembled and look forward to working with you in the future.&quot;</em> - EM -"
CONTENT[5] = "<em>&quot;Tremendously well-planned training with demonstrations of the power of the Shield and products. I definitely recommend APAG to any agent who wants to succeed with annuities.&quot;</em> - RB -"
CONTENT[6] = "<em>&quot;Tom, the combination of product information and sales process information has been outstanding. However, the power of your message is driven home through Shield and WAM software. I really appreciate the help that APAG gave some of our advisors on their case designs. Thanks.&quot;</em> - LM -"
CONTENT[7] = "<em>&quot;I appreciate the learning opportunity I received over these two days! I appreciate the congressional, cooperative manner of tall the people in your organization. Concept selling is definitely the way to go.&quot;</em> - JF -"
CONTENT[8] = "<em>&quot;Very informative. I have wanted a track to run on and now I have it. You are giving me the tools to help others and myself. Concept sales enable the client to buy what they say they want. Thanks. I look forward to doing business with APAG.&quot;</em> - MS -"
CONTENT[9] = "<em>&quot;I've truly enjoyed the various topics and sales ideas we have discussed. The Shield and its sales process seems to be a very thorough professional system. It should help me do a much more all-encompassing job for my clients and should truly set me apart from the other advisors trying to work with my clients and prospects.&quot;</em> - HP -"
CONTENT[10] = "<em>&quot;In the past year I have attended several other meetings such as this one, but I have learned more useable information from APAG that will help me on a everyday basis. I will feel much better in front of clients having so many tools to use as I work on their individual plan. Thank you for the time that was spent putting these two days together! Your team is one of a kind!&quot;</em>"

var INDEX_NUMBER = Math.floor(Math.random()*CONTENT.length);
//-->

