(function()
{
  paramDef = {
    width: 160,
    height: 140,
    type: 'text',
    format: '160x140',
    borderColor: '#c0e0e0',
    linkColor: '#605576',
    textColor: '#303030',
    backgroundColor: '#ffffff'
  };
  function g(p,i)
  {
    v = inteuron_poll_conf[i][p] || paramDef[p];
    return '"'+v+'"';
  }
  function e(p,i)
  {
    return inteuron_poll_conf[i][p] || paramDef[p];
  }
  function process()
  {
    var txt = '';
    for (i in inteuron_poll_conf) {
      el = document.getElementById('inteuron_polls_block' + i);
      if (!el) break;
      txt = '<iframe width='+g('width',i)+' height='+g('height',i)+' src="/site/poll_example/'+e('format',i)+'" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">';
      txt += "</iframe>";
      el.innerHTML = txt;
    }
  }
  process();
})()

