function KramaFlash(archivoswf, ancho, alto, idflash, wmode, loop, play, scale, quality) {
	if (wmode != "transparent") {
		wmode = "opaque";
	}
	
	if (quality == "" || quality == null) {
		quality = 'high';
	}
	
	var protocolo = location.protocol;
	if (protocolo != "https:") protocolo = "http:";

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="' + protocolo + '//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + ancho + '" height="' + alto + '"');
	if (idflash != "" && idflash != null) {
		document.write(' id="' + idflash + '"');
	}
	document.write('>');
    document.write('<param name="movie" value="' + archivoswf + '">');
    document.write('<param name="quality" value="' + quality + '">');
    document.write('<param name="wmode" value="' + wmode + '">');
	if (scale != "" && scale != null) {
		document.write('<param name="SCALE" value="' + scale + '">');
	}
	if (loop != "" && loop != null) {
		document.write('<param name="LOOP" value="' + loop + '">');
	}
	if (play != "" && play != null) {
		document.write('<param name="PLAY" value="' + play + '">');
	}
    document.write('<embed src="' + archivoswf + '" quality="high" pluginspage="' + protocolo + '//www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + ancho + '" height="' + alto + '"');
	if (scale != "" && scale != null) {
		document.write(' scale="' + scale + '"');
	}
	if (loop != "" && loop != null) {
		document.write(' loop="' + loop + '"');
	}
	if (play != "" && play != null) {
		document.write(' play="' + play + '"');
	}
    document.write('></embed>');
	document.write('</object>');
}

/*
var message="Acción no permitida"; 

function clickIE4(){ 
	if (event.button==2){ 
		alert(message); 
		return false; 
	} 
} 


function clickNS4(e){ 
	if (document.layers||document.getElementById&&!document.all){ 
		if (e.which==2||e.which==3){ 
			alert(message); 
			return false; 
		} 
	} 
} 


if (document.layers){ 
	document.captureEvents(Event.MOUSEDOWN); 
	document.onmousedown=clickNS4; 
} else if (document.all&&!document.getElementById) {
	document.onmousedown=clickIE4; 
} 

document.oncontextmenu=new Function("alert(message);return false");
*/