$('#iddoframe').ready(function() {
		redimensiona();
});
/*$(document).ready(function()
	{
		redimensiona();
	}
);*/


// Resize heights.
function iResize(obj)
{
	// Iterate through all iframes in the page.
	for (var i = 0, j = iFrames.length; i < j; i++)
	{
		// Set inline style to equal the body height of the iframed content.
		obj.style.height = obj.contentWindow.document.body.offsetHeight + 'px';
	}
}
	function redimensiona(){
		iframe_ = document.getElementById("iddoframe");
		// browser Safari or Opera / chrome.
		if ($.browser.safari || $.browser.opera)
		{
			$('#iddoframe').load(function()
				{
					setTimeout(iResize(this), 0);
				}
			);
				if(iframe_.clientHeight){
					iframe_.height = iframe_.clientHeight + 32;
				}
		}
		else
		{
					try
					{
					  var innerDoc = (iframe_.contentDocument) ? iframe_.contentDocument : iframe_.contentWindow.document;

					  if (innerDoc.body.offsetHeight) //ns6 syntax
					  {
						 //iframe_.height = innerDoc.body.offsetHeight + 32; //Extra height FireFox
						 iframe_.style.height = iframe_.contentWindow.document.body.offsetHeight + 'px';
					  }
					  else if (iframe_.Document && iframe_.Document.body.scrollHeight) //ie5+ syntax
					  {
						 iframe_.height = iframe_.Document.body.scrollHeight;
					  }else{
							 iframe_.height = iframe_.clientHeight + 32;
						  }
					}
					catch(err)
					{
					  //alert(err.message);
					}

		}
}
