$(function() {

    var switchButton = $(".toggleSideBar");
    var sidePane = switchButton.closest("div.sidePane");
    var templateWrapper = $('#templateWrapper');
    var speed = 300;
    var animation = {};

    sidePane.data('isOpened', true);

    sidePane.css({
	'-webkit-transition': 'none !important',
	'-moz-transition': 'none !important',
	'-o-transition': 'none !important',
	'-ms-transition': 'none !important',
	'transition': 'none !important'
    });

    switchButton.on('click', function() {
        var isOpened = sidePane.data('isOpened');
        var align = sidePane.hasClass('right') ? 'right' : 'left';
        if(isOpened) {
            animation[align] =  "-" + sidePane.outerWidth(true) + "px"; //, "swing"];
            sidePane.animate(animation,speed, function() {
                //templateWrapper.removeClass("sidePaneOpened");
                sidePane.data('isOpened', !isOpened);
		sidePane.find('.sideContent').css('display','none');
            });
        } else {
            //templateWrapper.addClass("sidePaneOpened");
            animation[align] = "0px";
	    sidePane.find(".sideContent").css('display','block');
            sidePane.animate(animation, speed, function() {
                sidePane.data('isOpened', !isOpened);
            });
        }
    });
});

@@ -456,24 +456,333 @@
 t'%0A    %7D);%0A%0A
+    if(sidePane.data('closed'))%7B%0A        sidePane.data('isOpened', false);%0A        sidePane.find('.sideContent').css('display','none');%0A        sidePane.css(%7B%0A            'transition': 'none'%0A        %7D);%0A        sidePane.css(%7Bright: (sidePane.outerWidth(true)*-1) + %22px%22%7D);%0A    %7D %0A    %0A    sidePane.show(0);%0A%0A
     switchBu
@@ -803,32 +803,32 @@
 ', function() %7B%0A
-
         var isOp
@@ -1104,34 +1104,32 @@
                 
-//
 templateWrapper.
@@ -1301,16 +1301,16 @@
  else %7B%0A
+
         
@@ -1313,18 +1313,16 @@
         
-//
 template

add sidepane ability to define as closed on start