if(self != top) top.location.href = self.location.href
var anchoVentana = 400
var altoVentana = 300

function verEjemplo(cual,ancho,alto,nombre,atris){
archivo = "scripts/" + seccion + "/" + cual
atrib = "resizable=yes,width=" + ancho + ",height=" + alto + atris
ventana = window.open(archivo,nombre,atrib)
}

function verCodigo(cual,tex,lan){
	obj = document.getElementById(cual)
	obj.style.display = obj.style.display == 'block' ? 'none' : 'block'
	tex.lastChild.nodeValue = obj.style.display == 'block' ? "Ocultar Código" : "Mostrar Código"
	if(lan == "en"){
		tex.lastChild.nodeValue = obj.style.display == 'block' ? "Hide Code"  : "View Code"
		}
	//scroll(300,document.body.scrollTop+100)
}
function verCodigoFuente(cual)
{location.href ="view-source:" + cual}

function verCF(cual){
	dominio = location.host
	directorio = location.pathname
	directorio = directorio.split("/")
	if(tunOp){
		location.href="http://" + dominio + "/" + directorio[1] + "/scripts/" + cual
	}
	else{
		location.href="view-source:" + "http://" + dominio + "/" + directorio[1] + "/scripts/" + cual
	}
}
var iex = navigator.appName=="Microsoft Internet Explorer"?true:false;
tunOp = navigator.userAgent.indexOf('Opera')>=0 ? true: false;

function clickMenu(){
	return false;
}
