function changeLetter(/*string*/letter) {
  $("dt").hide();
  $("dd").hide();
  $("dt." + letter).show();
  $("dt." + letter + " a.open").each(function() {
    $("dd#" + this.id + "-definition").show(); 
  });
}

function showAll() {
  $("dt").show();
  $("dd").hide();
  $("dt a.open").each(function() {
    $("dd#" + this.id + "-definition").show(); 
  });
}

function selectSize(link) {
  $("#sizeSelection option").each(function() {
    if (this.text == link.text) 
      this.selected = "true";
  });
}

function showContentLayer(link){
  return hs.htmlExpand(link, {objectType: 'iframe',outlineType: 'rounded-white',wrapperClassName: 'draggable-header',width: 822,height: 600,align: 'center'});
} 

function showSizedContentLayer(link, layerWidth, layerHeight) {
  return hs.htmlExpand(link, {objectType: 'iframe',outlineType: 'rounded-white',wrapperClassName: 'draggable-header',width: layerWidth,height: layerHeight,align: 'center'});
}

function showCommentLayer(link){
  return hs.htmlExpand(document.getElementById(link), {contentId: link,  width: 800, height: 480, align: 'center'});
} 


$(document).ready(function() {
  $("ul#tabs li a, ul#tabsArticle li a").click(function() {
    var contentElement = $(this).attr("class");
    $("div.tabsContent").children("div").hide();
    $("div.tabsContent").children("#" + contentElement).show();
    $(this).parent("li").siblings("li").removeClass("active");
    $(this).parent("li").addClass('active');
  });
});

