/* 
FUNCTION DISPLAY_HEADER
*/
function display_header()
{
	document.write ("<div id='header'>");
	document.write ("<div class='padding'>");
	document.write ("<a href='/index.html' class='nounder'><img src='images/blank.png' border='0' alt='Excel Title Corporation' id='logo' /></a>");	
	document.write ("</div>");	
	document.write ("</div>");	
}


/* 
FUNCTION DISPLAY_FOOTER
*/
function display_footer()
{
	document.write ("<div id='footer'>");
	document.write ("<div class='padding'>");
	document.write ("<div id='bottommenu'>");
	document.write ("<a href='http://www.cardinalbank.com/docs/Privacy_Policy.pdf'>Privacy Policy</a>");	
	document.write ("</div>");	
	document.write ("<b>Copyright &copy; 2011 Excel Title Corporation</b><br />");	
	document.write ("<br />");	
	document.write ("Excel Title Corporation is a wholly owned subsidiary of George Mason Mortgage, LLC.<br />");	
	document.write ("George Mason Mortgage, LLC is a subsidiary of Cardinal Bank.");	
	document.write ("</div>");	
	document.write ("</div>");	
}


/* 
FUNCTION DISPLAY_TOP_NAV
*/
function display_top_nav(section)
{
	document.write ("<div id='nav'>");
	document.write ("<div class='padding'>");
	document.write ("<ul>");

	switch(section)
	{
	case 'home':
		document.write ("<li class='active'><a href='/index.html'>Home</a></li>");
		document.write ("<li><a href='/aboutus.html'>About Us</a></li>");
		document.write ("<li><a href='/forms.html'>Forms</a></li>");
		document.write ("<li><a href='/calculator.html'>Tools</a></li>");
		document.write ("<li><a href='/locations.html'>Locations</a></li>");
		document.write ("<li><a href='/contactus.html'>Contact Us</a></li>");
		break;

	case 'aboutus':
		document.write ("<li><a href='/index.html'>Home</a></li>");
		document.write ("<li class='active'><a href='/aboutus.html'>About Us</a></li>");
		document.write ("<li><a href='/forms.html'>Forms</a></li>");
		document.write ("<li><a href='/calculator.html'>Tools</a></li>");
		document.write ("<li><a href='/locations.html'>Locations</a></li>");
		document.write ("<li><a href='/contactus.html'>Contact Us</a></li>");
		break;

	case 'forms':
		document.write ("<li><a href='/index.html'>Home</a></li>");
		document.write ("<li><a href='/aboutus.html'>About Us</a></li>");
		document.write ("<li class='active'><a href='/forms.html'>Forms</a></li>");
		document.write ("<li><a href='/calculator.html'>Tools</a></li>");
		document.write ("<li><a href='/locations.html'>Locations</a></li>");
		document.write ("<li><a href='/contactus.html'>Contact Us</a></li>");
		break;

	case 'tools':
		document.write ("<li><a href='/index.html'>Home</a></li>");
		document.write ("<li><a href='/aboutus.html'>About Us</a></li>");
		document.write ("<li><a href='/forms.html'>Forms</a></li>");
		document.write ("<li class='active'><a href='/calculator.html'>Tools</a></li>");
		document.write ("<li><a href='/locations.html'>Locations</a></li>");
		document.write ("<li><a href='/contactus.html'>Contact Us</a></li>");
		break;

	case 'locations':
		document.write ("<li><a href='/index.html'>Home</a></li>");
		document.write ("<li><a href='/aboutus.html'>About Us</a></li>");
		document.write ("<li><a href='/forms.html'>Forms</a></li>");
		document.write ("<li><a href='/calculator.html'>Tools</a></li>");
		document.write ("<li class='active'><a href='/locations.html'>Locations</a></li>");
		document.write ("<li><a href='/contactus.html'>Contact Us</a></li>");
		break;

	case 'contactus':
		document.write ("<li><a href='/index.html'>Home</a></li>");
		document.write ("<li><a href='/aboutus.html'>About Us</a></li>");
		document.write ("<li><a href='/forms.html'>Forms</a></li>");
		document.write ("<li><a href='/calculator.html'>Tools</a></li>");
		document.write ("<li><a href='/locations.html'>Locations</a></li>");
		document.write ("<li class='active'><a href='/contactus.html'>Contact Us</a></li>");
		break;

	default:
		document.write ("<li><a href='/index.html'>Home</a></li>");
		document.write ("<li><a href='/aboutus.html'>About Us</a></li>");
		document.write ("<li><a href='/forms.html'>Forms</a></li>");
		document.write ("<li><a href='/calculator.html'>Tools</a></li>");
		document.write ("<li><a href='/locations.html'>Locations</a></li>");
		document.write ("<li><a href='/contactus.html'>Contact Us</a></li>");
		break;
	}	

	document.write ("</ul>");	
	document.write ("</div>");	
	document.write ("</div>");	

}


