function clip(id, plus, minus, fadeing) {

   if ( plus === undefined ) {
      plus = "templates/xbrandmal/images/symbols/right.gif";
   }
   if ( minus === undefined ) {
      minus = "templates/xbrandmal/images/symbols/down.gif";
   }

    divtitle = document.getElementById(id).title;

   var kids = document.getElementsByTagName('div');
       for (var i=0; i < kids.length; i++) {
           if (kids[i].title == divtitle && divtitle != null && divtitle != "") {
                kids[i].style.display="none";
           }
        }


    with(document.getElementById(id).style){
        if(display=="none"){
            display="block";
            if(fadeing=="1") {
                document.getElementById(id).FadeState = -2;
                fade(id);
            }
            document.getElementById("img_" + id).src = minus; 
        }else if(display=="block"){
            if(fadeing=="1") {
                fade(id);
            }
            display="none";
            document.getElementById("img_" + id).src = plus;
        } else {
            display="block";
            if(fadeing=="1") {
                document.getElementById(id).FadeState = -2;
                fade(id);
            }
            document.getElementById("img_" + id).src = minus; 
        }
    }
}

function clip_hide(id, plus, minus) {

   if ( plus === undefined ) {
      plus = "templates/xbrandmal/images/symbols/right.gif";
   }
   if ( minus === undefined ) {
      minus = "templates/xbrandmal/images/symbols/down.gif";
   }



    with(document.getElementById(id).style){
            display="none";
            document.getElementById("img_" + id).src = plus;
    }
}

function clip_show(id, plus, minus) {

   if ( plus === undefined ) {
      plus = "templates/xbrandmal/images/symbols/right.gif";
   }
   if ( minus === undefined ) {
      minus = "templates/xbrandmal/images/symbols/down.gif";
   }



    with(document.getElementById(id).style){
            display="block";
            document.getElementById("img_" + id).src = minus; 
    }
}


