﻿var lhjQueryScriptOutputted = false;
var lhSlideoutOutputted = false;
var lhnJsOHost = (("https:" == document.location.protocol) ? "https://" : "http://");

function lhinitSlideOut() {
    if (typeof(jQuery) == 'undefined') {
        if (! lhjQueryScriptOutputted) {
            lhjQueryScriptOutputted = true;
            document.write(unescape("%3Cscript src='" + lhnJsOHost + "ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
        }
        setTimeout("lhinitSlideOut()", 50);
    } else {
            if (typeof($.fn.tabSlideOut) == 'undefined') {
            //document.write(unescape("%3Cscript src='http://tab-slide-out.googlecode.com/files/jquery.tabSlideOut.v1.3.js' type='text/javascript'%3E%3C/script%3E"));
                if (! lhSlideoutOutputted) {
                    lhSlideoutOutputted = true;        
                    (function(a){a.fn.tabSlideOut=function(h){var b=a.extend({tabHandle:".lhnhandle",speed:300,action:"click",tabLocation:"left",topPos:"200px",leftPos:"20px",fixedPosition:false,positioning:"absolute",pathToTabImage:null,imageHeight:null,imageWidth:null,onLoadSlideOut:false},h||{});b.tabHandle=a(b.tabHandle);var c=this;if(b.fixedPosition===true)b.positioning="fixed";else b.positioning="absolute";if(document.all&&!window.opera&&!window.XMLHttpRequest)b.positioning="absolute";b.pathToTabImage!=null&&b.tabHandle.css({background:"url("+b.pathToTabImage+") no-repeat",width:b.imageWidth,height:b.imageHeight});b.tabHandle.css({display:"block",textIndent:"-99999px",outline:"none",position:"absolute"});c.css({"line-height":"1",position:b.positioning});var d={containerWidth:parseInt(c.outerWidth(),10)+"px",containerHeight:parseInt(c.outerHeight(),10)+"px",tabWidth:parseInt(b.tabHandle.outerWidth(),10)+"px",tabHeight:parseInt(b.tabHandle.outerHeight(),10)+"px"};if(b.tabLocation==="top"||b.tabLocation==="bottom"){c.css({left:b.leftPos});b.tabHandle.css({right:0})}if(b.tabLocation==="top"){c.css({top:"-"+d.containerHeight});b.tabHandle.css({bottom:"-"+d.tabHeight})}if(b.tabLocation==="bottom"){c.css({bottom:"-"+d.containerHeight,position:"fixed"});b.tabHandle.css({top:"-"+d.tabHeight})}if(b.tabLocation==="left"||b.tabLocation==="right"){c.css({height:d.containerHeight,top:b.topPos});b.tabHandle.css({top:0})}if(b.tabLocation==="left"){c.css({left:"-"+d.containerWidth});b.tabHandle.css({right:"-"+d.tabWidth})}if(b.tabLocation==="right"){c.css({right:"-"+d.containerWidth});b.tabHandle.css({left:"-"+d.tabWidth});a("html").css("overflow-x","hidden")}b.tabHandle.click(function(a){a.preventDefault()});var e=function(){if(b.tabLocation==="top")c.animate({top:"-"+d.containerHeight},b.speed).removeClass("open");else if(b.tabLocation==="left")c.animate({left:"-"+d.containerWidth},b.speed).removeClass("open");else if(b.tabLocation==="right")c.animate({right:"-"+d.containerWidth},b.speed).removeClass("open");else b.tabLocation==="bottom"&&c.animate({bottom:"-"+d.containerHeight},b.speed).removeClass("open")},f=function(){if(b.tabLocation=="top")c.animate({top:"-3px"},b.speed).addClass("open");else if(b.tabLocation=="left")c.animate({left:"-3px"},b.speed).addClass("open");else if(b.tabLocation=="right")c.animate({right:"-3px"},b.speed).addClass("open");else b.tabLocation=="bottom"&&c.animate({bottom:"-3px"},b.speed).addClass("open")},g=function(){c.click(function(a){a.stopPropagation()});a(document).click(function(){e()})},j=function(){b.tabHandle.click(function(){if(c.hasClass("open"))e();else f()});g()},k=function(){c.hover(function(){f()},function(){e()});b.tabHandle.click(function(){c.hasClass("open")&&e()});g()},i=function(){e();setTimeout(f,500)};b.action==="click"&&j();b.action==="hover"&&k();b.onLoadSlideOut&&i()}})(jQuery)          
                     }
                setTimeout("lhinitSlideOut()", 50);
            } else {
                    $(function(){
                        $('.livehelpslideout').tabSlideOut({
                        tabHandle: '.lhhandle',        
                        pathToTabImage: lhpathToTabImage,
                        imageHeight: lhimageHeight,      
                        imageWidth: lhimageWidth,        
                        tabLocation: lhtabLocation,      
                        speed: lhspeed,                  
                        action: lhaction,                
                        topPos: lhtopPos,                
                        leftPos: lhleftPos,              
                        fixedPosition: lhfixedPosition
                        });        
                    }); 
            }
      }
 
}
lhinitSlideOut();

if (typeof lhnInstalled =='undefined')
    {
        if (document.location.protocol!='https:')
	    {
        document.write(unescape("%3Cscript src='http://www.livehelpnow.net/lhn/scripts/lhnvisitor.aspx?div=&zimg=-1&lhnid=" + lhclientid + "&iv=1&zzwindow=0&d=0&custom1=&custom2=&custom3=' type='text/javascript'%3E%3C/script%3E"));
        }
        else
        {
        document.write(unescape("%3Cscript src='https://www.livehelpnow.net/lhn/scripts/lhnvisitor.aspx?div=&zimg=-1&lhnid=" + lhclientid + "&iv=1&zzwindow=0&d=0&custom1=&custom2=&custom3=' type='text/javascript'%3E%3C/script%3E"));
        }
    }

   


