// JavaScript Document

function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}

function pcstutiladd() {
    document.getElementById("utilities").innerHTML = "<ul><li><a class='icn_home' href='http://www.pcsttsunamis.com'>Home</a></li><li><a class='icn_coaches' href='Contact.jsp?team=sepcst'>Coaches</a></li><li><a class='icn_contact' href='ContactMe.do?act=new&team=sepcst'>Contact</a></li><li><a class='icn_members' href='SearchMember.jsp?team=sepcst'>Members</a></li><li><a class='icn_changepswd' href='javascript:void(onChangePassword(false,'sepcst'))'>Change Pswd</a></li><li><a class='icn_tuinvoice' href='MyTuRecurrInvs.jsp?team=sepcst'>TU Invoices</a></li></ul>";
}

function pcstfoo() {
    document.getElementById("sub_menu1_1").innerHTML = "<a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5676'>Fundraising</a><a href='http://www.teamunify.com/Calendar.jsp?_tabid_=10241&team=sepcst'>TAB_Calendar</a>";
}

function pcstfixmenu() {
    document.getElementById("sub_menu1_1").innerHTML = "<a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5633'>Overview</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5078'>History</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5331'>Practice Schedules</a><a href='http://www.teamunify.com/Membership.jsp?team=sepcst'>Fees & Billing</a><a href='http://www.teamunify.com/ApplyForms.jsp?team=sepcst'>Forms</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5334'>Visiting Swimmers</a>";

    document.getElementById("sub_menu1_2").innerHTML = "<a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5676'>Fundraising</a><a href='http://www.teamunify.com/Calendar.jsp?_tabid_=10241&team=sepcst'>Calendar</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5331'>Practice Schedules</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5683'>FAQ</a>";

    document.getElementById("sub_menu1_3").innerHTML = "<a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5684'>Swimmer Awards</a><a href='http://www.teamunify.com/RecordsSwim.jsp?_tabid_=10248&team=sepcst'>Top Rankings</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5769'>SE Champions</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5686'>Time Standards</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5687'>Collegiate Swimming</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5688'>Swimmer Health</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5689'>Team Videos</a>";

    document.getElementById("sub_menu1_4").innerHTML = "<a href='http://www.teamunify.com/EventsCurrent.jsp?_tabid_=10238&team=sepcst'>Meet Schedule</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=4826'>Meet Fees</a><a href='http://www.teamunify.com/EventsCurrent.jsp?_tabid_=10238&team=sepcst'>Meet Sign-ups</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=4828'>Hotel info(local)</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=4829'>Meet Checklist</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=4830'>Meet Terminology</a>";

    document.getElementById("sub_menu1_5").innerHTML = "<a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5692'>Contact Us</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5693'>Groups & Services</a><a href='http://www.teamunify.com/Contact.jsp?team=sepcst'>Coaching Staff</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5695'>Locations</a><a href='http://www.teamunify.com/SubTabGeneric.jsp?_stabid_=5696&team=sepcst'>Board of Directors</a><a href='/SubTabGeneric.jsp?team=sepcst&_stabid_=5697'>Logo Usage</a>";
}

// /sepcst/UserFiles/Image/oldimages/word_icon.jpg
// /sepcst/UserFiles/Image/oldimages/pdf_sign.jpg
// sepcst/__doc__

// http://www.teamunify.com/sepcst/__doc__/doc_name

// fees = http://www.teamunify.com/Membership.jsp?team=sepcst

// forms = http://www.teamunify.com/ApplyForms.jsp?team=sepcst

// team records = http://www.teamunify.com/RecordsSwim.jsp?_tabid_=10248&team=sepcst

// calendar = http://www.teamunify.com/Calendar.jsp?_tabid_=10241&team=sepcst

// records = http://www.teamunify.com/Records.jsp?_tabid_=10243&team=sepcst

// news = http://www.teamunify.com/News.jsp?_tabid_=10237&team=sepcst

// events = http://www.teamunify.com/EventsCurrent.jsp?_tabid_=10238&team=sepcst

// photos =  http://www.teamunify.com/EventsPast.jsp?_tabid_=10239&team=sepcst

// coaches = http://www.teamunify.com/Contact.jsp?team=sepcst


// <style type="text/css" media="all">@import url(http://www.teamunify.com/sepcst/__doc__/pcst_styles.css);</style>

// <script type="text/javascript" src="http://www.teamunify.com/sepcst/__doc__/pcst_add.js"></script>
// <script language="javascript" type="text/javascript">pcstfixmenu()</script>



