
/* * * * * * * * * * domInit * * * * * * * * * * * * * * */
function domInit(container,tag,offColor){
if (document.getElementById){
        containerDiv = document.getElementById(container);
        if (tag)
        
            {
            this.tags = containerDiv.getElementsByTagName(tag)}
    
        if (offColor);
            {this.offColor = offColor}
        this.obj= container+"domInit";
        eval(this.obj+"=this")
        }
        else{return null}
    }

domInit.prototype.over = function(elem,state,delay){
if (state==0){

        this.tags[elem].style.color = '#f10b05';
            }
            else if (state==1){
            this.timer=window.setTimeout(this.obj+".out("+elem+")",delay);
            }
    }
        
        
domInit.prototype.out = function(elem){
        this.tags[elem].style.color = this.offColor;
        }

domInit.prototype.overAll = function(state,delay){
if (state==0){
    for (i=0;i<=this.tags.length;i++){
        this.tags[i].style.color = '#000';
        }
        }
        
 else if (state==1){
            for (i=0;i<=this.tags.length;i++){
            this.timer=window.setTimeout(this.obj+".out("+i+")",delay*7);
            
        }
        }
    }



function initDominit(){
		highlight = new domInit('mainContent','H3','#323232');
}   

