// expresion of interest script uses prototype
// therefore changed the $ to jQuery to avoid conflict

jQuery(function() {
  jQuery('#search_link').click(function () {
    jQuery('#search_form').toggle();
    return false;
  });
  
  jQuery('#slideshow').cycle({
  	fx: 'fade',
  	timeout: 6000, 
    delay:  -2000,
    width: 468,
    height: 207,
    fit: 1,
    cleartypeNoBg: true
  });

  jQuery('#search_form input').bind('click focus',function () {
    jQuery(this).val('');
  });
  jQuery('#search_form input').bind('blur', function () {
    jQuery(this).val('search');
  });
  
  jQuery('p.answer').hide();
  jQuery('.question').click(function() {
    jQuery(this).next().toggle();
  });
  jQuery('a.open_close').click(function() {
    if (jQuery(this).text() == "open all answers") {
      jQuery('p.answer').show();
      jQuery(this).html('close all answers');
    } else {
      jQuery('p.answer').hide();
      jQuery(this).html('open all answers');
    }
  });
});

