	function ampliar(URLampliacion,nombreventana,ancho,alto) {
 		window.open(URLampliacion, nombreventana, "toolbar=no,location=no,status=yes,menubar=no,scrollbars=auto,width="+ancho+",height="+alto+",resizable=no" );
	}
	function abreEnPadre(elLink, cierrame, soloCierra) {
		if (! (window.focus && window.opener))return true;
			window.opener.focus();
		if (! soloCierra)window.opener.location.href=elLink.href;
		if (cierrame)window.close();
		return false;
	}

	function ampliarItem(URLampliacion,nombreventana,ancho,alto) {
 		window.open(URLampliacion, nombreventana, "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,width="+ancho+",height="+alto+",resizable=no" );
	}
	
	$(function() {
	$("embed").each(function(i) {
		var elClone = this.cloneNode(true);
		
		elClone.setAttribute("wmode", "transparent");
		$(this).before(elClone);
		$(this).remove();
	});	
    $("a[rel=external]").click(function(){
        this.target = "_blank";
    });	
	// For object and/or embed into objects
	$("object").each(function (i, v) {

		var elEmbed = $(this).children("embed");
		if(typeof (elEmbed.get(0)) != "undefined") {
			if(typeof (elEmbed.get(0).outerHTML) != "undefined") {
				elEmbed.setAttribute("wmode", "transparent");
				$(this.outerHTML).insertAfter(this);
				$(this).remove();
			}
			return true;
		}
	});
	});
