/////////////////////////////////////////////////////////////////////////////
//
// Function : JOP_DidYouKnow_rotator
// Comments : This is the Did You Know Fragment, it will rotate the Did You Know
//            facts based on a refresh.
//
/////////////////////////////////////////////////////////////////////////////


function JOP_DidYouKnow_rotator(p_section,p_ServerRoot)
{
  //This is the Section name
  this.section = p_section;

  //The is is the server root var
  this.ServerRoot = p_ServerRoot;
  this.link = new Array();
  this.data = new Array();
}
 
//US  DID YOU KNOW ENTRIES
JOP_DidYouKnow_rotator.prototype.usDidYouKnow = function() { 

  this.data.push('<p><i>FORTUNE</i> magazine ranked Edward Jones No. 1 in its annual listing of the &#8220;Best Companies to Work For&#8221; in America in 2002 and 2003.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Edward Jones was ranked No. 2 in the annual listing of the &#8220;100 Best Companies to Work For&#8221; in America by <i>FORTUNE</i> magazine. Edward Jones ranked no. 1 on the magazine\'s Best Large-sized Company list.</p>');
  this.link.push('http://www.edwardjones.com/en_US/resources/news/WEB088295.htm');

  this.data.push('<p>Edward Jones ranked &#8220;Highest in Investor Satisfaction With Full Service Brokerage Firms, Three Years in a Row&#8221; by J.D. Power and Associates.</p>');
  this.link.push('/us/wej/AboutUs/AwardsAccolades/index.html');

  this.data.push('<p>Globally, the number of Edward Jones branch offices has grown from approximately 300 in 1980 to more than 10,000 in 2009.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Relationships are the key to the success of Edward Jones. Those between the firm and clients &#8212; and the firm and associates as well.</p>');
  this.link.push('us/wej/index.html');

  this.data.push('<p>More than 30% of all Edward Jones employees &#8212; 12,000 associates &#8212; currently share in the ownership of the company.</p>');
  this.link.push('us/wej/OurCulture/index.html');

  this.data.push('<p>It\'s a great time to join our team. Edward Jones is currently planning for the day when Edward Jones offices number 17,500 or more.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Our client Web site (www.edwardjones.com) offers online bill payment services along with access to a wide variety of information on your account.</p>');
  this.link.push('http://www.edwardjones.com/en_US/products/online_services/accountlink/index.html');

  this.data.push('<p>A generous donation from Edward &#8220;Ted&#8221; Jones helped convert 200 miles of abandoned railroad track into jogging and biking trails known today as the Katy Trail.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Giving back to our community &#8212; Edward Jones associates donate not only money, but their time to efforts that make a positive impact on our community, like the United Way and Habitat for Humanity.</p>');
  this.link.push('us/wej/OurCulture/CommitmenttoOurCommunities/index.html');

	 this.data.push('<p>For the seventh year, Edward Jones is named one of the &#8220;50 Best Employers in Canada&#8221; in the <i>Globe and Mail\'s</i> annual listing in <i>Report on Business</i> magazine.</p>'); 
     this.link.push('http://www.edwardjones.com/en_CA/resources/news/WEB087352.html');
	 
  this.data.push('<p>In a <i>Registered Representative</i> magazine survey of financial advisors of the nation\'s eight largest financial-services firms, Edward Jones ranked No. 1 for the 16th consecutive year.</p>');
  this.link.push('http://careers.edwardjones.com/us/wej/AboutUs/AwardsAccolades/index.html');

  this.data.push('<p>Our Tempe, Arizona regional headquarters (which opened in November 2001) has the capability of continuing business-critical firm operations for all our locations around the world.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Edward Jones opened our Canadian headquarters in Mississauga (Toronto) in 1994.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Edward Jones opened our United Kingdom headquarters in Canary Wharf (London) in 1998.</p>');
  this.link.push('No_Link');

  this.data.push('<p>According to the 2008 Securities Industry Yearbook, Edward Jones is the United States\' largest securities firm in terms of offices, and No. 3 in terms of employees.</p>');
  this.link.push('us/wej/AboutUs/index.html');

  this.data.push('<p>For the eighth consecutive year, Edward Jones ranked as a top company for training its associates in <i>Training</i> magazine\'s 2008 Top 125 edition.</p>');
  this.link.push('/us/wej/OurCulture/InvestinginOurEmployees/index.html');

  this.data.push('<p>Edward Jones has been named a &#8220;Best Place to Work&#8221; in several states.</p>');
  this.link.push('http://www.edwardjones.com/cgi/getHTML.cgi?page=/USA/company/media/news_releases/best_places.html');

  this.data.push('<p>In 2007, Edward Jones ranked No. 1 in the independent category on <i>Investment Executive\'s</i> annual survey of brokers.</p>');
  this.link.push('No_Link');

  this.data.push('<p>In 2007, Edward Jones ranked 94 in <i>Forbes</i> list of the nation\'s 500 largest privately-held companies.</p>');
  this.link.push('No_Link');

 this.data.push('<p>Edward Jones recently announced plans to add 500 more headquarters jobs by the year 2011 and 1,000 new jobs total by 2016.</p>');
  this.link.push('No_Link');
  
  this.data.push('<p>Edward Jones was the highest-ranking brokerage firm on <i>BusinessWeek</i> magazine\'s second annual ranking of &#8220;Customer Service Champs.&#8221; The firm ranked No. 8 among 25 national and international companies that -- according to the magazine\'s March 3 edition -- are the &#8220;best providers of customer service.&#8221;</p>');
  this.link.push('/us/wej/AboutUs/AwardsAccolades/index.html');

}

