better
remove the rollover script
modify the fuctions(shown in red)
Code:
switchcontent.prototype.contractcontent=function(header){
var innercontent=document.getElementById(header.id.replace("-title", "")) //Reference content container for this header
swap(header,false);
innercontent.style.display="none"
this.togglestatus(header, this.statusClosed)
this.togglecolor(header, this.colorClosed)
}
//PRIVATE: Expands a content based on its corresponding header entered
switchcontent.prototype.expandcontent=function(header){
var innercontent=document.getElementById(header.id.replace("-title", ""))
if (header.ajaxstatus=="waiting"){//if this is an Ajax header AND remote content hasn't already been fetched
switchcontent.connect(header.ajaxfile, header)
}
swap(header,true);
innercontent.style.display="block"
this.togglestatus(header, this.statusOpen)
this.togglecolor(header, this.colorOpen)
}
and add the new function
Code:
function swap(obj,ud){
var img=obj.getElementsByTagName('IMG')[0];
if (img){
if (!img.xsrc){
img.xsrc=[img.className.split(' ')[1],img.src];
}
img.src=img.xsrc[ud?0:1];
}
}
Bookmarks