nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}






function expandText()
	{
		if (null==document.counter) document.counter = -20
		document.counter++
		document.all.expand.style.letterSpacing = document.counter
		if (document.counter<0)
			setTimeout("expandText()",15)
		else
			document.counter = null
	}






function borderit(which,color){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
which.style.borderColor=color
}
}




function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement

if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains
(event.toElement)||source.id=="ignore")
return

if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}



function canvicss(){
	window.parent.conf.document.location.href = '3_conf.htm'
}

function nocanvicss(){
	window.parent.conf.document.location.href = '3_taronja.htm'
}


function barrabotonstaronja(){
document.body.style.scrollbarBaseColor='#FFFFFF'
document.body.style.scrollbarArrowColor='#FF9900'
document.body.style.scrollbarDarkShadowColor='#FFFFFF'
document.body.style.scrollbarFaceColor='#FFFFFF'
document.body.style.scrollbarHighlightColor='#FFFFFF'
document.body.style.scrollbarShadowColor='#FFFFFF'
document.body.style.scrollbar3dlightColor='#FFFFFF'
}

function canviTamany(layerID,que){ 
	document.getElementById(layerID).style.fontSize = parseInt(document.getElementById(layerID).style.fontSize) + que; 
	}

function imprimeixdiv() {
  window.parent.frame.div.focus();
  window.print();
  }


