//-------------------------------
/*-- PopUp con medidas fijas --*/
//-------------------------------
function popup(url) {
	winStats='toolbar=no,location=no,directories=no,menubar=no,';
	winStats+='scrollbars=no,width=320,height=350';
	if (navigator.appName.indexOf("Microsoft")>=0) {
		winStats+=',left=80,top=50';
	}else{
		winStats+=',screenX=80,screenY=120';
	}
	floater=window.open(url,"",winStats);
}
//-------------------------------
/*-- PopUp sin medidas fijas --*/
//-------------------------------
function popup_var(url, w , h) {
	winStats='toolbar=no,location=no,directories=no,menubar=no,';
	winStats+='width='+w+',height='+h;
	if (navigator.appName.indexOf("Microsoft")>=0) {
		winStats+=',left=420,top=495';
	}else{
		winStats+=',screenX=80,screenY=120';
	}
	floater=window.open(url,"",winStats);
}


function doSection (secNum){
//display the section if it's not displayed; hide it if it is displayed
if (secNum.style.display=="none"){secNum.style.display=""}
else {secNum.style.display="none"}
}

function noSection (secNum){
//remove the section when user clicks in the opened DIV
if (secNum.style.display==""){secNum.style.display="none"}
}

//-- Funcion que muestra los swf
function ShowSwf(SwfFile, SwfWidth, SwfHeight){
    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="'+SwfWidth+'" height="'+SwfHeight+'">');
    document.write('<param name="movie" value="'+SwfFile+'">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="wmode" value="transparent">');
    document.write('<embed src="'+SwfFile+'" width="'+SwfWidth+'" height="'+SwfHeight+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
    document.write('</object>');           
}

//--función para colapsar info
function displaySubs(id, numHijos){
	for(i=0; i<numHijos; i++){
		if(document.getElementById(id + '_' + i)!=null){
			if(document.getElementById(id + '_' + i).className == 'hide')
				document.getElementById(id + '_' + i).className = 'show';
			else
				document.getElementById(id + '_' + i).className = 'hide';
		}
	}
}

function imgRoll(id){
 	img = document.getElementById(id); //imagen a replazar dinamicamente
	if(img.alt=="Ver más"){
		img.src = "images/bullet_menos.jpg";
		img.alt = "Cerrar";
		img.title = "Cerrar";
	}else{
		img.src = "images/bullet_mas.jpg";
		img.alt = "Ver más";
		img.title = "Ver más";
	}
}