/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['jquery.sidebar.js']) {
  _$jscoverage['jquery.sidebar.js'] = [];
  _$jscoverage['jquery.sidebar.js'][10] = 0;
  _$jscoverage['jquery.sidebar.js'][11] = 0;
  _$jscoverage['jquery.sidebar.js'][13] = 0;
  _$jscoverage['jquery.sidebar.js'][14] = 0;
  _$jscoverage['jquery.sidebar.js'][37] = 0;
  _$jscoverage['jquery.sidebar.js'][43] = 0;
  _$jscoverage['jquery.sidebar.js'][44] = 0;
  _$jscoverage['jquery.sidebar.js'][46] = 0;
  _$jscoverage['jquery.sidebar.js'][47] = 0;
  _$jscoverage['jquery.sidebar.js'][48] = 0;
  _$jscoverage['jquery.sidebar.js'][51] = 0;
  _$jscoverage['jquery.sidebar.js'][52] = 0;
  _$jscoverage['jquery.sidebar.js'][53] = 0;
  _$jscoverage['jquery.sidebar.js'][54] = 0;
  _$jscoverage['jquery.sidebar.js'][55] = 0;
  _$jscoverage['jquery.sidebar.js'][63] = 0;
  _$jscoverage['jquery.sidebar.js'][69] = 0;
  _$jscoverage['jquery.sidebar.js'][70] = 0;
  _$jscoverage['jquery.sidebar.js'][72] = 0;
  _$jscoverage['jquery.sidebar.js'][73] = 0;
  _$jscoverage['jquery.sidebar.js'][76] = 0;
  _$jscoverage['jquery.sidebar.js'][77] = 0;
  _$jscoverage['jquery.sidebar.js'][78] = 0;
  _$jscoverage['jquery.sidebar.js'][79] = 0;
  _$jscoverage['jquery.sidebar.js'][80] = 0;
  _$jscoverage['jquery.sidebar.js'][81] = 0;
  _$jscoverage['jquery.sidebar.js'][90] = 0;
  _$jscoverage['jquery.sidebar.js'][91] = 0;
  _$jscoverage['jquery.sidebar.js'][93] = 0;
  _$jscoverage['jquery.sidebar.js'][94] = 0;
  _$jscoverage['jquery.sidebar.js'][96] = 0;
  _$jscoverage['jquery.sidebar.js'][97] = 0;
  _$jscoverage['jquery.sidebar.js'][99] = 0;
  _$jscoverage['jquery.sidebar.js'][103] = 0;
  _$jscoverage['jquery.sidebar.js'][109] = 0;
  _$jscoverage['jquery.sidebar.js'][112] = 0;
  _$jscoverage['jquery.sidebar.js'][135] = 0;
  _$jscoverage['jquery.sidebar.js'][136] = 0;
  _$jscoverage['jquery.sidebar.js'][137] = 0;
  _$jscoverage['jquery.sidebar.js'][139] = 0;
  _$jscoverage['jquery.sidebar.js'][140] = 0;
  _$jscoverage['jquery.sidebar.js'][142] = 0;
  _$jscoverage['jquery.sidebar.js'][143] = 0;
  _$jscoverage['jquery.sidebar.js'][144] = 0;
  _$jscoverage['jquery.sidebar.js'][147] = 0;
  _$jscoverage['jquery.sidebar.js'][148] = 0;
  _$jscoverage['jquery.sidebar.js'][149] = 0;
  _$jscoverage['jquery.sidebar.js'][150] = 0;
  _$jscoverage['jquery.sidebar.js'][152] = 0;
  _$jscoverage['jquery.sidebar.js'][153] = 0;
  _$jscoverage['jquery.sidebar.js'][154] = 0;
  _$jscoverage['jquery.sidebar.js'][155] = 0;
  _$jscoverage['jquery.sidebar.js'][157] = 0;
  _$jscoverage['jquery.sidebar.js'][161] = 0;
  _$jscoverage['jquery.sidebar.js'][166] = 0;
  _$jscoverage['jquery.sidebar.js'][167] = 0;
  _$jscoverage['jquery.sidebar.js'][168] = 0;
  _$jscoverage['jquery.sidebar.js'][172] = 0;
  _$jscoverage['jquery.sidebar.js'][175] = 0;
  _$jscoverage['jquery.sidebar.js'][176] = 0;
  _$jscoverage['jquery.sidebar.js'][180] = 0;
  _$jscoverage['jquery.sidebar.js'][183] = 0;
  _$jscoverage['jquery.sidebar.js'][184] = 0;
  _$jscoverage['jquery.sidebar.js'][185] = 0;
  _$jscoverage['jquery.sidebar.js'][186] = 0;
  _$jscoverage['jquery.sidebar.js'][189] = 0;
  _$jscoverage['jquery.sidebar.js'][192] = 0;
  _$jscoverage['jquery.sidebar.js'][195] = 0;
  _$jscoverage['jquery.sidebar.js'][198] = 0;
  _$jscoverage['jquery.sidebar.js'][203] = 0;
  _$jscoverage['jquery.sidebar.js'][204] = 0;
  _$jscoverage['jquery.sidebar.js'][206] = 0;
  _$jscoverage['jquery.sidebar.js'][207] = 0;
  _$jscoverage['jquery.sidebar.js'][211] = 0;
  _$jscoverage['jquery.sidebar.js'][212] = 0;
  _$jscoverage['jquery.sidebar.js'][213] = 0;
  _$jscoverage['jquery.sidebar.js'][214] = 0;
  _$jscoverage['jquery.sidebar.js'][216] = 0;
  _$jscoverage['jquery.sidebar.js'][217] = 0;
  _$jscoverage['jquery.sidebar.js'][218] = 0;
  _$jscoverage['jquery.sidebar.js'][220] = 0;
}
_$jscoverage['jquery.sidebar.js'][10]++;
(function ($, _window) {
  _$jscoverage['jquery.sidebar.js'][11]++;
  $.fn.sidebar = (function (options) {
  _$jscoverage['jquery.sidebar.js'][13]++;
  return this.each((function () {
  _$jscoverage['jquery.sidebar.js'][14]++;
  var elem = $(this), data = elem.data("sidebar") || {}, margin, width, height, duration = data.duration, injectWidth, injectHeight, injectCss, containerCss, bodyCss, position, enter, leave, opened, closed, isInnerElement, container = $("<div><div/>"), inject = $("<div><div/>"), body = $("<div><div/>"), root, parent, open = (function () {
  _$jscoverage['jquery.sidebar.js'][37]++;
  var data = elem.data("sidebar") || {}, opened = data.callback.sidebar.open, container = data.container, inject = data.inject, body = data.body;
  _$jscoverage['jquery.sidebar.js'][43]++;
  if (data.isEnter || data.isProcessing) {
    _$jscoverage['jquery.sidebar.js'][44]++;
    return;
  }
  _$jscoverage['jquery.sidebar.js'][46]++;
  data.isEnter = true;
  _$jscoverage['jquery.sidebar.js'][47]++;
  data.isProcessing = true;
  _$jscoverage['jquery.sidebar.js'][48]++;
  container.animate(data.animate.container.enter, {duration: duration, complete: (function () {
  _$jscoverage['jquery.sidebar.js'][51]++;
  inject.fadeOut(duration, (function () {
  _$jscoverage['jquery.sidebar.js'][52]++;
  body.show("clip", duration, (function () {
  _$jscoverage['jquery.sidebar.js'][53]++;
  data.isProcessing = false;
  _$jscoverage['jquery.sidebar.js'][54]++;
  if (opened) {
    _$jscoverage['jquery.sidebar.js'][55]++;
    opened();
  }
}));
}));
})});
}), close = (function () {
  _$jscoverage['jquery.sidebar.js'][63]++;
  var data = elem.data("sidebar") || {}, closed = data.callback.sidebar.close, container = data.container, inject = data.inject, body = data.body;
  _$jscoverage['jquery.sidebar.js'][69]++;
  if (! data.isEnter || data.isProcessing) {
    _$jscoverage['jquery.sidebar.js'][70]++;
    return;
  }
  _$jscoverage['jquery.sidebar.js'][72]++;
  data.isProcessing = true;
  _$jscoverage['jquery.sidebar.js'][73]++;
  container.animate(data.animate.container.leave, {duration: duration, complete: (function () {
  _$jscoverage['jquery.sidebar.js'][76]++;
  body.hide("clip", duration, (function () {
  _$jscoverage['jquery.sidebar.js'][77]++;
  inject.fadeIn(duration, (function () {
  _$jscoverage['jquery.sidebar.js'][78]++;
  data.isEnter = false;
  _$jscoverage['jquery.sidebar.js'][79]++;
  data.isProcessing = false;
  _$jscoverage['jquery.sidebar.js'][80]++;
  if (closed) {
    _$jscoverage['jquery.sidebar.js'][81]++;
    closed();
  }
}));
}));
})});
});
  _$jscoverage['jquery.sidebar.js'][90]++;
  if (typeof options === "string") {
    _$jscoverage['jquery.sidebar.js'][91]++;
    switch (options) {
    case "open":
      _$jscoverage['jquery.sidebar.js'][93]++;
      open();
      _$jscoverage['jquery.sidebar.js'][94]++;
      break;
    case "close":
      _$jscoverage['jquery.sidebar.js'][96]++;
      close();
      _$jscoverage['jquery.sidebar.js'][97]++;
      break;
    }
    _$jscoverage['jquery.sidebar.js'][99]++;
    return;
  }
  _$jscoverage['jquery.sidebar.js'][103]++;
  options = $.extend(true, {root: $(document.body), position: "left", callback: {item: {enter: (function () {
  _$jscoverage['jquery.sidebar.js'][109]++;
  $(this).animate({marginLeft: "5px"}, 250);
}), leave: (function () {
  _$jscoverage['jquery.sidebar.js'][112]++;
  $(this).animate({marginLeft: "0px"}, 250);
})}, sidebar: {open: (function () {
}), close: (function () {
})}}, animate: {container: {enter: {}, leave: {}}}, duration: 200, open: "mouseenter.sidebar", close: "mouseleave.sidebar"}, options);
  _$jscoverage['jquery.sidebar.js'][135]++;
  root = options.root;
  _$jscoverage['jquery.sidebar.js'][136]++;
  isInnerElement = ! root.is(document.body);
  _$jscoverage['jquery.sidebar.js'][137]++;
  parent = isInnerElement? root.addClass("sidebar-root"): $(_window);
  _$jscoverage['jquery.sidebar.js'][139]++;
  position = options.position;
  _$jscoverage['jquery.sidebar.js'][140]++;
  duration = options.duration;
  _$jscoverage['jquery.sidebar.js'][142]++;
  container.attr("id", "jquerySideBar" + new Date().getTime()).addClass("sidebar-container").addClass(position);
  _$jscoverage['jquery.sidebar.js'][143]++;
  inject.addClass("sidebar-inject").addClass(position);
  _$jscoverage['jquery.sidebar.js'][144]++;
  body.addClass("sidebar-body");
  _$jscoverage['jquery.sidebar.js'][147]++;
  body.append(this);
  _$jscoverage['jquery.sidebar.js'][148]++;
  container.append(body);
  _$jscoverage['jquery.sidebar.js'][149]++;
  container.append(inject);
  _$jscoverage['jquery.sidebar.js'][150]++;
  root.append(container);
  _$jscoverage['jquery.sidebar.js'][152]++;
  width = container.width();
  _$jscoverage['jquery.sidebar.js'][153]++;
  height = container.height();
  _$jscoverage['jquery.sidebar.js'][154]++;
  injectWidth = inject.width();
  _$jscoverage['jquery.sidebar.js'][155]++;
  injectHeight = inject.height();
  _$jscoverage['jquery.sidebar.js'][157]++;
  containerCss = {height: height, width: width};
  _$jscoverage['jquery.sidebar.js'][161]++;
  bodyCss = {height: height, width: width};
  _$jscoverage['jquery.sidebar.js'][166]++;
  if (position === "left" || position === "right") {
    _$jscoverage['jquery.sidebar.js'][167]++;
    margin = width - injectWidth;
    _$jscoverage['jquery.sidebar.js'][168]++;
    injectCss = {height: height, width: injectWidth};
    _$jscoverage['jquery.sidebar.js'][172]++;
    containerCss.top = options.top || (parent.height() / 2) - (height / 2) + "px";
  }
  else {
    _$jscoverage['jquery.sidebar.js'][175]++;
    margin = height - injectHeight;
    _$jscoverage['jquery.sidebar.js'][176]++;
    injectCss = {height: injectHeight, width: width};
    _$jscoverage['jquery.sidebar.js'][180]++;
    containerCss.left = options.left || (parent.width() / 2) - (width / 2) + "px";
  }
  _$jscoverage['jquery.sidebar.js'][183]++;
  containerCss[position] = "-" + margin + "px";
  _$jscoverage['jquery.sidebar.js'][184]++;
  injectCss[position] = margin + "px";
  _$jscoverage['jquery.sidebar.js'][185]++;
  options.animate.container.enter[position] = 0;
  _$jscoverage['jquery.sidebar.js'][186]++;
  options.animate.container.leave[position] = "-" + margin;
  _$jscoverage['jquery.sidebar.js'][189]++;
  container.css(containerCss);
  _$jscoverage['jquery.sidebar.js'][192]++;
  inject.css(injectCss);
  _$jscoverage['jquery.sidebar.js'][195]++;
  body.css(bodyCss).hide();
  _$jscoverage['jquery.sidebar.js'][198]++;
  $(this).addClass("sidebar-menu").find("li").bind("mouseenter.sidebar", options.callback.item.enter).bind("mouseleave.sidebar", options.callback.item.leave);
  _$jscoverage['jquery.sidebar.js'][203]++;
  if (options.open) {
    _$jscoverage['jquery.sidebar.js'][204]++;
    container.bind(options.open, open);
  }
  _$jscoverage['jquery.sidebar.js'][206]++;
  if (options.close) {
    _$jscoverage['jquery.sidebar.js'][207]++;
    container.bind(options.close, close);
  }
  _$jscoverage['jquery.sidebar.js'][211]++;
  options.container = container;
  _$jscoverage['jquery.sidebar.js'][212]++;
  options.inject = inject;
  _$jscoverage['jquery.sidebar.js'][213]++;
  options.body = body;
  _$jscoverage['jquery.sidebar.js'][214]++;
  elem.data("sidebar", options);
  _$jscoverage['jquery.sidebar.js'][216]++;
  parent.resize((function () {
  _$jscoverage['jquery.sidebar.js'][217]++;
  if (position === "left" || position === "right") {
    _$jscoverage['jquery.sidebar.js'][218]++;
    container.css({top: ($(this).height() / 2) - (height / 2) + "px"});
  }
  else {
    _$jscoverage['jquery.sidebar.js'][220]++;
    container.css({left: ($(this).width() / 2) - (width / 2) + "px"});
  }
}));
}));
});
})(jQuery, this);
_$jscoverage['jquery.sidebar.js'].source = ["/*!"," * jquery.sidebar v1.0.2"," * http://sideroad.secret.jp/"," *"," * Copyright (c) 2009 sideroad"," *"," * Dual licensed under the MIT or GPL Version 2 licenses."," * Date: 2009-09-01"," */","(function( $, _window ) {","    $.fn.sidebar = function(options){","","        return this.each(function(){","            var elem = $(this),","                data = elem.data(\"sidebar\")||{},","                margin,","                width,","                height,","                duration = data.duration,","                injectWidth,","                injectHeight,","                injectCss,","                containerCss,","                bodyCss,","                position,","                enter,","                leave,","                opened,","                closed,","                isInnerElement,","                container = $(\"&lt;div&gt;&lt;div/&gt;\"),","                inject = $(\"&lt;div&gt;&lt;div/&gt;\"),","                body = $(\"&lt;div&gt;&lt;div/&gt;\"),","                root,","                parent,","                open = function(){","                    var data = elem.data(\"sidebar\") || {},","                        opened = data.callback.sidebar.open,","                        container = data.container,","                        inject = data.inject,","                        body = data.body;","                    ","                    if (data.isEnter || data.isProcessing) {","                        return;","                    }","                    data.isEnter = true;","                    data.isProcessing = true;","                    container.animate(data.animate.container.enter, {","                        duration: duration,","                        complete: function(){","                            inject.fadeOut(duration, function(){","                                body.show(\"clip\", duration,function(){","                                    data.isProcessing = false;","                                    if(opened) {","                                        opened();","                                    }","                                });","                            });","                        }","                    });","                },","                close = function(){","                    var data = elem.data(\"sidebar\") || {},","                        closed = data.callback.sidebar.close,","                        container = data.container,","                        inject = data.inject,","                        body = data.body;","                       ","                    if(!data.isEnter || data.isProcessing ) {","                        return;","                    }","                    data.isProcessing = true;","                    container.animate(data.animate.container.leave, {","                        duration: duration,","                        complete: function(){","                            body.hide(\"clip\", duration, function(){","                                inject.fadeIn(duration, function(){","                                    data.isEnter = false;","                                    data.isProcessing = false;","                                    if(closed) {","                                        closed();","                                    }","                                });","                            });","                        }","                    });","                };","            ","            ","            if(typeof options === \"string\"){","                switch(options){","                    case \"open\" :","                        open();","                        break;","                    case \"close\" : ","                        close();","                        break;","                }","                return;","            }","                ","            //default setting","            options = $.extend(true, {","                root : $(document.body),","                position : \"left\",","                callback: {","                    item : {","                        enter : function(){","                            $(this).animate({marginLeft:\"5px\"},250);","                        },","                        leave : function(){","                            $(this).animate({marginLeft:\"0px\"},250);","                        }","                    },","                    sidebar : {","                        open : function(){","                            ","                        },","                        close : function(){","                            ","                        }","                    }","                },","                animate : {","                    container : {","                        enter : {},","                        leave : {}","                    }","                },","                duration : 200,","                open : \"mouseenter.sidebar\",","                close : \"mouseleave.sidebar\"","            }, options);","            ","            root = options.root;","            isInnerElement = !root.is(document.body);","            parent = ( isInnerElement ) ? root.addClass(\"sidebar-root\") : $(_window);","            ","            position = options.position;","            duration = options.duration;","            ","            container.attr(\"id\", \"jquerySideBar\" + new Date().getTime()).addClass(\"sidebar-container\").addClass(position);","            inject.addClass(\"sidebar-inject\").addClass(position);","            body.addClass(\"sidebar-body\");","            ","            //append to body","            body.append(this);","            container.append(body);","            container.append(inject);","            root.append(container);","            ","            width = container.width();","            height = container.height();","            injectWidth = inject.width();","            injectHeight = inject.height();","            ","            containerCss = {","                height: height,","                width: width","            };","            bodyCss = {","                height: height,","                width: width","            };","            ","            if(position === \"left\" || position === \"right\") {","                margin = width - injectWidth;","                injectCss = {","                    height : height,","                    width : injectWidth","                };","                containerCss.top = options.top || (parent.height()/2) - (height/2) + \"px\";","                ","            } else {","                margin = height - injectHeight;","                injectCss = {","                    height : injectHeight,","                    width : width","                };","                containerCss.left = options.left || (parent.width()/2) - (width/2) + \"px\";","            }","            ","            containerCss[position] = \"-\" + margin + \"px\";","            injectCss[position] = margin + \"px\";","            options.animate.container.enter[position] = 0;","            options.animate.container.leave[position] = \"-\" + margin;","            ","            //container","            container.css(containerCss);","            ","            //inject","            inject.css(injectCss);","            ","            //body","            body.css(bodyCss).hide();","            ","            //menu callback","            $(this).addClass(\"sidebar-menu\").find(\"li\")","                .bind(\"mouseenter.sidebar\",options.callback.item.enter)","                .bind(\"mouseleave.sidebar\",options.callback.item.leave);","            ","            //container events","            if(options.open) {","                container.bind(options.open,open);","            }","            if(options.close) {","                container.bind(options.close,close);","            }","            ","            //store data","            options.container = container;","            options.inject = inject;","            options.body = body;","            elem.data(\"sidebar\", options);","            ","            parent.resize(function(){","                if(position === \"left\" || position === \"right\") {","                    container.css({top:($(this).height()/2) - (height/2) + \"px\"});","                } else {","                    container.css({left:($(this).width()/2) - (width/2) + \"px\"});","                }","            });","            ","        });","    };","}(jQuery, this));"];
