var noresource=99;var none=0;var inline=1;var block=2;
var about_ = "topAboutCss";
var basket_ = "topBasketball";
var base_ = "topBaseball";
function GE (id) { return document.getElementById(id);}

function showElem(e,t,ud) {
 switch (t) {
  case none   : e.style.display = "none";break;
  case inline : e.style.display = "inline";break;
  case block  : e.style.display = "block";break;
    default: e.style.display = "none";
 }
 if(ud!=null) {eval(ud+'=e.id;');}  }

function subStatus(v) { if (v) { showElem(GE(cSplash),none);}
 showElem(GE('idSubMenu'),v); this.location="#ptop";}

function aboutCSS(w) {
 showElem(GE(cMid),none); showElem(GE(cSplash),none); 

showElem(GE(w),block,'cSplash');

 showElem(GE("midAboutCss"),block,'cMid'); subStatus(none);}

function compReports() { subStatus(block);
 showElem(GE('topCompReports'),block,'cSplash');}

function leagueManagement() {  subStatus(block);
 showElem(GE('topLeagueManagement'),block,'cSplash'); }

function affordablePrice() {  subStatus(block);
 showElem(GE('topAffordablePricing'),block,'cSplash'); }

function goHome() { showElem(GE(cSplash),none); subStatus(none);
 if (!cMid.match(/midDefault/)) { showElem(GE(cMid),none);showElem(GE("midDefault"),block,'cMid');}; }

function contactUs() { goHome(); showElem(GE("contactUs"),block,'cSplash'); }

function getHR(n){
  goHome();
  showElem(GE("topResources"),block,'cSplash');
  if (n) {
      GE("resourceBox").style.backgroundColor="#fff8dc";
      showElem(GE("bbres"),none); showElem(GE("bbsw"),block); showElem(GE("bksw"),none);
      setTimeout('showElem(GE("bkres"),block)',50);
  } else {
      GE("resourceBox").style.backgroundColor="#fefedc";
      showElem(GE("bkres"),none); showElem(GE("bksw"), block); showElem(GE("bbsw"),none);
      setTimeout('showElem(GE("bbres"),block)',50);
  }
}

var rbhColor = new Array ("50f8ff","0033cc","cc0000","3366ff","00cc00","cc9900");
var rbhTitle = new Array ("&nbsp;","ESPN","CNN","Sportsline","USA Today","Additional Resources");
var rbhWidth = new Array (1,20,20,20,20,20);

function resBoxHead () {
 document.write('<table border=0 cellpadding=1 cellspacing=1 bgcolor="black" width="738" id="bbres" style="display:none;vertical-align:top;">\n');
 document.write('<tr class="rhead">');
 for (var r=1;r<=5;r++) {
   document.write ('<td width="' + rbhWidth[r] + '" bgcolor="#' + rbhColor[r] + '"><div class="resbox" style="text-align:center;">' + rbhTitle[r] + '</div></td>\n');
 }
 document.write ('</tr>');
}

var cSplash = "topDefault";
var cMid = "midDefault";
var cSub = 0;

var bN = new Array ('Basic Cost','Roster Entry', 'Transaction Entry - Email/Fax' , 'Mailed Report');
var bA = new Array ('16.00', '6.00','6.00','40.00'); var bC = new Array ('Per Team', 'Per Team','Per Team','Per Address');
var fe = '<tr><td class="label">'; var m1 = '</td><td class="price">';
var m2 = '</td><td class="comment">'; var te = '</td></tr>\n';
function pItem(n,a,c) {
  var pV = fe + n + m1 + a + m2 + c + te;  document.write (pV);}
function addExtras() { return;  document.write ('<tr><td class="extra" colspan="3">Additional Services</td><tr>\n'); }
function addCaveat() {  document.write ('<tr><td class="caveat" colspan="3">Prices subject to change.  These prices are current as of May 1st, 2007.</td><tr>\n'); }
function pList() {  document.write('<div class="contain" style="text-align:center;">');
   //document.write ('<div style="border:1px solid black;border:none;"><div class="phead">Fantasy Basketball & Baseball Stat Service</div>');
   document.write ('<div style="border:1px solid black;border:none;"><div class="phead">Fantasy Baseball & Basketball Stat Service</div>');
   document.write ('<table border="0" width="100%" cellspacing="0" cellpadding="0">');
   for (var x=0;x<bN.length-3;x++) { pItem(bN[x],bA[x],bC[x]); if (!x) { addExtras();} if (x == bN.length-2) { addCaveat();} }
   document.write('</table></div></div>');}

