// JavaScript Document for Acupuncture by Lil Bush

normal_image = new Image();
normal_image.src = "images/button-contact-roll.png";

mouseover_image = new Image();
mouseover_image.src = "images/button-contact.png";

pf_image = new Image();
pf_image.src = "images/button-patient-forms-roll.png";

pfmouseover_image = new Image();
pfmouseover_image.src = "images/button-patient-forms.png";

arrow_down = new Image();
arrow_down.src = "images/icon-arrow-roll.gif";

arrow_up = new Image();
arrow_up.src = "images/icon-arrow.gif";

function swap(){
if (document.images){
for (var x=0;
x<swap.arguments.length;
x+=2) {
document[swap.arguments[x]].src = eval(swap.arguments[x+1] + ".src");
}
}
}

function ansQuestion(callID, idState) // value of 1 shows box, 0 hides it
{
   var obj = document.layers ? document.layers[callID] :
   document.getElementById ?  document.getElementById(callID).style :
   document.all[callID].style;
   obj.display = document.layers ? (idState ? "show" : "hide") :
   (idState ? "block" : "none");
}