//CA DID YOU KNOW ENTRIES ******************************************

JOP_DidYouKnow_rotator.prototype.caDidYouKnow = function() { 

  this.data.push('<p><i>Canadian Business</i> magazine ranked Edward Jones No. 4 in its 2009 list of &#8220;Best Workplaces in Canada&#8221.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Edward Jones ranked as one of the &#8220;Top 25 Companies to Work for in British Columbia,&#8221; listing No. 13 in <i>BC Business Magazine.</i></p>');
  this.link.push('/ca/wej/AboutUs/AwardsAccolades/index.html');

  this.data.push('<p><i>FORTUNE</i> magazine ranked Edward Jones No. 1 in its annual listing of the &#8220;Best Companies to Work For&#8221; in America in 2002 and 2003.</p>');
  this.link.push('No_Link');
  
  this.data.push('<p>Edward Jones was ranked No. 2 in the annual listing of the &#8220;100 Best Companies to Work For&#8221; in America by <i>FORTUNE</i> magazine. Edward Jones ranked no. 1 on the magazine\'s Best Large-sized Company list.</p>');
  this.link.push('http://www.edwardjones.com/en_US/resources/news/WEB088295.html');

  this.data.push('<p>Globally, the number of Edward Jones branch offices has grown from approximately 300 in 1980 to more than 10,000 in 2008.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Relationships are the key to the success of Edward Jones. Those between the firm and clients &#8212; and the firm and associates as well.</p>');
  this.link.push('ca/wej/index.html');

  this.data.push('<p>More than 30% of all Edward Jones employees &#8212; nearly 12,000 associates &#8212; currently share in the ownership of the firm.</p>');
  this.link.push('ca/wej/OurCulture/index.html');

  this.data.push('<p>It\'s a great time to join our team. Edward Jones is currently planning for the day when Edward Jones offices number 25,000 or more.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Giving back to our community &#8212; Edward Jones associates donate not only money, but their time to efforts that make a positive impact on our community, like the United Way and Junior Achievement.</p>');
  this.link.push('ca/wej/OurCulture/CommitmenttoOurCommunities/index.html');

	 this.data.push('<p>For the seventh year, Edward Jones is named one of the &#8220;50 Best Employers in Canada&#8221; in the <i>Globe and Mail\'s</i> annual listing in <i>Report on Business</i> magazine.</p>'); 
     this.link.push('http://www.edwardjones.com/en_CA/resources/news/WEB087352.html');
	 
  this.data.push('<p>Edward Jones opened our Canadian headquarters in Mississauga (Toronto) in 1994.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Edward Jones opened our United Kingdom headquarters in Canary Wharf (London) in 1998.</p>');
  this.link.push('No_Link');

  this.data.push('<p>According to the 2007 Securities Industry Yearbook, Edward Jones is the United States\' largest securities firm in terms of offices, and No. 3 in terms of employees.</p>');
  this.link.push('ca/wej/AboutUs/index.htm');

  this.data.push('<p>For the eighth consecutive year, Edward Jones ranked as a top company for training its associates in <i>Training</i> magazine\'s 2008 Top 125 edition in the United States.</p>');
  this.link.push('/us/wej/OurCulture/InvestinginOurEmployees/index.html');

  this.data.push('<p>In 2007, Edward Jones ranked No. 1 in the independent category on <i>Investment Executive\'s</i> annual survey of brokers.</p>');
  this.link.push('/ca/wej/AboutUs/AwardsAccolades/index.html');

}

