// onresize for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth;
	origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

var cur_lyr;	// holds id of currently visible layer
function swapLayers(id) {
  	if (cur_lyr) hideLayer(cur_lyr);
  	showLayer(id);
  	cur_lyr = id;
  	//doWipe();
}

function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css && cur_lyr != "miniSpreadSheet") {
    lyr.css.visibility = "hidden";
	lyr.css.display = "none";
  }
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

function showVote(vote) {
  if (!vote || vote == "") { return; }
  vote = vote.toString().toLowerCase();
  if (vote == "n/a") {
    return "<span class=\"vote-item-na\">n/a</span>";
  }
  else if (vote == "0") {
    return "<span class=\"vote-item-x\">X</span>";
  }
  else if (vote == "1") {
    return "<span class=\"vote-item-check\"><img src='/i/ne/sr06/tech_vote_guide_06/check.gif\' border=\"0\" width=\"14\" height=\"14\"></span>";
  }
  else if (vote == "not voting") {
    return "<span class=\"vote-item-na\">not voting</span>";
  }
  else if (vote == "present") {
    return "<span class=\"vote-item-na\">present</span>";
  }
  return "";
}
function showPopUpInstruction(){
  document.write("Below are the tech-voting scores of this state's Congress members. Click on a name for a vote breakdown.\n");
}

var stateCandidates = new Object;

stateCandidates["AL"] = new Array("showSenatorScorecard('AL_sessions')","showSenatorScorecard('AL_shelby')","showHouseScorecard('AL_aderholt')","showHouseScorecard('AL_bachus')","showHouseScorecard('AL_bonner')","showHouseScorecard('AL_cramer')","showHouseScorecard('AL_davis')","showHouseScorecard('AL_everett')","showHouseScorecard('AL_rogers')");

stateCandidates["AR"] = new Array("showSenatorScorecard('AR_lincoln')","showSenatorScorecard('AR_pryor')","showHouseScorecard('AR_berry')","showHouseScorecard('AR_boozman')","showHouseScorecard('AR_ross')","showHouseScorecard('AR_snyder')");

stateCandidates["AK"] = new Array("showSenatorScorecard('AK_murkowski')","showSenatorScorecard('AK_stevens')","showHouseScorecard('AK_young')");

stateCandidates["AZ"] = new Array("showSenatorScorecard('AZ_kyl')","showSenatorScorecard('AZ_mccain')","showHouseScorecard('AZ_flake')","showHouseScorecard('AZ_franks')","showHouseScorecard('AZ_giffords')","showHouseScorecard('AZ_grijalva')","showHouseScorecard('AZ_mitchell')","showHouseScorecard('AZ_pastor')","showHouseScorecard('AZ_renzi')","showHouseScorecard('AZ_shadegg')");

stateCandidates["CA"] = new Array("showSenatorScorecard('CA_boxer')","showSenatorScorecard('CA_feinstein')","showHouseScorecard('CA_baca')","showHouseScorecard('CA_becerra')","showHouseScorecard('CA_berman')","showHouseScorecard('CA_bilbray')","showHouseScorecard('CA_bono mack')","showHouseScorecard('CA_calvert')","showHouseScorecard('CA_campbell')","showHouseScorecard('CA_capps')","showHouseScorecard('CA_cardoza')","showHouseScorecard('CA_costa')","showHouseScorecard('CA_davis')","showHouseScorecard('CA_doolittle')","showHouseScorecard('CA_dreier')","showHouseScorecard('CA_eshoo')","showHouseScorecard('CA_farr')","showHouseScorecard('CA_filner')","showHouseScorecard('CA_gallegly')","showHouseScorecard('CA_harman')","showHouseScorecard('CA_herger')","showHouseScorecard('CA_honda')","showHouseScorecard('CA_hunter')","showHouseScorecard('CA_issa')","showHouseScorecard('CA_lee')","showHouseScorecard('CA_lewis')","showHouseScorecard('CA_lofgren')","showHouseScorecard('CA_lungren')","showHouseScorecard('CA_matsui')","showHouseScorecard('CA_mccarthy')","showHouseScorecard('CA_mckeon')","showHouseScorecard('CA_mcnerney')","showHouseScorecard('CA_millerga')","showHouseScorecard('CA_millerge')","showHouseScorecard('CA_napolitano')","showHouseScorecard('CA_nunes')","showHouseScorecard('CA_pelosi')","showHouseScorecard('CA_radanovich')","showHouseScorecard('CA_richardson')","showHouseScorecard('CA_rohrabacher')","showHouseScorecard('CA_roybal-allard')","showHouseScorecard('CA_royce')","showHouseScorecard('CA_sanchezli')","showHouseScorecard('CA_sanchezlo')","showHouseScorecard('CA_schiff')","showHouseScorecard('CA_sherman')","showHouseScorecard('CA_solis')","showHouseScorecard('CA_speier')","showHouseScorecard('CA_stark')","showHouseScorecard('CA_tauscher')","showHouseScorecard('CA_thompson')","showHouseScorecard('CA_waters')","showHouseScorecard('CA_watson')","showHouseScorecard('CA_waxman')","showHouseScorecard('CA_woolsey')");

