button_1_on  = new Image();button_1_on.src =  "images/b_home_over.gif";
button_1_off = new Image();button_1_off.src = "images/b_home.gif";

button_2_on  = new Image();button_2_on.src =  "images/b_process_over.gif";
button_2_off = new Image();button_2_off.src = "images/b_process.gif";

button_3_on  = new Image();button_3_on.src =  "images/b_news_over.gif";
button_3_off = new Image();button_3_off.src = "images/b_news.gif";

button_4_on  = new Image();button_4_on.src =  "images/b_events_over.gif";
button_4_off = new Image();button_4_off.src = "images/b_events.gif";

button_5_on  = new Image();button_5_on.src =  "images/b_forum_over.gif";
button_5_off = new Image();button_5_off.src = "images/b_forum.gif";

button_6_on  = new Image();button_6_on.src =  "images/b_task_over.gif";
button_6_off = new Image();button_6_off.src = "images/b_task.gif";

button_7_on  = new Image();button_7_on.src =  "images/b_library_over.gif";
button_7_off = new Image();button_7_off.src = "images/b_library.gif";

button_8_on  = new Image();button_8_on.src =  "images/b_contact_over.gif";
button_8_off = new Image();button_8_off.src = "images/b_contact.gif";

button_9_on  = new Image();button_9_on.src =  "images/b_splashenter_over.gif";
button_9_off = new Image();button_9_off.src = "images/b_splashenter.gif";

function rollOn(thename) {
	var theImage = "document.b_" + thename;
	var theRoll  = "button_" + thename + "_on";
	eval(theImage).src = eval(theRoll).src;
}

function rollOff(thename) {
	var theImage = "document.b_" + thename;
	var theOff  = "button_" + thename + "_off";
	eval(theImage).src = eval(theOff).src;
}
function popwin(url) { 
			Window = window.open ('', 'Window', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=400,width=528');
			Window.focus();
			Window.location.href = url;
}
var ids=new Array();

function QAinit(){
if(document.getElementById){
var tids=document.getElementsByTagName('div');
for(i=0;i<tids.length;i++)if(tids[i].className=="question")ids[ids.length]=tids[i];
for(i=0;i<ids.length;i++)ids[i].onmouseup=setstate;
}}

function setstate(){
for(i=0;i<ids.length;i++){
if(ids[i]==this){
var d=this.parentNode.getElementsByTagName('div')[1];
if(d.style.display=="block")d.style.display="none";
else d.style.display="block";
}}}

function expandall(){
if(document.getElementById){
for(i=0;i<ids.length;i++)ids[i].parentNode.getElementsByTagName('div')[1].style.display="block";
}}

function collapseall(){
if(document.getElementById){
for(i=0;i<ids.length;i++)ids[i].parentNode.getElementsByTagName('div')[1].style.display="none";
}}

window.onload=QAinit;
