// stardevelop.com Live Help International Copyright 2003-2010
// Live Help JavaScript v3.88.4 - Minified
// Requirement: jQuery 1.40.1
var chatWidth="625";var chatHeight="435";var hAlign="right";var vAlign="center";var currentStatus="";var offlineRedirect="";var locale="en";var OfflineEmail=1;var visitorRefresh=15*1000;var initiateOpen=0;var initiateAuto=0;var LiveHelpWindow;var department="";var server="";var posLeft=(screen.width-chatWidth)/2;var posTop=(screen.height-chatHeight)/2;var size="height="+chatHeight+",width="+chatWidth+",top="+posTop+",left="+posLeft+",resizable=1,toolbar=0,menubar=0";var InitiateChatTimer;var trackingInitalized=0;var initiateStatus="";var topMargin=10;var leftMargin=10;var layerHeight=229;var layerWidth=323;var browserWidth=0;var browserHeight=0;var TrackingTimer;var timeStart=currentTime();var timeElapsed;var countTracker=0;jQuery.noConflict();jQuery(document).ready(function(){jQuery.ajaxSetup({cache:false});var d=currentTime();var b=jQuery("script[src*='livehelp/scripts/jquery.livehelp.min.js']").attr("src");var a=b.split("jquery.livehelp.min.js");if(a!=null){server=a[0]}var c='<!-- stardevelop.com Live Help International Copyright - All Rights Reserved //--> <!--  BEGIN stardevelop.com Live Help Messenger Code - Copyright - NOT PERMITTED TO MODIFY IMAGE MAP/CODE/LINKS //--> <div id="initiateChatLiveHelp" align="left" style="position:absolute; left:10px; top:10px; visibility:hidden; z-index:5000;">   <map name="LiveHelpInitiateChatMap" id="LiveHelpInitiateChatMap">     <area shape="rect" coords="113,183,197,206" href="#" onclick="openLiveHelp();updateInitiateStatus(\'Accepted\');return false;" alt="Accept"/>     <area shape="rect" coords="206,183,285,206" href="#" onclick="updateInitiateStatus(\'Declined\');return false;" alt="Decline"/>     <area shape="rect" coords="263,86,301,104" href="#" onclick="updateInitiateStatus(\'Declined\');return false;" alt="Close"/>   </map>   <div id="InitiateText" align="center" style="position:relative; left:40px; top:145px; width:256px; height:35px; z-index:5001; text-align:center; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold;">Do you have any questions that I can help you with?</div>   <img src="'+server+'../locale/en/images/InitateChat.gif" alt="Cascada Live Chat Live Help" width="323" height="229" border="0" usemap="#LiveHelpInitiateChatMap"/></div> <!--  END stardevelop.com Live Help Messenger Code - Copyright - NOT PERMITTED TO MODIFY IMAGE MAP/CODE/LINKS //-->';jQuery("body").append(c);jQuery.ajax({url:server+"../include/settings.php?DEPARTMENT"+department,dataType:"script",error:function(){},success:function(){updateImageTitle();jQuery(document).trigger('LiveHelp.SettingsUpdated')}});jQuery(window).bind("resize",resetPosition);jQuery(".LiveHelpButton").click(function(){openLiveHelp();return false});jQuery(".LiveHelpCallButton").click(function(){openLiveHelp("","call.php");return false});visitorTracking()});function updatePosition(e){var g=jQuery("#"+e).offset();var k=parseInt(g.top);var i=parseInt(g.left);var d=jQuery(window).scrollTop();var f=jQuery(window).scrollLeft();var b=d+topMargin;var c=f+leftMargin;if(k!=b||i!=c){if(this.targetY!=b||this.targetX!=c){this.targetY=b;this.targetX=c;var a=new Date();Y=this.targetY-k;X=this.targetX-i;C=Math.PI/2400;D=a.getTime();if(Math.abs(Y)>browserHeight){E=Y>0?this.targetY-browserHeight:this.targetY+browserHeight;Y=Y>0?browserHeight:-browserHeight}else{E=k}if(Math.abs(X)>browserWidth){F=X>0?this.targetX-browserWidth:this.targetX+browserWidth;X=X>0?browserWidth:-browserWidth}else{F=i}}var a=new Date();var h=Y*Math.sin(C*(a.getTime()-D))+E;var j=X*Math.sin(C*(a.getTime()-D))+F;h=Math.round(h);j=Math.round(j);if((Y>0&&h>k)||(Y<0&&h<k)){jQuery("#"+e).css("top",h+"px")}if((X>0&&j>i)||(X<0&&j<i)){jQuery("#"+e).css("left",j+"px")}}}function resetPosition(){var c=0;var a=0;var b=document.documentElement;c=self.innerWidth||(b&&b.clientWidth)||document.body.clientWidth;a=self.innerHeight||(b&&b.clientHeight)||document.body.clientHeight;browserWidth=c;browserHeight=a;if(hAlign=="right"){leftMargin=c-layerWidth-30}else{if(hAlign=="middle"){leftMargin=Math.round((c-20)/2)-Math.round(layerWidth/2)}}if(vAlign=="bottom"){topMargin=a-layerHeight-55}else{if(vAlign=="center"){topMargin=Math.round((a-20)/2)-Math.round(layerHeight/2)}}}function visitorTracking(){var a=currentTime();var g=jQuery("script[src*='livehelp/scripts/jquery.livehelp.min.js']").attr("src");var c=g.split("jquery.livehelp.min.js");if(c!=null){server=c[0]}var h=document.title.substring(0,150);var b=getTimezone();var e;if(document.referrer.indexOf(document.location.hostname)>=0){e=""}else{e=document.referrer}var d=server+"../include/status.php";var f="?JS=1&DEPARTMENT="+department+"&INITIATE="+initiateStatus;if(trackingInitalized==0){f="?JS=1&TITLE="+h+"&URL="+escape(document.location)+"&REFERRER="+escape(e)+"&DEPARTMENT="+department+"&INITIATE="+initiateStatus+"&WIDTH="+screen.width+"&HEIGHT="+screen.height+"&TIME="+a;trackingInitalized=1}jQuery.ajax({url:d+f,dataType:"script",error:function(){},success:function(){if(trackingInitalized==0){trackingInitalized=1}}});timeElapsed=a-timeStart;if(timeElapsed<90*60*1000){window.clearTimeout(TrackingTimer);TrackingTimer=window.setTimeout("visitorTracking();",visitorRefresh)}}function getTimezone(){var a=new Date();if(a){return a.getTimezoneOffset()}else{return""}}function urlencode(a){var a=escape(a).replace(/[+]/g,"%2B");a=a.replace(/[\/]/g,"%2F");return a}function currentTime(){var a=new Date();return a.getTime()}function displayInitiateChat(){if(initiateOpen==0){resetPosition();InitiateChatTimer=window.setInterval('updatePosition("initiateChatLiveHelp");',10);jQuery("#initiateChatLiveHelp").css("visibility","visible");updateInitiateStatus("Opened");initiateOpen=1;initiateLoaded=0;initiateAuto=0}}function updateInitiateStatus(a){initiateStatus=a;visitorTracking();if(a=="Accepted"||a=="Declined"){jQuery("#initiateChatLiveHelp").css("visibility","hidden")}}function changeStatus(a){if(currentStatus!=""&&currentStatus!=a){currentStatus=a;jQuery(".LiveHelpStatus").each(function(){var d=jQuery(this).attr("src");var c=/^[^?#]+\?([^#]+)/i;var b=c.exec(d);if(b!=null){query="?"+b[1]+"&_="+currentTime()}else{query="?_="+currentTime()}jQuery(this).attr("src",server+"../include/status.php"+query);updateImageTitle()})}}function updateImageTitle(){jQuery(".LiveHelpStatus").each(function(){var a=currentStatus;if(a=="BRB"){a="Be Right Back"}jQuery(this).attr("title","Live Help - "+a);jQuery(this).attr("alt","Live Help - "+a)})}if(offlineRedirect!=""){if(/^(?:^[\-!#$%&'*+\\.\/0-9=?A-Z^_`a-z{|}~]+@[\-!#$%&'*+\\\/0-9=?A-Z^_`a-z{|}~]+\.[\-!#$%&'*+\\.\/0-9=?A-Z^_`a-z{|}~]+$)$/i.test(offlineRedirect)){offlineRedirect="mailto:"+offlineRedirect}OfflineEmail=0}function openLiveHelp(a,b){var c="LiveHelp";if(OfflineEmail==0&&currentStatus!="Online"){if(offlineRedirect!=""){document.location=offlineRedirect}return false}else{if(typeof b!="undefined"&&b!=""){if(typeof a!="undefined"&&a!=""){LiveHelpWindow=window.open(server+"../"+b+"?DEPARTMENT="+a+"&LANGUAGE="+locale,c,size)}else{LiveHelpWindow=window.open(server+"../"+b+"?LANGUAGE="+locale,c,size)}}else{if(typeof a!="undefined"&&a!=""){LiveHelpWindow=window.open(server+"../index.php?DEPARTMENT="+a+"&LANGUAGE="+locale,c,size)}else{LiveHelpWindow=window.open(server+"../index.php?LANGUAGE="+locale,c,size)}}}if(LiveHelpWindow){LiveHelpWindow.opener=self}};
