var root = '/';
var errores = 0;
var loading = false;
var xmlHttp;
function GetXmlHttpObject(){var xmlHttp=null;try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}return xmlHttp;}

function popup(msg,fade,color){
Mcolor = color || "#FFF";
	jQuery.blockUI({ css: { 
		border: 'none', 
		padding: '20px', 
		backgroundColor: '#000', 
		fontSize: '16px', 
		'-webkit-border-radius': '10px', 
		'-moz-border-radius': '10px', 
		opacity: '.9', 
		color: Mcolor
	},message: msg });
if(fade>0) setTimeout(jQuery.unblockUI, fade); 
}

function validate(status,id){
	if(status == 0){
		document.getElementById(id).style.borderColor = '#f00';
		document.getElementById(id).style.color= '#f00';
		errores++;
	}else{
		document.getElementById(id).style.borderColor = '';
		document.getElementById(id).style.color= '';
	}
}

function setval(id,val){
	document.getElementById(id).value = val;
}

function getval(id){
	return document.getElementById(id).value;
}

function getcheck(id){
	return document.getElementById(id).checked;
}

function gettype(id){
	return document.getElementById(id).type;
}

function getMultiple(ob){
	ob = document.getElementById(ob);
	selected = new Array();
	for(var i = 0; i < ob.options.length; i++) if(ob.options[i].selected) selected.push(ob.options[i].value);
	return selected;
}

function parseParams(params){
	var s = '';
	for(var i in params){
		var t = gettype(params[i]);
		if(t == 'checkbox' || t == 'radio'){
			s += params[i]+'='+getcheck(params[i])+'&'
		}else if(t == 'select-multiple'){
			s += params[i]+'='+getMultiple(params[i])+'&'
		}else{
			s += params[i]+'='+getval(params[i])+'&'
		}
	}
	return s.substr(0,s.length-1);
}

<!-- jQuery lightBox plugin -->
$(function() {

$('.galeria a').lightBox({
fixedNavigation:'true',
overlayBgColor: '#FFCCFF',
overlayOpacity: 0.8,
containerResizeSpeed: 450,
txtImage: 'Imagen',
txtOf: 'de'
});

$('.lightbox-noticia a').lightBox({
fixedNavigation:'true',
overlayBgColor: '#FFCCFF',
overlayOpacity: 0.8,
containerResizeSpeed: 450,
txtImage: 'Imagen',
txtOf: 'de'
});

});