window.addEvent('domready', function() {
var stretchers = $$('div.accordion-content');
var togglers = $$('div.accordion-toggle');
var accordion = new Accordion(togglers, stretchers, {
start:'all-closed',
alwaysHide: true,
display:-1,
opacity:false,
duration:300
});
});



//**************************Popup class script ******************************
/// creates a popup 800x600 when a link has class="popup on it"
/// example: <a href="default.aspx" class="popup">Home</a>

window.onload = function() {
 // check to see that the browser supports the getElementsByTagName method
 // if not, exit the loop
 if (!document.getElementsByTagName) {

 return false;
 }
 // create an array of objects of each link in the document
 var popuplinks = document.getElementsByTagName("a");
 // loop through each of these links (anchor tags)
 for (var i=0; i < popuplinks.length; i++) {
 // if the link has a class of "popup"...
 if (popuplinks[i].className == "popup") {
 // add an onclick event on the fly to pass the href attribute
 // of the link to our second function, openPopUp

 popuplinks[i].onclick = function() {
 openPopUp(this.getAttribute("href"));
 return false;
 }
 }
 }
}

function openPopUp(linkURL) {
window.open(linkURL,'popup','location=0,status=0,scrollbars=1,width=850, height=650')
}
// ***** Btn Rollover *****
function roll(imgName,imgState) {
 try{
 document.images[imgName].src = imgState
 }catch( e ){}
}
// ***********************************************************************