var active = null;
//
getElement=function(id){	
  if (!document.getElementById){
   return;
  }
//
if (document.getElementById){
// this is the way the standards work
var el = document.getElementById(id);
}else if (document.all){
// this is the way old msie versions work
var  el = document.all[id];
}else if (document.layers){
// this is the way nn4 works
var el = document.layers[id];
}
return el;
}
//
toggleDisplay=function(el){
el.style.display = el.style.display ? "" : "block";
}
//
switchContent=function(id){
//turn off last active
if(active){
toggleDisplay(active);
}
active=getElement(id);
toggleDisplay(active);
//var img=(getElement('headerimg'))
//img.src="images/header-"+id+".jpg"
}

writeToolbar=function(src){
(getElement('toolbar')).innerHTML='<iframe src="'+src+'" name="toolbarframe" height="30" width="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>';
}

