if (typeof (RUZEE) != 'undefined') {
	var happing = (happing || RUZEE.ShadedBorder.create({
		corner : 10,
		border : 0,
		shadow : 28
	}));
	var lwContainer = (lwContainer || RUZEE.ShadedBorder.create({
		corner : 8,
		border : 1,
		shadow : 16
	}));
}
// ASH : funciones comunes a todo contenido, posiblemente hay que
// sobreescribirla en cada jsp de listado
function pager_up(url, id_update) {
	miContenido.pagina_contenido({
		url : url,
		id_update : id_update,
		scroll : false
	});
	return false;
}
function pager_down(url, id_update) {
	miContenido.pagina_contenido({
		url : url,
		id_update : id_update,
		scroll : true
	});
	return false;
}
function comment(index) {
	miContenido.update_options({
		index : index
	});
	miContenido.comentar();
}
function moveIt(index) {
	miContenido.update_options({
		index : index
	});
	miContenido.moverLo();
}
function favorite(index) {
	miContenido.update_options({
		index : index
	});
	miContenido.meLoQuedo();
}
function votar(mivoto) {
	myVotation.votar({
		my_vote : mivoto,
		contenido : miContenido
	});
	return false;
}
function recommend(index) {
	miContenido.update_options({
		index : index
	});
	miContenido.mostrarRecomendar();
}
// fin funciones comunes /

// Post logout generico
function postLogout() {
	Logged.out();
}

// se usa
function quitarcapa() {
	myLightWindow.deactivate();
}

function quitarcapareload() {
	myLightWindow.deactivate();
	document.location.reload();
}
// USADO AL BLOQUear a un usuario
function launchBloqueo() {
	myLightWindow.deactivate();
	myLightWindow.activateWindow({
		href : '/mensajeria/confirmaBloqueo.action',
		title : 'Bloquear mensajes de usuario',
		width : 560,
		height : 540
	});
}

// usado
function iramiperfil() {
	document.location.href = '/usuario/' + $('user').innerHTML;
}

// SE USA AL BORRAR UNA FRASE
function volver(resp) {
	document.location.href = "/mihapping/deleteFrase.action";
}

// USADO AL BORRAR UN MENSAJE
function canExecuteDelete() {
	var chboxs = document.getElementsByName('listaIdBorrar');
	for (i = 0; i < chboxs.length; i++) {
		if (chboxs[i].checked)
			return true;
	}
	return false;
}

/**
 * Permite abrir la ventana de recomendacion de una frase para el teveo
 * 
 * @param idContent
 *            coid de una frase
 * @return
 */
function mostrarRecomendacionFraseParaTeveo(idContent) {
	miContenido.update_options({
		id_contenido : idContent,
		tipo_contenido : 'FRASE'
	});
	miContenido.mostrarRecomendar();
}

function ACJ() {
	if (self == top) {
		var theBody = document.getElementsByTagName('body')[0];
		theBody.style.display = "block";
			theBody.style.opacity = 1;
	} else {
		top.location = self.location;
	}
	return false;
}
