      msecsDef =  4000
      msecsMin =    75
      msecsFrz =  2000
      msecsLng =  6000

      ndx = 1
      lst = 100
      firstWestGroHdr    = 1
      lastWestGroHdr     = 20
      westStableHdr      = 21
      firstPicGroHdr     = 22
      lastPicGroHdr      = 41
      picStableHdr       = 42
      firstAdStableHdr   = 0
      secondAdStableHdr  = 0
      firstPicHdr        = 43

      ptrL = 0
      ptrC = 0
      ptrR = 0
      picPtr = 10
      picStr = "picnads/img0"
      picMax = 16
      picRestart = 10

      outWidDef = 200
      outWidMax = 350

      midWidDef = 300
      midWidMax = 500

      hgtDef = 200

      function nxtImg()
      {
        var imgUL = document.getElementById("imgUL");
        var imgUC = document.getElementById("imgUC");
        var imgUR = document.getElementById("imgUR");
        var imgLL = document.getElementById("imgLL");
        var imgLC = document.getElementById("imgLC");
        var imgLR = document.getElementById("imgLR");

        var lnkUL = document.getElementById("LnksUL");
        var lnkUC = document.getElementById("LnksUC");
        var lnkUR = document.getElementById("LnksUR");
        var lnkLL = document.getElementById("LnksLL");
        var lnkLC = document.getElementById("LnksLC");
        var lnkLR = document.getElementById("LnksLR");

        var imgULCur = ""
        var imgUCCur = ""
        var imgURCur = ""
        var imgLLCur = ""
        var imgLCCur = ""
        var imgLRCur = ""

        var lnkULCur = "http://westsoccerphotos.shutterfly.com/"
        var lnkUCCur = "http://westsoccerphotos.shutterfly.com/"
        var lnkURCur = "http://westsoccerphotos.shutterfly.com/"
        var lnkLLCur = "http://westsoccerphotos.shutterfly.com/"
        var lnkLCCur = "http://westsoccerphotos.shutterfly.com/"
        var lnkLRCur = "http://westsoccerphotos.shutterfly.com/"

        var txtULCur = ""
        var txtUCCur = ""
        var txtURCur = ""
        var txtLLCur = ""
        var txtLCCur = ""
        var txtLRCur = ""

        msecs = 1

        ptrL = 0
        ptrC = 0
        ptrR = 0

        imgULWidth = 0
        imgUCWidth = 0
        imgURWidth = 0
        imgLLWidth = 0
        imgLCWidth = 0
        imgLRWidth = 0

        imgULHeight = 0
        imgUCHeight = 0
        imgURHeight = 0
        imgLLHeight = 0
        imgLCHeight = 0
        imgLRHeight = 0

        txtULWidth = 0
        txtUCWidth = 0
        txtURWidth = 0
        txtLLWidth = 0
        txtLCWidth = 0
        txtLRWidth = 0

        txtULHeight = 0
        txtUCHeight = 0
        txtURHeight = 0
        txtLLHeight = 0
        txtLCHeight = 0
        txtLRHeight = 0

        txtStyleUL = "font-family:times; font-size:28; font-weight:bold"
        txtStyleUC = "font-family:times; font-size:28; font-weight:bold"
        txtStyleUR = "font-family:times; font-size:28; font-weight:bold"
        txtStyleLL = "font-family:times; font-size:18; font-weight:bold"
        txtStyleLC = "font-family:times; font-size:18; font-weight:bold"
        txtStyleLR = "font-family:times; font-size:18; font-weight:bold"

        TextUL.setAttribute("width","");
        TextUC.setAttribute("width","");
        TextUR.setAttribute("width","");
        TextLL.setAttribute("width","");
        TextLC.setAttribute("width","");
        TextLR.setAttribute("width","");

        TextUL.setAttribute("height","");
        TextUC.setAttribute("height","");
        TextUR.setAttribute("height","");
        TextLL.setAttribute("height","");
        TextLC.setAttribute("height","");
        TextLR.setAttribute("height","");

        ndx=ndx+1;
        if (ndx > lst)
        {
          ndx = 1
        }
        else if (ndx >= firstPicHdr)
        {
          picPtr = picPtr + 1;
          if (picPtr > picMax)
          {
            picPtr = picRestart
          }
        }

        if ((ndx >= firstWestGroHdr) && (ndx <= lastWestGroHdr))
        {
          msecs = msecsMin

          txtUCWidth = midWidDef

          txtUCHeight = hgtDef

          txtUCCur = "2011-2012<br>WARRIOR<br>SOCCER"

          fsz = eval(ndx*3)
          txtStyleUC = "font-family:arial; font-size:" + fsz + "; font-weight:bold"
        }
        else if (ndx == westStableHdr)
        {
          msecs = msecsFrz

          txtUCWidth = midWidDef

          txtUCHeight = hgtDef

          txtUCCur = "2011-2012<br>WARRIOR<br>SOCCER"

          txtStyleUC = "font-family:arial; font-size:60; font-weight:bold"
        }
        else if ((ndx >= firstPicGroHdr) && (ndx <=lastPicGroHdr))
        {
          msecs = msecsMin

          imgULWidth = eval((ndx-21)*10)
          imgURWidth = outWidDef

          imgULHeight = hgtDef
          imgURHeight = eval((ndx-21)*10)

          txtUCWidth = midWidDef
          txtULWidth = eval(hgtDef-((ndx-21)*10))

          txtUCHeight = hgtDef

          ptrL = picPtr
          ptrR = picPtr
          imgULCur = picStr + picPtr + "L.jpg"
          imgURCur = picStr + picPtr + "R.jpg"
          txtUCCur = "2011-2012<br>WARRIOR<br>SOCCER"

          txtStyleUC = "font-family:arial; font-size:60; font-weight:bold"
        }
        else if (ndx == picStableHdr)
        {
          msecs = msecsDef

          imgULWidth = outWidDef
          imgURWidth = outWidDef

          imgULHeight = hgtDef
          imgURHeight = hgtDef

          txtUCWidth = midWidDef

          txtUCHeight = hgtDef

          ptrL = picPtr
          ptrR = picPtr
          imgULCur = picStr + picPtr + "L.jpg"
          imgURCur = picStr + picPtr + "R.jpg"
          txtUCCur = "2011-2012<br>WARRIOR<br>SOCCER"

          txtStyleUC = "font-family:arial; font-size:60; font-weight:bold"
        }
        else if (ndx == firstAdStableHdr)
        {
          msecs = msecsFrz

          imgULWidth = outWidDef
          imgURWidth = outWidDef

          imgULHeight = hgtDef
          imgURHeight = hgtDef

          txtUCWidth = midWidDef

          txtUCHeight = hgtDef

          ptrL = picPtr
          ptrR = picPtr
          imgULCur = picStr + picPtr + "L.jpg"
          imgURCur = picStr + picPtr + "R.jpg"
          txtUCCur = "Proudly<br>Sponsored<br>by:"

          txtStyleUC = "font-family:arial; font-size:20; font-weight:bold"
        }
        else if (ndx == secondAdStableHdr)
        {
          msecs = msecsLng

          imgULWidth = outWidDef
          imgUCWidth = midWidDef
          imgURWidth = outWidDef

          imgULHeight = hgtDef
          imgUCHeight = hgtDef
          imgURHeight = hgtDef

          txtLCWidth = midWidMax

          txtLCHeight = 15

          ptrL = picPtr
          ptrC = 3
          ptrR = picPtr
          imgULCur = picStr + picPtr + "L.jpg"
          imgUCCur = "picnads/img003C.jpg"
          imgURCur = picStr + picPtr + "R.jpg"

          txtStyleLC = "font-family:arial; font-size:18; font-weight:bold"
        }
        else if (ndx >= firstPicHdr)
        {
          msecs = msecsLng

          if (picPtr == 350)
          {
            imgUCWidth = 500

            imgUCHeight = hgtDef
          }
          else
          {
            imgULWidth = outWidDef
            imgUCWidth = midWidDef
            imgURWidth = outWidDef

            imgULHeight = hgtDef
            imgUCHeight = hgtDef
            imgURHeight = hgtDef
          }

          txtLCWidth = midWidMax

          txtLCHeight = 15

          if (picPtr == 50)
          {
            ptrC = picPtr
            imgUCCur = picStr + picPtr + "C.jpg"
          }
          else
          {
            ptrL = picPtr
            ptrC = picPtr
            ptrR = picPtr
            imgULCur = picStr + picPtr + "L.jpg"
            imgUCCur = picStr + picPtr + "C.jpg"
            imgURCur = picStr + picPtr + "R.jpg"
          }
          txtStyleLC = "font-family:arial; font-size:18; font-weight:bold"
        }

        imgUL.setAttribute("src",imgULCur);
        imgUL.setAttribute("width",imgULWidth);
        imgUL.setAttribute("height",imgULHeight);
        imgUL.setAttribute("border", "0");
        imgUC.setAttribute("src",imgUCCur);
        imgUC.setAttribute("width",imgUCWidth);
        imgUC.setAttribute("height",imgUCHeight);
        imgUC.setAttribute("border", "0");
        imgUR.setAttribute("src",imgURCur);
        imgUR.setAttribute("width",imgURWidth);
        imgUR.setAttribute("height",imgURHeight);
        imgUR.setAttribute("border", "0");
        imgLL.setAttribute("src",imgLLCur);
        imgLL.setAttribute("width",imgLLWidth);
        imgLL.setAttribute("height",imgLLHeight);
        imgLL.setAttribute("border", "0");
        imgLC.setAttribute("src",imgLCCur);
        imgLC.setAttribute("width",imgLCWidth);
        imgLC.setAttribute("height",imgLCHeight);
        imgLC.setAttribute("border", "0");
        imgLR.setAttribute("src",imgLRCur);
        imgLR.setAttribute("width",imgLRWidth);
        imgLR.setAttribute("height",imgLRHeight);
        imgLR.setAttribute("border", "0");

        lnkUL.href = lnkULCur;
        lnkUC.href = lnkUCCur;
        lnkUR.href = lnkURCur;
        lnkLL.href = lnkLLCur;
        lnkLC.href = lnkLCCur;
        lnkLR.href = lnkLRCur;

        document.getElementById("TextUL").innerHTML=txtULCur;
        document.getElementById("TextUC").innerHTML=txtUCCur;
        document.getElementById("TextUR").innerHTML=txtURCur;
        document.getElementById("TextLL").innerHTML=txtLLCur;
        document.getElementById("TextLC").innerHTML=txtLCCur;
        document.getElementById("TextLR").innerHTML=txtLRCur;

        TextUL.setAttribute("width",txtULWidth);
        TextUC.setAttribute("width",txtUCWidth);
        TextUR.setAttribute("width",txtURWidth);
        TextLL.setAttribute("width",txtLLWidth);
        TextLC.setAttribute("width",txtLCWidth);
        TextLR.setAttribute("width",txtLRWidth);

        TextUL.setAttribute("height",txtULHeight);
        TextUC.setAttribute("height",txtUCHeight);
        TextUR.setAttribute("height",txtURHeight);
        TextLL.setAttribute("height",txtLLHeight);
        TextLC.setAttribute("height",txtLCHeight);
        TextLR.setAttribute("height",txtLRHeight);

        TextUL.setAttribute("align","center");
        TextUC.setAttribute("align","center");
        TextUR.setAttribute("align","center");
        TextLL.setAttribute("align","center");
        TextLC.setAttribute("align","center");
        TextLR.setAttribute("align","center");

        TextUL.style.cssText=txtStyleUL;
        TextUC.style.cssText=txtStyleUC;
        TextUR.style.cssText=txtStyleUR;
        TextLL.style.cssText=txtStyleLL;
        TextLC.style.cssText=txtStyleLC;
        TextLR.style.cssText=txtStyleLR;

        setTimeout("nxtImg()", msecs);
      }

      function openPopUp(arg01, arg02, arg03)
      {
        winOptions = "'toolbar=0,"
        winOptions+= " scrollbars=0,"
        winOptions+= " statusbar=0,"
        winOptions+= " menubar=0,"
        winOptions+= " directories=0,"
        winOptions+= " resizable=0,"
        winOptions+= " location=0,"
        if (arg01== "Cent")
        {
          winOptions+= " width  = 450,"
          winOptions+= " height = 300,"
          winOptions+= " left   = 400"
          winOptions+= " top    = 500'"

          if (ptrC < 10)
          {
            preStr="picnads/img00"+eval(ptrC);
          }
          else if (ptrC < 100)
          {
            preStr="picnads/img0"+eval(ptrC);
            if (ptrC == 50)
            {
              winOptions+= " width  = 750,"
            }
          }
          else
          {
            preStr="picnads/img"+eval(ptrC);
          }

          imgId=preStr+"C.htm";

        }
        else if (arg01== "Rght")
        {
          winOptions+= " width  = 300,"
          winOptions+= " height = 300,"
          winOptions+= " left   = 460"
          winOptions+= " top    = 500'"

          if (ptrR < 10)
          {
            preStr="picnads/img00"+eval(ptrR);
          }
          else if (ptrR < 100)
          {
            preStr="picnads/img0"+eval(ptrR);
          }
          else
          {
            preStr="picnads/img"+eval(ptrR);
          }

          imgId=preStr+"R.htm";

        }
        else if (arg01== "Left")
        {
          winOptions+= " width  = 300,"
          winOptions+= " height = 300,"
          winOptions+= " left   = 460"
          winOptions+= " top    = 500'"

          if (ptrL < 10)
          {
            preStr="picnads/img00"+eval(ptrL);
          }
          else if (ptrL < 100)
          {
            preStr="picnads/img0"+eval(ptrL);
          }
          else
          {
            preStr="picnads/img"+eval(ptrL);
          }

          imgId=preStr+"L.htm";

        }
        else
        {
          winOptions+= " width  = " + arg02 + ","
          winOptions+= " height = " + arg03 + ","
          winOptions+= " left   = 460,"
          winOptions+= " top    = 500'"

          imgId=arg01+".htm";

        }
        new_window = window.open(imgId, 'window', winOptions);
      }

      function closePopUp()
      {
        new_window.close();
      }
