application.core.extend({
  public: {  
    Website: function(config) {
	  this.storeConfig(config);		
		
	  return this.init();
    }
  }
});

application.core.extend(
  application.public.Website.prototype, 
  application.base.Base.prototype, 
  {  
  	init: function() {
	  this.ready(function() {
		this.buildMenus();
	  });
	  
	  return this;	
	},

	buildMenus: function() {
	  $('ul.sf-menu')
	  .supersubs({
		minWidth: 10,
		maxWidth: 30,
		extraWidth: 1
	  })
	  .superfish({
		animation:{ height: 'show', width: 'show' },
		speed: 'fast',
		dropShadows: false
	  })
	  .find('ul').bgIframe({
		opacity: false
	  });		
	}
  }  
);  
