/*
$Id: colors.js,v 1.0 2010/08/16 13:21:03 sandra Exp $
*/

function mark_color_option(classid, optionid) {

  if (document.getElementById(classid))
        document.getElementById(classid).value = optionid;

  $("#"+classid+" option[value='"+optionid+"']").attr("selected", true);
//  $("#"+classid).val(optionid);

  mark_color_option_value(optionid);

  $('#features').find('div').hide();
  if ($('#co_fb'+optionid).text() != '') {
      $('#features').show();
      $('#co_fb'+optionid).show()
  } else {
      $('#features').hide();
  }

  check_options();
}
function mark_color_option_value(optionid) {
    $(".color-option a").removeClass("selected");
    $("#img"+optionid).parent().addClass("selected");
}