stateCandidates["CO"] = new Array("showSenatorScorecard('CO_allard')","showSenatorScorecard('CO_salazar')","showHouseScorecard('CO_degette')","showHouseScorecard('CO_lamborn')","showHouseScorecard('CO_musgrave')","showHouseScorecard('CO_perlmutter')","showHouseScorecard('CO_salazar')","showHouseScorecard('CO_tancredo')","showHouseScorecard('CO_udall')");

stateCandidates["CT"] = new Array("showSenatorScorecard('CT_dodd')"," showSenatorScorecard('CT_lieberman')","showHouseScorecard('CT_courtney')"," showHouseScorecard('CT_delauro')"," showHouseScorecard('CT_larson')"," showHouseScorecard('CT_murphy')"," showHouseScorecard('CT_shays')");

stateCandidates["DE"] = new Array("showSenatorScorecard('DE_biden')","showSenatorScorecard('DE_carper')","showHouseScorecard('DE_castle')");

stateCandidates["FL"] = new Array("showSenatorScorecard('FL_martinez')","showSenatorScorecard('FL_nelson')","showHouseScorecard('FL_bilirakis')","showHouseScorecard('FL_boyd')","showHouseScorecard('FL_brown')","showHouseScorecard('FL_brown-waite')"," showHouseScorecard('FL_buchanan')"," showHouseScorecard('FL_castor')","showHouseScorecard('FL_crenshaw')","showHouseScorecard('FL_diaz-balartl')","showHouseScorecard('FL_diaz-balartm')","showHouseScorecard('FL_feeney')","showHouseScorecard('FL_hastings')","showHouseScorecard('FL_keller')","showHouseScorecard('FL_klein')","showHouseScorecard('FL_mack')","showHouseScorecard('FL_mahoney')","showHouseScorecard('FL_meek')","showHouseScorecard('FL_mica')","showHouseScorecard('FL_miller')","showHouseScorecard('FL_putnam')","showHouseScorecard('FL_ros-lehtinen')","showHouseScorecard('FL_stearns')","showHouseScorecard('FL_wasserman schultz')","showHouseScorecard('FL_weldon')","showHouseScorecard('FL_wexler')","showHouseScorecard('FL_young')");

stateCandidates["GA"] = new Array("showSenatorScorecard('GA_chambliss')","showSenatorScorecard('GA_isakson')","showHouseScorecard('GA_barrow')","showHouseScorecard('GA_bishop')","showHouseScorecard('GA_broun')","showHouseScorecard('GA_deal')","showHouseScorecard('GA_gingrey')","showHouseScorecard('GA_johnson')","showHouseScorecard('GA_kingston')","showHouseScorecard('GA_lewis')","showHouseScorecard('GA_linder')","showHouseScorecard('GA_marshall')","showHouseScorecard('GA_price')","showHouseScorecard('GA_scott')","showHouseScorecard('GA_westmoreland')");

stateCandidates["HI"] = new Array("showSenatorScorecard('HI_akaka')","showSenatorScorecard('HI_inouye')","showHouseScorecard('HI_abercrombie')","showHouseScorecard('HI_hirono')");

stateCandidates["ID"] = new Array("showSenatorScorecard('ID_craig')","showSenatorScorecard('ID_crapo')","showHouseScorecard('ID_sali')","showHouseScorecard('ID_simpson')");

stateCandidates["IL"] = new Array("showSenatorScorecard('IL_durbin')","showSenatorScorecard('IL_obama')","showHouseScorecard('IL_bean')","showHouseScorecard('IL_biggert')","showHouseScorecard('IL_costello')","showHouseScorecard('IL_davis')","showHouseScorecard('IL_emanuel')","showHouseScorecard('IL_foster')","showHouseScorecard('IL_gutierrez')","showHouseScorecard('IL_hare')","showHouseScorecard('IL_jackson')","showHouseScorecard('IL_johnson')","showHouseScorecard('IL_kirk')","showHouseScorecard('IL_lahood')","showHouseScorecard('IL_lipinski')","showHouseScorecard('IL_manzullo')","showHouseScorecard('IL_roskam')","showHouseScorecard('IL_rush')","showHouseScorecard('IL_schakowsky')","showHouseScorecard('IL_shimkus')","showHouseScorecard('IL_weller')");

stateCandidates["IN"] = new Array("showSenatorScorecard('IN_bayh')","showSenatorScorecard('IN_lugar')","showHouseScorecard('IN_burton')","showHouseScorecard('IN_buyer')","showHouseScorecard('IN_carson')","showHouseScorecard('IN_donnelly')","showHouseScorecard('IN_ellsworth')","showHouseScorecard('IN_hill')","showHouseScorecard('IN_pence')","showHouseScorecard('IN_souder')","showHouseScorecard('IN_visclosky')");

