function navigation(pagename)
{
  var buffer="";

    backgroundindex="#343E5F";
    backgroundfirm="#343E5F";
    backgroundattorneys="#343E5F";
    backgroundpractice="#343E5F";
    backgroundresources="#343E5F";
    backgroundcontact="#343E5F";

    if(pagename=="index.htm")
    {
      backgroundindex="#DBC96B";
      bannerimage="banner-index.jpg";
    }

    if(pagename=="firm.htm")
    {
      backgroundfirm="#DBC96B";
      bannerimage="banner-firm.jpg";
    }

    if(pagename=="attorneys.htm")
    {
      backgroundattorneys="#DBC96B";
      bannerimage="banner-attorneys.jpg";
    }

    if(pagename=="attorneyprofiles")
    {
      backgroundattorneys="#DBC96B";
      bannerimage="nothing";
    }

    if(pagename=="practice.htm")
    {
      backgroundpractice="#DBC96B";
      bannerimage="banner-practice.jpg";
    }

    if(pagename=="resources.htm")
    {
      backgroundresources="#DBC96B";
      bannerimage="banner-resources.jpg";
    }

    if(pagename=="contact.htm")
    {
      backgroundcontact="#DBC96B";
      bannerimage="banner-contact.jpg";
    }

    buffer+='<TABLE CLASS="navigation" STYLE="width: 1000px;" CELLSPACING=0 CELLPADDING=0>';
    buffer+='<TR>';
    buffer+='<TD STYLE="width: 100px; background-color: #FFFFFF;">&nbsp;</TD>';
    buffer+='<TD STYLE="width: 150px; background-color: '+backgroundindex+';"><A HREF="index.htm">Home</A></TD>';
    buffer+='<TD STYLE="width: 150px; background-color: '+backgroundfirm+';"><A HREF="firm.htm">Our Firm</A></TD>';
    buffer+='<TD STYLE="width: 150px; background-color: '+backgroundattorneys+';"><A HREF="attorneys.htm">Attorneys</A></TD>';
    buffer+='<TD STYLE="width: 150px; background-color: '+backgroundpractice+';"><A HREF="practice.htm">Practice Areas</A></TD>';
    buffer+='<TD STYLE="width: 150px; background-color: '+backgroundresources+';"><A HREF="resources.htm">Resources</A></TD>';
    buffer+='<TD STYLE="width: 150px; background-color: '+backgroundcontact+';"><A HREF="contact.htm">Contact Us</A></TD>';
    buffer+='</TR>';
    if(pagename=="attorneyprofiles")
    {
    }
    else
    {
      buffer+='<TR>';
      buffer+='<TD COLSPAN=7 STYLE="border-style: none; margin: 0px; padding: 0px;"><IMG SRC="'+bannerimage+'"></TD>';
      buffer+='</TR>';
    }
    buffer+='</TABLE>';

  document.write(buffer);
  return;
}

function footer()
{
  var buffer="";

//    buffer+='<TABLE STYLE="width: 1000px;" CELLSPACING=0 CELLPADDING=0>';
//    buffer+='<TR>';
//    buffer+='<TD STYLE="width: 100px; background-color: #F5F5E3;"><IMG SRC="footer.jpg"></TD>';
//    buffer+='</TR>';
//    buffer+='</TABLE>';



    buffer+='<TABLE STYLE="width: 1000px;" CELLSPACING=0 CELLPADDING=0>';
    buffer+='<TR>';
    buffer+='<TD STYLE="width: 100px; background-color: #FFFFFF;">&nbsp;</TD>';
    buffer+='<TD STYLE="width: 900px; color: #FFFFFF; background-color: #343E5F; padding: 5px; text-align: center; font-size: 9pt; font-family: Arial; font-weight: 500;">1211 SW Fifth Avenue, Suite 2850, Portland, Oregon 97204, <SPAN STYLE="font-size: 8pt; color: #DBC96B; font-weight: 500; letter-spacing: 1px;">PHONE</SPAN> 503-228-6191, <SPAN STYLE="font-size: 8pt; color: #DBC96B; font-weight: 500; letter-spacing: 1px;">EMAIL</SPAN> <A HREF="mailto:kwar@kwar.com" STYLE="color: #FFFFFF; font-size: 9pt; font-family: Arial; font-weight: 500;">kwar@kwar.com</A></TD>';
    buffer+='</TR>';
    buffer+='</TABLE>';

  document.write(buffer);
  return;
}


