function twiigsURLEncode33409_99088400(plaintext)
{
  // The Javascript escape and unescape functions do not correspond
  // with what browsers actually do...
  var SAFECHARS =
    "0123456789" +                  // Numeric
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +  // Alphabetic
    "abcdefghijklmnopqrstuvwxyz" +
    "-_.!~*'()";                    // RFC2396 Mark characters
  var HEX = "0123456789ABCDEF"; 
  var encoded = "";
  for(var i = 0; i < plaintext.length; i++ )
  {
    var ch = plaintext.charAt(i);
    if(ch == " ")
    {
      encoded += "+";				// x-www-urlencoded, rather than %20
    }
    else if(SAFECHARS.indexOf(ch) != -1)
    {
      encoded += ch;
    }
    else 
    {
      var charCode = ch.charCodeAt(0);
      if(charCode > 255)
      {
        alert( "Unicode Character '" + ch + "' cannot be encoded using standard URL encoding.\n" + "(URL encoding only supports 8-bit characters.)\n" + "A space (+) will be substituted." );
        encoded += "+";
      }
      else
      {
        encoded += "%";
        encoded += HEX.charAt((charCode >> 4) & 0xF);
        encoded += HEX.charAt(charCode & 0xF);
      }
    }
  } // for
  return encoded;
}

function twiigsInclude33409_99088400(script_filename)
{
  var html_doc = document.getElementsByTagName('head').item(0);
  var js = document.createElement('script');
  js.setAttribute('type', 'text/javascript');
  js.setAttribute('src', script_filename);
  html_doc.appendChild(js);
}

function twiigsPollLoading33409_99088400()
{
  var poll = document.getElementById('TWIIGSPOLL33409_99088400');
  poll.innerHTML = '<div class="TWIIGSPOLLloading"'+twiigsAddStyleBlock33409_99088400({"text-align":"center"})+'><img src="http://www.twiigs.com/img/loading.gif"'+twiigsAddStyleImage33409_99088400({})+'> Loading...</div>';
}

function twiigsPollVote33409_99088400(form, vote)
{
  var script_filename = 'http://www.twiigs.com/pollvote.js?pid=33409&ajax=1&w=1&color=bluedarkest';
  script_filename += '&pidsuffix=99088400';
  if(vote)
  {
    script_filename += '&vsubmit=1';
    if(form.ptype.value == 2)
    {
      script_filename += '&panswer=' + twiigsURLEncode33409_99088400(form.panswer.value);
    }
    else
    {
      if(form.pmultiple.value == 1)
        var answer = form.elements['paid[]'];
      else
        var answer = form.paid;
      var paid = '';
      for(i = 0; i < answer.length; i++)
      {
        if(answer[i].checked)
        {
          if(paid != '')
            paid += ','
          paid += answer[i].value;
        }
      }
      script_filename += '&paid=' + twiigsURLEncode33409_99088400(paid);
    }
  }
  twiigsPollLoading33409_99088400();  
  twiigsInclude33409_99088400(script_filename);  
  return false;
}

function twiigsPollView33409_99088400()
{
  twiigsPollLoading33409_99088400();
  var script_filename = 'http://www.twiigs.com/pollview.js?pid=33409&ajax=1&w=1';
  script_filename += '&pidsuffix=99088400'; 
  twiigsInclude33409_99088400(script_filename);
  return false;
}

