var CMSAPP = {}

CMSAPP.init = function () {
  for (prop in this) {
	if (typeof this[prop].init == 'function') {
	  this[prop].init();
	}
  }
}


/**** vertical align bind ***/

CMSAPP.myVerticalAlign = {
  init: function () {  
	$('.vA').VerticalAlign(); 
	
  }
}

/**** Menu ***/

CMSAPP.subMenu = {
  init: function () {  
	$("#menu li").hover(function(){  
	$(this).find('ul:first').css({visibility:"visible", display:"none"}).show();  
	}, function(){  
	  $(this).find('ul:first').css({visibility:"hidden"});
;  
	});
  }
}


/*** FIX IE7!!!!! ****/

CMSAPP.fixIE7 = {
  init: function () {  
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
  }
}



$(document).ready(function () {
  CMSAPP.init();
});
