//<![CDATA[

<!-- Begin
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Fang :: http://tinyurl.com/7v7l8 */

function toggle(obj) {
 // Moz. or IE
 var sibling=(obj.nextSibling.nodeType==3)? obj.nextSibling.nextSibling : obj.nextSibling;
 // hide or show
 if(sibling.style.display=='' || sibling.style.display=='block') {
  sibling.style.display='none';
  obj.firstChild.firstChild.data='+';
 } else {
  sibling.style.display='block';
  obj.firstChild.firstChild.data='-';
 }
}

function initCollapse() {
 var oDT=document.getElementById('content').getElementsByTagName('dt');
 for (var i=0; i < oDT.length; i++) {
  oDT[i].onclick=function() {toggle(this)};
  var oSpan=document.createElement('span');
  var sign=document.createTextNode('+');
  oSpan.appendChild(sign);
  oDT[i].insertBefore(oSpan, oDT[i].firstChild);
  oSpan.style.fontFamily='monospace';
  oSpan.style.paddingRight='0.5em';
  oDT[i].style.cursor='pointer';
  toggle(oDT[i]);
 }
 oDT=null;
}

window.onload=function() {
 if(document.getElementById && document.createElement) {
  initCollapse();
 }
}

function displayContent(d) {
 f = "f" + d;
 q = "q" + d;
 document.getElementById(f).style.display = "";
 document.getElementById(q).style.color = "#0000ff";
}

function closeContent(d) {
 f = "f" + d;
 q = "q" + d;
 document.getElementById(f).style.display = "none";
 document.getElementById(q).style.color = "#000000";
}

//]]>
