var queryString = ("" + window.location).toLowerCase();
var bFlag = queryString.indexOf('mpgovt');
 bFlag = -1;

function isGovtSite(){
	if(bFlag<0) return false;
	else return true; 
}

///////////////////////////////////////////////////////////
//Common Footer navigation for both MPPortal & MPGovtPortal
///////////////////////////////////////////////////////////
function pageFooter(){

 document.write("<div align=\"center\"><center>");
 document.write("<table border=\"0\" width=\"400\" cellspacing=\"0\" cellpadding=\"0\">");
 document.write("  <tr><td><img src=\"/homeImg06/1x1.gif\" width=\"10\" height=\"10\"></td></tr>");
 document.write("  <tr><td width=\"100%\" background=\"/homeImg06/bgheader.jpg\" height=\"2\"><img src=\"/homeImg06/1x1.gif\" width=\"1\" height=\"1\"></td></tr>");
 document.write("  <tr><td><img src=\"/homeImg06/1x1.gif\" width=\"10\" height=\"10\"></td></tr>");
 document.write("</table>");
 document.write("</center></div>");

 document.write("<table border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" background=\"/homeImg06/1X1Xbg1.jpg\" width=\"778\">");
 document.write("  <tr><td background=\"/homeImg06/dot2.jpg\"><p align=\"center\"><img src=\"/homeImg06/1x1.gif\" width=\"1\" height=\"1\"></td></tr>");
 document.write("  <tr>");
 document.write("    <td><p align=\"center\"><font face=\"Tahoma\"><small><small><b>");

 document.write("	<a href=\"/popup.htm?http://www.mpinfo.org/mpinfonew/english/factfile/history.asp\">History</a> |");
 document.write("	<a href=\"/popup.htm?http://www.mpinfo.org/mpinfonew/english/factfile/mp.asp\">Profile</a> |");
 document.write("	<a href=\"/popup.htm?http://www.mptourism.com/\">Tourism</a> |");
// document.write("	<a href=\"/aboutState/statistics\">Statistics</a> |");
 document.write("	<a href=\"/directory/policy.asp\">Policies</a> |");
 document.write("	<a href=\"/directory/initiatives.asp\">Initiatives</a> |");
 document.write("	<a href=\"/directory/acts\">Acts, Rules &amp; Notifications</a> |");
 document.write("	<a href=\"/spb/annualplan\">Annual Plan</a>");
 document.write("     </small></small></b><br><small><small><b>");
 document.write("	<a href=\"/directory/district.asp\">Districts</a> |");
 document.write("	<a href=\"/directory\">Departments</a> |");
 document.write("	<a href=\"/directory/psu.asp\">Public Enterprises</a> |");
 document.write("	<a href=\"/directory/localbodies.asp\">Local Bodies</a> |");
 document.write("	<a href=\"/directory/organisation.asp\">Organizations/Institutions</a> |");
 document.write("	<a href=\"/directory/Universities.asp\">Educational Institutions</a>");

 document.write("     </small></small></b><br><small><small><b>");
     			
 document.write("	<a href=\"/directory/publications\">Reports/Publications</a> |");
 document.write("	<a href=\"/directory/maps.asp\">Thematic Maps</a> |");
 document.write("	<a href=\"/services/forms.asp\">Forms</a> |");
 document.write("	<a href=\"/services/opportunities\">Opportunities</a> |");
 document.write("	<a href=\"/directory/Whoiswho.asp\">Who's who</a> |");
 document.write("	<a href=\"/\">Home</a>"); 
 document.write("    </small></small></b></font></td>");
 document.write("  </tr>");
 document.write("  <tr><td background=\"/homeImg06/dot2.jpg\"><p><img src=\"/homeImg06/1x1.gif\" width=\"1\" height=\"1\"></td></tr>");
 document.write("</table>");
 document.write("</form>");

}


