function article_toggle( dom_id ) {
  location.href = "#" + dom_id
  Effect.toggle( dom_id + '-introduction', 'appear' ); 
  Effect.toggle( dom_id + '-body', 'blind' );
}

function search_box_focus() {

}

function article_select( input_field, selected_list_item ) {
  var article_id = selected_list_item.getAttribute( "article_id" );
  if( article_id && article_id > 0) {
    input_field.value = '';
    input_field.focus();

    location.href = "/articles/" + article_id;
  }
}

function post_select() {
  var post_id = selected_list_item.getAttribute( "post_id" );
  if( post_id && post_id > 0) {
    input_field.value = '';
    input_field.focus();

    location.href = "/posts/" + post_id;
  }
}

function post_select() {

}

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) {
  if ((version >= 5.5) && (version < 7) && (document.body.filters)) {
    var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
    var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
    var imgTitle = (myImage.title) ? 
    "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
    var imgStyle = "display:inline-block;" + myImage.style.cssText
    var strNewHTML = "<span " + imgID + imgClass + imgTitle
    + " style=\"" + "width:" + myImage.width 
    + "px; height:" + myImage.height 
    + "px;" + imgStyle + ";"
    + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
    + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
    myImage.outerHTML = strNewHTML	  
  }
}