// UK DID YOU KNOW ENTRIES *************************************************
JOP_DidYouKnow_rotator.prototype.ukDidYouKnow = function() {

  this.data.push('<p><i>FORTUNE</i> magazine ranked Edward Jones No. 1 in its annual listing of the &#8220;Best Companies to Work For&#8221; in America in 2002 and 2003.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Edward Jones was ranked No. 2 in the annual listing of the &#8220;100 Best Companies to Work For&#8221; in America by <i>FORTUNE</i> magazine. Edward Jones ranked No. 1 on the magazine\'s Best Large-sized Company list.</p>');
  this.link.push('http://www.edwardjones.com/en_US/resources/news/WEB088295.html');

  this.data.push('<p>Relationships are the key to the success of Edward Jones. Those between the firm and clients &#8212; and the firm and associates as well.</p>');
  this.link.push('uk/wej/index.html');

  this.data.push('<p>More than 30% of all Edward Jones employees &#8212; nearly 12,000 associates &#8212; currently share in the ownership of the company.</p>');
  this.link.push('uk/wej/OurCulture/index.html');

  this.data.push('<p>It\'s a great time to join our team. Edward Jones is currently planning for the day when Edward Jones offices number 17,500 or more.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Giving back to our community &#8212; Edward Jones associates donate not only money, but their time to efforts that make a positive impact on our community, like Cancer Research and Jeans for Genes.</p>');
  this.link.push('uk/wej/OurCulture/CommitmenttoOurCommunities/index.html');

	 this.data.push('<p>For the seventh year, Edward Jones is named one of the &#8220;50 Best Employers in Canada&#8221; in the <i>Globe and Mail\'s</i> annual listing in <i>Report on Business</i> magazine.</p>'); 
     this.link.push('http://www.edwardjones.com/en_CA/resources/news/WEB087352.html');

  this.data.push('<p>In a <i>Registered Representative</i> magazine survey of financial advisers of the United States\' eight largest financial-services firms, Edward Jones ranked No. 1 for the 16th consecutive year (2009).</p>');
  this.link.push('/us/wej/AboutUs/AwardsAccolades/index.html');

  this.data.push('<p>Edward Jones opened our Canadian headquarters in Mississauga (Toronto) in 1994.</p>');
  this.link.push('No_Link');

  this.data.push('<p>Edward Jones opened our United Kingdom headquarters in Canary Wharf (London) in 1998.</p>');
  this.link.push('No_Link');

  this.data.push('<p>According to the 2007 Securities Industry Yearbook, Edward Jones is the United States\' largest securities firm in terms of offices, and No. 3 in terms of employees.</p>');
  this.link.push('uk/wej/AboutUs/index.html');

  this.data.push('<p>For the eighth consecutive year, Edward Jones ranked as a top company for training its associates in <i>Training</i> magazine\'s 2008 Top 125 edition in the United States.</p>');
  this.link.push('/uk/wej/OurCulture/InvestinginOurEmployees/index.html');

  this.data.push('<p>In 2007, Edward Jones ranked No. 1 in the independent category on Canada\'s <i>Investment Executive\'s</i> annual survey of brokers.</p>'); 
  this.link.push('/ca/wej/AboutUs/AwardsAccolades/index.html');

  this.data.push('<p><i>The Sunday Times</i> ranked Edward Jones No. 2 among mid-sized companies on its 2009 list of the &#8220;Best Companies to Work For&#8221; in the United Kingdom.</p>');
  this.link.push('http://www.edwardjones.com/en_GB/resources/news/WEB103688.html');
}

JOP_DidYouKnow_rotator.prototype.rotateDidYouKnow = function()
{
  var xy=Math.floor(Math.random()*this.data.length);
   
  // If no link is requested
  if(this.link[xy].indexOf('No_Link') > -1)
  {
    document.write('<h3>Did You Know?</h3> ' +
                   this.data[xy]);
  }
  else if (this.link[xy].indexOf('edwardjones.com') > -1)
  { 
    // The link contains edwardjones.com
    // open in new window
    document.write('<a href="' + this.link[xy] + '" target="_blank"><h3>Did You Know?</h3></a>' +
                   this.data[xy] + 
                   '<p><a href="' + this.link[xy] + '" target="_blank" class="arrow-right">learn more</a></p>');
  }
  else
  {
    document.write('<a href="' + this.ServerRoot + this.link[xy] + '"><h3>Did You Know?</h3></a>' +
                   this.data[xy] + 
                   '<p><a href="' + this.ServerRoot + this.link[xy] + '" class="arrow-right">learn more</a></p>');
  }
}
