/*-------------------------------------*/
/* writes BASE attribute so all file references can be consistent across servers, etc */
/*-------------------------------------*/
/* modified 9/5/02 for finding in Javascript Bible p488 */
/*    hardcoded for attbi.com because of that stupid directory */
/*    otherwise will be the directory up until the first slash after the 8th character */
/*    "http://" are the first 7 characters and I want to be sure to find the next  */
/*       slash after that  */
var baseRef;
if ( (parseInt(location.href.indexOf("admin"))) > -1)
   {
      baseRef = "http://www.masterfolio.com/index.html";
   }
   else 
   {
   baseRef = location.href.substring(0,location.href.indexOf("/",8) + 1);
   }
document.write('<BASE href="'+baseRef+'">');
//alert('<BASE href="'+baseRef+'">');