stateCandidates["IA"] = new Array("showSenatorScorecard('IA_grassley')","showSenatorScorecard('IA_harkin')","showHouseScorecard('IA_boswell')","showHouseScorecard('IA_braley')","showHouseScorecard('IA_king')","showHouseScorecard('IA_latham')","showHouseScorecard('IA_loebsack')");

stateCandidates["KS"] = new Array("showSenatorScorecard('KS_brownback')","showSenatorScorecard('KS_roberts')","showHouseScorecard('KS_boyda')","showHouseScorecard('KS_moore')","showHouseScorecard('KS_moran')","showHouseScorecard('KS_tiahrt')");

stateCandidates["KY"] = new Array("showSenatorScorecard('KY_bunning')","showSenatorScorecard('KY_mcconnell')","showHouseScorecard('KY_chandler')","showHouseScorecard('KY_davis')","showHouseScorecard('KY_lewis')","showHouseScorecard('KY_rogers')","showHouseScorecard('KY_whitfield')","showHouseScorecard('KY_yarmuth')");

stateCandidates["LA"] = new Array("showSenatorScorecard('LA_landrieu')","showSenatorScorecard('LA_vitter')","showHouseScorecard('LA_alexander')","showHouseScorecard('LA_boustany')","showHouseScorecard('LA_cazayoux')","showHouseScorecard('LA_jefferson')","showHouseScorecard('LA_mccrery')","showHouseScorecard('LA_melancon')","showHouseScorecard('LA_scalise')");

stateCandidates["ME"] = new Array("showSenatorScorecard('ME_collins')","showSenatorScorecard('ME_snowe')","showHouseScorecard('ME_allen')","showHouseScorecard('ME_michaud')");

stateCandidates["MD"] = new Array("showSenatorScorecard('MD_cardin')","showSenatorScorecard('MD_mikulski')","showHouseScorecard('MD_bartlett')","showHouseScorecard('MD_cummings')","showHouseScorecard('MD_edwards')","showHouseScorecard('MD_gilchrest')","showHouseScorecard('MD_hoyer')","showHouseScorecard('MD_ruppersberger')","showHouseScorecard('MD_sarbanes')","showHouseScorecard('MD_van hollen')");

stateCandidates["MA"] = new Array("showSenatorScorecard('MA_kennedy')","showSenatorScorecard('MA_kerry')","showHouseScorecard('MA_capuano')","showHouseScorecard('MA_delahunt')","showHouseScorecard('MA_frank')","showHouseScorecard('MA_lynch')","showHouseScorecard('MA_markey')","showHouseScorecard('MA_mcgovern')","showHouseScorecard('MA_neal')","showHouseScorecard('MA_olver')","showHouseScorecard('MA_tierney')","showHouseScorecard('MA_tsongas')");

stateCandidates["MI"] = new Array("showSenatorScorecard('MI_levin')","showSenatorScorecard('MI_stabenow')","showHouseScorecard('MI_camp')","showHouseScorecard('MI_conyers')","showHouseScorecard('MI_dingell')","showHouseScorecard('MI_ehlers')","showHouseScorecard('MI_hoekstra')","showHouseScorecard('MI_kildee')","showHouseScorecard('MI_kilpatrick')","showHouseScorecard('MI_knollenberg')","showHouseScorecard('MI_levin')","showHouseScorecard('MI_mccotter')","showHouseScorecard('MI_miller')","showHouseScorecard('MI_rogers')","showHouseScorecard('MI_stupak')","showHouseScorecard('MI_upton')","showHouseScorecard('MI_walberg')");

stateCandidates["MN"] = new Array("showSenatorScorecard('MN_coleman')","showSenatorScorecard('MN_klobuchar')","showHouseScorecard('MN_bachmann')","showHouseScorecard('MN_ellison')","showHouseScorecard('MN_kline')","showHouseScorecard('MN_mccollum')","showHouseScorecard('MN_oberstar')","showHouseScorecard('MN_peterson')","showHouseScorecard('MN_ramstad')","showHouseScorecard('MN_walz')");

stateCandidates["MS"] = new Array("showSenatorScorecard('MS_cochran')","showSenatorScorecard('MS_wicker')","showHouseScorecard('MS_childers')","showHouseScorecard('MS_pickering')","showHouseScorecard('MS_taylor')","showHouseScorecard('MS_thompson')");

stateCandidates["MO"] = new Array("showSenatorScorecard('MO_bond')","showSenatorScorecard('MO_mccaskill')","showHouseScorecard('MO_akin')","showHouseScorecard('MO_blunt')","showHouseScorecard('MO_carnahan')","showHouseScorecard('MO_clay')","showHouseScorecard('MO_cleaver')","showHouseScorecard('MO_emerson')","showHouseScorecard('MO_graves')","showHouseScorecard('MO_hulshof')","showHouseScorecard('MO_skelton')");

