$(document).ready(function(){
  // Add page Header & Footer information
  $('#header').html($.pgHeader());
  $('#footer').html($.pgFooter());

  //Add target = blank to links that start with http
  $('a[href^="http"]').attr('target','_blank');

  $('a[href^="http"]').click(function(){
    window.open(this.href);
    return false;
  });

  $('#home').attr('href', 'index.html');
  $('#schd_crnt').attr('href', 'schedule.html');
  //$('#schd_past').attr('href', 'schedule_past.html');
  $('#schd_2011').attr('href', 'schedule_2011.html');
  $('#schd_2010').attr('href', 'schedule_2010.html');
  $('#schd_2009').attr('href', 'schedule_2009.html');
  $('#schd_2008').attr('href', 'schedule_2008.html');
  $('#schd_2007').attr('href', 'schedule_2007.html');
  $('#schd_2006').attr('href', 'schedule_2006.html');
  $('#schd_2005').attr('href', 'schedule_2005.html');
  $('#schd_2004').attr('href', 'schedule_2004.html');
  $('#rules').attr('href', 'rules.html');
  $('#bd_roster').attr('href', 'bd_roster.html');
  $('#bd_history').attr('href', 'bd_history.html');
  //$('#bd_record').attr('href', 'bd_record.html');
  $('#rs_roster').attr('href', 'rs_roster.html');
  $('#rs_history').attr('href', 'rs_history.html');
  //$('#rs_record').attr('href', 'rs_record.html');  
  $('#bs_team').attr('href', 'bs_team.html');
  $('#bs_record').attr('href', 'bs_record.html');
  $('#stats').attr('href', 'stats.html');
  $('#stats').attr('href', 'stats.html');
  $('#photo_2011').attr('href', 'photo_2011.html');
  $('#photo_2010').attr('href', 'photo_2010.html');
  $('#photo_2009').attr('href', 'photo_2009.html');
  $('#photo_2008').attr('href', 'photo_2008.html');
  $('#photo_2007').attr('href', 'photo_2007.html');
  $('#photo_2006').attr('href', 'photo_2006.html');
  $('#photo_2005').attr('href', 'photo_2005.html');
  $('#sponsors').attr('href', 'sponsors.html');
  $('#news').attr('href', 'news.html');
  $('#sponsors').attr('href', 'sponsors.html');
  $('#contact').attr('href', 'contact.html');
  $('#links').attr('href', 'links.html');
  
  $(function(){
	$('ul.sf-menu').supersubs({ 
	minWidth:    12,   // minimum width of sub-menus in em units 
	maxWidth:    25,   // maximum width of sub-menus in em units 
	extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
					   // due to slight rounding differences and font-family 
	}).superfish();
	/*jQuery('ul.sf-menu').superfish(); */
  });
  
/*  $('#menu li ul').css({
    display: "none",
    left: "auto"
  });
  $('#menu li').hover(function() {
    $(this)
      .find('ul')
      .stop(true, true)
      .slideDown('fast');
  }, function() {
    $(this)
      .find('ul')
      .stop(true,true)
      .fadeOut('fast');
  });*/


  // AJAX Related ITEMS
  // Global Timeout for all AJAX requests (30 Seconds)
  $.ajaxSetup({
    timeout: 30000
  });

  // Player Statistics Search
  $("#stats_btn").click(function(e){
	var searchWait="<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />";
    e.preventDefault();
    var selectYr = $('#stats_yr').attr('value');
    selectYr = $.trim(selectYr);
    if (selectYr == null || selectYr == '') { selectYr = '2010'; }
    var url = selectYr + '_stats.html' + '  #content';
	$('#stat_info').html(searchWait).load(url, function() 
		{ $('#stats_tbl tbody tr:even').css('background-color','#f5f5f5');
		  $('#stats_tbl tbody tr:odd').css('background-color','#dddddd');
				});
  });
  
  // Past Schedule Search
  $("#schedule_btn").click(function(e){
    e.preventDefault();
    var selectYr = $('#schedule_yr').attr('value');
    selectYr = $.trim(selectYr);
    if (selectYr == null || selectYr == '') { selectYr = '2010'; }
	$.getScript('./scripts/cvbb_scores_2005.js');
    var url = 'schedule_' + selectYr + '.html' + '  #content';
	$('#schedule_info').html('<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />').load(url);
  });

  // Aircraft Manage Inventory JSP
  /*$("#man_inv button").click(function(e){
    e.preventDefault();
    var selectModel = $('#man_inv #model_type').attr('value');
    var selectStatus = $('#man_inv #model_status').attr('value');
    var selectDealer = $('#man_inv #dealer_acct').attr('value');
    selectModel = $.trim(selectModel);
    selectStatus = $.trim(selectStatus);
    selectDealer = $.trim(selectDealer);
    if (selectDealer == null) { selectDealer = ''; }
    var url = 'data?action=manage_inv&model=' + selectModel + '&status=' + selectStatus + '&dealer=' + selectDealer + ' #inventory_rs';
    if ($.sessionValid("1")) {
      $('#info').html('Searching&hellip').load(url, function() {
  	$('#inventory_rs tbody tr:even').css('background-color','#f5f5f5');}
      );
    }
  });*/

});

