
// Copyright 2007 The People's Email Network, Patent Pending, All Rights Reserved

lastC_c2 = myAction_c2.substr(myAction_c2.length-1,1);

if (lastC_c2 == "?") {
  pHeight_c2 = 550;
  }
else {
  pHeight_c2 = 525;
  }

linkW_c2 = imageW_c2 - 2;

linkH_c2 = 13;

linkText3_c2 = "Get this Action Button";
buttonsLink_c2 = "http://www.usalone.com/cheney_impeachment2.php";

if (imageW_c2 > 300) {
  linkText3_c2 = "Click here to get this Action Banner for your own web page";
  }

linkS_c2 = 1;

opera_y = 0;

if (navigator.userAgent.indexOf('Opera') != -1) {
  opera_y = 30;
  }

linkText2_c2 = "Click above to VOTE now and send your emails to Congress";


totalcount2_c2 = '';
tc_c2 = 0;

for (i=countpet45.length;i>0;i--) {
  if (tc_c2 == 3) {
     tc_c2 = 0;
     totalcount2_c2 = ',' + totalcount2_c2;
     }
  totalcount2_c2 = countpet45.substr(i-1,1) + totalcount2_c2;
  tc_c2++;
  }


linkText1_c2 = totalcount2_c2 + ' votes so far';

if (imageW_c2 > 300) {
  linkText1_c2 = "National Cheney Impeachment Poll: &nbsp;" + linkText1_c2;
  }


document.write('<table width='+imageW_c2+' cellspacing=0 cellpadding=0 border=0 bgcolor="#FFFFFF"><tr><td colspan=3 style="padding:0px;margin:0px;border:0px;"><img onMouseOver="window.status=\'Vote now\';" onMouseOut="window.status=\'\';"  onClick="javascript:setTimeout(\'popcheck_c2();\',1000);wW=625;wH='+pHeight_c2+';wX=(window.screen.width-wW)/2;wY=((window.screen.height-wH)/2)-40-opera_y;nw=window.open(\'http://www.usalone.com/blogvoices_new.php?\'+escape(myAction_c2),\'blogvoices\',\'width=\'+wW+\',height=\'+wH+\',top=\'+wY+\',left=\'+wX);" style="padding:0px;margin:0px;border:0px;display:block;"  src="'+blogImage_c2+'" border=0></td></tr><tr><td width=1 height='+linkH_c2+' bgcolor=black style="padding:0px;margin:0px;border:0px;background:#000;"></td><td id=blogvoices_c2_outer name=blogvoices_c2_outer onClick="getButton_c2();" bgcolor="CCEEFF" style="padding:0px;margin:0px;border:0px;background:#CEF;line-height:1.4em;vertical-align:top;" onMouseOver="this.bgColor=\'FFCCDD\';this.style.background=\'#FCD\';changeBGcolor_c2();" onMouseOut="this.bgColor=\'CCEEFF\';this.style.background=\'#CEF\';changeBGcolor2_c2();" width='+linkW_c2+' height='+linkH_c2+' align=center valign=center><font id="blogvoices_c2_inner" name="blogvoices_c2_inner" face=verdana onMouseOver="this.style.fontSize=\'10px\'" style="font-family:verdana;font-size:10px;line-height: 1.4em;""><a href="'+buttonsLink_c2+'" onMouseOver="this.style.fontSize=\'10px\';" style="font-family:verdana;font-size:10px;color:#000000;text-decoration: none;line-height: 1.4em;""><b><span style="color:#000000;" id=blogvoices_c2 name=blogvoices_c2>'+linkText1_c2+'</span></b></a></font></td><td width=1 height='+linkH_c2+' bgcolor=black style="padding:0px;margin:0px;border:0px;background:#000;"></td></tr><tr><td width='+imageW_c2+' height=1 bgcolor=black style="padding:0px;margin:0px;border:0px;background:#000;" colspan=3></td></tr></table>');

timeOut_c2 = setTimeout('changeText_c2();', 5000);

function getButton_c2() {
  document.location.href = buttonsLink_c2;
  }

function changeBGcolor_c2() {

      if (document.getElementById) {
         document.getElementById('blogvoices_c2_inner').bgColor='FFCCDD';
         document.getElementById('blogvoices_c2_inner').style.background = '#FCD';
         }
      else {
         blogvoices_c2_inner.bgColor='FFCCDD';
         blogvoices_c2_inner.style.background = '#FCD';
         }

  }


function changeBGcolor2_c2() {

      if (document.getElementById) {
         document.getElementById('blogvoices_c2_inner').bgColor='CCEEFF';
         document.getElementById('blogvoices_c2_inner').style.background = '#CEF';
         }
      else {
         blogvoices_c2_inner.bgColor='CCEEFF';
         blogvoices_c2_inner.style.background = '#CEF';
         }

  }

function changeText_c2() {
     clearTimeout(timeOut_c2);

if (linkS_c2 == 1) {
thisText_c2 = linkText2_c2;
    linkS_c2 = 2;
   }
else if (linkS_c2 == 2) {
thisText_c2 = linkText3_c2;
   linkS_c2 = 3;
   }
else if (linkS_c2 == 3) {
thisText_c2 = linkText1_c2;
   linkS_c2 = 1;
   }

    // alert('change');
      if (document.getElementById) {
         document.getElementById('blogvoices_c2').innerHTML = thisText_c2;
         }
      else {
         blogvoices_c2.innerHTML = thisText_c2;
         }
   timeOut_c2 = setTimeout('changeText_c2();', 5000);
   }

function popcheck_c2() {
   if (nw != null) {    
     }   
   else {
    // alert('no popup');
     }
   }
