/**
 * @author slimchrisp
 */

var nav_html = '<dl id=\"menu\"> ' +

                 '<dt><a class=\"btn_text menu_rbtop\" href=\"../../index.html\">home<div></div></a></dt>' +
				 
				 '<dt onclick=\"javascript:showSection(\'smenu2\');\"><span class=\"btn_text\">about mvho</span></dt>' +
				   '<dd style=\"display: none;\" id=\"smenu2\">' +
						'<ul>' +
							'<li><a href=\"../staff/staff.html\">staff</a></li>' +
							'<li><a href=\"../staff/BoardOfDirectors.html\">board of directors</a></li>' +
							'<li><a href=\"../staff/Overview.html\">mvho overview</a></li>' +
							'<li><a href=\"../staff/Funding.html\">funding sources</a></li>' +
							'<li><a href=\"../../includes/docs/MVHOBudgetCharts.pdf\">budget allocations</a></li>' +
							'<li><a href=\"../directions/directions.html\">directions</a></li>' +
							'<li><a href=\"../../includes/docs/2009_MVHO_Annual_Report.pdf\">2009 annual report</a></li>' +
							'<li><a href=\"../../includes/docs/Personnel_policies.pdf\">personnel policies</a></li>' +
						'</ul>' +
					'</dd>' +	
					
					'<dt onclick=\"javascript:showSection(\'smenu3\');\"><span class=\"btn_text\">programs</span></dt>' +
						'<dd style=\"display: none;\" id=\"smenu3\">' +
							'<ul>' +
								'<li><a href=\"../mvhoproperties/mvhoproperties.html\">housing</a></li>' +
								'<li><a href=\"../shelterpluscare/shelterpluscare.html\">rental assistance</a></li>' +
								'<li><a href=\"../homeout/homeout.html\">outreach</a></li>' +

							'</ul>' +
						'</dd>' +
						
						'<dt onclick=\"javascript:showSection(\'smenu5\');\"><span class=\"btn_text\">how to help</span></dt>' +
						'<dd style=\"display: none;\" id=\"smenu5\">' +
							'<ul>' +
								'<li><a href=\"../howtohelp/donate.html\">donate</a></li>' +
							'</ul>' +
						'</dd>' +



				
					'<dt onclick=\"javascript:showSection();\"><a class=\"btn_text\" href=\"../news/news.html\">news</a></dt>' +
					
					'<dt onclick=\"javascript:showSection(\'smenu4\');\"><span class=\"btn_text\">partners</span></dt>' +
						'<dd style=\"display: none;\" id=\"smenu4\">' +
							'<ul>' +
								'<li><a href=\"../referralsources/referral.html\">referral sources</a></li>' +
								'<li><a href=\"../referralsources/otherpartners.html\">other partners</a></li>' +
								'<li><a href=\"../landlordlist/landlordlist.html\">landlord list</a></li>' +
							'</ul>' +
						'</dd>' +
					
			   '</dl>';
			   
var top = '<div id=\"page\">' +
            '<div class=\"rbtop\"><div></div></div>' + 
			'<div id=\"header\">' +

			nav_html +

          	'</div><!-- end \'header\' div -->' +			
		  	'<div id=\"content\">';
			
var bottom = '</div><!-- end \'content\' div -->' +
			
             '<div id=\"footer\">' +
			 
			  '<span id=\"footerText\">&copy MVHO 2009 - MVHO is a non profit organization</span>' +

             '<div class=\"rbbot\"><div></div></div>' +
             	
          	'</div><!-- end \'footer\' div -->' +			
			
		'</div><!-- end \'page\' div -->';


function writeDocTop()
{
	document.write(top);
}

function writeDocBottom()
{
	document.write(bottom);
}

function showSitemap()
{
  Element.hide('sitemap');
  document.getElementById('sitemap').style.visibility = 'visible';
  Effect.Appear('sitemap');
  document.getElementById('sitemap_bar').innerHTML = '<a href=\"javascript: hideSitemap();\">hide sitemap</a>';
}
		
function hideSitemap()
{
	Effect.Fade('sitemap');
    document.getElementById('sitemap_bar').innerHTML = '<a href=\"javascript: showSitemap();\">sitemap</a>';
}

function showSection(id)
{
	/**
	Element.hide('section1_con');
	Element.hide('section2_con');
	Element.hide('section3_con');
	Element.hide('section4_con');
	Element.hide('section5_con');
	Element.hide('section6_con');
	*/
	
	Effect.SlideUpAndDown(id);
//	document.getElementById(id).scrollIntoView;
}

function montre(id) {
	showSection(id);
	/**
    var d = document.getElementById(id);
    var visible = false;
    if (d.style.display=='block') visible = true;
    if (d && visible) {d.style.display='none';}
      else {d.style.display='block';}
      */
}