function pageHeader(){
///////////////////////////////////
//MPHeader
if(bFlag<0){
///////////////////////////////////
 document.write('<form name="portalForm" method="post" action="#" onSubmit="javascript:return validateSearch()">');
 document.write('  <table border="0" cellspacing="0" cellpadding="0" width="778" background="/homeImg06/grad2006(1).jpg">');
 document.write('    <tr>');
 document.write('      <td rowspan="2" valign="top"><img src="/homeImg06/mp2006.jpg" width="82" height="56" alt="Madhya Pradesh" vspace="2" hspace="2"></td>');
 document.write('      <td rowspan="2" valign="top"><img src="/homeImg06/heart2007.gif" width="201" height="48" alt="Madhya Pradesh - Heart of India" align="top" hspace="2" vspace="2"></td>');
 document.write('      <td valign="baseline" width="220"><div align="center"><center><p><font color="#FFFFFF" face="Tahoma"><em><strong></strong></em></font></td>');
 document.write('      <td rowspan="2" valign="top" align="center"><img src="/homeImg06/tiger2006.jpg" width="68" height="56" alt="Madhya Pradesh - The Tiger State" vspace="2"></td>');
 document.write('      <td align="center"><div align="right"><p><img src="/homeImg06/cyber2006.jpg" width="193" height="13" alt="Cyber Gateway to Madhya Pradesh" hspace="2"></td>');
 document.write('    </tr>');
 document.write('    <tr align="center">');
 document.write('<td valign="bottom" width="220"><div align="center"><center><p><a href="/directory/siteMap.asp"><img src="/homeImg06/sitemap2006.jpg" width="46" height="15" alt="Site Map of Madhya Pradesh Portal" border="0"></a><font color="#FFFFFF" face="Tahoma" size="1"><strong><img src="/homeImg06/dmark2006.jpg" width="5" height="15"><a href="mailto:webmaster-mp@nic.in%20%3cwebmaster-mp@.nic.in%3e"><img src="/homeImg06/feedback2006.jpg" width="52" height="15" alt="Feedback for Madhya Pradesh Portal" border="0"></a><img src="/homeImg06/dmark2006.jpg" width="5" height="15"><a href="/"><img src="/homeImg06/home2006.jpg" width="33" height="15" alt="Madhya Pradesh Portal welcomes you" border="0"></a></strong></font></td>');
 document.write('      <td align="center"><table border="0" cellpadding="0" bgcolor="#ADADAD"> ');
 document.write('        <tr>');
 document.write('          <td><input type="text" maxLength="25" name="keyWord" tabIndex="3" style="background-color: rgb(225,233,247); color: rgb(0,0,128)" size="18"');
 document.write("          onFocus=\"if(this.value==this.defaultValue)this.value='';\" value=\"Search the website\"></td>");
 document.write('          <td><font face="Tahoma"><small><input style="FONT-SIZE: 8pt; COLOR: rgb(0,0,128); BACKGROUND-COLOR: rgb(244,244,255)" tabIndex="4" type="submit" value="Search" name="submit"></small></font></td>');
 document.write('        </tr>');
 document.write('      </table>');
 document.write('      </td>');
 document.write('    </tr>');
 document.write('  </table>');

/////////////////////////////////
//MPGovtHeader
}else{
////////////////////////////////

}
//////////////////////////////////////////////////////
//common navigations for MPPortal & MPGovtPortal header
/////////////////////////////////////////////////////

 document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"778\">");
 document.write("  <tr><td bgcolor=\"#FFFFFF\" background=\"/homeImg06/1X1X1.jpg\"><img src=\"/homeImg06/1x1.gif\" width=\"1\" height=\"1\"></td></tr>");
 document.write("</table>");

 document.write("<table border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" width=\"778\" bgcolor=\"#CCCCCC\" background=\"/homeImg06/1X1Xbg2.jpg\">");
 document.write("  <tr align=\"left\" vAlign=\"top\">");
 document.write("    <td><p align=\"right\"><font face=\"Tahoma\" color=\"#004080\"><small><small><small><b>");

 document.write("	<a href=\"/popup.htm?http://www.mpinfo.org/mpinfonew/english/factfile/history.asp\" target=\"_top\">History</a> |");
 document.write("	<a href=\"/popup.htm?http://www.mpinfo.org/mpinfonew/english/factfile/mp.asp\" target=\"_top\">Profile</a> |");
 document.write("	<a href=\"/popup.htm?http://www.mptourism.com/\" target=\"_top\">Tourism</a> |");
// document.write("	<a href=\"/aboutState/statistics\" target=\"_top\">Statistics</a> |");
 document.write("	<a href=\"/directory/policy.asp\" target=\"_top\">Policies</a> |");
 document.write("	<a href=\"/directory/initiatives.asp\" target=\"_top\">Initiatives</a> |");
 document.write("	<a href=\"/directory/acts\" target=\"_top\">Acts/Rules</a> |");
 document.write("	<a href=\"/services/right2info.asp\" target=\"_top\">RTI</a> |");
 document.write("	<a href=\"/spb/annualplan\" target=\"_top\">Annual Plan</a> |");
 document.write("	<a href=\"/directory/Whoiswho.asp\" target=\"_top\">Who's who</a>");

 document.write("     </small></small></small></b><img src=\"/homeImg06/1x1.gif\" hspace=\"2\" width=\"1\" height=\"1\"><br><small><small><small><b>");

 document.write("	<a href=\"/directory\" target=\"_top\">Departments</a> |");
 document.write("	<a href=\"/directory/psu.asp\" target=\"_top\">Public Enterprises</a> |");
 document.write("	<a href=\"/directory/organisation.asp\" target=\"_top\">Organizations</a> |");
 document.write("	<a href=\"/directory/district.asp\" target=\"_top\">Districts</a> |");
 document.write("	<a href=\"/directory/publications\" target=\"_top\">Reports</a> |");
 document.write("	<a href=\"/directory/maps.asp\" target=\"_top\">Thematic Maps</a> |");
 document.write("	<a href=\"/services/opportunities\">Opportunities</a> |");
 document.write("	<a href=\"/services/forms.asp\">Forms</a>");

 document.write("     </small></small></small></b></font><img src=\"/homeImg06/1x1.gif\" hspace=\"2\" width=\"1\" height=\"1\"></td>");
 document.write("  </tr>");
 document.write("</table>");

 document.write("<table border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" width=\"778\" height=\"7\">");
 document.write("  <tr><td background=\"/homeImg06/bgheader2.jpg\" height=\"2\" width=\"633\" valign=\"top\"><img src=\"/homeImg06/strip2.jpg\" width=\"778\" height=\"5\"></td>");
 document.write("  </tr>");
 document.write("</table>");

}

