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

lastC_c1 = myAction_c1.substr(myAction_c1.length-1,1);

if (lastC_c1 == "?") {
  pHeight_c1 = 550;
  }
else {
  pHeight_c1 = 525;
  }

linkW_c1 = imageW_c1 - 2;

linkH_c1 = 13;

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

if (imageW_c1 > 300) {
  linkText3_c1 = "Get this Action Banner for your own web page";

  }

linkS_c1 = 1;

opera_y = 0;

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


totalcount2_c1 = '';
tc_c1 = 0;

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


linkText1_c1 = totalcount2_c1 + ' votes so far';

linkText4_c1 = "Click here for the code";
linkText2_c1 = "Click above to VOTE now";


document.write('<table width='+imageW_c1+' 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_c1();\',1000);wW=625;wH='+pHeight_c1+';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_c1),\'blogvoices\',\'width=\'+wW+\',height=\'+wH+\',top=\'+wY+\',left=\'+wX);" style="padding:0px;margin:0px;border:0px;display:block;"  src="'+blogImage_c1+'" border=0></td></tr><tr><td width=1 height='+linkH_c1+' bgcolor=black style="padding:0px;margin:0px;border:0px;background:#000;"></td><td id=blogvoices_c1_outer name=blogvoices_c1_outer onClick="getButton_c1();" 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();" onMouseOut="this.bgColor=\'CCEEFF\';this.style.background=\'#CEF\';changeBGcolor2();" width='+linkW_c1+' height='+linkH_c1+' align=center valign=center><font id="blogvoices_c1_inner" name="blogvoices_c1_inner" face=verdana onMouseOver="this.style.fontSize=\'10px\'" style="font-family:verdana;font-size:10px;line-height: 1.4em;"><a href="'+buttonsLink_c1+'" 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_c1 name=blogvoices_c1>'+linkText1_c1+'</span></b></a></font></td><td width=1 height='+linkH_c1+' bgcolor=black style="padding:0px;margin:0px;border:0px;background:#000;"></td></tr><tr><td width='+imageW_c1+' height=1 bgcolor=black style="padding:0px;margin:0px;border:0px;background:#000;" colspan=3></td></tr></table>');




//this.bgColor=\'FFCCDD\';this.style.background=\'#FCD\';" //onMouseOut="this.bgColor=\'CCEEFF\';this.style.background=\'#CEF\';" 


timeOut_c1 = setTimeout('changeText_c1();', 5000);


function getButton_c1() {
  document.location.href = buttonsLink_c1;
  }

//changeBGcolor(blogvoices_c1_inner);

function changeBGcolor() {

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

  }


function changeBGcolor2() {

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

  }

function changeText_c1() {
     clearTimeout(timeOut_c1);

if (linkS_c1 == 1) {
thisText_c1 = linkText2_c1;
    linkS_c1 = 2;
   }
else if (linkS_c1 == 2) {
thisText_c1 = linkText3_c1;
   linkS_c1 = 3;
   }
else if (linkS_c1 == 3) {
thisText_c1 = linkText4_c1;
   linkS_c1 = 4;
   }
else if (linkS_c1 == 4) {
thisText_c1 = linkText1_c1;
   linkS_c1 = 1;
   }

    // alert('change');
      if (document.getElementById) {
         document.getElementById('blogvoices_c1').innerHTML = thisText_c1;
         }
      else {
         blogvoices_c1.innerHTML = thisText_c1;
         }
   timeOut_c1 = setTimeout('changeText_c1();', 5000);
   }

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