stateCandidates["MT"] = new Array("showSenatorScorecard('MT_baucus')","showSenatorScorecard('MT_tester')","showHouseScorecard('MT_rehberg')");

stateCandidates["NE"] = new Array("showSenatorScorecard('NE_hagel')","showSenatorScorecard('NE_nelson')","showHouseScorecard('NE_fortenberry')","showHouseScorecard('NE_smith')","showHouseScorecard('NE_terry')");

stateCandidates["NV"] = new Array("showSenatorScorecard('NV_ensign')","showSenatorScorecard('NV_reid')","showHouseScorecard('NV_berkley')","showHouseScorecard('NV_heller')","showHouseScorecard('NV_porter')");

stateCandidates["NH"] = new Array("showSenatorScorecard('NH_gregg')","showSenatorScorecard('NH_sununu')","showHouseScorecard('NH_hodes')","showHouseScorecard('NH_shea-porter')");

stateCandidates["NJ"] = new Array("showSenatorScorecard('NJ_menendez')","showSenatorScorecard('NJ_lautenberg')","showHouseScorecard('NJ_andrews')","showHouseScorecard('NJ_ferguson')","showHouseScorecard('NJ_frelinghuysen')","showHouseScorecard('NJ_garrett')","showHouseScorecard('NJ_holt')","showHouseScorecard('NJ_lobiondo')","showHouseScorecard('NJ_pallone')","showHouseScorecard('NJ_pascrell')","showHouseScorecard('NJ_payne')","showHouseScorecard('NJ_rothman')","showHouseScorecard('NJ_saxton')","showHouseScorecard('NJ_sires')","showHouseScorecard('NJ_smith')");

stateCandidates["NM"] = new Array("showSenatorScorecard('NM_bingaman')","showSenatorScorecard('NM_domenici')","showHouseScorecard('NM_pearce')","showHouseScorecard('NM_udall')","showHouseScorecard('NM_wilson')");

stateCandidates["NY"] = new Array("showSenatorScorecard('NY_clinton')","showSenatorScorecard('NY_schumer')","showHouseScorecard('NY_ackerman')","showHouseScorecard('NY_arcuri')","showHouseScorecard('NY_bishop')","showHouseScorecard('NY_clarke')","showHouseScorecard('NY_crowley')","showHouseScorecard('NY_engel')","showHouseScorecard('NY_fossella')","showHouseScorecard('NY_gillibrand')","showHouseScorecard('NY_hall')","showHouseScorecard('NY_higgins')","showHouseScorecard('NY_hinchey')","showHouseScorecard('NY_israel')","showHouseScorecard('NY_king')","showHouseScorecard('NY_kuhl')","showHouseScorecard('NY_lowey')","showHouseScorecard('NY_maloney')","showHouseScorecard('NY_mccarthy')","showHouseScorecard('NY_mchugh')","showHouseScorecard('NY_mcnulty')","showHouseScorecard('NY_meeks')","showHouseScorecard('NY_nadler')","showHouseScorecard('NY_rangel')","showHouseScorecard('NY_reynolds')","showHouseScorecard('NY_serrano')","showHouseScorecard('NY_slaughter')","showHouseScorecard('NY_towns')","showHouseScorecard('NY_velazquez')","showHouseScorecard('NY_walsh')","showHouseScorecard('NY_weiner')");

stateCandidates["NC"] = new Array("showSenatorScorecard('NC_burr')","showSenatorScorecard('NC_dole')","showHouseScorecard('NC_butterfield')","showHouseScorecard('NC_coble')","showHouseScorecard('NC_etheridge')","showHouseScorecard('NC_foxx')","showHouseScorecard('NC_hayes')","showHouseScorecard('NC_jones')","showHouseScorecard('NC_mchenry')","showHouseScorecard('NC_mcintyre')","showHouseScorecard('NC_miller')","showHouseScorecard('NC_myrick')","showHouseScorecard('NC_price')","showHouseScorecard('NC_shuler')","showHouseScorecard('NC_watt')");

stateCandidates["ND"] = new Array("showSenatorScorecard('ND_conrad')","showSenatorScorecard('ND_dorgan')","showHouseScorecard('ND_pomeroy')");

stateCandidates["OH"] = new Array("showSenatorScorecard('OH_brown')","showSenatorScorecard('OH_voinovich')","showHouseScorecard('OH_boehner')","showHouseScorecard('OH_chabot')","showHouseScorecard('OH_hobson')","showHouseScorecard('OH_jones')","showHouseScorecard('OH_jordan')","showHouseScorecard('OH_kaptur')","showHouseScorecard('OH_kucinich')","showHouseScorecard('OH_latourette')","showHouseScorecard('OH_latta')","showHouseScorecard('OH_pryce')","showHouseScorecard('OH_regula')","showHouseScorecard('OH_ryan')","showHouseScorecard('OH_schmidt')","showHouseScorecard('OH_space')","showHouseScorecard('OH_sutton')","showHouseScorecard('OH_tiberi')","showHouseScorecard('OH_turner')","showHouseScorecard('OH_wilson')");

