// RANDOM TEXT

textSamples = new Array();
textSamples[1] = "n., one whose earnings are the primary source of support for their dependents.";
textSamples[2] = "noun:  a person who supports their family with the money they earn.";
textSamples[3] = "noun:  a member of the family whose wages supply its livelihood.";
textSamples[4] = "the person who earns money to support a family.";
textSamples[5] = "n.  a person who earns a livelihood that supports dependents.";
textSamples[6] = "noun: the person in a family who works to provide the money that the family needs to live.";

function chooseText() {
    textCount = 6;
    thisText = Math.floor((Math.random() * textCount)) + 1
	document.write(textSamples[thisText]);
} 




// ROLLOVER

if (document.images) { 
  img1on = new Image();
  img1on.src =  '/images/nav_about_on.gif';  
  img2on = new Image();
  img2on.src =  '/images/nav_news_on.gif';
  img3on = new Image();
  img3on.src =  '/images/nav_events_on.gif'; 
  img4on = new Image();
  img4on.src =  '/images/nav_success_on.gif';
  img5on = new Image();
  img5on.src =  '/images/nav_sponsors_on.gif';
  img6on = new Image();
  img6on.src =  '/images/nav_donate_on.gif';
  img7on = new Image();
  img7on.src =  '/images/nav_updates_on.gif';
  img8on = new Image();
  img8on.src =  '/images/nav_contact_on.gif';
  img9on = new Image();
  img9on.src =  '/images/nav_home_on.gif';
  img10on = new Image();
  img10on.src =  '/images/nav_how_on.gif';
  
  img1off = new Image();
  img1off.src = '/images/nav_about_off.gif';
  img2off = new Image();
  img2off.src = '/images/nav_news_off.gif';
  img3off = new Image();
  img3off.src = '/images/nav_events_off.gif';
  img4off = new Image();
  img4off.src = '/images/nav_success_off.gif';
  img5off = new Image();
  img5off.src = '/images/nav_sponsors_off.gif';
  img6off = new Image();
  img6off.src = '/images/nav_donate_off.gif';
  img7off = new Image();
  img7off.src = '/images/nav_updates_off.gif';
  img8off = new Image();
  img8off.src = '/images/nav_contact_off.gif';
  img9off = new Image();
  img9off.src = '/images/nav_home_off.gif';
  img10off = new Image();
  img10off.src = '/images/nav_how_off.gif';
}

function imgOn(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "on.src");
  } 
}

function imgOff(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "off.src");
  }
}



// POP UP WINDOW

function newWindow(url,w,h) {
	var winl = (screen.width - w) / 2;
	var wint = ((screen.height - h) / 2) - 60;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1'
	win = window.open(url, 'newWin', winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}



// COPYRIGHT FOOTER

var copyrightHolder = " The Breadwinners Foundation"
var todaysDate = new Date();
var year = "" + todaysDate.getYear();
    year = "20" + year.substring(year.length-2, year.length);
    
function copyright() {
  document.write("Copyright &#169 " + year + copyrightHolder);
}

function copyright2() {
  document.write("Copyright &#169 2002-" + year + copyrightHolder);
}



// SEND USER

function sendMe(url) {
location.href = url
}



// DAY AND DATE
   
var thisDate = new Date();

var day = new Array();
day[0] = "Sunday";
day[1] = "Monday";
day[2] = "Tuesday";
day[3] = "Wednesday";
day[4] = "Thursday";
day[5] = "Friday";
day[6] = "Saturday";

var month = new Array();
month[0] = "January";
month[1] = "February";
month[2] = "March"; 
month[3] = "April";
month[4] = "May";
month[5] = "June";
month[6] = "July";
month[7] = "August";
month[8] = "September";
month[9] = "October";
month[10] = "November";
month[11] = "December";

var year = "" + thisDate.getYear();
year = "20" + year.substring(year.length-2, year.length);
var today = day[thisDate.getDay()] + ", " + month[thisDate.getMonth()] + " " + thisDate.getDate() + ", " + year;
