var myStatic = '';var theirStatic = '';var myRows = [];var theirRows = [];window.rootPath = './SWUDeck';var currentPlayerIndex = playerID;var otherPlayerIndex = playerID == 1 ? 2 : 1;window.myCardPanePanes = [];window.theirCardPanePanes = [];for(var i=0; i<1; ++i) { myRows[i] = ""; theirRows[i] = ""; }window.myLeaderData = responseArr[1 + (currentPlayerIndex-1)*13];window.theirLeaderData = responseArr[1 + (otherPlayerIndex-1)*13];window.myBaseData = responseArr[2 + (currentPlayerIndex-1)*13];window.theirBaseData = responseArr[2 + (otherPlayerIndex-1)*13];window.myMainDeckData = responseArr[3 + (currentPlayerIndex-1)*13];window.theirMainDeckData = responseArr[3 + (otherPlayerIndex-1)*13];window.myCardPaneData = responseArr[4 + (currentPlayerIndex-1)*13];window.theirCardPaneData = responseArr[4 + (otherPlayerIndex-1)*13];window.myLeadersData = responseArr[5 + (currentPlayerIndex-1)*13];window.theirLeadersData = responseArr[5 + (otherPlayerIndex-1)*13];window.myBasesData = responseArr[6 + (currentPlayerIndex-1)*13];window.theirBasesData = responseArr[6 + (otherPlayerIndex-1)*13];window.myCardsData = responseArr[7 + (currentPlayerIndex-1)*13];window.theirCardsData = responseArr[7 + (otherPlayerIndex-1)*13];window.mySideboardData = responseArr[8 + (currentPlayerIndex-1)*13];window.theirSideboardData = responseArr[8 + (otherPlayerIndex-1)*13];window.myDeckData = responseArr[9 + (currentPlayerIndex-1)*13];window.theirDeckData = responseArr[9 + (otherPlayerIndex-1)*13];window.myStatsData = responseArr[10 + (currentPlayerIndex-1)*13];window.theirStatsData = responseArr[10 + (otherPlayerIndex-1)*13];window.mySortData = responseArr[11 + (currentPlayerIndex-1)*13];window.theirSortData = responseArr[11 + (otherPlayerIndex-1)*13];window.myCardNotesData = responseArr[12 + (currentPlayerIndex-1)*13];window.theirCardNotesData = responseArr[12 + (otherPlayerIndex-1)*13];window.myVersionsData = responseArr[13 + (currentPlayerIndex-1)*13];window.theirVersionsData = responseArr[13 + (otherPlayerIndex-1)*13];var dataIndex = 1 + (currentPlayerIndex-1)*13;myStatic += '
' + PopulateZone('myLeader', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'All') + '
';var dataIndex = 2 + (currentPlayerIndex-1)*13;myStatic += '' + PopulateZone('myBase', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'All') + '
';var dataIndex = 3 + (currentPlayerIndex-1)*13;myStatic += '' + PopulateZone('myMainDeck', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Tile') + '
';var dataIndex = 4 + (currentPlayerIndex-1)*13;myStatic += '' + PopulateZone('myCardPane', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Panel') + '
';var dataIndex = 5 + (currentPlayerIndex-1)*13;myCardPanePanes.push(responseArr[dataIndex]);var dataIndex = 6 + (currentPlayerIndex-1)*13;myCardPanePanes.push(responseArr[dataIndex]);var dataIndex = 7 + (currentPlayerIndex-1)*13;myCardPanePanes.push(responseArr[dataIndex]);var dataIndex = 8 + (currentPlayerIndex-1)*13;myStatic += '' + PopulateZone('mySideboard', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Tile') + '
';var dataIndex = 9 + (currentPlayerIndex-1)*13;myStatic += '' + PopulateZone('myDeck', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Count') + '
';var dataIndex = 10 + (currentPlayerIndex-1)*13;myStatic += '' + PopulateZone('myStats', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Radio') + '
';var dataIndex = 11 + (currentPlayerIndex-1)*13;myStatic += '' + PopulateZone('mySort', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Radio') + '
';var dataIndex = 12 + (currentPlayerIndex-1)*13;var dataIndex = 13 + (currentPlayerIndex-1)*13;var dataIndex = 1 + (otherPlayerIndex-1)*13;theirStatic += '' + PopulateZone('theirLeader', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'All') + '
';var dataIndex = 2 + (otherPlayerIndex-1)*13;theirStatic += '' + PopulateZone('theirBase', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'All') + '
';var dataIndex = 3 + (otherPlayerIndex-1)*13;theirStatic += '' + PopulateZone('theirMainDeck', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Tile') + '
';var dataIndex = 4 + (otherPlayerIndex-1)*13;theirStatic += '' + PopulateZone('theirCardPane', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Panel') + '
';var dataIndex = 5 + (otherPlayerIndex-1)*13;theirCardPanePanes.push(responseArr[dataIndex]);var dataIndex = 6 + (otherPlayerIndex-1)*13;theirCardPanePanes.push(responseArr[dataIndex]);var dataIndex = 7 + (otherPlayerIndex-1)*13;theirCardPanePanes.push(responseArr[dataIndex]);var dataIndex = 8 + (otherPlayerIndex-1)*13;theirStatic += '' + PopulateZone('theirSideboard', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Tile') + '
';var dataIndex = 9 + (otherPlayerIndex-1)*13;theirStatic += '' + PopulateZone('theirDeck', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Count') + '
';var dataIndex = 10 + (otherPlayerIndex-1)*13;theirStatic += '' + PopulateZone('theirStats', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Radio') + '
';var dataIndex = 11 + (otherPlayerIndex-1)*13;theirStatic += '' + PopulateZone('theirSort', responseArr[dataIndex], cardSize, './SWUDeck/concat', '0', 'Radio') + '
';var dataIndex = 12 + (otherPlayerIndex-1)*13;var dataIndex = 13 + (otherPlayerIndex-1)*13;RenderRows(myRows, theirRows);AppendStaticZones(myStatic, theirStatic);RenderPanes('CardPane', window.myCardPanePanes, window.theirCardPanePanes);