	// resize fix for ns4
	var origWidth, origHeight;
	if (document.layers) {
		origWidth = window.innerWidth; origHeight = window.innerHeight;
		window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
	}

	// put images to preload in this array
	var preload_list = new Array("/images/common/smile.gif");

	// preload 
	if (document.images) {
		var image_list = new Array();
		for (var preload_counter=0; preload_counter<preload_list.length; preload_counter++) {
		image_list[preload_counter] = new Image(); 
			image_list[preload_counter].src = preload_list[preload_counter];	
	  }
	}

	// Variables for layer content
	var msg1 = "Natalia Bailey, 18, and Ryan Walsh, 19, discussed over e-mail who deserves the greater share of the blame in Generation Next's abandonment of traditional media. Natalia starts the conversation by explaining that many of her peers avoid the traditional media because of their sensationalist news coverage.";
	var msg2 = "In his response, Ryan says that Generation Next is guilty for readily consuming the pop culture world and being lazy and apathetic, but he also believes that his peers have many more options to get their news than their parents' generation had.";
	var msg3 = "Natalia rejects Ryan's argument that Generation Next is lazy by pointing out that there are many forms of youth activism. She blames news programs for not doing enough to educate young adults on important subjects, forcing Generation Next to look elsewhere for news.";
	var msg4 = "Ryan talks more about how Generation Next has picked up on new forms of media, but questions Natalia on whether their peers have become more or less interested in the world around them.";
	var msg5 = "In her last post, Natalia chides her generation for being \"headliners\" and having a short attention span when following the news. She implores her peers to take advantage of technological advantages and become heavy news consumers.";
	var msg6 = "Ryan finishes off the dialogue by reiterating Natalia's view that Generation Next should broaden the way it gets its news by finding the \"truth from all perspectives.\"";

	var infoLyr;
	function initInfoLyr() {
		// call constructor to create write layer
		// arguments: id, width, height
		// be sure to set height large enough or ns4 will clip it off
		infoLyr = new writeObj('infoDiv',450,65);
		if (page == 1)
		{
			showInfo(msg1);	
		}
		if (page == 2)
		{
			showInfo(msg2);	
		}
		if (page == 3)
		{
			showInfo(msg3);	
		}
		if (page == 4)
		{
			showInfo(msg4);	
		}
		if (page == 5)
		{
			showInfo(msg5);	
		}
		if (page == 6)
		{
			showInfo(msg6);	
		}
		if (page == 7)
		{
			showInfo(msg7);	
		}
		if (page == 8)
		{
			showInfo(msg8);	
		}
	}		

	function showInfo(txt) {
		if (!infoLyr) return;
		var cntnt = '<div class="info">'+txt+'</div>';
		infoLyr.writeLyr(cntnt);	 
	}

	window.onload=initInfoLyr;
	MM_preloadImages('../../images/nav/speakup/btn_main_over.jpg','../../images/nav/speakup/btn_doc_over.jpg','../../images/nav/speakup/btn_demo_over.jpg','../../images/nav/speakup/btn_av_over.jpg','../../images/nav/speakup/btn_about_over.jpg');

	MM_preloadImages('../../images/common/dialogue/1_over.gif','../../images/common/dialogue/2_over.gif','../../images/common/dialogue/3_over.gif','../../images/common/dialogue/4_over.gif','../../images/common/dialogue/5_over.gif','../../images/common/dialogue/6_over.gif','../../images/common/dialogue/7_over.gif','../../images/common/dialogue/8_over.gif');
