lbshlp=false;tmpoff=true;saliendo=false;seccionurl="";notaurl="";oldbg="#ffffff";oldtit=""
function icninit(){
if(parent.nota)oturl=parent.nota.document.location.href
else oturl=parent.general.document.location.href
otfol=oturl.indexOf("/",(oturl.indexOf("labondiola")))+1;oldtit=oturl.substring(otfol,otfol+4);chtit(oldtit);document[oldtit].src="pix/i"+oldtit+"-2.gif"
if(parent.seccion){
if(parent.seccion.secpie){
if(parent.seccion.secpie.document.location.href.indexOf("software")>1){
lbshlp=true
}
}
}
CSInit[CSInit.length]=new Array(CSILoad,'publ',document.publ.src,'pix/ipubl-1.gif','','Editorial La Bondiola');CSInit[CSInit.length]=new Array(CSILoad,'reco',document.reco.src,'pix/ireco-1.gif','','La Bondiola Records');CSInit[CSInit.length]=new Array(CSILoad,'soft',document.soft.src,'pix/isoft-1.gif','','La Bondiola Software');CSInit[CSInit.length]=new Array(CSILoad,'ppal','pix/ippal-a0.gif','pix/ippal-a1.gif','','Volver a La Bondiola')
CSInit[CSInit.length]=new Array(CSPreloadImage,'pix/tpubl-1.gif');CSInit[CSInit.length]=new Array(CSPreloadImage,'pix/treco-1.gif');CSInit[CSInit.length]=new Array(CSPreloadImage,'pix/tsoft-1.gif');CSInit[CSInit.length]=new Array(CSPreloadImage,'pix/tppal-1.gif');CSInit[CSInit.length]=new Array(CSPreloadImage,'pix/tpubl.gif');CSInit[CSInit.length]=new Array(CSPreloadImage,'pix/treco.gif');CSInit[CSInit.length]=new Array(CSPreloadImage,'pix/tsoft.gif');CSInit[CSInit.length]=new Array(CSPreloadImage,'pix/tppal.gif');
CSScriptInit();
}
function initgeneral(){
if(parent.seccion)parent.seccion.document.bgColor=oldbg;else{
if(parent.general.seccion)parent.general.seccion.document.bgColor=oldbg
if(seccionurl==""&&parent.general.nota)parent.general.nota.document.location=notaurl
}
}
function tempmenu(seccionid){
if(seccionid){
tmpoff=false
oldtit2=oldtit;oldtit=seccionid;chtit(seccionid);var myurl=self.location.href;var mybaseurl=(myurl.substring(0,myurl.lastIndexOf('/')+1))
if(!parent.seccion&&!parent.general.seccion){
seccionurl="";notaurl=(parent.general.location.href);oldbg=(parent.general.document.bgColor);parent.general.document.write('<FRAMESET cols=180,* framespacing=0 border=0 frameborder=NO><FRAME src='+mybaseurl+seccionid+'.htm name=seccion noresize scrolling=NO><FRAME name=nota src='+mybaseurl+'blank.htm noresize><\/FRAMESET>')
}else{
if(parent.seccion){
var seccionurltmp=parent.seccion.location.href
if(parent.seccion.seccabeza)oldbg=(parent.seccion.seccabeza.document.bgColor)
else oldbg=(parent.seccion.document.bgColor)
parent.seccion.location=mybaseurl+seccionid+".htm"
}else if(parent.general.seccion){
var seccionurltmp=parent.general.seccion.location.href
if (parent.general.seccion.seccabeza){
oldbg=(parent.general.seccion.seccabeza.document.bgColor)
}else{
oldbg=(parent.general.seccion.document.bgColor)
}
parent.general.seccion.location=mybaseurl+seccionid+".htm"
}
if(seccionurltmp.indexOf(mybaseurl)<0)seccionurl=seccionurltmp
}
}else{//tempmenu(false)
setTimeout("tmpoff=true",5000)
oldtit=oldtit2;chtit(oldtit);if(seccionurl==""){
if(parent.general.nota){
notaurl=parent.general.nota.location.href;parent.general.location=notaurl
}
}else{
if(parent.seccion){
parent.seccion.location=seccionurl
}else if (parent.general.seccion)parent.general.seccion.location=seccionurl
}
}
}
function chtit(secc){if(document.images)document.ctit.src="pix/t"+secc+".gif";
}
function icnover(secc,siono){
if(siono==1){
chtit(secc+"-1")
if(lbshlp&&tmpoff)parent.seccion.secpie.hlp(CSIm[secc][3])
}else if(oldtit!=""){
chtit(oldtit)
if(lbshlp&&tmpoff)parent.seccion.secpie.hlpoff()
}
return CSIShow(secc,siono)
}
function lbover(siono){
if(siono==2){
saliendo=true
top.location="../bienvenidos.cfm"
}else{

if(!saliendo){
	if(parent.seccion){
		//var parentseccionurl=parent.seccion.document.location.href
		if(parent.seccion.document.location.href.indexOf("/root/")>0){
			//alert ("root")
			parent.seccion.mylbover(siono)
			}
	}else if(parent.general){
		if(parent.general.seccion){
if (parent.general.seccion.document.location.href.indexOf("/root/")>0){

			parent.general.seccion.mylbover(siono)
			}
			}
		}
	return icnover('ppal',siono)
	}
}

}