stateCandidates["OK"] = new Array("showSenatorScorecard('OK_coburn')","showSenatorScorecard('OK_inhofe')","showHouseScorecard('OK_boren')","showHouseScorecard('OK_cole')","showHouseScorecard('OK_fallin')","showHouseScorecard('OK_lucas')","showHouseScorecard('OK_sullivan')");

stateCandidates["OR"] = new Array("showSenatorScorecard('OR_smith')","showSenatorScorecard('OR_wyden')","showHouseScorecard('OR_blumenauer')","showHouseScorecard('OR_defazio')","showHouseScorecard('OR_hooley')","showHouseScorecard('OR_walden')","showHouseScorecard('OR_wu')");

stateCandidates["PA"] = new Array("showSenatorScorecard('PA_casey')","showSenatorScorecard('PA_specter')","showHouseScorecard('PA_altmire')","showHouseScorecard('PA_brady')","showHouseScorecard('PA_carney')","showHouseScorecard('PA_dent')","showHouseScorecard('PA_doyle')","showHouseScorecard('PA_english')","showHouseScorecard('PA_fattah')","showHouseScorecard('PA_gerlach')","showHouseScorecard('PA_holden')","showHouseScorecard('PA_kanjorski')","showHouseScorecard('PA_murphyp')","showHouseScorecard('PA_murphyt')","showHouseScorecard('PA_murtha')","showHouseScorecard('PA_peterson')","showHouseScorecard('PA_pitts')","showHouseScorecard('PA_platts')","showHouseScorecard('PA_schwartz')","showHouseScorecard('PA_sestak')","showHouseScorecard('PA_shuster')");

stateCandidates["RI"] = new Array("showSenatorScorecard('RI_reed')","showSenatorScorecard('RI_whitehouse')","showHouseScorecard('RI_kennedy')","showHouseScorecard('RI_langevin')");

stateCandidates["SC"] = new Array("showSenatorScorecard('SC_DeMint')","showSenatorScorecard('SC_Graham')","showHouseScorecard('SC_Barrett')","showHouseScorecard('SC_Brown')","showHouseScorecard('SC_Clyburn')","showHouseScorecard('SC_Inglis')","showHouseScorecard('SC_Spratt')","showHouseScorecard('SC_Wilson')");

stateCandidates["SD"] = new Array("showSenatorScorecard('SD_johnson')","showSenatorScorecard('SD_thune')","showHouseScorecard('SD_herseth')");

stateCandidates["TN"] = new Array("showSenatorScorecard('TN_alexander')","showSenatorScorecard('TN_corker')","showHouseScorecard('TN_blackburn')","showHouseScorecard('TN_cohen')","showHouseScorecard('TN_cooper')","showHouseScorecard('TN_davisd')","showHouseScorecard('TN_davisl')","showHouseScorecard('TN_duncan')","showHouseScorecard('TN_gordon')","showHouseScorecard('TN_tanner')","showHouseScorecard('TN_wamp')");

stateCandidates["TX"] = new Array("showSenatorScorecard('TX_Cornyn')","showSenatorScorecard('TX_Hutchison')","showHouseScorecard('TX_Barton')","showHouseScorecard('TX_Brady')","showHouseScorecard('TX_Burgess')","showHouseScorecard('TX_Carter')","showHouseScorecard('TX_Conaway')","showHouseScorecard('TX_Cuellar')","showHouseScorecard('TX_Culberson')","showHouseScorecard('TX_Doggett')","showHouseScorecard('TX_Edwards')","showHouseScorecard('TX_Gohmert')","showHouseScorecard('TX_Gonzalez')","showHouseScorecard('TX_Granger')","showHouseScorecard('TX_GreenA')","showHouseScorecard('TX_GreenG')","showHouseScorecard('TX_Hall')","showHouseScorecard('TX_Hensarling')","showHouseScorecard('TX_Hinojosa')","showHouseScorecard('TX_Jackson-Lee')","showHouseScorecard('TX_Johnsone')","showHouseScorecard('TX_Johnsons')","showHouseScorecard('TX_Marchant')","showHouseScorecard('TX_McCaul')","showHouseScorecard('TX_Neugebauer')","showHouseScorecard('TX_Ortiz')","showHouseScorecard('TX_Paul')","showHouseScorecard('TX_Poe')","showHouseScorecard('TX_Reyes')","showHouseScorecard('TX_rodriguez')","showHouseScorecard('TX_Sessions')","showHouseScorecard('TX_Smith')","showHouseScorecard('TX_Thornberry')");

