function mostrarLineaGaleria(e){
	var men = $('listaLineasGaleria');	
	if(men.style.display == 'block')men.style.display = 'none';
	else men.style.display = 'block';
	if(e)StopEvent(e);
}
var oPresConf = new Object();
oPresConf.iniciar = function(){
	oPresupuesto.mostrarPresupuesto(this.aTemp,this.idProductoActual);
}
var oPresupuesto = new function(){
	var seteando = false;
	this.mostrarPresupuesto = function(a,idProducto,e){
		if(!seteando){
			seteando = true;
			oPresConf.aTemp = a;
			oPresConf.idProductoActual = idProducto;
			incluirScript(DIR_SERVER_ROOT + 'js/oPresupuesto.js');			
		}
		if(e)StopEvent(e);
	}
}
var oDocConf = new Object();
oDocConf.iniciar = function(){
	oDocumentacion.mostrarDescarga(this.docTem);
}
var oDocumentacion = new function(){
	var seteando = false;
	this.mostrarDescarga = function(idDocumentacion,e){
		if(!seteando){
			seteando = true;
			oDocConf.docTem = idDocumentacion;
			incluirScript(DIR_SERVER_ROOT + 'js/oDocumentacion.js');			
		}
		if(e)StopEvent(e);
	}
}


var ocultarSolapa = function(id){
	var ident = $(id).parentNode.parentNode.id;
	ident = ident.replace('conSolDe','titSolDe');
	if($(ident))$(ident).style.display = 'none';
}
var controlarFichaTecnica = function(idDoc){
	
	var tecnica = $('finFechaTecnica');
	if(tecnica && tecnica.parentNode.childNodes.length == 1){
		var ident = tecnica.parentNode.parentNode.id;
		ident = ident.replace('conSolDe','titSolDe');
		if($(ident))$(ident).style.display = 'none';
		tecnica.parentNode.parentNode.style.visibility = 'hidden';
		var ident = $(idDoc).parentNode.parentNode.id;
		ident = ident.replace('conSolDe','titSolDe');
		if($(ident) && $(ident).style.display != 'none'){
			AddEvent(window,'load',function(){FireEvent($(ident),'click')});
		}

	}
	
}

var oConsultaProducto = new function(){
	var seteando = false;

	this.consultar = function(a,idProducto,e){

		if(!seteando){
			seteando = true;
			oConsConf.aTemp = a;
			oConsConf.idProductoActual = idProducto;
			incluirScript(DIR_SERVER_ROOT + 'js/oConsultaProducto.js');			
			
		}
		if(e)StopEvent(e);
	}
}

