function fa(selector, css_chg, css_org, time){
  var notIE6 = true;
  if(!jQuery.support.opacity && !jQuery.support.style){
    if(typeof document.documentElement.style.maxHeight == "undefined"){
      notIE6 = false;
    }
  }

  $(selector).each(function(){
    $(this).hover(function(){
      $(this).animate(css_chg,time);
    },function(){
      $(this).animate(css_org,time);
    });
    var anchor = $(this).find('a')
    var href=anchor.attr('href');
    var target=anchor.attr('target');
    if(notIE6 || target.length!=0){
      anchor.attr('href','javascript:void(0);');
      anchor.attr('target','');
    }
    $(this).css('cursor','pointer');
    $(this).css('cursor','hand');
    $(this).click(function(){
      if(target.length!=0){
        window.open(href,target);
      }
      else{
        window.location=href;
      }
    });
  });
}

