function collage ()
{
	var now = new Date();
	var seed = now.getTime() % 0xffffffff;

	function rand(n) 
	{
		seed = (0x015a4e35 * seed) % 0x7fffffff;
		return ( seed >> 16 ) % n;
	}

 	var num = rand(3);
	if (num == 0)
	{
		document.write("<a href=\"/collage/1/index.shtml\" title=\"Are you curious about the theme of this collage? Click here.\"><img src=\"/collage/1/img/homepage_large.jpg\" alt=\"PsLearning.org Collage 1\" width=\"940\" height=\"106\" /><\/a>"); 
	}
	if (num == 1)
	{
		document.write("<a href=\"/collage/2/index.shtml\" title=\"Are you curious about the theme of this collage? Click here.\"><img src=\"/collage/2/img/homepage.jpg\" alt=\"Sports Collage\" width=\"940\" height=\"106\" /><\/a>"); 
	}
	if (num == 2)
	{
		document.write("<a href=\"/collage/3/index.shtml\" title=\"Are you curious about the theme of this collage? Click here.\"><img src=\"/collage/3/img/homepage.jpg\" alt=\"Freedom Collage\" width=\"940\" height=\"106\" /><\/a>"); 
	}
}

function studentwork()
{

	document.getElementById('student_work').innerHTML = httpRequest("/students/student_work.php");

}

function highlights ()
{
	var new_date = new Date();
	var seed2 = new_date.getTime() % 0xffffffff;

	function rand2(n) 
	{
		seed2 = (0x015a4e35 * seed2) % 0x7fffffff;
		return ( seed2 >> 16 ) % n;
	}

 	var highlight_num = rand2(6);

	if (highlight_num == 0)
	{
		document.write("<p id=\"highlight1\"><a href=\"highlight/1/\">Learn how students used a National History Day theme to research and showcase people who took a stand and changed American history.<\/a><br /><br /><a href=\"/highlight/index.shtml\">View all Highlights<\/a><\/p>"); 
	}
	if (highlight_num == 1)
	{
		document.write("<p id=\"highlight2\"><a href=\"highlight/2/\">Learn how second language middle school students used primary sources to build literacy and an understanding of a key figure in the American abolitionist movement.<\/a><br /><br /><a href=\"/highlight/index.shtml\">View all Highlights<\/a><\/p>"); 
	}
	if (highlight_num == 2)
	{
		document.write("<p id=\"highlight3\"><a href=\"highlight/3/\">Learn how students used images of Christopher Columbus to enhance their visual literacy skills.<\/a><br /><br /><a href=\"/highlight/index.shtml\">View all Highlights<\/a><\/p>"); 
	}
	if (highlight_num == 3)
	{
		document.write("<p id=\"highlight3\" style=\"background-image: url(/tps/step2/s_s/posters/homepage.png);padding-left:100px;\"><a href=\"http://www.primarysourcelearning.org/db/posters\">These posters introduce students to the Understanding Goals for each of the units grades K through 12 in the Virginia Social Studies Curriculum<\/a><br /><br /><a href=\"/highlight/index.shtml\">View all Highlights<\/a><\/p>"); 
	}
	if (highlight_num == 4)
	{
		document.write("<p id=\"highlight3\" style=\"background-image: url(/highlight/primaryaccess.png);padding-left:20px;\"> <br /><a href=\"/highlight/index.shtml\" style=\"margin-left:200px;\">View all Highlights<\/a><br /><br /><a href=\"/program/step2/s_s/primary_access/\">Through Primary Access, students produce digital historical documentaries using primary sources to demonstrate content understanding.<\/a> <\/p>"); 
	}
	if (highlight_num == 5)
	{
		document.write("<p id=\"highlight4\"><a href=\"/highlight/4/\">See how students at Hollin Meadows Elementary School activate their prior knowledge.<\/a><br /><br /><a href=\"/highlight/index.shtml\">View all Highlights<\/a><\/p>"); 
	}
}