function m(str, is_binary)
{
	var result = "";
	var i = 0;
	var x;
	var shiftreg = 0;
	var count = -1;

	for (i=0; i < str.length; i++) {
		c = str.charAt(i);
		if ('A' <= c && c <= 'Z')
			x = str.charCodeAt(i) - 65;
		else if ('a' <= c && c <= 'z')
			x = str.charCodeAt(i) - 97 + 26;
		else if ('0' <= c && c <= '9')
			x = str.charCodeAt(i) - 48 + 52;
		else if (c == '+')
			x = 62;
		else if (c == '/')
			x = 63;
		else
			continue;
		count++;
		switch (count % 4)
		{
			case 0:
				shiftreg = x;
				continue;
			case 1:
				v = (shiftreg<<2) | (x >> 4);
				shiftreg = x & 0x0F;
				break;
			case 2:
				v = (shiftreg<<4) | (x >> 2);
				shiftreg = x & 0x03;
				break;
			case 3:
				v = (shiftreg<<6) | (x >> 0);
				shiftreg = x & 0x00;
				break;
		}
		if (!is_binary && (v < 32 || v > 126) && (v != 0x0d) && (v != 0x0a)) {
			result = result + "<";
			result = result + "0123456789ABCDEF".charAt((v/16)&0x0F);
			result = result + "0123456789ABCDEF".charAt((v/1)&0x0F);
			result = result + ">";
		} else
			result = result + String.fromCharCode(v);
	}
	return result.toString();
}
function c1(juego,a,b)
{
	document.write('<object id="FlashGame" classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,0,0,0" width="' + a + '" height="' + b + '">');
	document.write('<param name="src" value="' + juego + '" />');
	document.write('<param name="swStretchStyle" value="fill" />');
	document.write('<embed src="' + juego + '" pluginspage="http://www.macromedia.com/shockwave/download/" width="' + a + '" height="' + b + '"><'+'/embed>');
	document.write('</object>');
}

function c2(juego,a,b)
{
	document.write('<object id="FlashGame" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + a + '" height="' + b + '">');
	document.write('<param name="movie" value="' + juego + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<embed src="' + juego + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + a + '" height="' + b + '" class="FlashGame"></embed>');
	document.write('</object>');
}

