function alturaAutomaticaIframe(obj) {
	var apply = function(alt) { document.getElementById(obj).style.height = alt + "px"; }
	var altNIE = function() { apply(document.getElementById(obj).contentWindow.document.body.parentNode.offsetHeight + 5); }
	//var altFIE = function() { apply(document.getElementById(obj).contentWindow.document.body.scrollHeight + 5); }
	var altFIE = function() { apply(document.getElementById(obj).contentWindow.document.body.scrollHeight + 15); }
	navigator.appName.indexOf("Internet Explorer") > -1 ? setTimeout(altFIE, 100) : altNIE();
}

function selos(obj, visibility, left) {
	if(obj) {
		if(left) { obj.style.left = left; }
		if(visibility == "visible" || visibility == "1") {
			obj.style.visibility = "visible";
		} else if(visibility == "hidden" || visibility == "0") {
			obj.style.visibility = "hidden";
		}
	} else { alert("Object not found!"); }
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
