imgout=new Image(44,11);
imgin=new Image(44,11);

/////////////////BEGIN USER EDITABLE///////////////////////////////
				imgout.src="/images/icon_more.gif";
				imgin.src="/images/icon_less.gif";
///////////////END USER EDITABLE///////////////////////////////////

//this switches expand collapse icons
function filter(imagename,objectsrc){
	if (document.images){
		document.images[imagename].src=eval(objectsrc+".src");
	}
}

//show OR hide funtion depends on if element is shown or hidden
function shoh(id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			 document.getElementById(id).style.display = 'block';
			 filter(("img"+id),'imgin');
		} else {
			 filter(("img"+id),'imgout');
			 document.getElementById(id).style.display = 'none';
		}
	} else {
		if (document.layers) {
			 if (document.id.display == "none"){
			 		document.id.display = 'block';
					filter(("img"+id),'imgin');
			 } else {
			 	 	filter(("img"+id),'imgout');
					document.id.display = 'none';
			 }
		} else {
			 if (document.all.id.style.visibility == "none"){
			 		document.all.id.style.display = 'block';
			 } else {
			 	 	filter(("img"+id),'imgout');
					document.all.id.style.display = 'none';
			 }
		}
	}
}

//for the quiz, same type of thing but a little different
function shoq(a1,a2) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(a1).style.display == "none"){
			 document.getElementById(a1).style.display = 'block';
			 document.getElementById(a2).style.display = 'none';
		} else {
			 document.getElementById(a1).style.display = 'none';
		}
	} else {
		if (document.layers) {
			 if (document.a1.display == "none"){
			 		document.a1.display = 'block';
					document.a2.display = 'none';
			 } else {
					document.a1.display = 'none';
			 }
		} else {
			 if (document.all.a1.style.visibility == "none"){
			 		document.all.a1.style.display = 'block';
					document.all.a2.syle.display = 'none';
			 } else {
					document.all.a1.style.display = 'none';
			 }
		}
	}
}

