var frameHeight = {

  /**
   *  Seta a altura e largura do frame
   *  @type {Method}
   *  @param {Object IFrame} Iframe a ser alterado
   *  
   */
   setFrameSize : function()
   {
      var iframe = this;  
   	  var container;
      var width = 0;
      var height = 0;
      var coef = bFs || 10;
      
      for( var i=0; i<iframe.contentWindow.document.getElementsByTagName("body")[0].childNodes.length; i++ )
      {
        if( iframe.contentWindow.document.getElementsByTagName("body")[0].childNodes[i].nodeType==1 )
        {
          container=iframe.contentWindow.document.getElementsByTagName("body")[0].childNodes[i];
          //break;
          
          if( container.offsetHeight !== 0 )
          {
            width = Math.max( container.offsetLeft + container.offsetWidth, width );
            height = Math.max( container.offsetTop + container.offsetHeight, height );
          }
        }
      }
      
      iframe.style.height = (height / coef) + "em";
     // iframe.style.width = (width / coef) + "em";
      reequalize();
   },
	
	init : function()
	{
		//frameHeight.setFrameSize();
		window.document.domain = "economia.uol.com.br";		
	}
};
frameHeight.init();

function formataCombo(){
  var div = document.getElementById("combo-moedas");
  if (div && div.getElementsByTagName('select')[0]){
  	var options = div.getElementsByTagName('option');
	  for (var i = 0; i< options.length;i++){
			switch(i) {
				case 1:
					options[i].className= "tit";
				  break;
				case 2:
					options[i].className= "destaque";
				  break;
				case 3:
					options[i].className= "destaque";
				  break;
				case 4:
					options[i].className= "destaque";
				  break;
				case 5:
					options[i].className= "destaque";
				  break;
				case 6:
					options[i].className= "separa";
				  break;
				case 7:
					options[i].className= "tit";
				  break;
				default:
				  continue;
			}
	  }
	} 
	else {//setTimeout(formataCombo(), 3000);}
		setTimeout(function(){formataCombo();}, 1000);
	}
}