stateCandidates["UT"] = new Array("showSenatorScorecard('UT_bennett')","showSenatorScorecard('UT_hatch')","showHouseScorecard('UT_bishop')","showHouseScorecard('UT_cannon')","showHouseScorecard('UT_matheson')");

stateCandidates["VT"] = new Array("showSenatorScorecard('VT_leahy')","showSenatorScorecard('VT_sanders')","showHouseScorecard('VT_welch')");

stateCandidates["VA"] = new Array("showSenatorScorecard('VA_warner')","showSenatorScorecard('VA_webb')","showHouseScorecard('VA_boucher')","showHouseScorecard('VA_cantor')","showHouseScorecard('VA_davis')","showHouseScorecard('VA_drake')","showHouseScorecard('VA_forbes')","showHouseScorecard('VA_goode')","showHouseScorecard('VA_goodlatte')","showHouseScorecard('VA_moran')","showHouseScorecard('VA_scott')","showHouseScorecard('VA_wittman')","showHouseScorecard('VA_wolf')");

stateCandidates["WA"] = new Array("showSenatorScorecard('WA_cantwell')","showSenatorScorecard('WA_murray')","showHouseScorecard('WA_baird')","showHouseScorecard('WA_dicks')","showHouseScorecard('WA_hastings')","showHouseScorecard('WA_inslee')","showHouseScorecard('WA_larsen')","showHouseScorecard('WA_mcdermott')","showHouseScorecard('WA_mcmorris')","showHouseScorecard('WA_reichert')","showHouseScorecard('WA_smith')");

stateCandidates["WV"] = new Array("showSenatorScorecard('WV_byrd')","showSenatorScorecard('WV_rockefeller')","showHouseScorecard('WV_capito')","showHouseScorecard('WV_mollohan')","showHouseScorecard('WV_rahall')");

stateCandidates["WI"] = new Array("showSenatorScorecard('WI_feingold')","showSenatorScorecard('WI_kohl')","showHouseScorecard('WI_baldwin')","showHouseScorecard('WI_kagen')","showHouseScorecard('WI_kind')","showHouseScorecard('WI_moore')","showHouseScorecard('WI_obey')","showHouseScorecard('WI_petri')","showHouseScorecard('WI_ryan')","showHouseScorecard('WI_sensenbrenner')");

stateCandidates["WY"] = new Array("showSenatorScorecard('WY_barrasso')","showSenatorScorecard('WY_enzi')","showHouseScorecard('WY_cubin')");

