   var dykTitleArray = new Array ();
   var dykTextArray = new Array ();
   for (i = 0; i < 4; ++i)
      { dykTextArray[i] = new Array (); }
	  
   dykTitleArray[0] = "Underage Drinking";
   dykTextArray[0][0] = "In 2005, underage drinking cost the nation $60.3 billion; Texas is accountable for 8.6 percent ($5.2 billion) of this total.";
   dykTextArray[0][1] = "<p>According to a survey of Texas college students conducted by DSHS, alcohol was the most commonly used substance among college students. Eighty-four percent of students had drunk an alcoholic beverage at least once during their lifetimes, 78 percent had drunk alcohol in the past year, and 66 percent had drunk alcohol in the past month.</p>";
   dykTextArray[0][2] = "Sixteen percent of college students reported getting drunk often.  Getting drunk often is defined here as becoming drunk on three or more occasions within the past month.";
   dykTextArray[0][3] = "<p>Although the legal drinking age in Texas is 21, about 58 percent of college students aged 18 to 20 reported drinking an alcoholic beverage within the past month. The majority (81 percent) of underage past-year drinkers reported obtaining alcohol from someone age 21 or older.</p>";
   
   dykTitleArray[1] = "Binge Drinking";
   dykTextArray[1][0] = "Binge drinking is defined as having five or more drinks for men or four or more drinks for women in one setting.";
   dykTextArray[1][1] = "Binge drinking once in the past month was reported by 20.6 percent of Texas’ students in grades 7-12 who participated in a DSHS survey.";
   dykTextArray[1][2] = "Of the Texas students who reported binge drinking, over one-fifth, almost one in twenty secondary students’ were frequent binge drinkers; that is, they binged six or more days in the past month.";
   dykTextArray[1][3] = "Almost 30 percent of college students reported binge drinking within the past month.";
   dykTextArray[1][4] = "Over 11 percent of college students were frequent binge drinkers, that is, they binged on six or more occasions within the last month.";
   
   dykTitleArray[2] = "Texas Youth";
   dykTextArray[2][0] = "Alcohol is the most widely used substance among Texas 7-12 grade youth.";
   dykTextArray[2][1] = "In 2008, 30.4 percent of Texas 7-12 graders reported drinking alcohol in the past month.";
   dykTextArray[2][2] = "In 2008, TABC issued 6,886 citations for Minor in Possession/Consumption of an Alcoholic Beverage.";
   dykTextArray[2][3] = "The TABC issued 2,063 violations in 2007 for making alcohol available to a minor, sale/serve/deliver alcoholic beverages to a minor or attempted purchase by a minor.";
   dykTextArray[2][4] = "According to the 2008 report Adolescent Substance Use in Texas, 50.5 percent of students in grades 7-12 reported first using alcohol before age 13.";
   dykTextArray[2][5] = "DPS arrested over 48,000 Texas minors for alcohol related violations.";
   
   dykTitleArray[3] = "DUI/DWI";
   dykTextArray[3][0] = "In 2007, 98 persons under the age of 21 were killed in Texas during an alcohol related traffic accident.  That is 7 percent of all alcohol related traffic fatalities.";
   dykTextArray[3][1] = "The Texas Department of Public Safety (DPS) arrested 11,457 persons under 21 for driving under the influence of alcohol in 2007.";
   dykTextArray[3][2] = "In 2008, about 19 percent of Texas’ high school seniors that participated in a DSHS survey acknowledged that they had operated a motor vehicle at least once in the past year after having &quot;a good bit to drink.&quot;";
   dykTextArray[3][3] = "In 2007, 1,485 Texans died in alcohol related traffic accidents, more than any other state.";
   
   var delay = 8000;
   var counter = 0;
   var currentDYK = Math.floor(Math.random()*4);
   var vCurrentDYKItem = 0;
   var vCurrentMinorItem = 0;

   var minorTextArray = new Array();
   minorTextArray[0] = "<p>A &quot;minor&quot; means a person under the age of 21.</p>";
   minorTextArray[1] ="<p>It is a Class C misdemeanor for a minor to purchase, attempt to purchase, consume or possess an alcoholic beverage.</p>";
   minorTextArray[2] ="<p>It is a Class A misdemeanor for anyone to sell, serve or provide alcoholic beverages to a minor.</p>";
   minorTextArray[3] ="<p>A minor breaks the law if he consumes an alcoholic beverage, unless the minor is in the visible presense of his/her adult parent, guardian or spouse.</p>";
   minorTextArray[4] ="<p>Zero Tolerance: A minor is considered driving under the influence if there is any detectable amount of alcohol in his/her system.</p>";
   minorTextArray[5] ="<p>A person may purchase an alcoholic beverage for or give an alcoholic beverage to a minor if he/she is the minor's adult parent, guardian, or spouse, or an adult in whose custody the minor has been committed by a court, and he/she is visibly present when the minor possesses or consumes the alcoholic beverage.</p>";
   minorTextArray[6] = "<p>A minor commits an offense if he falsely states that he is 21 years of age or older or presents any document that indicates he is 21 years of age or older to a person engaged in selling or serving alcoholic beverages.</p>";
   minorTextArray[0] ="<p>Minor in possession/consumption penalties include:</p><ul class='mainContentDotted'> <li>A fine up to $500</li> <li>Confinement in jail for up to 180 days</li> <li>Community service</li> <li>Driver’s license suspension or denial</li> </ul>";
   minorTextArray[7] ="<p>Penalties for providing alcohol to a minor include:</p> <ul class='mainContentDotted'> <li>A fine up to $4000 and/or</li> <li>Confinement in jail for up to one year and</li><li>Automatic suspension of driver’s license for 180 days</li> </ul>";
   minorTextArray[8] ="<p class='minorItem8'>Penalties for minors driving under the influence include:</p> <ul class='mainContentDottedUnspaced'> <li>A fine up to $500</li>  <li>Confinement in jail for up to 180 days</li><li>Community Service (20-40 hours)</li> <li>Suspension or denial of driver’s license for 60 days</li> <li>Participation in an Alcohol Awareness course</li></ul>";


function runJS()
{
	if ((location.href.indexOf("index.asp") != -1) || (location.href.indexOf("asp") == -1)) {
	    document.getElementById("rotator1").innerHTML = dykTitleArray[currentDYK];
	    document.getElementById("rotator2").innerHTML = dykTextArray[currentDYK][vCurrentDYKItem];
        setTimeout('changeMinor()', delay);
        setTimeout('changeDYK()', delay+4000);
	}
}

function changeMinor()
{
	vCurrentMinorItem = vCurrentMinorItem + 1;
	var vNewMinorItem = vCurrentMinorItem;
	while (vNewMinorItem == vCurrentMinorItem)
	{
	  vNewMinorItem = Math.floor(Math.random()*(minorTextArray.length));
	}
	vCurrentMinorItem = vNewMinorItem;
	document.getElementById("minor").innerHTML = minorTextArray[vCurrentMinorItem];
    setTimeout('changeMinor()', delay);
}

function changeDYK()
{
	var vNewDYKItem = vCurrentDYKItem;
	while (vNewDYKItem == vCurrentDYKItem)
	{
	  vNewDYKItem = Math.floor(Math.random()*(dykTextArray[currentDYK].length));
	}
	vCurrentDYKItem = vNewDYKItem;
	document.getElementById("rotator2").innerHTML = dykTextArray[currentDYK][vCurrentDYKItem];
    setTimeout('changeDYK()', delay);
}
