function abre(direccion, ancho, alto) {
	window.open(direccion, 'foto', 'width=' + ancho + ',height=' + alto + ',status=no,toolbar=no,menubar=no');
	}

function createTitleDropShadow() {
 var d = document;
 if(!d.createElement) { return false }

 var titulo = "titulo";
 var titulo_dropshadow = 'titulo_dropshadow';
 var shadow_color = "#CCCCCC";
 var text_color = "#A00000";
 var v_offset = -3;
 var h_offset = -3;
 
 var shadowBlock = d.getElementById(titulo);
 if (!shadowBlock) { return false; }

 var test = d.createElement('DIV')
 if(test == true){
  shadowBlock.removeChild(test)
 }

 var shadowText = shadowBlock.firstChild.nodeValue;
 shadowBlock.style.color = shadow_color;
 shadowBlock.style.position = 'relative';
 shadowBlock.style.top = flipNumber(v_offset) + 'px';
 shadowBlock.style.left = flipNumber(h_offset) + 'px';

 var textBlock = d.createElement('SPAN')
 textBlock.id = 'titulo_dropshadow'
 textBlock.style.color = text_color;
 textBlock.style.position = 'absolute';
 textBlock.style.top = v_offset + 'px';

//Detección de browsers
if (is_ie5) {
	//textBlock.style.right = flipNumber(4 * h_offset) + 'px';
	//alert('IE 5.0!!');
	//Chapuza provisional para desactivar el drop shadow
	shadowBlock.style.color = text_color;
	shadowBlock.removeChild(textBlock);
	}
else if (is_ie4up) {
	textBlock.style.left = h_offset + 'px';
	}
else { textBlock.style.right = flipNumber(h_offset) + 'px'; }

 var textText = d.createTextNode(shadowText);

 textBlock.appendChild(textText);
 shadowBlock.appendChild(textBlock)
}

function flipNumber(x){
 var y = parseFloat(x);
 (y < 0) ? y = Math.abs(y) : y = y * -1;
 return y;
}