function showStateScores(st, state, rank) {
  var ins = document.getElementById("instructions");
  ins.style.display = "block";
  var sss = document.getElementById("scorecardbox");
  sss.innerHTML = getScorecardBox(st, state, rank);
}
function showSenatorScorecardOnly(candidate) {
  var sso = document.getElementById("scorecardonly_" + candidate);
  sso.innerHTML = showSenatorScorecardRR(candidate);
}
function showHouseScorecardOnly(candidate) {
  var sso = document.getElementById("scorecardonly_" + candidate);
  sso.innerHTML = showHouseScorecardRR(candidate);
}
function getScorecardBox(st, state, rank) {
  var scb = "";
  scb = scb + "<div id=\"state-" + st + "\" class=\"state-info-box clearfix\">\n";
  scb = scb + "<div class=\"state-overview clearfix\">\n";
  scb = scb + "<p>" + state + "<br />\n";
  scb = scb + "Tech scorecard rank: " + rank + "</p>\n";
  scb = scb + "</div>\n";
  scb = scb + "<div class=\"state-reps clearfix\">\n";
  scb = scb + "<table class=\"state-rep-table\" cellspacing=\"1\">\n";
  scb = scb + "<tr>\n";
  scb = scb + "<td><b>Politician</b></td>\n";
  scb = scb + "<td><b>Party</b></td>\n";
  scb = scb + "<td><b>Score</b></td>\n";
  scb = scb + "</tr>\n";
  for (var i = 0; i < stateCandidates[st].length; i++) {
    scb = scb + eval(stateCandidates[st][i]);
  }
  scb = scb + "</table>\n";
  scb = scb + "</div>\n";
  scb = scb + "</div>\n";
  return scb;
}
function showSenatorScorecard(candidate) {
  candidate = candidate.toLowerCase();
  if (senators[candidate] == undefined) { return; }
  var sensc = "";
  sensc = sensc + "<tr>\n";
  sensc = sensc + "<td>\n";
  sensc = sensc + "<div id=\"sc1\"><a href=\"javascript:void(null)\" onclick=\"swapLayers('" + candidate + "'); return false\">" + senators[candidate][0] + "</a></div>\n";
  sensc = sensc + "<div id=\"" + candidate + "\" class=\"info\">\n";
  sensc = sensc + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  sensc = sensc + "<h3>" + senators[candidate][0] + " (" + senators[candidate][1] + "-" + senators[candidate][2] + ")</h3>\n";
 
  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>1. For the Communications Decency Act</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][3]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>2. For the Digital Millennium Copyright Act</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][4]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>3. To prohibit Internet gambling</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][5]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>4. To increase paperwork for Internet sellers</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][6]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>5. For more e-commerce restrictions</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][7]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>6. For Internet filters in schools and libraries</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][8]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>7. To make the ban on Net access taxes permanent</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][9]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>8. Against taxing purchases made online</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][10]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>9. For a free-trade bill</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][11]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>10. To extend the ban on Internet access taxes through 2007</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][12]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>11. For an R&#38;D tax credit</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][13]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>12. For the Real ID Act</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][14]) + "\n";
  sensc = sensc + "</div>\n";
  
  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>13. To lift H-1B visa limits to 115,000 for 2008</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][15]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>14. For the United States-Peru Trade Promotion Agreement</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][16]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>15. To limit courtroom use of information obtained from unlawful wiretaps</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][17]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>16. To strip retroactive immunity from the FISA bill</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][18]) + "\n";
  sensc = sensc + "</div>\n";
  
   sensc = sensc + "<div class=\"vote-item\">\n";
  sensc = sensc + "<h4>17. For final passage of a FISA bill including retroactive immunity</h4>\n";
  sensc = sensc + "Vote: " + showVote(senators[candidate][19]) + "\n";
  sensc = sensc + "</div>\n";

  sensc = sensc + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  sensc = sensc + "</div>\n";
  sensc = sensc + "</td>\n";
  sensc = sensc + "<td>" + senators[candidate][1] + "</td>\n";
  sensc = sensc + "<td>" + senators[candidate][23] + "</td>\n";
  sensc = sensc + "</tr>\n";
  return sensc;
}
function showHouseScorecard(candidate) {
  candidate = candidate.toLowerCase();
  if (reps[candidate] == undefined) { return; }
  var housc = "";
  housc = housc + "<tr>\n";
  housc = housc + "<td>\n";
  housc = housc + "<div id=\"sc1\"><a href=\"javascript:void(null)\" onclick=\"swapLayers('" + candidate + "'); return false\">" + reps[candidate][0] + "</a></div>\n";
  housc = housc + "<div id=\"" + candidate + "\" class=\"info\">\n";
  housc = housc + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  housc = housc + "<h3>" + reps[candidate][0] + " (" + reps[candidate][1] + "-" + reps[candidate][2] + ")</h3>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>1. Against the Spanish-American War telecommunications tax</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][3]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>2. To prohibit Internet gambling</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][4]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>3. To ban some computer-generated porn</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][5]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>4. For research and development tax credit</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][6]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>5. For the Real ID Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][7]) + "\n";
  housc = housc + "</div>\n";
  
  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>6. To curb class action lawsuits</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][8]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>7. Investigating <i>Grand Theft Auto: San Andreas</i></h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][9]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>8. For duplicative \"antispyware\" regulations</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][10]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>9. To disclose federal data mining to Congress</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][11]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>10. To disclose electronic surveillance to courts</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][12]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>11. To prohibit Internet gambling</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][13]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>12. For the Deleting Online Predators Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][14]) + "\n";
  housc = housc + "</div>\n";
  
  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>13. For the Schiff amendment to an intelligence bill</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][15]) + "\n";
  housc = housc + "</div>\n";
  
  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>14. For the Spy Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][16]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>15. For the Internet Tax Freedom Amendments Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][17]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>16. For the Free Flow of Information Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][18]) + "\n";
  housc = housc + "</div>\n";
  
  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>17. For a FISA bill with retroactive immunity</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][19]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>18. For the Electronic Message Preservation Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][20]) + "\n";
  housc = housc + "</div>\n";


  housc = housc + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  housc = housc + "</div>\n";
  housc = housc + "</td>\n";
  housc = housc + "<td>" + reps[candidate][1] + "</td>\n";
  housc = housc + "<td>" + reps[candidate][24] + "</td>\n";
  housc = housc + "</tr>\n";
  return housc;
}

function showSenatorScorecardRR(candidate) {
  candidate = candidate.toLowerCase();
  if (senators[candidate] == undefined) { return; }
  var senscRR = "";
  senscRR = senscRR + "<div id=\"" + candidate + "\" class=\"info\">\n";
  senscRR = senscRR + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  senscRR = senscRR + "<h3>" + senators[candidate][0] + " (" + senators[candidate][1] + "-" + senators[candidate][2] + ")</h3>\n";
 
  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>1. For the Communications Decency Act</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][3]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>2. For the Digital Millennium Copyright Act</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][4]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>3. To prohibit Internet gambling</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][5]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>4. To increase paperwork for Internet sellers</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][6]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>5. For more e-commerce restrictions</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][7]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>6. For Internet filters in schools and libraries</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][8]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>7. To make the ban on Net access taxes permanent</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][9]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>8. Against taxing purchases made online</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][10]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>9. For a free-trade bill</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][11]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>10. To extend the ban on Internet access taxes through 2007</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][12]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>11. For an R&#38;D tax credit</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][13]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>12. For the Real ID Act</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][14]) + "\n";
  senscRR = senscRR + "</div>\n";
  
  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>13. To lift H-1B visa limits to 115,000 for 2008</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][15]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>14. For the United States-Peru Trade Promotion Agreement</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][16]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>15. To limit courtroom use of information obtained from unlawful wiretaps</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][17]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>16. To strip retroactive immunity from the FISA bill</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][18]) + "\n";
  senscRR = senscRR + "</div>\n";
  
  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>17. For final passage of a FISA bill including retroactive immunity</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][19]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  senscRR = senscRR + "</div>\n";
  return senscRR;
}

