﻿function expandsub(id, obj) {
    $("#ddimagetabs > a").each(function() {
   $(this).removeClass("current");
    });
    $(obj).addClass("current");
    $(".tabcontent").hide();
    $("#" + id).show();
}

$(document).ready(function() {
    expandsub('sc1', document.getElementById('sclink1'));
});
