/* Author: 

*/

<!-- Footer slide -->

$(window).resize(function(){

	$('#main').css({
		position:'relative',
		left: ($(window).width() - $('#main').outerWidth())/2,
		top: ($(window).height() - $('#main').outerHeight())/2
	});

});

// To initially run the function:
$(window).resize();
   
   	$(document).ready(function() {
//		$("#menu ul.level1 div").mouseover(function() {
//			var the_width = $(this).find("a").width();
//			var child_width = $(this).find("ul").width();
//			var width = parseInt((child_width - the_width)/2);
//			$(this).find("ul").css('left', -width);
//		});
		
		
	$('div#more-less').click(function() {
      		if($(this).find('span').hasClass('open')) {
         $('footer').animate({
            bottom : -159
         }, {
            queue : false
         });
         $(this).find('span').removeClass('open');
      } else {
         $('footer').animate({
            bottom : 0
         }, {
            queue : false
         });
         $(this).find('span').addClass('open');
      }
      return false;
   });
});

   
<!--End-->
