/**
 * @file
 * Custom javascript utilities.
 * 
 * @author Shannon M. Rause <shannon.rause@creativeflavor.com>
 * @version $Revision: 1.2 $
 * @version $Name: DECK1ONE_2009-04-27_2 $
 * @version $Id: main.js,v 1.2 2009/01/31 00:19:51 smr Exp $
 *
 * These files are copyrighted to Creative Flavor Inc. and are
 * subject to the terms of the applicable Service Agreement.
 * If no service agreement is available you must contact us at
 * legal@creativeflavor.com or 303-379-9450.
 * 
 * These files may be watermarked to ensure traceability.
 */

function myAnchor()
{
   var s=event.srcElement;

   if(s.tagName.match(/a/i) && !s.href.indexOf(document.location+'#'))
   {
      document.getElementById((s.href.substr(s.href.indexOf('#')+1))).scrollIntoView(true);
      return false;
   }

   return true;
}

