function MGenericCustomControl(MOptions) {
	MOptions = MOptions ? MOptions : {};
	this.position = MOptions.position ? MOptions.position : new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(8, 30));
	this.content = MOptions.content ? MOptions.content : 'Hello World'
	this.className = MOptions.className ? MOptions.className : ''
}

MGenericCustomControl.prototype = new GControl(true,false);

MGenericCustomControl.prototype.initialize = function(map) {
	this.map = map;

	this.container = document.createElement('DIV');
	this.container.style.display = 'none';

	this.innerContainer = document.createElement('DIV');
	this.container.appendChild(this.innerContainer);
	this.innerContainer.className = this.className;
	this.innerContainer.innerHTML = this.content;
	this.map.getContainer().appendChild(this.container);
	return this.container;
}

MGenericCustomControl.prototype.getDefaultPosition = function() {
	return this.position;
}

MGenericCustomControl.prototype.setContent = function(str) {
	this.content = str;
	this.innerContainer.innerHTML = this.content;
	this.show();
}

MGenericCustomControl.prototype.hide = function() {
	this.container.style.display = 'none';
}

MGenericCustomControl.prototype.show = function() {
	this.container.style.display = '';
}



