   CurrentPage = location.href;  if (CurrentPage.indexOf("file:") >= 0) {    RootURL = "file:///Volumes/Scratch/Websites/ppcmla/";
    RootAFP = "afp://172.31.1.96";  } else {    if (CurrentPage.indexOf(":81") >= 0) {
      noProtocol = CurrentPage.split("http://");
      noPort = noProtocol[1].split(":81");
      RootURL = "http://" + noPort[0].split("/",1) + "/";
      RootAFP = "afp://" + noPort[0].split("/",1);

    } else {
      noProtocol = CurrentPage.split("http://");      RootURL = "http://" + noProtocol[1].split("/",1) + "/";
      RootAFP = "afp://" + noProtocol[1].split("/",1);

    }
      }
  
  //RootURL = "http://ppcmla.dyndns.org/";
  ApplePreload = new Image();  MenuPreload = new Image();  FolderPreload = new Image();  ApplePreload.src = RootURL + "images/os9/MenuAppleDown.gif";  MenuPreload.src = RootURL + "images/os9/MenuDown.gif";    FolderPreload.src = RootURL + "images/os9/folder_new_big.gif";  var RunClock=0;  function initTime()  {   var today=new Date();   var h=today.getHours();   var m=today.getMinutes();   var s=today.getSeconds();   // add a zero in front of numbers<10   m=checkTime(m);   s=checkTime(s);   document.write(h+":"+m+":"+s);   document.getElementById('Time').alt=Date();   RunClock=1;  }      function startTime()  {   var today=new Date();   var h=today.getHours();   var m=today.getMinutes();   var s=today.getSeconds();   if (RunClock){     // add a zero in front of numbers<10     m=checkTime(m);     s=checkTime(s);     document.getElementById('Time').innerHTML=h+":"+m+":"+s;     t=setTimeout('startTime()',500);   }else{     document.getElementById('Time').innerHTML=Date();     t=setTimeout('startTime()',3000);     RunClock=1;	 }     }  function checkTime(i)  {   if (i<10)      {i="0" + i;}     return i;  }    function ShowDate()  {   RunClock = 0;  }// Script Source: CodeLifter.com// Copyright 2003// Do not remove this header

// Code to hide & show layers modified from CodeLifter.com code for draggable layers.
isIE=document.all;isNN=!document.all&&document.getElementById;isN4=document.layers;isHot=false;function InitLayers(e){
  topDog=isIE ? "BODY" : "HTML";  AppleMenuLayer=isIE ? document.all.AppleMenuLayer : document.getElementById("AppleMenuLayer");  
  HelpMenuLayer=isIE ? document.all.HelpMenuLayer : document.getElementById("HelpMenuLayer");
  SpecialMenuLayer=isIE ? document.all.HelpMenuLayer : document.getElementById("SpecialMenuLayer");}/*function hideMe(){  if (isIE||isNN) AppleMenuLayer.style.visibility="hidden";  else if (isN4) document.AppleMenuLayer.visibility="hide";}function showMe(){  if (isIE||isNN) AppleMenuLayer.style.visibility="visible";  else if (isN4) document.AppleMenuLayer.visibility="show";}*/function ShowHide(){  if (isIE||isNN){    if (AppleMenuLayer.style.visibility=="hidden")	  AppleMenuLayer.style.visibility="visible";	else	  AppleMenuLayer.style.visibility="hidden";   } else if (isNS4) {    if (AppleMenuLayer.style.visibility=="hide")	  document.AppleMenuLayer.visibility="show";	else	  document.AppleMenuLayer.visibility="hide";   }  }function ShowHideHelpMenuLayer(){  if (isIE||isNN){    if (HelpMenuLayer.style.visibility=="hidden")	  HelpMenuLayer.style.visibility="visible";	else	  HelpMenuLayer.style.visibility="hidden";   } else if (isNS4) {    if (HelpMenuLayer.style.visibility=="hide")	  document.HelpMenuLayer.visibility="show";	else	  document.HelpMenuLayer.visibility="hide";   }  }

function ShowHideSpecialMenuLayer(){  if (isIE||isNN){    if (SpecialMenuLayer.style.visibility=="hidden")	  SpecialMenuLayer.style.visibility="visible";	else	  SpecialMenuLayer.style.visibility="hidden";   } else if (isNS4) {    if (SpecialMenuLayer.style.visibility=="hide")	  document.SpecialMenuLayer.visibility="show";	else	  document.SpecialMenuLayer.visibility="hide";   }  }
document.onmousedown=InitLayers;function ShowOpenFolder(thisImg) {  thisImg.src = "http://ppcmla.dyndns.org/images/os9/folder_new_big.gif";}function ShowClosedFolder(thisImg) {  thisImg.src = "http://ppcmla.dyndns.org/images/os9/folder_big.gif";}function createCookie(name,value,days) {        if (days) {                var date = new Date();                date.setTime(date.getTime()+(days*24*60*60*1000));                var expires = "; expires="+date.toGMTString();        }        else var expires = "";        document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {        var nameEQ = name + "=";        var ca = document.cookie.split(';');        for(var i=0;i < ca.length;i++) {                var c = ca[i];                while (c.charAt(0)==' ') c = c.substring(1,c.length);                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);        }        return null;}function eraseCookie(name) {        createCookie(name,"",-1);}function setDesktop(thisStyle) {
  //(RootURL);  if (thisStyle == "bossanova") {    createCookie("DesktopPattern","BossanovaBondi.gif",1000);  } else {    if (thisStyle == "candy") {      createCookie("DesktopPattern","CandyBarAzul.gif",1000);    } else {      if (thisStyle == "mac") {        createCookie("DesktopPattern","MacOSDefault.gif",1000);      } else {        if (thisStyle == "peanuts") {          createCookie("DesktopPattern","PeanutsPistachio.gif",1000);        } else {          createCookie("DesktopPattern","MacOSDefault.gif",1000);        }      }    }  }  location.href=RootURL + "appearance_desktop.html";}function GoToPattern() {  DesktopPattern = readCookie("DesktopPattern");  if (DesktopPattern == "BossanovaBondi.gif") {    location.href=RootURL + "appearance_bossanova_bondi.html";  } else {    if (DesktopPattern == "CandyBarAzul.gif") {      location.href=RootURL + "appearance_candy_bar.html";    } else {      if (DesktopPattern == "MacOSDefault.gif") {        location.href=RootURL + "appearance_mac_os_default.html";      } else {        if (DesktopPattern == "PeanutsPistachio.gif") {          location.href=RootURL + "appearance_peanuts.html";        } else {          location.href=RootURL + "appearance_mac_os_default.html";        }      }    }  }}function LoadCustomStyles() {  var DesktopPattern = readCookie("DesktopPattern");  if (DesktopPattern) {    document.write("<style type=\"text/css\"> body {background-image:url('" + RootURL + "images/os9/" + DesktopPattern + "')}</style>");  }}

function CreateAppleMenuBar() {
  document.write("<img src=\"" + RootURL + "images/os9/MenuApple.gif\" width=\"38\" height=\"20\" border=\"0\" name=\"MenuApple\" onmouseover=\"MenuApple.src='" + RootURL + "images/os9/MenuAppleDown.gif'\" onmouseout=\"MenuApple.src='" + RootURL + "images/os9/MenuApple.gif'\" onclick=\"ShowHide()\">");
}


function CreateMenuBar() {
  document.write("<img src=\"" + RootURL + "images/os9/MenuFile.gif\" name=\"MenuFile\" width=\"33\" height=\"20\" border=\"0\" style=\"position:absolute;top:0px;left:38px\">");
  document.write("<img src=\"" + RootURL + "images/os9/MenuEdit.gif\" name=\"MenuEdit\" width=\"38\" height=\"20\" border=\"0\" style=\"position:absolute;top:0px;left:71px\">");
  document.write("<img src=\"" + RootURL + "images/os9/MenuView.gif\" name=\"MenuView\" width=\"44\" height=\"20\" border=\"0\" style=\"position:absolute;top:0px;left:109px\">");
  document.write("<img src=\"" + RootURL + "images/os9/MenuWindow.gif\" name=\"MenuWindow\" width=\"64\" height=\"20\" border=\"0\" style=\"position:absolute;top:0px;left:153px\">");
  document.write("<img src=\"" + RootURL + "images/os9/MenuSpecial.gif\" name=\"MenuSpecial\" width=\"59\" height=\"20\" border=\"0\" style=\"position:absolute;top:0px;left:217px\" onmouseover=\"MenuSpecial.src='" + RootURL + "images/os9/MenuSpecialDown.gif'\" onmouseout=\"MenuSpecial.src='" + RootURL + "images/os9/MenuSpecial.gif'\" onclick=\"ShowHideSpecialMenuLayer()\">");
  document.write("<img src=\"" + RootURL + "images/os9/MenuHelp.gif\" name=\"MenuHelp\" width=\"38\" height=\"20\" border=\"0\" style=\"position:absolute;top:0px;left:276px\" onmouseover=\"MenuHelp.src='" + RootURL + "images/os9/MenuHelpDown.gif'\" onmouseout=\"MenuHelp.src='" + RootURL + "images/os9/MenuHelp.gif'\" onclick=\"ShowHideHelpMenuLayer()\">");  
}

function CreateMenus() {
  //Create the Apple Menu
  document.write("<div id=\"AppleMenuLayer\" style=\"position:absolute;width:205px;height:60px;left:0px;top:20px;visibility:hidden\">");  document.write("<table border=\"0\" width=\"205\" bgcolor=\"#424242\" cellspacing=\"0\" cellpadding=\"0\">");  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "about.html\" onmouseover=\"Menu.src='" + RootURL + "images/os9/MenuDown.gif'\" onmouseout=\"Menu.src='" + RootURL + "images/os9/Menu.gif'\"><img src=\"" + RootURL + "images/os9/Menu.gif\" width=\"205\" height=\"20\" border=\"0\" name=\"Menu\"></a>");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "appearance_desktop.html\" onmouseover=\"Appearance.src='" + RootURL + "images/os9/AppearanceMenuItemDown.gif'\" onmouseout=\"Appearance.src='" + RootURL + "images/os9/AppearanceMenuItem.gif'\"><img src=\"" + RootURL + "images/os9/AppearanceMenuItem.gif\" width=\"205\" height=\"20\" border=\"0\" name=\"Appearance\"></a>");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "links.html\" onmouseover=\"Favorites.src='" + RootURL + "images/os9/FavoritesMenuItemDown.gif'\" onmouseout=\"Favorites.src='" + RootURL + "images/os9/FavoritesMenuItem.gif'\"><img src=\"" + RootURL + "images/os9/FavoritesMenuItem.gif\" width=\"205\" height=\"20\" border=\"0\" name=\"Favorites\"></a>");  document.write("  </td>");  document.write("</tr>");  document.write("</table>");  document.write("</div>");

  //Create the Special Menu
  document.write("<div id=\"SpecialMenuLayer\" style=\"position:absolute;width:172px;height:110px;left:217px;top:20px;visibility:hidden\">");  document.write("<table border=\"0\" width=\"128\" bgcolor=\"#424242\" cellspacing=\"0\" cellpadding=\"0\">");  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "EmptyTrash.html\" onmouseover=\"SpecialEmptyTrash.src='" + RootURL + "images/os9/SpecialEmptyTrashDown.gif'\" onmouseout=\"SpecialEmptyTrash.src='" + RootURL + "images/os9/SpecialEmptyTrash.gif'\"><img src=\"" + RootURL + "images/os9/SpecialEmptyTrash.gif\" width=\"172\" height=\"20\" border=\"0\" name=\"SpecialEmptyTrash\"></a>");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <img src=\"" + RootURL + "images/os9/SpecialEject.gif\" width=\"172\" height=\"18\" border=\"0\" name=\"SpecialEject\">");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "EraseDisk.html\" onmouseover=\"SpecialEraseDisk.src='" + RootURL + "images/os9/SpecialEraseDiskDown.gif'\" onmouseout=\"SpecialEraseDisk.src='" + RootURL + "images/os9/SpecialEraseDisk.gif'\"><img src=\"" + RootURL + "images/os9/SpecialEraseDisk.gif\" width=\"172\" height=\"20\" border=\"0\" name=\"SpecialEraseDisk\"></a>");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "Sleep.html\" onmouseover=\"SpecialSleep.src='" + RootURL + "images/os9/SpecialSleepDown.gif'\" onmouseout=\"SpecialSleep.src='" + RootURL + "images/os9/SpecialSleep.gif'\"><img src=\"" + RootURL + "images/os9/SpecialSleep.gif\" width=\"172\" height=\"18\" border=\"0\" name=\"SpecialSleep\"></a>");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "Restart.html\" onmouseover=\"SpecialRestart.src='" + RootURL + "images/os9/SpecialRestartDown.gif'\" onmouseout=\"SpecialRestart.src='" + RootURL + "images/os9/SpecialRestart.gif'\"><img src=\"" + RootURL + "images/os9/SpecialRestart.gif\" width=\"172\" height=\"16\" border=\"0\" name=\"SpecialRestart\"></a>");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "ShutDown.html\" onmouseover=\"SpecialShutDown.src='" + RootURL + "images/os9/SpecialShutDownDown.gif'\" onmouseout=\"SpecialShutDown.src='" + RootURL + "images/os9/SpecialShutDown.gif'\"><img src=\"" + RootURL + "images/os9/SpecialShutDown.gif\" width=\"172\" height=\"18\" border=\"0\" name=\"SpecialShutDown\"></a>");  document.write("  </td>");  document.write("</tr>");  document.write("</table>");  document.write("</div>");

  //Create the Help Menu
  document.write("<div id=\"HelpMenuLayer\" style=\"position:absolute;width:128px;height:62px;left:276px;top:20px;visibility:hidden\">");  document.write("<table border=\"0\" width=\"128\" bgcolor=\"#424242\" cellspacing=\"0\" cellpadding=\"0\">");  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "HelpCenter.html\" onmouseover=\"HelpHelpCenter.src='" + RootURL + "images/os9/HelpHelpCenterDown.gif'\" onmouseout=\"HelpHelpCenter.src='" + RootURL + "images/os9/HelpHelpCenter.gif'\"><img src=\"" + RootURL + "images/os9/HelpHelpCenter.gif\" width=\"128\" height=\"20\" border=\"0\" name=\"HelpHelpCenter\"></a>");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"" + RootURL + "ShowBalloons.html\" onmouseover=\"HelpShowBalloons.src='" + RootURL + "images/os9/HelpShowBalloonsDown.gif'\" onmouseout=\"HelpShowBalloons.src='" + RootURL + "images/os9/HelpShowBalloons.gif'\"><img src=\"" + RootURL + "images/os9/HelpShowBalloons.gif\" width=\"128\" height=\"20\" border=\"0\" name=\"HelpShowBalloons\"></a>");  document.write("  </td>");  document.write("</tr>");
  document.write("<tr>");  document.write("  <td width=\"100%\">");  document.write("    <a href=\"http://www.68kmla.net/index.php?c=4\" onmouseover=\"HelpMacHelp.src='" + RootURL + "images/os9/HelpMacHelpDown.gif'\" onmouseout=\"HelpMacHelp.src='" + RootURL + "images/os9/HelpMacHelp.gif'\"><img src=\"" + RootURL + "images/os9/HelpMacHelp.gif\" width=\"128\" height=\"22\" border=\"0\" name=\"HelpMacHelp\"></a>");  document.write("  </td>");  document.write("</tr>");  document.write("</table>");  document.write("</div>");}

function ConnectAFP() {
  location.href=RootAFP;
}