//Cufon.replace('.home h1',{fontFamily: 'Bebas', textShadow: '1px 1px #107fc7'});
Cufon.replace('h1',{fontFamily: 'Bebas Neue', textShadow: '1px 1px #107fc7'});
Cufon.replace('.bebas',{fontFamily: 'Bebas Neue', textShadow: '1px 1px #107fc7'});
Cufon.replace('.home .promo h3',{fontFamily: 'Bebas Neue'});
Cufon.replace('.success h2',{fontFamily: 'Bebas Neue', textShadow: '1px 1px #107fc7'});
Cufon.replace('.blokletters', {fontFamily: 'Blokletters Viltstift', textShadow: '1px 1px #107fc7' });
Cufon.replace('.blokletters.white_shadow', {fontFamily: 'Blokletters Viltstift', textShadow: '0px 1px #fff' });

$(document).ready(function(){
  $('.footer_placeholder').html($('.footer').html()); // move footer in it's position
  $('.footer').html(''); // clear the footer div as the correct div hovers it
});

jQuery.fn.extend({
  slideRightShow: function() {
    return this.each(function() {
        $(this).show('slide', {direction: 'right'}, 500);
    });
  },
  slideLeftHide: function() {
    return this.each(function() {
      $(this).hide('slide', {direction: 'left'}, 500);
    });
  },
  slideRightHide: function() {
    return this.each(function() {
      $(this).hide('slide', {direction: 'right'}, 500);
    });
  },
  slideLeftShow: function() {
    return this.each(function() {
      $(this).show('slide', {direction: 'left'}, 500);
    });
  },
	center: function() {
		return this.each(function() {
			var top = ($(window).height() - $(this).outerHeight()) / 2;
			var left = ($(window).width() - $(this).outerWidth()) / 2;
			$(this).css({position:'absolute', margin:0, top: (top > 0 ? top : 0)+'px', left: (left > 0 ? left : 0)+'px'});
		});
	}
});
