﻿// JScript File


function StartUp()  {

   
    
}



var ThumbActiveID = '';
var ImgActiveID;


var donImgArr = new Array();
donImgArr[0] = "logo_JasonsDreams_Fade.gif";
donImgArr[1] = "logo_FoodBankMOC_Fade.gif";
donImgArr[2] = "logo_BBBSofMC_Fade.gif";
donImgArr[3] = "logo_JDRF_Fade.gif";
donImgArr[4] = "logo_CampHappiness_Fade.gif";
donImgArr[5] = "logo_OpenDoor_Fade.gif";
donImgArr[6] = "logo_CFR_Fade.gif";
donImgArr[7] = "logo_HOFNOD_Fade.gif";


var donTxtArr = new Array();
donTxtArr[0] = "Jason's Dreams for Kids Foundation";
donTxtArr[1] = "The Foodbank of Monmouth/Ocean County";
donTxtArr[2] = "Big Brothers Big Sisters of Monmouth County";
donTxtArr[3] = "Juvenile Diabetes Research Foundation - Central NJ";
donTxtArr[4] = "Camp Happiness";
donTxtArr[5] = "Freehold Area Open Door";
donTxtArr[6] = "Casting for Recovery";
donTxtArr[7] = "Hooked on Fishing - Not On Drugs";


var donURLArr = new Array();
donURLArr[0] = "http://www.jasonsdreamsforkids.com";
donURLArr[1] = "http://www.foodbankmoc.org";
donURLArr[2] = "http://www.bbbsmonmouth.org";
donURLArr[3] = "http://www.jdrf.org/chapters/NJ/Central-Jersey";
donURLArr[4] = "http://www.njbca.org";
donURLArr[5] = "http://freeholdareaopendoor.org";
donURLArr[6] = "http://www.castingforrecovery.org";
donURLArr[7] = "http://www.futurefisherman.org/programs/hofnod.php";


var donActionDate = new Array();
donActionDate[0] = "6/2/2007";
donActionDate[1] = "7/1/2007";
donActionDate[2] = "7/22/2007";
donActionDate[3] = "7/8/2007";
donActionDate[4] = "";
donActionDate[5] = "7/1/2007";
donActionDate[6] = "6/1/2007";
donActionDate[7] = "6/24/2007";


var donAction = new Array();
donAction[0] = "Tournament sponsor Coors donated $2,500 to the Jason's Dreams for Kids Foundation.  Hi-Mar donated proceeds from the sale of tournament T-shirts.";
donAction[1] = "Members of Hi-Mar who participated in the Hi-Mar Spring Tournament collectively donated several hundred lbs of striper filets to the Foodbank of Monmouth/Ocean County.";
donAction[2] = "Hi-Mar hosted a kids fishing trip aboard the Captain Dave for youngsters assocated with Big Brothers Big Sisters of Monmouth County.  Hi-Mar donated the fluke fishing trip & members volunteered their time.";
donAction[3] = "Hi-Mar hosted a kids fishing trip aboard the Captain Dave for youngsters assocated with Juvenile Diabetes Research Foundation  - Central Jersey Chapter (JDRF).  Hi-Mar donated the fluke fishing trip & members volunteered their time..";
donAction[4] = "The club has also adopted Camp Happiness in Leonardo, which is a home for blind men.  The club members provide a personal touch for this organization by routinely dropping off fresh fish for the residents of the home.";
donAction[5] = "Donation";
donAction[6] = "Donation";
donAction[7] = "Hi-Mar hosted a kids fishing trip aboard the Captain Dave for youngsters assocated with Hooked on Fishing - Not on Drugs (HOFNOD).  Hi-Mar donated the fluke fishing trip & members volunteered their time.";


var x = 1; 
var y = 1; 
var c = -1;
var d = 8;
var lto;

function movePtr(inc)  {

    
    if (inc==-1 && c==0) {
        c=d-2;
     } else if (inc==-1) {
        c=c-2;
     }  
     
    x=1; 
    clearTimeout(lto);
    startClock();

}

function startClock(){ 
    
    
    var imgDon = document.getElementById('DoneeImg');
    var URLDon = document.getElementById('DoneeURL');
    var URLDon2 = document.getElementById('DoneeURL2');
    var txtDon = document.getElementById("DoneeTxt").firstChild;
    var DateDon = document.getElementById("donActionDate").firstChild;
    var DescDon = document.getElementById("donAction").firstChild;
    
    lto=setTimeout("startClock()", 1000) 
    x = x-y; 
    
    if(x==0){
        
        x=7; 
        c = (c+1)%d;
        imgDon.src='/images/' + donImgArr[c];
        imgDon.alt=donTxtArr[c];
        txtDon.data=donTxtArr[c];
        URLDon.href=donURLArr[c];
        URLDon2.href=donURLArr[c];
        DateDon.data=donActionDate[c];
        DescDon.data=donAction[c];
        
        //txtDon.innerText=donTxtArr[c];  innerText only supported by IE       
       } 
} 




function SponsorMouseOver(picID) {

    var imgNext;
    var imgActive;
    
    imgActive = document.getElementById(ImgActiveID);
    if (imgActive != null) {
        imgActive.style.borderColor="";
        imgActive.style.borderWidth="";
    }
    imgNext = document.getElementById(picID);
    imgNext.style.borderColor = "red";
    imgNext.style.borderWidth = "thick";
    ImgActiveID = picID;
    return false;
      
}



function ToggleList(listID) {

    var lObj;
    
    lObj = document.getElementById(listID);
    
    if (lObj.style.display == 'none' || lObj.style.display == "") {
          lObj.style.display = 'block';
        } else {
          lObj.style.display = 'none';
        }

   
}

function AboutMO(z) {

    var nObj, pObj;

    nObj = document.getElementById(z);
    pObj = document.getElementById(AbtActiveID);
    pObj.style.display = 'none';
    nObj.style.display = 'block';
    
    AbtActiveID = z;
    

    return false;
}






function thumbMouseOver(picID) {

    var x, y;
    var thumbWidth, thumbHeight;
    var divObj;
    var picObj;
    var refObj;
    var thumbObj;
    
   
    divObj = document.getElementById('picDiv');
    picObj = document.getElementById('picImg');
    refObj = document.getElementById(picID);
    thumbObj = document.getElementById('thumb' + picID);
    
    
    
    
    thumbWidth = thumbObj.width;
    thumbHeight = thumbObj.height;
    picObj.src = refObj.href;
    picObj.width = thumbWidth * 3;
    picObj.height = thumbHeight * 3;
    
    
    x = getPageOffsetLeft(refObj);
    y = getPageOffsetTop(refObj);
    
    if (x<500) {
        x = x + thumbWidth;        
    } else {
        x = x - picObj.width;        
    }
     
    if (y<300) {
        y = y + thumbHeight;        
    } else {
        y = y - picObj.height;        
    }

    
  // For Firefox, adjust position.
  
  if (browser.isIE!=true) {
    
   y -=37;
   
  }
    
    
    divObj.style.left = x + "px";
    divObj.style.top = y + "px";
    divObj.style.visibility = "visible";
    
    
    return false;
}



function thumbMouseOut() {


    var divObj;
    divObj = document.getElementById('picDiv');
    divObj.style.visibility = "hidden";
           
    return false;
    
}






