(function($){
$.fn.tabSlideOut=function(_1){
var _2=$.extend({tabHandle:".handle",speed:300,action:"click",tabLocation:"left",topPos:"200px",leftPos:"20px",fixedPosition:false,positioning:"absolute",pathToTabImage:null,imageHeight:null,imageWidth:null,onLoadSlideOut:false},_1||{});
_2.tabHandle=$(_2.tabHandle);
var _3=this;
if(_2.fixedPosition===true){
_2.positioning="fixed";
}else{
_2.positioning="absolute";
}
if(document.all&&!window.opera&&!window.XMLHttpRequest){
_2.positioning="absolute";
}
if(_2.pathToTabImage!=null){
_2.tabHandle.css({"background":"url("+_2.pathToTabImage+") no-repeat","width":_2.imageWidth,"height":_2.imageHeight});
}
_2.tabHandle.css({"display":"block","textIndent":"-99999px","outline":"none","position":"absolute"});
_3.css({"line-height":"1","position":_2.positioning});
var _4={containerWidth:parseInt(_3.outerWidth(),10)+"px",containerHeight:parseInt(_3.outerHeight(),10)+"px",tabWidth:parseInt(_2.tabHandle.outerWidth(),10)+"px",tabHeight:parseInt(_2.tabHandle.outerHeight(),10)+"px"};
if(_2.tabLocation==="top"||_2.tabLocation==="bottom"){
_3.css({"left":_2.leftPos});
_2.tabHandle.css({"right":0});
}
if(_2.tabLocation==="top"){
_3.css({"top":"-"+_4.containerHeight});
_2.tabHandle.css({"bottom":"-"+_4.tabHeight});
}
if(_2.tabLocation==="bottom"){
_3.css({"bottom":"-"+_4.containerHeight,"position":"fixed"});
_2.tabHandle.css({"top":"-"+_4.tabHeight});
}
if(_2.tabLocation==="left"||_2.tabLocation==="right"){
_3.css({"height":_4.containerHeight,"top":_2.topPos});
_2.tabHandle.css({"top":0});
}
if(_2.tabLocation==="left"){
_3.css({"left":"-"+_4.containerWidth});
_2.tabHandle.css({"right":"-"+_4.tabWidth});
}
if(_2.tabLocation==="right"){
_3.css({"right":"-"+_4.containerWidth});
_2.tabHandle.css({"left":"-"+_4.tabWidth});
$("html").css("overflow-x","hidden");
}
_2.tabHandle.click(function(_5){
_5.preventDefault();
});
var _6=function(){
if(_2.tabLocation==="top"){
_3.animate({top:"-"+_4.containerHeight},_2.speed).removeClass("open");
}else{
if(_2.tabLocation==="left"){
_3.animate({left:"-"+_4.containerWidth},_2.speed).removeClass("open");
}else{
if(_2.tabLocation==="right"){
_3.animate({right:"-"+_4.containerWidth},_2.speed).removeClass("open");
}else{
if(_2.tabLocation==="bottom"){
_3.animate({bottom:"-"+_4.containerHeight},_2.speed).removeClass("open");
}
}
}
}
};
var _7=function(){
if(_2.tabLocation=="top"){
_3.animate({top:"-3px"},_2.speed).addClass("open");
}else{
if(_2.tabLocation=="left"){
_3.animate({left:"-3px"},_2.speed).addClass("open");
}else{
if(_2.tabLocation=="right"){
_3.animate({right:"-3px"},_2.speed).addClass("open");
}else{
if(_2.tabLocation=="bottom"){
_3.animate({bottom:"-3px"},_2.speed).addClass("open");
}
}
}
}
};
var _8=function(){
_3.click(function(_9){
_9.stopPropagation();
});
$(document).click(function(){
_6();
});
};
var _a=function(){
_2.tabHandle.click(function(_b){
if(_3.hasClass("open")){
_6();
}else{
_7();
}
});
_8();
};
var _c=function(){
_3.hover(function(){
_7();
},function(){
_6();
});
_2.tabHandle.click(function(_d){
if(_3.hasClass("open")){
_6();
}
});
_8();
};
var _e=function(){
_6();
setTimeout(_7,500);
};
if(_2.action==="click"){
_a();
}
if(_2.action==="hover"){
_c();
}
if(_2.onLoadSlideOut){
_e();
}
};
})(jQuery);


