/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder = "/buscador/resources/images/buttons/";

/*** SET BUTTONS' FILENAMES HERE ***/
upSources = new Array("button1up.png");

overSources = new Array("button1over.png");


//*** NO MORE SETTINGS BEYOND THIS POINT ***//
totalButtons = upSources.length;



//*** MAIN BUTTONS FUNCTIONS ***//
// PRELOAD MAIN MENU BUTTON IMAGES
function preload() {
	for ( x=0; x<totalButtons; x++ ) {
		buttonUp = new Image();
		buttonUp.src = buttonFolder + upSources[x];
		buttonOver = new Image();
		buttonOver.src = buttonFolder + overSources[x];
	}
}

// SET MOUSEOVER BUTTON
function setOverImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + overSources[But-1];
}

// SET MOUSEOUT BUTTON
function setOutImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + upSources[But-1];
}

function send(foco){
	//Si foco es igual a 1, el envio de los datos fue de el objeto query o el boton
	//Si foco fuera igual a 2, el envio de datos proviene del objeto numHits y breadcrumb no se resetea
	if(foco == 1){
		this.document.searchForm.breadcrumb.value = '';
	}
	
	this.document.searchForm.offset.value = '0';
	this.document.searchForm.submit();
}

function detalle(destino, param, val){
	replaceValue();
	if(param==1)this.document.searchForm.folio.value=val;
	else this.document.searchForm.expediente.value=val;
	this.document.searchForm.action = destino;
	this.document.searchForm.submit();
}

function mostrarTip(){
	document.forms[0].submit();
}

//preload();
