// JavaScript Document

function header(p)
{
	document.write('<div align="center">');
	document.write('<table cellspacing="0" cellpadding="0" border="0" width="100%">');
	document.write('   <tr>');
	document.write('     <td width="20%" align="center"><img src="http://uwplatt.edu/disted/distedgrad/grad2009/images/uwp-banner.gif"></td>');
	document.write('	 <td width="80%" align="right"><span style="font-size: 10px; color: #fff;">');
	//if(!p)
	//{
		//document.write('        <a href="http://www.uwplatt.edu/disted/distedgrad/grad2008/" target="_parent" class="title">Graduation Home Page</a>');
		//document.write('		// ');
	//}
	document.write('        <a href="http://www.uwplatt.edu/disted/distedgrad/grad2009" target="_parent" class="title">Graduation Homepage</a>');
	document.write(' // ');	
	//Archive page to be added at a later date'
	/*
	document.write('        <a href="http://www.uwplatt.edu/disted/distedgrad/archives" target="_parent" class="title">Graduation Archives</a>');
	document.write(' // ');
	*/
	document.write('        <a href="http://www.uwplatt.edu/disted" target="_parent" class="title">DLC Home Page</a>');
	document.write('     &nbsp;&nbsp;&nbsp;</span></td>');
	document.write('   </tr>');
	document.write('</table>');
	document.write('</div>');
}

function menu_header()
{
	document.write('<table cellspacing="0" cellpadding="3" border="0" align="center" width="800" class="menu">');
	document.write('<tr>');
	document.write('   <td width="10%" align="center">&nbsp;</td>');

	document.write('   <td width="10%" align="center">&nbsp;</td>');
	document.write('</tr>');
	document.write('</table>');
}

function menu(selection, sel_link_open)
{
	if( sel_link_open == '' )
	   sel_link_close = '';
	else
	   sel_link_close = '</a>';
	
	var menu_items = new Array('mail', 'banquet', 'grad', 'yearbook', 'gift', 'alumni');
	var menu_text = new Array('Virtual<br>Post Office', 'Banquet<br>Celebration', 'Graduation<br>Ceremony', 'Graduation<br>Yearbook', 'Gifts<br>', 'Alumni<br>Services');
	
	document.write('<table cellspacing="0" cellpadding="0" border="0" width="100%">');
	document.write('   <tr>');
	
	for(i = 0; i < menu_items.length; i++)
	{
		if(menu_items[i] != selection)
		{
			document.write('<td width="20%" style="height: 130px;" align="center" valign="top">');
			document.write('<div id="upTop"><a href="' + menu_items[i] + '.html" target="_parent">');
			//document.write('menu_items[i]');
			document.write('<p style="font-size: 11px; font-weight: bold; margin-top: 5px; color: #ffffff; margin: 0 0 0 0px; padding: 3px; border: dotted #efefef 0px; text-align: center;">' + menu_text[i] + '</p>');
			document.write('</a></div></td>');
		}
	}
	
	document.write('   </tr>');
	document.write('   <tr>');
	
	document.write('<td colspan="2" width="40%" style="height: 151px;" align="center" valign="bottom">');
	
	document.write('<div style="position:relative; top:15px; left:0px; z-index: 100;">' + sel_link_open + '<img src="images/button_' + selection + '.gif" border="0">' + sel_link_close + '</div></td>');
	
    document.write('<td colspan="3" width="60%">&nbsp;</td>');

	document.write('   </tr>');
	document.write('</table>');
}