function pagefooter()
{
  var buffer="";

    buffer+='<P CLASS="footer">Copyright &copy; 2001-2011 Kennedy Watts Arellano & Ricks LLP, All Rights Reserved</P>';
    buffer+='<P CLASS="footer"><A HREF="mailto:mgannett@europa.com">Graphic design by Gannett Design</A> • ';
    buffer+='<A HREF="http://www.spottedhorse.com" TARGET="_New" CLASS="footer">Web page design and hosting by Appaloosa</A></P>';
  document.write(buffer);
  return;
}


function navigationattorneys(pagename)
{
  var buffer="";

  buffer+='<h2 STYLE="color: #686447; margin-bottom: 30px;">Attorneys</A></h2>';

  if(pagename=="attorneys.htm" || pagename=="litigation.htm" || pagename=="domesticrelations.htm" || pagename=="securitieslitigation.htm" || pagename=="personalinjury.htm" || pagename=="productsliability.htm")
  {
    buffer+='<P CLASS="attorneynavigation"><A HREF="susanwatts.htm">Susan E. Watts</A></P>';
  }

  if(pagename=="attorneys.htm" || pagename=="litigation.htm" || pagename=="securitieslitigation.htm" || pagename=="productsliability.htm")
  {
    buffer+='<P CLASS="attorneynavigation"><A HREF="josepharellano.htm">Joseph C. Arellano</A></P>';
  }

  if(pagename=="attorneys.htm" || pagename=="litigation.htm" || pagename=="domesticrelations.htm" || pagename=="securitieslitigation.htm")
  {
    buffer+='<P CLASS="attorneynavigation"><A HREF="danielricks.htm">Daniel M. Ricks</A></P>';
  }

  if(pagename=="attorneys.htm" || pagename=="litigation.htm" || pagename=="domesticrelations.htm" || pagename=="securitieslitigation.htm" || pagename=="personalinjury.htm" || pagename=="productsliability.htm")
  {
    buffer+='<P CLASS="attorneynavigation"><A HREF="toddvanrysselberghe.htm">Todd L. Van Rysselberghe</A></P>';
  }

  if(pagename=="attorneys.htm" || pagename=="litigation.htm" || pagename=="domesticrelations.htm" || pagename=="securitieslitigation.htm" || pagename=="personalinjury.htm" || pagename=="productsliability.htm")
  {
    buffer+='<P CLASS="attorneynavigation"><A HREF="dankeppler.htm">Daniel L. Keppler</A></P>';
  }

  if(pagename=="attorneys.htm" || pagename=="litigation.htm" || pagename=="domesticrelations.htm" || pagename=="securitieslitigation.htm" || pagename=="personalinjury.htm" || pagename=="productsliability.htm")
  {
    buffer+='<P CLASS="attorneynavigation"><A HREF="amyhoven.htm">Amy M. Hoven</A></P>';
  }

  if(pagename=="attorneys.htm" || pagename=="litigation.htm" || pagename=="domesticrelations.htm" || pagename=="securitieslitigation.htm" || pagename=="personalinjury.htm" || pagename=="productsliability.htm")
  {
    buffer+='<P CLASS="attorneynavigation"><A HREF="cheneymoss.htm">Cheney E. Moss</A></P>';
  }

  if(pagename=="attorneys.htm" || pagename=="litigation.htm" || pagename=="securitieslitigation.htm" || pagename=="productsliability.htm")
  {
    buffer+='<P CLASS="attorneynavigation"><A HREF="mattyium.htm">Matthew J. Yium</A></P>';
  }






  document.write(buffer);
  return;
}