/* 
FUNCTION DISPLAY_LEFT_NAV
leftnav is a number 1 through 6.  It relates to the nav element.  ie: 2 is the second left nav element
*/
function display_left_nav(section, leftnav)
{

	document.write ("<div id='leftnav'>");
	document.write ("<ul>");
	
	switch(section)
	{
	case 'forms':

		switch(leftnav)
		{
		default:
			document.write ("<li><a href='/downloads/closing_request_form.pdf'>Closing & Title Request Form</a></li>");
			document.write ("<li><a href='/downloads/tenancy_selection_form.pdf'>Tenancy Selection Form</a></li>");
			break;
		}
		break;

	case 'tools':

		switch(leftnav)
		{
		case '1':
			document.write ("<li class='active'><a href='/calculator.html'>Closing Cost Calculator</a></li>");
			document.write ("<li><a href='/links.html'>Helpful Links</a></li>");
			document.write ("<li><a href='/glossary.html'>Glossary of Terms</a></li>");
			break;

		case '2':
			document.write ("<li><a href='/calculator.html'>Closing Cost Calculator</a></li>");
			document.write ("<li class='active'><a href='/links.html'>Helpful Links</a></li>");
			document.write ("<li><a href='/glossary.html'>Glossary of Terms</a></li>");
			break;

		case '3':
			document.write ("<li><a href='/calculator.html'>Closing Cost Calculator</a></li>");
			document.write ("<li><a href='/links.html'>Helpful Links</a></li>");
			document.write ("<li class='active'><a href='/glossary.html'>Glossary of Terms</a></li>");
			break;

		default:
			document.write ("<li><a href='/calculator.html'>Closing Cost Calculator</a></li>");
			document.write ("<li><a href='/links.html'>Helpful Links</a></li>");
			document.write ("<li><a href='/glossary.html'>Glossary of Terms</a></li>");
			break;
		}
		break;

	default:

		break;
	}
	
	document.write ("</ul>");	
	document.write ("</div>");	

}


/* 
ARRAY OF QUOTES FOR RANDOM DISPLAY IN LEFT COLUMN
*/
var QuoteArray = [ 	
			['Kudos to Excel Title&#39s Lisa Merrill as closing was easier (and quicker!!) then the 1/2 hour ride getting there.   This was a totally professional experience which I will openly recommend to others.<br><br>-John Bosco'],
			['We were extremely pleased with the services performed by Excel Title Company!  We used a different title company in the past and our experience with Excel Title was superior in every aspect.  Lisa Merrill performed our refinance on two properties in a thorough, efficient, helpful and friendly manner.   All we had to do was sign our names.  We would not hesitate to use Excel Title again!<br><br>-Christina and Eric Williams'],
			['Kudos to Excel Title&#39s Lisa Merrill as closing was easier (and quicker!!) then the 1/2 hour ride getting there.   This was a totally professional experience which I will openly recommend to others.<br><br>-John Bosco'],
			['We were extremely pleased with the services performed by Excel Title Company!  We used a different title company in the past and our experience with Excel Title was superior in every aspect.  Lisa Merrill performed our refinance on two properties in a thorough, efficient, helpful and friendly manner.   All we had to do was sign our names.  We would not hesitate to use Excel Title again!<br><br>-Christina and Eric Williams'],

	]; 


/* 
FUNCTION DISPLAY_RANDOM_QUOTE
*/
function display_random_quote() {
		var dno = Math.round(Math.random()*((QuoteArray.length)-1));
		document.write("<div id='quote'><img src='images/quote.jpg' border='0' alt='quote' align='left' style='margin-right:10px;' />"+QuoteArray[(dno)][0]+"</div>");
}

