(function($){
	var uniq = (function(){
		var uid = 0;
		return function() {
			return uid ++;
		};
	})(),
	defaults = {
		src: null,
		height: 100,
		width: 200,
		frameborder: 0,
		styles: {}
	},
	class_name = "jquery-iframe",
	d = document;


	/**
	 * drawable iframe HTMLElement
	 *
	 * @param  options
	 *         key: value pair Object. key is iframe attribute name, value is attribute vavlue.
	 */
	$.fn.iframe = function(options) {
		$(this).each(function(i){
			var option = $.extend(defaults, options || {}),
				style  = {},
				iframe = $(d.createElement("iframe"));

			if(option.styles && ($.isFunction(option.styles) == false && typeof option.styles == "object")) {
				style = option.styles;
				delete option.styles;
			}
			style.borderWidth = 0;
			iframe.css(style);

			for(var i in option) {
				iframe.attr(i, option[i]);
			}

			$(this).append(iframe);
		});
	}
})(jQuery);
