function createMenu (c) {
      //Home
	if (c == 1) {
        document.write('<div id = menu>',
			'<a href="index.html"><img src = "images/menuHome.jpg" alt = "Home" border = "0"></a>',
			'<div id = menu1>',
			'</div>',
			'<a href="news.html">News and Events</a>',
			'<a href="mission.html"><img src = "images/menuAboutUs.jpg" alt = "About Us" border = "0"></a>',
                  "<a href='publications.html'><img src = 'images/menuPublications.jpg' border = '0' alt = 'Publications' ></a>",
			'<a href="employeelinks.html"><img src = "images/menuEmployeeLinks.jpg" alt = "Employee Links"   border = "0"></a>',
			'<a href="community.html"><img src = "images/menuCommunityLinks.jpg" alt = "Community Links" border = "0"></a>',
			'<a href="external.html"><img src = "images/menuExternalLinks.jpg" alt = "External Links" border  = "0"></a>',
			'</div>');
        }
      //About Us
	if (c == 2) {
		document.write("<div id = 'menu'><a href='index.html'><img src = 'images/menuHome.jpg' alt = 'Home' border = '0'></a>",
			"<img src = 'images/menuAboutUs.jpg' border = '0' alt = 'About Us' >",
			"<div id = menu1>",
			"<!--<a href='message.html'>Director's Message</a> <br />-->",
			"<a href='mission.html'>Mission Statement</a><br />",
			"<a href='servicemap.html'>Service Area Map</a><br />",
			"<a href='faq.html'>Frequently Asked Questions</a><br />",
			"<a href='parentinformation.html'>Parent Information</a><br />",
			"<a href='deptlist.html'>Departmental Listing</a><br />",
			"<a href='deptdir.html'>Email/Phone Directory</a><br />",
			"</div>",
                  "<a href='publications.html'><img src = 'images/menuPublications.jpg' border = '0' alt = 'Publications' ></a>",
			"<a href='employeelinks.html'><img src = 'images/menuEmployeeLinks.jpg' border = '0' alt = 'Employee Links' border = '0'></a>",
			"<a href='community.html'><img src = 'images/menuCommunityLinks.jpg' border = '0' alt = 'Community Links' ></a>",
			"<a href= 'external.html'><img src = 'images/menuExternalLinks.jpg' border = '0' alt = 'External Links' ></a></div>");
		}
    //Publications
    if (c == 3) {
		document.write("<div id = 'menu'><a href='index.html'><img src = 'images/menuHome.jpg' alt = 'Home' border = '0'></a>",
		      "<a href='mission.html'><img src = 'images/menuAboutUs.jpg' border = '0' alt = 'About Us' ></a>",
                  "<a href='publications.html'><img src = 'images/menuPublications.jpg' border = '0' alt = 'Publications' ></a>",
			"<div id = menu1>",
			"<a href='employeelinks.html'><img src = 'images/menuEmployeeLinks.jpg' border = '0' alt = 'Employee Links' border = '0'></a><br>",
			"<a href='employmentopportunities.html'>Career Opportunities</a><br/>",	
                  "<a href='cafemenu.html'>Weekly Cafe Menu</a><br>",
                  "<a href='https://oscar.nmrc.state.ms.us/exchange'>Staff Webmail</a><br />",
			"</div>",
			"<a href='community.html'><img src = 'images/menuCommunityLinks.jpg' border = '0' alt = 'Community Links' ></a>",
			"<a href= 'external.html'><img src = 'images/menuExternalLinks.jpg' border = '0' alt = 'External Links' ></a></div>");
		}
  //Employee Links
  if (c == 4) {
		document.write("<div id = 'menu'><a href='index.html'><img src = 'images/menuHome.jpg' alt = 'Home' border = '0'></a>",
			
			"<a href='mission.html'><img src = 'images/menuAboutUs.jpg' border = '0' alt = 'About Us' ></a>",
                  "<a href='publications.html'><img src = 'images/menuPublications.jpg' border = '0' alt = 'Publications' ></a>",
			"<a href='employeelinks.html'><img src = 'images/menuEmployeeLinks.jpg' border = '0' alt = 'Employee Links' border = '0'></a>",
			"<a href='community.html'><img src = 'images/menuCommunityLinks.jpg' border = '0' alt = 'Community Links' ></a>",
                  "<div id = menu1>",
                  "<a href='volunteers.html'>Volunteer Opportunities</a><br/>",
                  "<a href='friends.html'>Parents and Friends</a><br/>",
			"<a href='products.html'>Client Produced Items</a><br/>",
			"</div>",
			"<a href= 'external.html'><img src = 'images/menuExternalLinks.jpg' border = '0' alt = 'External Links' ></a></div>");
		}
    //Community Links
    if (c == 5) {
        document.write("<div id = 'menu'><a href='index.html'><img src = 'images/menuHome.jpg' alt = 'Home' border = '0'></a>",
			"<a href='mission.html'><img src = 'images/menuAboutUs.jpg' border = '0' alt = 'About Us' ></a>",
			"<a href='publications.html'><img src = 'images/menuPublications.jpg' border = '0' alt = 'Publications' ></a>",
			"<a href='employeelinks.html'><img src = 'images/menuEmployeeLinks.jpg' border = '0' alt = 'Employee Links' ></a>",
			"<a href='community.html'><img src = 'images/menuCommunityLinks.jpg' border = '0' alt = 'Community Links' ></a>",
			"<a href= 'external.html'><img src = 'images/menuExternalLinks.jpg' border = '0' alt = 'External Links' ></a>",
            "<div id = menu1>",
			"</div>",
            "</div>");
        }
    //External Links
    if (c == 6) {
        document.write("<div id = 'menu'><a href='index.html'><img src = 'images/menuHome.jpg' alt = 'Home' border = '0'></a>",
			"<a href='mission.html'><img src = 'images/menuAboutUs.jpg' border = '0' alt = 'About Us' ></a>",
			"<a href='publications.html'><img src = 'images/menuPublications.jpg' border = '0' alt = 'Publications' ></a>",
			"<a href='employeelinks.html'><img src = 'images/menuEmployeeLinks.jpg' border = '0' alt = 'Employee Links' ></a>",
			"<a href='community.html'><img src = 'images/menuCommunityLinks.jpg' border = '0' alt = 'Community Links' ></a>",
			"<a href= 'external.html'><img src = 'images/menuExternalLinks.jpg' border = '0' alt = 'External Links' ></a>",
            "<div id = menu1>",
			"</div>",
            "</div>");
        }
}

function createBottomNav () {
    
    document.write("<div id = bottomNav>",
				"<center><a href='index.html'>Home</a>  |  <a href='sitemap.html'>Site Map</a>    |    <a href='documents/noticeofprivacypractices.pdf'>Privacy Policy</a>",
				"<br />",
				"Copyright @ 2008 North Mississippi Regional Center</center>",
			    "</div>");
                }
                
function currentMonth () {
    var d=new Date();

    var month=new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
    
    document.write("If your hire date is in the month of " + month[d.getMonth()] + ", please report to Nursing for your annual TB test.");
    }
    
function mainImageRotation () {
    var rotation = new Array ("1.JPG", "2.JPG", "game.JPG", "snow.JPG", "IMG_0112.JPG", "IMG_4989.JPG", "IMG_5732.JPG", "IMG_5561.JPG", "IMG_5301.JPG", "IMG_4983.JPG", "IMG_4992.JPG	");
    var d = Math.floor(Math.random() * rotation.length);
    document.write("<img id = contentImage src='images/rotation/" + rotation[d] + "' />");
    }


    

