﻿

function expand(divid,arrow) 
{ 
	  //begin function
      var element1 = document.getElementById(divid).style; //get the element
	  var element2 = document.getElementById(arrow).style; //get the arrow
        if(element1.display == "none"){ //if element is already hidden...
          element1.display = ""; //... toggle the display
		  element2.background = "url(../images/btn_arrows_toggle.gif) 0 -15px no-repeat"; //... toggle the arrow
        } else { //if element is not hidden...
          element1.display = "none"; //... toggle the display
		  element2.background = "url(../images/btn_arrows_toggle.gif) 0 0 no-repeat"; //... toggle the arrow
        }
}

