// JavaScript Document

function mostrar(valor_seleccionado) {
	for (i=1; i<500; i++) {
		if(document.getElementById(i) != null) {document.getElementById(i).style.display ="none";}
	}

	if(document.getElementById(''+valor_seleccionado) != null) {
		document.getElementById(''+valor_seleccionado).style.display ="block";
	}

}

function ocultar() {
	for (i=1; i<500; i++) 	{
		if(document.getElementById(i) != null) {document.getElementById(i).style.display ="none";}
	}
}
var valor = 1;
var carpeta = "como descargo";
function cargandobanner1y2 (){
	if (valor == 5) valor=1;
	so = new SWFObject('flash/contenidos_1_140x435/banner_'+valor+'.swf', 'repro', '140', '428', '6', '#000000');
   			so.addParam('allowScriptAccess', 'sameDomain');
			so.addParam('bgcolor', '#ffffff');
			so.addParam('wmode', 'transparent');
   			so.write('banner1');
			valor += 1;
			
	
	}

function mostrarbanner1y2(){
	setInterval("cargandobanner1y2()", 10000);
	so2 = new SWFObject('flash/contenidos_2_140x205/'+carpeta+'/140x205.swf', 'repro', '140', '204', '6', '#000000');
   			so2.addParam('allowScriptAccess', 'sameDomain');
			so2.addParam('bgcolor', '#ffffff');
			so2.addParam('wmode', 'transparent');
   			so2.write('banner2');
	//if (carpeta == "buscanexos") {carpeta = "como descargo";}else{carpeta = "buscanexos";}
}

/*** Deshabilitar click derecho ****************************************************************/
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
/*** runSWF *************************************************************************************/
document.oncontextmenu=new Function("return false")