function twiigsAddStyle33409_99088400(stype, mods)
{
  var params = {
    "background-color" : "transparent",
    "background-image" : "none",
    "border-style" : "none",
    "clear" : "none",
    "display" : "block",
    "float" : "none",
    "position" : "static",
    "visibility" : "visible",
    "height" : "auto",
    "line-height" : "normal", 
    "width" : "auto",
    "margin-top" : "0",
    "margin-right" : "0",
    "margin-bottom" : "0",
    "margin-left" : "0",
    "outline-style" : "none",
    "padding-top" : "0",
    "padding-right" : "0",
    "padding-bottom" : "0",
    "padding-left" : "0",
    "clip" : "auto",
    "overflow" : "hidden",
    "vertical-align" : "baseline",
    "z-index" : "auto",
    "letter-spacing" : "normal", 
    "text-align" : "left",
    "text-decoration" : "none",
    "text-indent" : "0",
    "text-shadow" : "none",
    "text-transform" : "none",
    "white-space" : "normal",
    "word-spacing" : "normal"
  }; 
  
  for(var i in stype)
    params[i] = stype[i];
  for(var i in mods)
    params[i] = mods[i];
  
  var style = ' style="';  
  for(var i in params)
  {
    if(params[i] != null)
      style += i + ": " + params[i] + "; ";
  }
  style += '"';

  return style;
}

function twiigsAddStyleBlock33409_99088400(mods)
{
  var stype = {
  };
  return twiigsAddStyle33409_99088400(stype, mods);
}

function twiigsAddStyleInline33409_99088400(mods)
{
  var stype = {
    "display" : "inline"
  };
  return twiigsAddStyle33409_99088400(stype, mods);
}

function twiigsAddStyleInput33409_99088400(mods)
{
  var stype = { 
    "background-color" : null,
    "background-image" : null,
    "border-style" : null,
    "display" : "inline",
    "text-shadow" : null
  };
  return twiigsAddStyle33409_99088400(stype, mods);
}

function twiigsAddStyleImage33409_99088400(mods)
{
  var stype = { 
    "background-color" : null,
    "background-image" : null,
    "display" : "inline",
    "height" : null, 
    "width" : null 
  };
  return twiigsAddStyle33409_99088400(stype, mods);
}

function twiigsAddStyleLink33409_99088400(mods)
{
  var stype = { 
    "display" : "inline",
    "text-decoration" : null
  };
  return twiigsAddStyle33409_99088400(stype, mods);
}

function twiigsAddStyleList33409_99088400(mods)
{
  var stype = { 
    "display" : "list-item",
    "list-style-type" : "none",
    "list-style-position" : "outside",
    "list-style-image" : "none"
  };
  return twiigsAddStyle33409_99088400(stype, mods);
}

function twiigsPollBarWidthSet33409_99088400()
{
  for(var i = 0; i < 3; i++)
    twiigsPollBarWidthSetBar33409_99088400(i, 20);
}

function twiigsPollBarWidthSetBar33409_99088400(i, n)
{
  var imgObj = document.getElementById("TWIIGSPOLL33409_99088400answerimg" + i);
  if(imgObj)
  {
    var itemObj = document.getElementById("TWIIGSPOLL33409_99088400answeritem" + i);
    if(itemObj)
    {
      if(itemObj.offsetWidth > 0)
      {
        var pctObj = document.getElementById("TWIIGSPOLL33409_99088400answerpct" + i);
        var pct = parseFloat(pctObj.innerHTML);
        imgObj.width = parseInt(pct * (parseInt(itemObj.offsetWidth) - 56));
        pctObj.innerHTML = parseInt(pct * 100) + "%";
      }
      else
      {
        if(n > 0)
        {
          n--;
          setTimeout('twiigsPollBarWidthSetBar33409_99088400(' + i + ', ' + n + ')', 100);
        }
      }
    }
  }
}

