function ge(n){
	return document.getElementById(n);
}

try{
	document.execCommand("BackgroundImageCache",false,true);
}
catch(e){};

//+ Carlos R. L. Rodrigues
//@ http://jsfromhell.com/number/zero-format [v1.0]
Number.prototype.zeroFormat = function(n, f, r){
    return n = new Array((++n, f ? (f = (this + "").length) < n ? n - f : 0 : n)).join(0), r ? this + n : n + this;
};

String.prototype.filterHTML = function(){
	var map = {
		"<": "&lt;",
		">": "&gt;",
		"&": "&amp;"
	};
	return this.replace(/[<>&]/g, function(m){
		return m in map ? map[m] : m;
	});
};

function buildFlash(swfLocation,x,y,swfMode, variaveis){
	var swfLocation, x, y, swfMode, variaveis;
	if(variaveis == undefined || variaveis.length < 1) variaveis = '';
	document.write(' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+x+'" height="'+y+'">');
	document.write(' <param name="movie" value="'+swfLocation+'.swf'+variaveis+'" />');
	document.write(' <param name="quality" value="best" />');
	document.write(' <param name="wmode" value="'+swfMode+'" />');
	document.write(' <embed src="'+swfLocation+'.swf'+variaveis+'" wmode="'+swfMode+'" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+x+'" height="'+y+'"></embed>');
	document.write(' </object>');
}

function flashObj(id, last){
	var a, o;
	if(id)
		(o = document.getElementById(id)) && (a = o.outerHTML) && (o.outerHTML = a);
	else if(last)
		(o = document.getElementsByTagName("object")) && (a = (o = o[o.length - 1]).outerHTML) && (o.outerHTML = a);
	else
		for(var i = (o = document.getElementsByTagName("object")).length; i--;)
			(a = o[i].outerHTML) && (o[i].outerHTML = a);
}