
//### RE-ESCALAR VENTANA #########################################
function tamañoVentana(ancho,alto){
	window.moveTo((screen.width-ancho)/2,(screen.height-alto)/2);
	window.resizeTo(ancho,alto);
	}
function mover(x,y){
	window.moveTo(x,y);
	}
//### POP UP #####################################################
function abrirVentana(URL,ancho,alto){ 
	var centrarX = (screen.width-ancho)/2;
	var centrarY = (screen.height-alto)/2;
	var abrir = window.open(URL,"ventana1","width="+ancho+",height="+alto+",top="+centrarY+",left="+centrarX+",scrollbars=NO,resizable=NO,location=1")
		if (abrir == undefined){ 
		alert("No se pudo abrir la ventana.\nAseguraté de no tener bloquear ventanas activado.");
	}
}
//### TAMAÑO SWF #################################################
function tamañoSwf(alto){
document.web.height=alto;
}
//### ALERTA #####################################################
function alerta(texto){
window.alert(texto)
}
//### AGREGAR A FAVORITOS ########################################
function favoritos(miurl,titulo){
if(document.all){
window.external.AddFavorite(miurl,titulo)}
}
//### TEMBLOR ####################################################
function temblor(n) {
	if (parent.moveBy) {
		for (i = 10; i > 0; i--) {
			for (j = n; j > 0; j--) {
				parent.moveBy(0,i);
				parent.moveBy(i,0);
				parent.moveBy(0,-i);
				parent.moveBy(-i,0);
         	}
      	}
   }
}
//### BOTONES DEL NAVEGADOR ######################################
function botonAtras() {
document.history.back()
}
function botonAdelante() {
document.history.forward()  
}
//### BARRA DE ESTADO ############################################
function barraEstado(texto){
status = texto
}
function estadoDefault(){
window.defaultStatus = "http://www.phavlo.com"
}
//################################################################ 
function flashGetHref() { return location.href; }
function flashPutHref(href) { location.href = href; }
function flashGetTitle() { return document.title; }
function flashPutTitle(title) { document.title = title; }