 /* ****************** P_ Group Variables ********************* */
var P_Titles = new Array(9);
P_Titles[0] = "The Grand Old Game";
P_Titles[1] = "With wave of injuries caused by broken bats, is it time to turn maple into ash?";
P_Titles[2] = "Shattering Maple Bats P_Raise Concerns";
P_Titles[3] = "More players breaking their tools";
P_Titles[4] = "Baseball at breaking point over maple bats";
P_Titles[5] = "In M.L.B. Study, 257 Broken Bats . . . and Counting";
P_Titles[6] = "MLB, union meet over maple bats Next step is gathering information about remedies";
P_Titles[7] = "MLB researching frequent shattering of maple bats";
P_Titles[8] = "Baseball may ban maple bats";

var P_cIDs = new Array(9);
P_cIDs[0] = "Home";
P_cIDs[1] = "Idaho Statesman";
P_cIDs[2] = "Chicago Tribune";
P_cIDs[3] = "USA Today";
P_cIDs[4] = "Yahoo Sports";
P_cIDs[5] = "NY Times";
P_cIDs[6] = "MLB";
P_cIDs[7] = "Baltimore Sun"
P_cIDs[8] = "AP";

var P_Js = new Array(9);
P_Js[0] = "BOB";
P_Js[1] = "Brian Murphy";
P_Js[2] = "Dave van Dyck";
P_Js[3] = "P_Ray Glier and Mel Antonen";
P_Js[4] = "Jeff Passan";
P_Js[5] = "Jack Curry";
P_Js[6] = "Alyson Footer";
P_Js[7] = "Dan Connolly"
P_Js[8] = "P_Ronald Blum";

var P_Ds = new Array(9);
P_Ds[0] = "";
P_Ds[1] = "June 29, 2008";
P_Ds[2] = "June 25, 2008";
P_Ds[3] = "May 24, 2005";
P_Ds[4] = "May  9, 2008";
P_Ds[5] = "July 25, 2008";
P_Ds[6] = "June 24, 2008";
P_Ds[7] = "July 27, 2008"
P_Ds[8] = "June 25, 2008";

var P_IDs = new Array(9);
P_IDs[0] = "B00";
P_IDs[1] = "B01";
P_IDs[2] = "B02";
P_IDs[3] = "B03";
P_IDs[4] = "B04";
P_IDs[5] = "B05";
P_IDs[6] = "B06";
P_IDs[7] = "B07";
P_IDs[8] = "B08";

var P_gs = new Array(9);
P_gs[0] = "2";
P_gs[1] = "2";
P_gs[2] = "2";
P_gs[3] = "4";
P_gs[4] = "3";
P_gs[5] = "2";
P_gs[6] = "1";
P_gs[7] = "2";
P_gs[8] = "1";

var P_On = new Array(9);
P_On[0] = "1";
P_On[1] = "1";
P_On[2] = "1";
P_On[3] = "1";
P_On[4] = "1";
P_On[5] = "0";
P_On[6] = "0";
P_On[7] = "1";
P_On[8] = "0";

var P_Row1IDs = new Array(9);
P_Row1IDs[0] = "td0";
P_Row1IDs[1] = "td1";
P_Row1IDs[2] = "td2";
P_Row1IDs[3] = "td3";
P_Row1IDs[4] = "td4";
P_Row1IDs[5] = "td5";
P_Row1IDs[6] = "td6";
P_Row1IDs[7] = "td7";
P_Row1IDs[8] = "td8";

var P_Size = new Array(9)
P_Size[0] = "16px";
P_Size[1] = "11px";
P_Size[2] = "14px";
P_Size[3] = "14px";
P_Size[4] = "14px";
P_Size[5] = "14px";
P_Size[6] = "11px";
P_Size[7] = "14px";
P_Size[8] = "16px";

 var P_LPID = 'P';
 var R_LPID = 'R';

var QPR = new Array(3);
QPR[0] = "Q_";
QPR[1] = "P_";
QPR[2] = "R_";

var P_Cur = new Array();

 PRI = UpdateRunIndex(P_LPID);
 RunIndex2[PRI] = R_LPID; 
 QPRx[PRI] = QPR;

 MaxPages[PRI] = 4;
 Mrgb[PRI] = "rgb(247, 245, 210)";
 Row1Index[PRI] = 0;
 oldRow1Index[PRI] = 0;
 
 curPages[PRI] = parseInt(P_gs[Row1Index[PRI]]);
 curRowbox[PRI] = 0;
 isNewArticle[PRI] = 1;

Wrap0[PRI] = QPR[1] + 'wrap0';
Wrap1[PRI] = QPR[1] + 'wrap1';
Table[PRI] = QPR[1] + 'table';
Prow1[PRI] = QPR[1] + 'row1';
Rrow1[PRI] = QPR[2] + 'row1';
TA[PRI] = 0;
BAddress[PRI] = 'P_Block';

/* ****************** Function LPP ********************* */
 /* LPP is called when the Post is loaded.  It initializes the Post variables, including the navigational menus. */

function PLPP(PF) { 

 /* -- P_On[Row1Index] = "1" active -- */
 LeadPostID[PRI] = P_IDs[0];
 oldPIndex[PRI] = 1;
 PIndex[PRI] = 1;
 curArtID[PRI] = P_IDs[Row1Index[PRI]];  
 
 curArticle[PRI] = document.getElementById(curArtID[PRI]);
 curPage[PRI] = document.getElementById(curArtID[PRI] + 1);
  /* Hide inactive elements from row 1 of the navigational ments. */
 
 var v1 = QPR[1] + 'td';
 var v2 = QPR[2] + 'td';  
 var v0 = 0; 
 for (i in P_On) {
  if(P_On[i] != 1) { 
   document.getElementById(v1 + i).style.display = "none";
   document.getElementById(v2 + i).style.display = "none";
  }
  else{
   document.getElementById(v1 + i).firstChild.nodeValue = P_cIDs[i];
   document.getElementById(v2 + i).firstChild.nodeValue = P_cIDs[i];
   v0++;
  }
 Articles[PRI] = v0;
  
 ZRowBox(PRI, PF); 

 }

}
/*  selected new article Row1Index "X"  "z" paramater is PRI calls SSP2(z, XX), the standard form of SSP() */
function SSP(XX){
	ZSSP(PRI, XX);
}
	
/*  "SLP" event triggered when a different page is selected */ 
function SLP(zIndex){
 	ZSLP(PRI, zIndex);
}

/* ...................... Post Specific Block ........................ */
 
function P_Block(sk, z) { 
  P_Cur[0] = P_Titles[sk];
  P_Cur[1] = P_Js[sk];
  P_Cur[2] = P_Ds[sk];
  P_Cur[3] = P_IDs[sk];
  P_Cur[4] = P_gs[sk];
  P_Cur[5] = P_On[sk];
  P_Cur[6] = P_Size[sk];
  P_Cur[7] = 'P_TitleRow';
  P_Cur[8] = P_cIDs[sk];
  RI2[z] = P_Cur;
}
 /* ...................End Post Specific Block ........................ */  
   