var CMSAPP = {}

CMSAPP.init = function () {
  for (prop in this) {
	if (typeof this[prop].init == 'function') {
	  this[prop].init();
	}
  }
}


/*** caixa_agentes ***/

CMSAPP.caixaAgentes = {
  init: function () {
	 
	$("#caixa_agentes ul").hover(
	  function () {
		$(this).children().show();
	  },
	  function () {
		$(this).children().hide();
	  }
	);
  
  }
}

/*** main_menu ***/

CMSAPP.mainMenu = {
  init: function () {
	 
	$("#main_mfenu li").hover(
	  function () {
		$(this).children('ul').show();
	  },
	  function () {
		$(this).children('ul').hide();
	  }
	);
  
  }
}

/*** FIX IE7!!!!! ****/

CMSAPP.fixIE7 = {
  init: function () {  
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
  }
}

/*** preloadimages css ***/

CMSAPP.preloadImages = {
  init: function () {
	 
	$.preloadCssImages();
  
  }
}


$(document).ready(function () {
  CMSAPP.init();
});

