//This tells the date of last update of the folder
function lastupdate(modDate)
{
var d = new Date(modDate);
date = d.getDate();
m = d.getMonth()+1;
year = d.getYear();
  var month = 
    ( 1==m)?'Jan':( 2==m)?'Feb':(3==m)?'Mar':
    ( 4==m)?'Apr':( 5==m)?'May':(6==m)?'Jun':
    ( 7==m)?'Jul':( 8==m)?'Aug':(9==m)?'Sep':
    (10==m)?'Oct':(11==m)?'Nov':'Dec';
//var d = new Date()
  if(year >= 2000)
  {
    year = year;
  }
  else if(year >= 100)
  {
    year = year + 1900;
  }
document.write('Last update : '+ date +' ' + month + ' ' + year);
//document.write("Last update : " + document.lastModified);
//document.write('Last update : 22 Sep 2005')
}

//This is the Left hand side "Related Links Menu
//Comes in every page
function main_menu()
{
	var mnuItems = ''
	mnuItems += ''
	mnuItems += '<table width="100%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#B23030">'
	mnuItems += '<tr><td>'
	mnuItems += '<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="mnuBk_01">'
	mnuItems += '<tr class="mnu_01">'
	mnuItems += '<td width="103"><a href="/search/">Search</a></td>'
	mnuItems += '<td class="mnuSep_01"></td>'
	mnuItems += '<td width="103"><a href="/contact/">Contact us </a></td>'
	mnuItems += '<td class="mnuSep_01"></td>'
	mnuItems += '<td width="102"><a href="/phones/">Directory</a></td>'
	mnuItems += '<td class="mnuSep_01"></td>'
	mnuItems += '<td width="102"><a href="https://mail.pdn.ac.lk/cgi-bin/openwebmail/openwebmail.pl">Web Mail</a></td>'
	mnuItems += '<td class="mnuSep_01"></td>'
	mnuItems += '<td width="102"><a href="https://auth.pdn.ac.lk/login/login.php">Login</a></td>'
	mnuItems += '</tr>'
	mnuItems += '</table>'
	mnuItems += '</td></tr>'
	mnuItems += '</table>'
	document.write(mnuItems)
}
function second_menu(){

	var mnuItems = ''
	mnuItems += ''
	mnuItems += '<table width="750" border="0" cellpadding="3" cellspacing="0">'
	mnuItems += '<tr>'
	mnuItems += '<td class="arror_01" ></td>'
	mnuItems += '<td width="64" class="txtBluBo" >About</td>'
	mnuItems += '<td><a href="/overview/">Overview</a> | <a href="/faculties/">Faculties &amp; Centres</a> | '
	//mnuItems += '<a href="/programmes/">Academic Programmes</a> | '
	mnuItems += '<a href="http://www.lib.pdn.ac.lk/">Libraries</a> | <a href="/campuslife/">Campus Life</a> | <a href="/journal/">Journals</a> | <a href="/irque/">IRQUE</a> | <a href="/intres/">International/Research</a></td>'
	mnuItems += '</tr>'
 	mnuItems += '<tr>'
	mnuItems += '<td class="arror_01"></td>'
	mnuItems += '<td class="txtBluBo">For</td>'
	mnuItems += '<td><a href="/staff/">Staff</a> | <a href="/alumni/">Alumni</a> | <a href="/visitors/">Visitors</a> | <a href="/pstudents/">Prospective Students</a> | <a href="/jobs/">Career Opportunities</a> | <a href="/downloads/">Downloads</a></td>'
	mnuItems += '</tr>'
	mnuItems += '</table>'
	document.write(mnuItems)
}
//This menu comes in every page on top of the Bottom banner
function footerMenu()
{
	var mnuItems = ''
	mnuItems += '<table width="760" border="0" cellpadding="5" cellspacing="0" align="center">'
	mnuItems += '<tr><td class="footerMenu">'
	mnuItems += '<A href="http://www.pdn.ac.lk/contact/">Contact Information</A>&nbsp;&nbsp; | &nbsp;&nbsp; '
	mnuItems += '<a href="http://www.pdn.ac.lk/phones/">Phone Directory</a>&nbsp;&nbsp; | &nbsp; '
	mnuItems += '<A href="http://www.pdn.ac.lk/search/">Search Site</A>'
	//mnuItems += '<A href="http://www.pdn.ac.lk/search/">Sitemap</A>'
	mnuItems += '</td></tr>'
	mnuItems += '</table>'
	document.write(mnuItems)
}

//This text comes in every page. 
//This is copyrite notice and include link to comments and corrections
function copyrightText()
{
	var mnuItems = ''
	mnuItems += '<table border="0" align="center" cellpadding="0" cellspacing="0">'
	mnuItems += '<tr><td align="center" class="cp_right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; Copyright reserved :: University of Peradeniya</td></tr>'
	mnuItems += '</table>'
	document.write(mnuItems)
}
