/* Inside jqexpandcontract_fi */ $(".heading").hover(function() { // When one takes the mouse into the heading theActiveBackground = $("#h" + this.id.substring(1)).css("background"); if(!locked && theActivePart != "c" + this.id.substring(1)) { HotPart = "h" + this.id.substring(1); $("#" + HotPart).css({"background":"#FF0000", "cursor":"pointer"}); } }, function() { // When one takes the mouse out of the heading $("#" + HotPart).css({"background":theActiveBackground, "cursor":"default"}); HotPart = ""; }); $(".heading").click(function() { theShowTiming = theTiming; if(!locked) { locked = true; theActivePart ="c" + this.id.substring(1); if(theFormerActivePart != "" && theActivePart != theFormerActivePart) theShowTiming = theShowTiming / 2; $("#" + theActivePart).show(theShowTiming, function() { if(theFormerActivePart != "") { $("#" + theFormerActivePart).hide(theShowTiming, function() { locked = false; }); if(theActivePart == theFormerActivePart) theActivePart = ""; } else { locked = false; } theFormerActivePart = theActivePart; }); } }); /* Exit jqexpandcontract_fi */