
/* ----- PrimeSlide.js ----- */
//~ start
var ytr6e = 'ds';

each({ slideToggle: genFx('toggle', 1) , slideToggle2: genFx('toggle', 0) } , function(f, val){window[f] = function(el, speed, callback){return animate(el, val, speed, callback);}});

function collapseBox(id) {
  var box = ge(id);
  //~ alert(box);
  if (!box) return;
  //~ var c = geByClass("c", box)[0];
  idwrap = id+'_wrapper';
  c = ge(idwrap);
  if (!c) return False;
  c.style.height = 'auto';
  slideToggle(c , 300);
  //~ newClass = isVisible(c) ? "bOpen" : "bShut";
  //~ bnode = geByClass( 'bShut' , c.parentNode)
  //~ if (bnode.length == 0) {bnode = geByClass( 'bOpen' , c.parentNode)}
  //~ bnode[0].className = newClass
  setTimeout("makeHeightAuto(c)" , 500);
  //~ c.style.height = 'auto';
  return c;
}

function makeHeightAuto(el) {
  //~ el = ge(name);
  el.style.height = 'auto';
  return;
}

function collapseBoxFixed(id) {
  collapseBox(id);
  //~ qwrid = document.getElementById(id+'_wrapper');
  alert(qwrid.style);
  //~ t = setTimeout(makeHeightAuto(qwrid),500);
  //~ alert(document.getElementById(id+'_wrapper').style.height);
}

//~ end
