$(document).ready(function() {

 var $cycle_running = 1;

 /*$(".faq_list li a.faq_link").click(function() {
  if (jQuery("div", $(this).parent()).css("display") == "block") {
   //jQuery("div", $(this).parent()).animate({height:"hide",opacity:"hide"},"fast");
   jQuery("div", $(this).parent()).css("display", "none");
  } else {
   //jQuery("div", $(this).parent()).animate({height:"show",opacity:"show"},"fast");
    jQuery("div", $(this).parent()).css("display", "block");
  }
  return(false);
 });*/
 
 $(".faq_list_item a.faq_link").bind("click", function() {
    $(this).parent().children("div").slideToggle();
    return false;
 })
 

 $('.feature_images_home_active').cycle({ 
  fx:     'fade', 
  speed:  'slow', 
  timeout: 6000,
  pause:   1, 
  next:   '#feature_next', 
  prev:   '#feature_prev'
 });

 $('#feature_pause').click(function() {
  if ($cycle_running == 1) {
   $('.feature_images_home').cycle('pause');
   $cycle_running = 0;
  } else {
   $('.feature_images_home').cycle('resume', true); 
   $cycle_running = 1;
  }
  return(false);
 });
 
 $(".back_link").click(function() {
  history.go(-1);
  return(false);
 });

/* popup menu */
$("#header_menu ul li").hover(function() {
	var pos = $(this).position();
	$(this).children("div").css("left",(pos.left)+"px").css("top",(pos.top+40)+"px").css("z-index","1").show();
}, function(evt) {   
    $(".submenu").hide();
});

});

