(function($) {

	// このPluginの名前
	var nameSpace = 'basePlugin';

	$.fn[nameSpace] = function(options) {
		// いったん退避
		var elements = this;

		// 設定情報の構築
		var settings = $.extend({
			// optionの初期値を設定
			'param' : 'value'
		}, options);


		// Windows IE で利用可能な font の調査
		var useMeiryo = function() { 
			$(window).load(function() {
				this.fontslist = '';
				var dlg = '<object id="dlgHelper" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"><\/object>'
				$('body').append('<div id="tmp"><\/div>');
				document.getElementById('tmp').innerHTML = dlg;
	
				try {
					for (var i = 1; i < dlgHelper.fonts.count; i++) {
						this.fontslist += dlgHelper.fonts(i) + '\n';
					}
				}
				catch(e) { 
					this.fontslist = null; 
				}
				if (this.fontslist.indexOf('メイリオ') != -1) {
					$('html').addClass('useMeiryo');
				}
				$('#tmp').remove();
				this.fontslist = '';
			});
		}()


		// 内部用method
		var innerMethod = function() {
			// 内部の共通処理の記述
		};

		// method chain
		return this;
	};
	
	$(function(){
		$.fn[nameSpace]();
	});

})(jQuery);
