
function header(position){	
	var relative_path = ""
	if (position == null){
		position = 1
		relative_path = "../html/"
	} else if (position == 0) relative_path = "html/"
	else if (position == 2) relative_path = "../../html/"
	
	document.write('<table width="780" cellpadding="0" cellspacing="0" border="0">')
	document.write('  <tr>')
	document.write('   <td valign="top"><img src="'+relative_path+'../images/toptitle1.jpg" hspace="0" vspace="0" width="780" height="57" border="0" alt=""></td>')
	document.write('  </tr>')				
	document.write('  <tr>')
	document.write('   <td valign="top"><img src="'+relative_path+'../images/newbanner4.jpg" hspace="0" vspace="0" width="780" height="59" border="0" alt=""></td>')
	document.write('  </tr>')			
	document.write('  <tr>')
	document.write('   <td valign="top" bgcolor="#f07b00" height="18"></td>')
	document.write('  </tr>')
	document.write('</table>')
}

function copyright(){
	document.writeln('<table width="640" cellpadding="1" cellspacing="0" border="0">')
	document.writeln('<tr>')
	document.writeln('<td class="Copyright" align="right"><b>Site is designed &amp; developed by:</b></td>')
	document.writeln('<td class="Copyright"><font color="#f07b00">National Informatics Centre, Punjab State Unit, Chandigarh</font></td>')
	document.writeln('</tr>')
	document.writeln('<tr>')
	
	document.writeln('<td align="right" class="Copyright"><b>Contents developed by:</b></td>')
	document.writeln('<td class="Copyright"><font color="#f07b00">Patiala District Administration</font></td>')
	document.writeln('</tr>')
	document.writeln('<tr>')

	document.writeln('<td class="Copyright" colspan="2" align="center"><font size="-2" face="tahoma">This site is best viewed in 800x600 resolutions. Use IE 4.5/Netscape 4.5 or above.</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>')
	document.writeln('</tr>')
	document.writeln('</table>')
}
	

function rightMenu(str){

	document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">')
	document.writeln('<tr><td  bgcolor="#F7F7F2">')

	document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">')
	document.writeln('<tr><td align="center" bgcolor="#ffffff"><br></td></tr>')
	document.writeln('<tr><td height="20" align="center" bgcolor="#fecf49" class="MenuHeading1">Site Links</td></tr>')
	document.writeln('</table>')
	
	document.writeln('<table  class="text" border="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" cellspacing="0" cellpadding="5">')	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="about_district_menu.htm" class="MenuItem">About patiala</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="devlopement_stories.htm" class="MenuItem">Development Stories</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="district_administration_menu.htm" class="MenuItem">District Administration</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="district_at_a_glance.htm" class="MenuItem">District at A Glance</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="culture_tradition_menu.htm" class="MenuItem">Culture & Traditions</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="key_contacts.htm" class="MenuItem">Contact Us</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="district_economy_menu.htm" class="MenuItem">Economy</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="education_menu.htm" class="MenuItem">Education</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="district_health_menu.htm" class="MenuItem">Health</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="history_menu.htm" class="MenuItem">History</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="places_visit_menu.htm" class="MenuItem">Places to Visit</a></td>')
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td width="11" align="left"><img src="../images/icon1.gif" width="15" height="15"></td>')
	document.writeln('<td width="146" valign="top"><a href="../index.html" class="MenuItem">Home</a></td>')
	document.writeln('</tr>')
	document.writeln('</table>')
	document.writeln('</tr></td>')
	document.writeln('</table>')

}

function footer(){
	document.writeln('<table class="MenuHeading_internal" width="100%" border="0" cellspacing="0" cellpadding="0">')
	document.writeln('<tr height="20"><th  colspan="4" bgcolor="#fecf49">Site Links</th></tr>')
	document.writeln('<tr><td  bgcolor="#FFEEB9">&nbsp;&nbsp;<a href="about_district_menu.htm" class="MenuItem">About patiala</a><br/>&nbsp;&nbsp;<a href="devlopement_stories.htm" class="MenuItem">Development Stories</a><br/>&nbsp;&nbsp;<a href="district_administration_menu.htm" class="MenuItem">District Administration</a></td>')
	document.writeln('<td  bgcolor="#FFEEB9">&nbsp;&nbsp;<a href="district_at_a_glance.htm" class="MenuItem">District at A Glance</a><br/>&nbsp;&nbsp;<a href="culture_tradition_menu.htm" class="MenuItem">Culture & Traditions</a><br/>&nbsp;&nbsp;<a href="key_contacts.htm" class="MenuItem">Contact Us</a></td>')
	document.writeln('<td  bgcolor="#FFEEB9">&nbsp;&nbsp;<a href="district_economy_menu.htm" class="MenuItem">Economy</a><br/>&nbsp;&nbsp;<a href="education_menu.htm" class="MenuItem">Education</a><br/>&nbsp;&nbsp;<a href="district_health_menu.htm" class="MenuItem">Health</a></td>')
	document.writeln('<td  bgcolor="#FFEEB9">&nbsp;&nbsp;<a href="history_menu.htm" class="MenuItem">History</a><br/>&nbsp;&nbsp;<a href="places_visit_menu.htm" class="MenuItem">Places to Visit</a><br/>&nbsp;&nbsp;<a href="../index.html" class="MenuItem">Home</a></td>')
	document.writeln('</tr>')
	document.writeln('</table>')
}



function homeBottom(){
	document.writeln('<br><center><div style="height=20;width=50;"><B><a href="../index.html"><img src="../images/1hm03c.gif" width="60" height="50" border="0" alt="Home"></a></B></div></center>')
}

function getDate(){
	var months=new Array(13);
	months[1]="January";
	months[2]="February";
	months[3]="March";
	months[4]="April";
	months[5]="May";
	months[6]="June";
	months[7]="July";
	months[8]="August";
	months[9]="September";
	months[10]="October";
	months[11]="November";
	months[12]="December";
	var time=new Date();
	var hours = time.getHours();
	var minutes = time.getMinutes();
	var seconds = time.getSeconds();
	var amOrPm = "am.";
	var lmonth=months[time.getMonth() + 1];
	var date=time.getDate();
	var year=time.getYear();
	if (year < 2000)    
	year = year + 1900; 
	if (hours > 11) amOrPm = "pm.";
	if (hours > 12) hours = hours - 12;
	if (hours == 0) hours = 12;
	if (minutes <= 9) minutes = "0" + minutes;
	if (seconds <= 9) seconds = "0" + seconds;

	document.write( lmonth + " ");
	document.write(date + ", " + year + "  &nbsp;"+hours + ":" + minutes + ":" + seconds + " " + amOrPm);
}