// Custom JQuery Functions
(function($){
  // Slide Show for Home Page
  $.indexSlideShow = function() {
	$('#slideshow').crossSlide({
		fade: 1,
		shuffle: true,
		doubleFade: true
	}, [
		{ src:  './images/main_1.jpg',
		  from: 'top left 1.5x',
		  to:   'center center 1x',
		  time: 6 },
		{ src:  './images/main_2.jpg',
		  from: 'center center 1x',
		  to:   'bottom center 1.5x',
		  time: 5 },				  
		{ src:  './images/main_3.jpg',
		  from: 'top left 1.5x',
		  to:   'bottom right 1x',
		  time: 6 },
		{ src:  './images/main_4.jpg',
		  from: 'top right 1.5x',
		  to:   'bottom left 1x',
		  time: 6 },
		{ src:  './images/main_5.jpg',
		  from: 'center center 1x',
		  to:   'bottom center 1.5x',
		  time: 5 },
		{ src:  './images/main_6.jpg',
		  from: 'center center 1x',
		  to:   'bottom center 1.5x',
		  time: 5 },
		{ src:  './images/main_7.jpg',
		  from: 'bottom center 1.5x',
		  to:   'center center 1x',
		  time: 6 },
		{ src:  './images/main_8.jpg',
		  from: 'center center 1x',
		  to:   'center center 1.5x',
		  time: 6 },
		{ src:  './images/main_9.jpg',
		  from: 'top right 1.5x',
		  to:   'bottom left 1x',
		  time: 6 },
		{ src:  './images/main_10.jpg',
		  from: 'center center 1x',
		  to:   'bottom center 1.5x',
		  time: 6 },		  
		{ src:  './images/main_11.jpg',
		  from: 'center center 1.5x',
		  to:   'center center 1x',
		  time: 6 },
		{ src:  './images/main_12.jpg',
		  from: 'center center 1x',
		  to:   'right center 1.5x',
		  time: 6 },		  
		], function(idx, img, idxOut, imgOut) {
			if (idxOut == undefined) {
				// starting single image phase, put up caption
				$('div.caption').text(img.alt).animate({ opacity: .7 })
			} else {
				// starting cross-fade phase, take out caption
				$('div.caption').fadeOut()
			}
		}		
	)
  };  // Slideshow Function
  
  $.indexSlideShow2 = function() {
	$('#slideshow').crossSlide({
		sleep: 3,
		//speed: 45,
		fade: 2
	}, [
		{ src: './images/main_1.jpg', dir: 'up' },
		{ src: './images/main_2.jpg', dir: 'down' },
		{ src: './images/main_3.jpg', dir: 'up' },
		{ src: './images/main_4.jpg', dir: 'down' },
		{ src: './images/main_5.jpg', dir: 'up' },
		{ src: './images/main_6.jpg', dir: 'down' },
		{ src: './images/main_7.jpg', dir: 'up' },
		{ src: './images/main_8.jpg', dir: 'down' },
		{ src: './images/main_9.jpg', dir: 'up' },
		{ src: './images/main_10.jpg', dir: 'down' },
		{ src: './images/main_11.jpg', dir: 'up' },
		{ src: './images/main_12.jpg', dir: 'down' }
		]);
  };  // Slideshow 2
  
  $.bbQuote = function() {
	var pgQuote = new Array 
	  ("Baseball is ninety percent mental and the other half is physical. - Yogi Berra",
	   "All pitchers are liars or crybabies. - Yogi Berra",
	   "He hits from both sides of the plate. He's amphibious. - Yogi Berra",
	   "How can you think and hit at the same time? - Yogi Berra",
	   "I think Little League is wonderful. It keeps the kids out of the house. - Yogi Berra",
	   "Trying to lead you ballplayers is like trying to herd cats. - Don 'Chilly' Alvord",
	   "So I'm ugly. So what? I never saw anyone hit with his face. - Yogi Berra",
	   "The good rising fastball is the best pitch in baseball. - Tom Seaver",
	   "The other teams could make trouble for us if they win. - Yogi Berra",
	   "You wouldn't have won if we'd beaten you. - Yogi Berra",
	   "You can observe a lot by just watching. - Yogi Berra", 
	   "If there was ever a man born to be a hitter it was me. - Ted Williams",
	   "If you come to a fork in the road, take it. - Yogi Berra",
	   "Baseball is almost the only place in life where a sacrifice is really appreciated. - Mark Beltaire",
	   "When I put on my uniform, I feel I am the proudest man on earth. - Roberto Clemente",
	   "Baseball is like church. Many attend, few understand. - Leo Durocher",
	   "Baseball is a game of inches. - Branch Rickey",
	   "Close don't count in baseball. Close only counts in horseshoes and grenades. - Frank Robinson",
	   "Every strike brings me closer to the next home run. - Babe Ruth",
	   "One of the beautiful things about baseball is the history. - Jim Abbott",
	   "I had only one superstition. I made sure to touch all the bases when I hit a home run. - Babe Ruth",
	   "I don't want them to forget \(Babe\) Ruth, I just want them to remember me! - Hank Aaron",
	   "The first rule of baseball is to get a good ball to hit. - Roger Hornsby",
	   "It's supposed to be fun, the man says 'Play Ball' not 'Work Ball' you know. - Wille Stargell",
	   "Lady, I'm not an athlete. I'm a baseball player. - John Kruk",
	   "Playing baseball is not real life. It's a fantasy world... It's a dream come true. - Dale Murphy",
	   "In the great department store of life, baseball is the toy department. - Unknown",
	   "Players have two things to do. Play and keep their mouths shut. - Sparky Anderson",
	   "The two most important things in life: good friends and a strong bullpen. - Bob Gibson",
	   "It ain't braggin' if you can back it up. - Dizzy Dean", 
	   "We're the best team in baseball, but not by much. - Sparky Anderson",
	   "The only reason I'm coming out here tomorrow is the schedule says I have to. - Sparky Anderson",
	   "I've changed my mind about it (DH) - instead of being bad, it stinks. - Sparky Anderson",
	   "Trying to throw a fastball by Henry Aaron is like trying to sneak a sunrise past a rooster. - Curt Simmons",
	   "I don't see pitches down the middle anymore - not even in batting practice. - Hank Aaron",
	   "My pitching philosophy is simple - keep the ball way from the bat. - Satchel Paige",
	   "I'd walk through hell in a gasoline suit to play baseball. - Pete Rose",
	   "I'm just like everybody else. I have two arms, two legs and four-thousand hits. - Pete Rose",
	   "Bob Gibson pitches as though he's double parked. - Vin Scully",
	   "Hitting is fifty percent above the shoulders. - Ted Williams",
	   "You have to hit the fastball to play in the big leagues. - Ted Williams", 
	   "Hey, big mouth \(yelling out to a heckler\), how do you spell triple? - Shoeless Joe Jackson",
	   "Hitting the ball was easy. Running around the bases was the tough part. - Mickey Mantle",
	   "Well, baseball was my whole life. Nothing's ever been as fun as baseball. - Mickey Mantle",
	   "You don't realize how easy this game is until you get up in that broadcasting booth. - Mickey Mantle",
	   "I had slumps that lasted into the winter. - Bob Uecker",
	   "I led the league in \"Go get'em next time.\" - Bob Uecker",
	   "That last one sounded kinda high to me. - Babe Ruth",
	   "A pitcher's got to be good and he's got to be lucky to get a no hit game. - Cy Young",
	   "It helps if the hitter thinks you're a little crazy. - Nolan Ryan",
	   "Most pitchers are too smart to manage. - Jim Palmer",
	   "Show me a guy who can't pitch inside and I'll show you a loser. - Sandy Koufax",
	   "I found a delivery in my flaw. - Dan Quisenberry",
	   "When I throw a curve that hangs and it goes for a hit, I want to chew up my glove. - Don Drysdale",
	   "I can throw out any man alive. - Johnny Bench",
	   "You know, this game's not very much fun when you're only hitting .247. - Reggie Jackson",
	   "It could be, it might be... It is, A home run! - Harry Caray",
	   "Back, back, back, back... Gone! - Chris Berman",
	   "Hello again, everybody. It's a bee-yooo-tiful day for baseball. - Harry Caray",
	   "I don't want to play golf. When I hit a ball, I want someone else to go chase it. - Roger Hornsby");
	   
	var lsSec, lsTime, lsItem;
	lsTime = new Date();
	lsSec = lsTime.getSeconds();
	lsItem = lsSec.toString();
	return pgQuote[lsItem];
  };  // bbQuote
  
  $.sponsorAd = function() {
	var maxAdNo = 8;
	var adNo=9999;
	var myAd = new Array();
	myAd[0] = '<img src="images/scrapbookgarden.gif" width="72" height="81" alt="" border="0"><br /><span class="em-25">Scrapbook<br />Garden</span>';
	myAd[1] = '<img src="images/statefarmlogoweb.gif" width="100" height="86" alt="" border="0"><br /><span class="em-10">Kevin Shields</span>';
	myAd[2] = '<img src="images/historians-logo2web.gif" width="142" height="90" alt="" border="0">';
	myAd[3] = '<img src="images/cornejosons.gif" width="175" height="75" alt="" border="0">';
	myAd[4] = '<img src="images/dd_logo.gif" width="150" height="87" alt="" border="0">';
	myAd[5] = '<img src="images/quikprintlogo.gif" width="175" height="76" alt="" border="0">';
	myAd[6] = '<img src="images/ewjlogo.gif" width="145" height="100" alt="" border="0">';
	myAd[7] = '<img src="images/npc_logo.gif" width="150" height="75" alt="" border="0">';
	myAd[8] = '<img src="images/hatmanjack.jpg" width="150" height="85" alt="" border="0">';
	// No longer Sponsors
	//myAd[9] = '<img src="images/sluggers-logoweb.gif" width="165" height="75" alt="" border="0">';
	//myAd[10] = '<img src="images/d_mlogoweb.gif" width="165" height="71" alt="" border="0">';
	//myAd[0] = '<img src="images/cralogoweb.gif" width="165" height="86" alt="" border="0">';

	if (adNo == 9999) {
		adNo = Math.round(Math.random() * maxAdNo);
	} else {
		if (adNo == maxAdNo) {
			adNo = 0;
		} else {
		adNo++;
		}
	}
	 return myAd[adNo];
  };  // sponsorAd
  
  $.BCformatDate = function() {
	var dayOWeek = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	var nameOMonth = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	var thisInstant = new Date();
	var dayString = dayOWeek[thisInstant.getDay()];
	var monthString = nameOMonth[thisInstant.getMonth()];
	var yearNum = thisInstant.getYear();
	if (yearNum < 1900) { yearNum+=1900; }

	infoString = dayString + " | " + monthString + " " + thisInstant.getDate() + ", " + yearNum ;
	return infoString;
  };  // BCformatDate
  
  $.gameScoreIdx = function(game) {
	var lsIdxScore;
	lsIdxScore  = '<table class="fltlft" border="0" width="172px" cellpadding="0" cellspacing="0">';
	lsIdxScore += '<tr>';
	lsIdxScore += '<td colspan="2" align="middle" class="em-10" width="90%">' + '<u>' + GmDate[game] + '</u></td>';
	lsIdxScore += '<td align="right" class="" width=10% rowspan=3>&nbsp;</td>';
	lsIdxScore += '</tr>';
	lsIdxScore += '<tr>';
	lsIdxScore += '<td align="left" class="em-10" width="82%">' + GmTeam1[game] + '</td>';
	lsIdxScore += '<td align="right" class="em-10" width="8%">' + GmScore1[game] + '</td>';
	lsIdxScore += '</tr>';
	lsIdxScore += '<tr>';
	lsIdxScore += '<td align="left" class="em-10" width="82%">' + GmTeam2[game] + '</td>';
	lsIdxScore += '<td align="right" class="em-10" width="8%">' + GmScore2[game] + '</td>';
	lsIdxScore += '</tr>';
	lsIdxScore += '</table>';
    //window.document.writeln('<span class="em-10" style="text-align: left;">');
	//window.document.writeln('<p class="fltlft">&nbsp;</p');
	//window.document.writeln('<p class="fltlft">');
	//window.document.writeln('<u>' + GmDate[game] + '</u><br />');
	//window.document.writeln(GmTeam1[game]+'<br />');
	//window.document.writeln(GmTeam2[game]+'<br />');
	//window.document.writeln('</p>');
	//window.document.writeln('<p class="fltlft"></p>');
	//window.document.writeln('<p class="fltlft"><br />');
	//window.document.writeln(GmScore1[game]+'<br />');
	//window.document.writeln(GmScore2[game]);
	//window.document.writeln('</p>');
	//window.document.writeln('</span>');
	return lsIdxScore;
  };  // gameScoreIdx
  
  $.gameScoreSchd = function(game, linebreak) {
    var lsSchdScore;
	lsSchdScore  = '';
    if (linebreak == '1') {
	  lsSchdScore += '<br class="clearfloat" />';
    } else {
	  //lsSchdScore += '<p class="fltlft">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p';
    }
	lsSchdScore += '<table class="fltlft" border="0" width="225px" cellpadding="0" cellspacing="0">';
	lsSchdScore += '<tr>';
	lsSchdScore += '<td colspan="4" align="left" class=""><b><u>Game Tally:</u></b></td>';
	lsSchdScore += '</tr>';
	lsSchdScore += '<tr>';
	lsSchdScore += '<td align="right" class="" width="5%"></td>';
	lsSchdScore += '<td align="left" class="" width="80%">' + GmTeam1[game] + '</td>';
	lsSchdScore += '<td align="right" class="" width="10%">' + GmScore1[game] + '</td>';
	lsSchdScore += '<td class="" width="5%">&nbsp;</td>';
	lsSchdScore += '</tr>';
	lsSchdScore += '<tr>';
	lsSchdScore += '<td align="right" class="" width="5%"></td>';
	lsSchdScore += '<td align="left" class="" width="80%">' + GmTeam2[game] + '</td>';
	lsSchdScore += '<td align="right" class="" width="10%">' + GmScore2[game] + '</td>';
	lsSchdScore += '<td class="" width="5%">&nbsp;</td>';
	lsSchdScore += '</tr>';
	lsSchdScore += '</table>';
	//window.document.writeln('<p class="fltlft">');
	//window.document.writeln('<b><u>Game Tally:</u></b><br />');
	//window.document.writeln('&nbsp;&nbsp;'+GmTeam1[game]+'<br />');
	//window.document.writeln('&nbsp;&nbsp;'+GmTeam2[game]+'<br />');
	//window.document.writeln('</p>');
	//window.document.writeln('<p class="fltlft">&nbsp;&nbsp;&nbsp;</p>');
	//window.document.writeln('<p class="fltlft"><br />');
	//window.document.writeln(GmScore1[game]+'<br />');
	//window.document.writeln(GmScore2[game]);
	//window.document.writeln('</p>');
	return lsSchdScore;
  } // gameScoreSchd
  
  $.hdrNavDiv = function() {
	var lsHdrNav;
	lsHdrNav  = '<div id="hdr_nav" class="em-25">';
	lsHdrNav += '<ul class="sf-menu">';
	lsHdrNav += '<li>';
	lsHdrNav += ' <a id="home" href="#">Home</a>';
	lsHdrNav += '</li>';
	
	lsHdrNav += '<li>';
	lsHdrNav += '<a href="#">Schedule</a>';
	lsHdrNav += '<ul>';
	lsHdrNav += ' <li><a id="schd_crnt" href="#">Current</a></li>';
	lsHdrNav += ' <li>';
	//lsHdrNav += '     <a id="schd_past" href="#">Past Years</a>';
	lsHdrNav += '  <a href="#">Past Years</a>';
	lsHdrNav += '  <ul>';
	lsHdrNav += '   <li><a id="schd_2011" href="#">2011</a></li>';
	lsHdrNav += '   <li><a id="schd_2010" href="#">2010</a></li>';
	lsHdrNav += '   <li><a id="schd_2009" href="#">2009</a></li>';
	lsHdrNav += '   <li><a id="schd_2008" href="#">2008</a></li>';
	lsHdrNav += '   <li><a id="schd_2007" href="#">2007</a></li>';
	lsHdrNav += '   <li><a id="schd_2006" href="#">2006</a></li>';
	lsHdrNav += '   <li><a id="schd_2005" href="#">2005</a></li>';
	lsHdrNav += '   <li><a id="schd_2004" href="#">2004</a></li>';
	lsHdrNav += '  </ul>';
	lsHdrNav += ' </li>';
	lsHdrNav += '</ul>';
	lsHdrNav += '</li>';
	
	lsHdrNav += '<li>';
	lsHdrNav += '<a id="rules" href="#">Rules</a>';
	lsHdrNav += '</li>';

	lsHdrNav += '<li>';
	lsHdrNav += '<a href="#">Teams</a>';
	lsHdrNav += '<ul>';
	lsHdrNav += ' <li>';
	lsHdrNav += '  <a href="#">Bull Dozers</a>';
	lsHdrNav += '  <ul>';
	lsHdrNav += '   <li><a id="bd_roster" href="#">Roster & Records</a></li>';
	lsHdrNav += '   <li><a id="bd_history" href="#">History</a></li>';
	//lsHdrNav += '    <li><a id="bd_record"href="#">Team Records</a></li>';
	lsHdrNav += '  </ul>';
	lsHdrNav += ' </li>';
	lsHdrNav += ' <li>';
	lsHdrNav += '  <a href="#">Red Stockings</a>';
	lsHdrNav += '  <ul>';
	lsHdrNav += '   <li><a id="rs_roster" href="#">Roster & Records</a></li>';
	lsHdrNav += '   <li><a id="rs_history" href="#">History</a></li>';
	//lsHdrNav += '    <li><a id="rs_record" href="#">Team Records</a></li>';
	lsHdrNav += '  </ul>';
	lsHdrNav += ' </li>';
	lsHdrNav += ' <li>';
	lsHdrNav += '  <a href="#">Bull Stockings</a>';
	lsHdrNav += '  <ul>';
	lsHdrNav += '   <li><a id="bs_team" href="#">Information</a></li>';
	lsHdrNav += '   <li><a id="bs_record" href="#">Team Records</a></li>';
	lsHdrNav += '  </ul>';
    lsHdrNav += ' </li>';
	lsHdrNav += ' <li>';
	lsHdrNav += '  <a id="stats" href="#">Player Stats</a>';
	lsHdrNav += ' </li>';
	lsHdrNav += '</ul>';
	lsHdrNav += '</li>';
	
	lsHdrNav += '<li>';
	lsHdrNav += '<a href="#">Highlights</a>';
	lsHdrNav += '<ul>';
	lsHdrNav += ' <li>';
	lsHdrNav += ' <a href="#">Photos</a>';
	lsHdrNav += '  <ul>';
	lsHdrNav += '   <li><a id="photo_2011" href="#">2011</a></li>';
	lsHdrNav += '   <li><a id="photo_2010" href="#">2010</a></li>';
	lsHdrNav += '   <li><a id="photo_2009" href="#">2009</a></li>';
	lsHdrNav += '   <li><a id="photo_2008" href="#">2008</a></li>';
	lsHdrNav += '   <li><a id="photo_2007" href="#">2007</a></li>';
	lsHdrNav += '   <li><a id="photo_2006" href="#">2006</a></li>';
	lsHdrNav += '   <li><a id="photo_2005" href="#">2005</a></li>';
	lsHdrNav += '  </ul>';
	lsHdrNav += ' </li>';
	lsHdrNav += ' <li>';
	lsHdrNav += '  <a id="news" href="#">News Stories</a>';
	lsHdrNav += ' </li>';
	lsHdrNav += '</ul>';
	lsHdrNav += '</li>';
	
	lsHdrNav += '<li>';
	lsHdrNav += '<a id="sponsors" href="#">Sponsors</a>';
	lsHdrNav += '</li>';
	
	lsHdrNav += '<li>';
	lsHdrNav += '<a id="contact" href="#">Contact Us</a>';
	lsHdrNav += '</li>';
	
	lsHdrNav += '<li>';
	lsHdrNav += '<a id="links" href="#">Links</a>';
	lsHdrNav += ' </li>';
	lsHdrNav += '</ul>';
	lsHdrNav += '</div>';
	return lsHdrNav;
  }  // hdrNavDiv
  
  $.pgHeader = function() {
	var lsHeader;	
	lsHeader  = '<img class="hdr_img" src="./images/cowbaselogocolor.gif" alt="cowtown vintage baseball"/>';
	lsHeader += '<div id="hdr_txt">';
	lsHeader += ' <h1 class="em2BC">Cowtown Vintage Base Ball</h1>';
	lsHeader += ' <h2 class="em-10BC">1871 Sim Park Drive - Wichita, Kansas 67203-3203</h2>';
	lsHeader += ' <h2 class="em-10BC">Old Cowtown Museum - 316.219.1871</h2>';
	lsHeader += ' <hr width="100%" />';
	lsHeader += ' <h3 class="em-34">' + $.bbQuote() + '  </h3>';
	lsHeader += '</div>';
	lsHeader += $.hdrNavDiv();
	return lsHeader;
  };  // pgHeader
  
  $.pgFooter = function() {
	var lsFooter;
	lsFooter  = '<div id="ftr_txt">';
	lsFooter += '<h1 class="em_10BC">Old Cowtown Museum</h1>';
	lsFooter += '<h2 class="emc">1871 Sim Park Drive - Wichita, Kansas 67203-3203</h2>';
	lsFooter += '<h2 class="emc">316.219.1871</h2>';
	lsFooter += '</div>';
	lsFooter += '<a id="cowtown" href="http://www.oldcowtown.org"><img class="ftr_img" src="./images/ocm_logo.jpg" alt="old cowtown museum"/></a>';
	return lsFooter;
  };  // pgFooter
  
})(jQuery);

