function RotatingAds( Directory )
  {
    var Name = new Array( ) ;
    var Ref  = new Array( ) ;
    var Type = new Array( ) ;
    Name[0]  = "PetrusmaWide.jpg" ;
    Ref[0]   = "//www.petrusma.com.au" ;
    Type[0]  = 0 ;
    Name[1]  = "KingGlazing.jpg" ;
    Ref[1]   = "//www.kingboroughglazing.com.au" ;
    Type[1]  = 0 ;
    Name[2]  = "GumLeaves.jpg" ;
    Ref[2]   = "//www.gumleaves.com.au" ;
    Type[2]  = 1 ;
    Name[3]  = "Lipscombe.gif" ;
    Ref[3]   = "//www.lipscombelarder.com" ;
    Type[3]  = 0 ;
    Name[4]  = "EFTel.jpg" ;
    Ref[4]   = "//www.central.soccertas.org.au/SponsorPages/EFTel.php" ;
    Type[4]  = 1 ;
    Name[5]  = "Shadforths.jpg" ;
    Ref[5]   = "//www.shadforths.com.au" ;
    Type[5]  = 0 ;
    Name[6]  = "EFTel.jpg" ;
    Ref[6]   = "//www.central.soccertas.org.au/SponsorPages/EFTel.php" ;
    Type[6]  = 1 ;
    Name[7]  = "Central2.gif" ;
    Ref[7]   = "//www.central.soccertas.org.au/?Func=Advertise" ;
    Type[7]  = 0 ;
    Name[8]  = "PetrusmaWide.jpg" ;
    Ref[8]   = "//www.petrusma.com.au" ;
    Type[8]  = 0 ;
    Name[9]  = "KingGlazing.jpg" ;
    Ref[9]   = "//www.kingboroughglazing.com.au" ;
    Type[9]  = 0 ;
    Name[10] = "GumLeaves.jpg" ;
    Ref[10]  = "//www.gumleaves.com.au" ;
    Type[10] = 1 ;
    Name[11] = "Lipscombe.gif" ;
    Ref[11]  = "//www.lipscombelarder.com" ;
    Type[11] = 0 ;
    Name[12] = "EFTel.jpg" ;
    Ref[12]  = "//www.central.soccertas.org.au/SponsorPages/EFTel.php" ;
    Type[12] = 1 ;
    Name[13] = "Shadforths.jpg" ;
    Ref[13]  = "//www.shadforths.com.au" ;
    Type[13] = 0 ;
    Name[14] = "EFTel.jpg" ;
    Ref[14]  = "//www.central.soccertas.org.au/SponsorPages/EFTel.php" ;
    Type[14] = 1 ;
    Name[15] = "Central.gif" ;
    Ref[15]  = "//www.central.soccertas.org.au/?Func=Advertise" ;
    Type[15] = 0 ;
    var NumAds = 16 ;
    var NameEQ = "AdCounter=" ;
    var Cookies = document.cookie.split( ';' ) ;
    if ( NumAds != 0 )
      { AdCount = 0 ;
        for ( var Loop = 0; Loop < Cookies.length; Loop++ )
          { var Cook = Cookies[ Loop ] ;
            while ( Cook.charAt( 0 ) == ' ' )
              { Cook = Cook.substring( 1, Cook.length ) ; }
            if ( Cook.indexOf( NameEQ ) == 0 )
              { AdCount = parseInt( Cook.substring( NameEQ.length, Cook.length )) + 1 ; }
          }
        var date = new Date() ;
        date.setTime( date.getTime() + ( 120 * 24 * 60 * 60 * 1000 )) ;
        var Expires = "; expires=" + date.toGMTString() ;
        document.cookie = "AdCounter=" + AdCount + Expires + "; path=/" ;
        AdCount = AdCount % NumAds ;
        document.write( "<A href=\"" + Ref[ AdCount ] + "\" Target=\"Ad\"><Img Src=\"" + Directory + "/" + Name[ AdCount ] + "\" Width=\"600\"></A><BR>" ) ;
      }
  }
