function twiddle_open(id) {
	section = "section_" + id;
	closer_text = "closer_text_" + id;
	opener_text = "opener_text_" + id;
	document.getElementById(section).style.display='block', document.getElementById(closer_text).style.display='none', document.getElementById(opener_text).style.display='block';
}

function twiddle_close(id) {
	section = "section_" + id;
	closer_text = "closer_text_" + id;
	opener_text = "opener_text_" + id;
	document.getElementById(section).style.display='none', document.getElementById(closer_text).style.display='block', document.getElementById(opener_text).style.display='none';
}

function ttwiddle_open(id) {
	section = "section_" + id;
	closer_arrow = "closer_arrow_" + id;
	closer_text = "closer_text_" + id;
	opener_arrow = "opener_arrow_" + id;
	opener_text = "opener_text_" + id;
	document.getElementById(section).style.display='block', document.getElementById(closer_arrow).style.display='block', document.getElementById(opener_arrow).style.display='none';
}

function ttwiddle_close(id) {
	section = "section_" + id;
	closer_arrow = "closer_arrow_" + id;
	closer_text = "closer_text_" + id;
	opener_arrow = "opener_arrow_" + id;
	opener_text = "opener_text_" + id;
	document.getElementById(section).style.display='none', document.getElementById(closer_arrow).style.display='none', document.getElementById(opener_arrow).style.display='block';
}

function radio_twiddle_open(id) {
	section_a = "section_" + id + "a";
	section_b = "section_" + id + "b";
	document.getElementById(section_b).style.display='none', document.getElementById(section_a).style.display='block';
}

function radio_twiddle_close(id) {
	section_a = "section_" + id + "a";
	section_b = "section_" + id + "b";
	document.getElementById(section_b).style.display='block', document.getElementById(section_a).style.display='none';
}

function rollover(img, img_src){
  var objStr,obj;
  if(document.images){
    if (typeof(img) == 'string') {
      objStr = 'document.' + img;
      obj = eval(objStr);
      obj.src = img_src;
    } else if ((typeof(img) == 'object') && img && img.src) {
      img.src = img_src;
    }
  }
}


function twiddle_open_enhanced(id) {
var section = id;
var closer_arrow = "closer_arrow_" + id;
var opener_arrow = "opener_arrow_" + id;
var anchor_marker = "anchor_"+id;

// look for only immidate children anchors
var anchortags = document.anchors;

for(var j=0; j < anchortags.length; ++j)
{
var aidj = anchortags[j].id;

if (aidj.indexOf(opener_arrow) != -1)
{
if (navigator.appName.indexOf('Microsoft') != -1)
{
   document.getElementById(aidj).style.display='block';
   }
   else
   {
   document.getElementById(aidj).style.visibility='visible';
   }
}

if (aidj == closer_arrow)
{
if (navigator.appName.indexOf('Microsoft') != -1)
{
   document.getElementById(aidj).style.display='block';
   }
   else
   {
   document.getElementById(aidj).style.visibility='visible';
   }
}

if (aidj == opener_arrow)
{
if (navigator.appName.indexOf('Microsoft') != -1)
{
document.getElementById(aidj).style.display='none';
}
   else
   {
   document.getElementById(aidj).style.visibility='collapse';
   }
}
}

for(var i=0; i < anchortags.length; ++i)
{
var aid = anchortags[i].id;

if (aid.indexOf(anchor_marker) != -1)
{
if (aid != anchor_marker)
{
var sr1 = aid.substring(("anchor_".length+ section.length));
var sri = sr1.indexOf("_");
if (sri != -1)
{
if (aid.length == ("anchor_".length+ section.length +sri+1))
{
var gw = aid.substring("anchor_".length);
if (navigator.appName.indexOf('Microsoft') != -1)
{
document.getElementById(gw).style.display='block';
}
else
{
   document.getElementById(gw).style.visibility='visible';
   }
   }
   }
} 
}
}
}

function twiddle_close_enhanced(id) {
section = id;
closer_arrow = "closer_arrow_" + id;
opener_arrow = "opener_arrow_" + id;
anchor_marker = "anchor_"+id;

// look for all children anchors
var anchortags = document.anchors;

for(var j=0; j < anchortags.length; ++j)
{
var aidj = anchortags[j].id;

if (aidj.indexOf(closer_arrow) != -1)
{
if (navigator.appName.indexOf('Microsoft') != -1)
{
document.getElementById(aidj).style.display='none';
   }
   else
   {
   document.getElementById(aidj).style.visibility='collapse';
   }
}

if (aidj.indexOf(opener_arrow) != -1)
{
if (navigator.appName.indexOf('Microsoft') != -1)
{
   document.getElementById(aidj).style.display='none';
}
else
{
   document.getElementById(aidj).style.visibility='collapse';   
   }
}

if (aidj == opener_arrow)
{
if (navigator.appName.indexOf('Microsoft') != -1)
{
   document.getElementById(aidj).style.display='block';
}
else
{
   document.getElementById(aidj).style.visibility='visible';   
   }
}

}

for(var i=0; i < anchortags.length; ++i)
{
var aid = anchortags[i].id;

if (aid.indexOf(anchor_marker) != -1)
{
if (aid != anchor_marker)
{
var sr = aid.substring("anchor_".length);
if (navigator.appName.indexOf('Microsoft') != -1)
{
document.getElementById(sr).style.display='none';
   }
   else
   {   
   document.getElementById(sr).style.visibility='collapse';   
   }
} 
}
}
}

