﻿LightBoxLite.SetWindowBackground("#303030");
    LightBoxLite.SetLightOptions(500, 40, 'white');
    //LightBoxLite.SetClosingElement("btnCloseBox");

    function OpenLightBox() {
    LightBoxLite.ShowInnerElement( document.getElementById('kitchen_large') );
}
function createRequestObject() {
  var ro;
  var browser = navigator.appName;
  if(browser == "Microsoft Internet Explorer"){
    ro = new ActiveXObject("Microsoft.XMLHTTP");
  }else{
    ro = new XMLHttpRequest();
  }
  return ro;
}

var http = createRequestObject();

function note(str) {
  http.open('get', 'ajaxnote.asp?note='+escape(str));
  http.onreadystatechange = handlenote;
  http.send(null);
}

function handlenote() {
  if(http.readyState == 4){
    var response = http.responseText;
    var update = new Array();

    if(response.indexOf('|' != -1)) {
      update = response.split('|');
      document.getElementById("note").innerHTML = update[0];
    }
  OpenLightBox()
  }
}