function showSenatorScorecardRR(candidate) {
  candidate = candidate.toLowerCase();
  if (senators[candidate] == undefined) { return; }
  var senscRR = "";
  senscRR = senscRR + "<div id=\"" + candidate + "\" class=\"infoonly\">\n";
  senscRR = senscRR + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  senscRR = senscRR + "<h3>" + senators[candidate][0] + " (" + senators[candidate][1] + "-" + senators[candidate][2] + ")</h3>\n";
 
  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>1. For the Communications Decency Act</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][3]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>2. For the Digital Millennium Copyright Act</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][4]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>3. To prohibit Internet gambling</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][5]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>4. To increase paperwork for Internet sellers</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][6]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>5. For more e-commerce restrictions</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][7]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>6. For Internet filters in schools and libraries</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][8]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>7. To make the ban on Net access taxes permanent</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][9]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>8. Against taxing purchases made online</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][10]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>9. For a free-trade bill</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][11]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>10. To extend the ban on Internet access taxes through 2007</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][12]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>11. For an R&#38;D tax credit</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][13]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>12. For the Real ID Act</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][14]) + "\n";
  senscRR = senscRR + "</div>\n";
  
  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>13. To lift H-1B visa limits to 115,000 for 2008</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][15]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>14. For the United States-Peru Trade Promotion Agreement</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][16]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>15. To limit courtroom use of information obtained from unlawful wiretaps</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][17]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>16. To strip retroactive immunity from the FISA bill</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][18]) + "\n";
  senscRR = senscRR + "</div>\n";
  
  senscRR = senscRR + "<div class=\"vote-item\">\n";
  senscRR = senscRR + "<h4>17. For final passage of a FISA bill including retroactive immunity</h4>\n";
  senscRR = senscRR + "Vote: " + showVote(senators[candidate][19]) + "\n";
  senscRR = senscRR + "</div>\n";

  senscRR = senscRR + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  senscRR = senscRR + "</div>\n";
  return senscRR;
}

function showHouseScorecardRR(candidate) {
  candidate = candidate.toLowerCase();
  if (reps[candidate] == undefined) { return; }
  var housc = "";
  housc = housc + "<div id=\"" + candidate + "\" class=\"infoonly\">\n";
  housc = housc + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  housc = housc + "<h3>" + reps[candidate][0] + " (" + reps[candidate][1] + "-" + reps[candidate][2] + ")</h3>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>1. Against the Spanish-American War telecommunications tax</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][3]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>2. To prohibit Internet gambling</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][4]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>3. To ban some computer-generated porn</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][5]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>4. For research and development tax credit</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][6]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>5. For the Real ID Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][7]) + "\n";
  housc = housc + "</div>\n";
  
  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>6. To curb class action lawsuits</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][8]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>7. Investigating <i>Grand Theft Auto: San Andreas</i></h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][9]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>8. For duplicative \"antispyware\" regulations</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][10]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>9. To disclose federal data mining to Congress</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][11]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>10. To disclose electronic surveillance to courts</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][12]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>11. To prohibit Internet gambling</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][13]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>12. For the Deleting Online Predators Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][14]) + "\n";
  housc = housc + "</div>\n";
  
  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>13. For the Schiff amendment to an intelligence bill</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][15]) + "\n";
  housc = housc + "</div>\n";
  
  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>14. For the Spy Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][16]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>15. For the Internet Tax Freedom Amendments Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][17]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>16. For the Free Flow of Information Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][18]) + "\n";
  housc = housc + "</div>\n";
  
  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>17. For a FISA bill with retroactive immunity</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][19]) + "\n";
  housc = housc + "</div>\n";

  housc = housc + "<div class=\"vote-item\">\n";
  housc = housc + "<h4>18. For the Electronic Message Preservation Act</h4>\n";
  housc = housc + "Vote: " + showVote(reps[candidate][20]) + "\n";
  housc = housc + "</div>\n";


  housc = housc + "<div class=\"close-link\"><a href=\"javascript:void(null)\" onclick=\"hideLayer('" + candidate + "'); return false\"><b>[Click to close]</b></a></div>\n";
  housc = housc + "</div>\n";
  return housc;
}
