(function ($) {

$.widget('ui.Front_Main_Connect', $.extend({}, $.ui.Component.prototype, {
	type: 'Front_Main_Connect',
	_init: function () {

		$.ui.Component.prototype._init.call(this); // chain parent constructor

		var self = this
		var but = self.element.find("#how_to_connect")
		var div = self.element.find(".grayRadius")
		var a_btn = self.element.find(".grayRadius a")

		a_btn.click(function(ev){
//			ev.preventDefault()
			ev.preventBubble()
		})

		but.click(function (){
			but.hide()
			div.toggleClass("hidden");
		})

		div.click(function (){
			div.toggleClass("hidden");
			but.show()
		})
	}
}));

}).require('Component')(jQuery);