//
// create closure
//
(function($) {
	  //
	  // plugin definition
	  //
	$.fn.menu = function(options) {
		 // build main options before element iteration
		var opts = $.extend({}, $.fn.menu.defaults, options);
		 // iterate and reformat each matched element
		return this.each(function() {
			$this = $(this);
			   // build element specific options
			var o = $.meta ? $.extend({}, opts, $this.data()) : opts;
			var item_class = '';
			item_class = $('div>div:eq(0)',$this).attr('class');
			   // update element styles
			$this.mouseover(function(){
			
				$('div:eq(0)',this).html('<div style="width:15px;height:18px;" class="'+item_class+'">&nbsp;</div>');
				
			}).mouseout(function(){
				$('div:eq(0)',this).html('<div style="width:10px;height:18px;" class="'+item_class+'">&nbsp;</div>')
			});
			
		});
	};
	
	$.fn.showAskMore = function(){
		
		
		$('#ask_more_content').show();
		$('#item_content_ask>div>div:eq(1)').html($('#ask_send>div:eq(1)').html());
		$('#item_content_ask>div>div:eq(0)').attr({'class':'button color_bg read_more'})
		$('#item_content_ask').attr({id:'item_content_ask_active'});
	
		var position = $('#footer').position();
		var position2 = $('#logos').position();
		
		$('#logos').css({'margin-top':(position.top-position2.top-65)});
	}
	
	
	
	  //
	  // plugin defaults
	  //
	$.fn.menu.defaults = {
			active_class: 'red',
			backup_class: 'yellow'
	};
	//
	// end of closure
	//
})(jQuery);
