// date code
function headerDate()
{
    var mydate=new Date()
	var theYear=mydate.getFullYear()
	var day=mydate.getDay()
	var month=mydate.getMonth()
	var daym=mydate.getDate()
	if (daym<10)
		daym="0"+daym
	var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
	return(dayarray[day]+", "+montharray[month]+" "+daym+", "+theYear)
}

// headerLinks
// make email an email a friend this link?
// <a href='/index.html'><img src='/images/nav/bookmark.gif' alt='Bookmark this page'></a>   |   <a href='/refinance/index.html'><img src='/images/nav/phone.gif' alt='Call Us'></a>  |   

function headerLinks()
{
	return("<a href='http://www.goodmortgage.com/help/email_a_friend.asp'><img src='/images/nav/envelope.gif' title='Email this page to a friend'></a>   |   <a href='http://www.goodmortgage.com/help/site_map.html'><img src='/images/nav/sitemap.gif' title='Site Map'></a>   |   <a href='javascript:window.external.addFavorite(location.href, document.title)'><img src='/images/nav/bookmark.gif' title='Bookmark this page'></a>  | <a href='javascript:printThis()'><img src='/images/nav/printer.gif' title='Print this page'></a>  |  <a href='http://www.goodmortgage.com/index.asp'><img src='/images/nav/home.gif' title='Return to Home Page'></a><br><a href='http://www.goodmortgage.com/help/site_tools.html'>Site Tools</a>&nbsp;&nbsp;&nbsp;&nbsp;")
}

// headerquote 

function headerQuote()
{
	return("Low Internet Mortgage Rates AND personal service.")
}

// foot copyright

function footCopyright()
{
	return("2000-2011")
}

function footEmail()
{
return("<a href='mailto:customerservice@goodmortgage.com'>customerservice@goodmortgage.com</a>")	
}

// add construction and investment and FHA later
function footLinks()
{
return("<a href='http://www.goodmortgage.com/Purchase/index.html'>PURCHASE</a>   |   <a href='http://www.goodmortgage.com/refinance/index.html'>REFINANCE</a>  |   <a href='http://www.goodmortgage.com/Home_Equity/index.html'>HOME EQUITY</a>  |  <a href='http://www.goodmortgage.com/first_time_homebuyer/index.html'>FIRST TIME HOMEBUYER</a>  |  <a href='http://www.goodmortgage.com/FHA/index.html'>FHA</a>  |  <a href='http://www.goodmortgage.com/VA/index.html'>VA</a>")
}


// popem and popemcall

		function isWin(){
		        if (navigator.appVersion.indexOf("Win") != -1)  return true;
		        else return false;
		}
		function isIE(){
		        if (navigator.appName == "Microsoft Internet Explorer") return true;
		        else return false;
		}
		function isIEPC(){
		        if (isWin() && isIE()) return true;
		        else return false;
		}
		function popemcall(){
		winname = window.open('http://www.goodmortgage.com/Pop_Ups/Instant_call.html','InstantCall','width=' + 285 + ',height=' + 210 + ', top=' + 10 + ',left=' + 400 +', toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no');
		        if (isIEPC() != 1) {
		                winname.focus();
		        }
		}
		function popem(page,winname,width,height,top,left){
		winname = window.open(page,winname,'width=' + width + ',height=' + height + ', top=' + top + ',left=' + left +', toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no');
		        if (isIEPC() != 1) {
		                winname.focus();
		        }
		}
				function popemscroll(page,winname,width,height,top,left){
		winname = window.open(page,winname,'width=' + width + ',height=' + height + ', top=' + top + ',left=' + left +', toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes');
		        if (isIEPC() != 1) {
		                winname.focus();
		        }
		}

// popup 
function popUp(url) { sealWin = window.open
 (url, "win", 'toolbar=0, location=0, directories=0, status=1, menubar=1, scrollbars=1, resizable=1, width=550, height=450');
 self.name="mainWin";}


// recertify for bbb
function Rcertify() { 
popupWin = window.open
('http://www.bbb.org/charlotte/business-reviews/mortgage-bankers/goodmortgagecom-internet-mortgage-lenders-in-charlotte-nc-107047', 'Participant', 
'location=yes,scrollbars=yes,width=700,height=800') 
window.name = 'opener'; 
} 

// play button for videos

var n3 = false;
image1       = new Image();
// Place your first image within the
// quotation marks on the line below.
image1.src   = "/images/buttons/button_play.gif";
image1on     = new Image();
// Place your second image within the
// quotation marks on the line below.
image1on.src = "/images/buttons/button_play_on.gif"

image2       = new Image();
// Place your first image within the
// quotation marks on the line below.
image2.src   = "/images/buttons/button_play.gif";
image2on     = new Image();
// Place your second image within the
// quotation marks on the line below.
image2on.src = "/images/buttons/button_play_on.gif"


function on3(name)
{
    document[name].src = eval(name + "on.src");
}

function off3(name)
{
    document[name].src = eval(name + ".src");
}

n3 = true;
function on(name)
{
   if (n3)
      on3(name);
}

function off(name)
{
   if (n3)
      off3(name);
}

// breadcrumbs

function breadcrumbs(){
var path = location.href;
arr = path.split('/');
var appended_path = arr[0] + "//" + arr[2];
for (i =2 ; i < arr.length-1; i++) {
 if(i == 2 ) {
	  document.write('<a class="DirTree" href="' + appended_path + '">Home</a>');
     } else {
		appended_path +=  '/' + unescape(arr[i]);
     document.write(' > ');
		document.write('<a class="DirTree" href="' + appended_path + '">' + unescape(arr[i]) + '</a>');
     }
}
document.write(' > ' + document.title);
}

// printthis

function printThis()
	{
	if (window.print) { window.print() } else alert('To print this page press Ctrl-P on your keyboard.')
	}
	
// add to favorites
function AddToFavorites()
{
if ((navigator.appVersion.indexOf("MSIE")>0) && (parseInt(navigator.appVersion)>=4)) {
document.write ("<span style='cursor:hand;' onclick='window.external.addFavorite(location.href, document.title);'>");
document.write ('<img border="0" src="/images/a_ArrowLine_2.gif" alt="Bookmark this page" class="JBOT105606" >');
document.write('</span>');}
}
// next 

