// BlzWidgetIE.js
// 
// Widget Abstract Layer(wal) for IE
// BlzWidget is freely distributable under the terms of new BSD license.
// Copyright (c) 2006-2009, makoto_kw (makoto.kw@gmail.com) All rights reserved.

Object.extend(Blz.Widget, {
  initialize: function() {
  },
  
  init: function() {
    this.isComSupported = (typeof(ActiveXObject)!='undefined') ? true : false;
  },
  
  // Global function
  engine: Blz.Widget.Engines.IE,
  debug: function(str) {this.print(str)},
  print: function(str) {
    if (typeof(console)!='undefined' && typeof(console.log)!='undefined') {
      console.log(str);
    }
  },
  
  // Windows COM Supported
  connectComObject: function(object, prefix) {},
  createComObject: function(guid) {return new ActiveXObject(guid);},
  disconnectComObject: function(object) {},
  
  // Widget
  name: "",
  version: "",
  author: "",
  company: ""
});