document.write('<div class="TWIIGSPOLLpollcontainer" '+twiigsAddStyleBlock33409_99088400({})+'>'
+' <div class="TWIIGSPOLLpoll" '+twiigsAddStyleBlock33409_99088400({"margin-top":"5px","margin-right":"5px","margin-left":"5px"})+'>'
+' <div class="TWIIGSPOLLquestion" '+twiigsAddStyleBlock33409_99088400({"margin-bottom":"8px","font-weight":"bold"})+'>'
+' <a class="TWIIGSPOLLquestionlink" href="http://www.twiigs.com/poll/Sports/Baseball/33409" '+twiigsAddStyleInline33409_99088400({})+'>'
+'Who should be the odd man out in the Tigers'+"'"+' starting rotation?</a>'
+' </div>'
+' <div id="TWIIGSPOLL33409_99088400" class="TWIIGSPOLLresponse" '+twiigsAddStyleBlock33409_99088400({})+'>'
+' <form method="POST" name="twiigsformpollvote33409_99088400" action="http://www.twiigs.com/vote" '+twiigsAddStyleBlock33409_99088400({})+'>'
+' <input type="hidden" name="pview" value="">'
+' <input type="hidden" name="pid" value="33409">'
+' <input type="hidden" name="ptype" value="1">'
+' <input type="hidden" name="pmultiple" value="0">'
+' <input type="hidden" name="results" value="1">'
+' <div class="TWIIGSPOLLanswers" '+twiigsAddStyleBlock33409_99088400({"margin-bottom":"8px"})+'>'
+' <ul class="TWIIGSPOLLanswerselection" '+twiigsAddStyleBlock33409_99088400({})+'>'
+' <li class="TWIIGSPOLLanswerselectionitem" '+twiigsAddStyleList33409_99088400({"margin-bottom":"7px","margin-left":"4px","*margin-bottom":"2px"})+'>'
+' <input class="TWIIGSPOLLanswerradio" type="radio" name="paid" value="1" '+twiigsAddStyleInput33409_99088400({})+'>'
+' Armando Galarraga </li>'
+' <li class="TWIIGSPOLLanswerselectionitem" '+twiigsAddStyleList33409_99088400({"margin-bottom":"7px","margin-left":"4px","*margin-bottom":"2px"})+'>'
+' <input class="TWIIGSPOLLanswerradio" type="radio" name="paid" value="2" '+twiigsAddStyleInput33409_99088400({})+'>'
+' Dontrelle Willis </li>'
+' <li class="TWIIGSPOLLanswerselectionitem" '+twiigsAddStyleList33409_99088400({"margin-bottom":"7px","margin-left":"4px","*margin-bottom":"2px"})+'>'
+' <input class="TWIIGSPOLLanswerradio" type="radio" name="paid" value="3" '+twiigsAddStyleInput33409_99088400({})+'>'
+' Jeremy Bonderman </li>'
+' </ul>'
+' </div>'
+' <div class="TWIIGSPOLLpostinfo" '+twiigsAddStyleBlock33409_99088400({"margin-bottom":"8px","text-align":"right","display":"none"})+'>'
+' Created on Jun 9, 2009 </div>'
+' <div class="TWIIGSPOLLvote" '+twiigsAddStyleBlock33409_99088400({})+'>'
+' <p class="TWIIGSPOLLbutton" '+twiigsAddStyleBlock33409_99088400({"margin-top":"2px","margin-bottom":"2px","text-align":"center"})+'>'
+' <input class="TWIIGSPOLLsubmit" type="submit" name="vsubmit" value="Vote" onClick="return twiigsPollVote33409_99088400(document.twiigsformpollvote33409_99088400,true);" onDblClick="return twiigsPollVote33409_99088400(document.twiigsformpollvote33409_99088400,true);" '+twiigsAddStyleInput33409_99088400({"padding-right":"4px","padding-left":"4px","text-align":"center"})+'>'
+' </p>'
+' <p class="TWIIGSPOLLdisplayresults" '+twiigsAddStyleBlock33409_99088400({"margin-top":"2px","margin-bottom":"2px","text-align":"center"})+'>'
+' <a class="TWIIGSPOLLlink" href="http://www.twiigs.com/poll/Sports/Baseball/33409?results=1" onClick="return twiigsPollVote33409_99088400(document.twiigsformpollvote33409_99088400,false);" onDblClick="return twiigsPollVote33409_99088400(document.twiigsformpollvote33409_99088400,false);" '+twiigsAddStyleLink33409_99088400({})+'>'
+'View Results</a>'
+' </p>'
+' </div>'
+' </form>'
+' </div>'
+' </div>'
+' </div>'
+'');
twiigsPollBarWidthSet33409_99088400();
