
    jQuery.fn.extend({
        // First dude
        slideRight: function() {
            return this.each(function() {
                jQuery(this).animate({width: 'show'});
            });
        },
        slideLeft: function() {
            return this.each(function() {
                jQuery(this).animate({width: 'hide'});
            });
        },
        slideToggleWidth: function() {
            return this.each(function() {
                var el = jQuery(this);
                if (el.css('display') == 'none') {
                    el.slideRight();
                } else {
                    el.slideLeft();
                }
            });
        },
        slideRightShow: function() {
            return this.each(function() {
                $(this).show('slide', {direction: 'right'}, 800);
            });
        },
        slideLeftHide: function() {
            return this.each(function() {
                $(this).hide('slide', {direction: 'left'}, 800);
            });
        },
        slideRightHide: function() {
            return this.each(function() {
                $(this).hide('slide', {direction: 'right'}, 800);
            });
        },
        slideLeftShow: function() {
            return this.each(function() {
                $(this).show('slide', {direction: 'left'}, 800);
            });
        }

    });
    var contactWindow;
    function showContactWindow(url) {
        contactWindow = window.open(url, 'contactWindow', 'scrollbars=yes,status=no,resize=no,toolbar=no,width=500,height=500');
        contactWindow.focus();
    }
