////////////////////
//footer for patsstats.com
var messagefooter='"Your Real Estate consultant for life."';
var bar='images/bar-stars.gif';
var neonbasecolor="#223388";
var neontextcolor="#cc0022";
var flashspeed=75;  //in milliseconds
var n=0, m, tempref;

var pagemax=8;
var SubD='';
var thispage = location.href;
if (thispage.lastIndexOf('/') > -1)
  thispage = thispage.substr(thispage.lastIndexOf('/') + 1);
else if(thispage.lastIndexOf('\\') > -1)
  thispage = thispage.substr(thispage.lastIndexOf('\\') + 1);

for(pi=0;pi<pagemax;pi++)
  {
//  if (thispage==button[pi].page + '.' + button[pi].extension) SubD='';
  }


function showfooter()
{

function Button(name, alttag, domain, show)
{
this.name=name;
this.alttag=alttag;
this.domain=domain;
this.show=show;
return this;
}

var button=new Array(), bimage=new Array(), bi=0;

button[bi++]=new Button('default','Main Page','patsstats.com/','Main Page');
button[bi++]=new Button('aboutus','Learn about Pat`s Team','patsstats.com/','Pat`s Team');
//button[bi++]=new Button('listings','View our Pat`s Listings','patsstats.com/','Pat`s Listings');
button[bi++]=new Button('listings','View Pat`s Listings','http://pmousseau.remax.com/Listings/Residential_r4.aspx?QF1=ListingAgentContactID&QV1=11124154&QC1=5&QA1=0&QI1=0&CID=11124154&Tab=0" target="_TOP','Pat`s Listings');
//button[bi++]=new Button('listings','View Pat`s Listings','http://www.toledo.noris.xmlsweb.com/Reports.asp?CMAID=5622854&Date=5/29/2009&Time=06:13&ReportID=c%5Fagent%5Fph" target="_TOP','Pat`s Listings');
button[bi++]=new Button('testimonials','Read what our clients are saying','patsstats.com/','Testimonials');
button[bi++]=new Button('buyers','Get helpful Buyers Information','patsstats.com/','Buyers');
button[bi++]=new Button('sellers','Get helpful Sellers Information','patsstats.com/','Sellers');
button[bi++]=new Button('relocation','Get helpful Relocation Information','patsstats.com/','Relocation');
button[bi++]=new Button('contactus','See our Contact Information','patsstats.com/','Contact Us');

var fstring = '<center>';
fstring += '<div style="font-family:Helvetica, Verdana; font-size:14px; font-weight:bold;">';

bi=0;
var half=Math.floor((button.length - 1)/2);
while (bi<button.length)
  {
  var domain=button[bi].domain, name=button[bi].name, alttag=button[bi].alttag;
  var show=button[bi].show;
  if (domain == 'patsstats.com/') fstring += '| <a href="http://www.' + domain + name + '.asp" ';
  else fstring += '| <a href="' + domain + '" ';
  fstring += 'onmouseover="window.status=\'' + alttag + '\'; return true" onmouseout="window.status=\'\'; return true"'
  fstring += '>' + show + '</a> ';
  if (bi==half) fstring += ' |<br>';
  bi++;
  }

fstring += ' |</div><br></center>';

document.write(fstring);



document.write('<center><img src="' + SubD + bar + '" alt="Pat Mousseau Real Estate Broker & Property Specialist"><br><b>');
if (document.all)
  {
  document.write('<font color="'+neonbasecolor+'">');
  for (m=0;m<messagefooter.length;m++)
    document.write('<span id="neonlight">'+messagefooter.charAt(m)+'</span>');
  document.write('</font>');

  //cache reference to neonlight array
  tempref=document.all.neonlight;
  }
else
  document.write(messagefooter);

beginneon();

document.write('</b><br>');
document.write('<div style="font-family:arial, helvetica, sans-serif; font-size:11px; font-weight:normal; text-decoration:none; color:#223388;">');
document.write('Pat Mousseau * RE/MAX Central Group * 6800 W Central, Bldg. B * Toledo, OH  43617<br>');
document.write('Tel: 419-290-5200 * (800)793-5427 * Fax: 419-324-7755<br>');
document.write('E-mail: <a href="mailto:PatM@bex.net?subject=PatsStats Web Enquiry" onMouseOver="window.status=\'Send e-mail to Pat\'; return true" onMouseOut="window.status=\'\'; return true">PatM@bex.net</a>');
document.write('</div></center><br>');
}

function neon()
{

//Change all letters to base color
if (n==0)
  {
  for (m=0;m<messagefooter.length;m++)
    tempref[m].style.color=neonbasecolor;
  }

//cycle through and change individual letters to neon color
tempref[n].style.color=neontextcolor;

if (n<tempref.length-1)
  n++;
else
  {
  n=0;
  clearInterval(flashing);
  setTimeout("beginneon()",1500);
  return;
  }
}

function beginneon()
{
if (document.all)
  flashing=setInterval("neon()",flashspeed)
}

//showfooter();


