// stardevelop.com Live Help International Copyright 2003-2011
// Live Help JavaScript v3.95.0 - Minified
// Requirement: jQuery 1.40.1 or above
var LiveHelp=function(){var z="625";var q="435";var l="right";var r="center";var k="";var J="";var d="en";var B=1;var S=15*1000;var p=0;var t=0;var A;var f="";var m="";var y="";var O=(screen.width-z)/2;var w=(screen.height-q)/2;var o="height="+q+",width="+z+",top="+w+",left="+O+",resizable=1,toolbar=0,menubar=0";var x;var g=0;var i="";var v=10;var G=10;var T=229;var N=323;var I=0;var L=0;var u;var j=h();var b;var Q=0;jQuery(document).ready(function(){jQuery.ajaxSetup({cache:false});var Z=h();var V=jQuery("script[src*='livehelp/scripts/jquery.livehelp.noconflict.min.js']").attr("src");var U=V.split("jquery.livehelp.noconflict.min.js");if(U!=null){m=U[0]}jQuery.ajax({url:m+"../include/settings.php?DEPARTMENT"+f,dataType:"script",error:function(){},success:function(){s();jQuery(document).trigger("LiveHelp.SettingsUpdated");jQuery(document).trigger("LiveHelp.StatusModeChanged",LiveHelp.currentStatus)}});var W='<!-- 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="50,210,212,223" href="http://livehelp.stardevelop.com" target="_blank" alt="stardevelop.com Live Help"/>     <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="'+m+"../locale/"+d+'/images/InitateChat.gif" alt="stardevelop.com 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(W);if(typeof LiveHelpSettings!="undefined"&&typeof LiveHelpSettings.chatTab!="undefined"&&LiveHelpSettings.chatTab==true){var aa='<div class="LiveHelpSlider" style="width:31px; height:262px; overflow:hidden; position:fixed; top:250px; right:0px; z-index:10000; display:none;"> 	<img src="'+m+"../locale/"+d+'/images/SliderBackground.png" border="0" alt="Live Chat Online - Chat Now!" title="Live Chat Online - Chat Now!" style="position:absolute; z-index:15000;"/> 	<div class="LiveHelpSliderTab LiveHelpButton" style="position:relative; top:0; height:228px; width:283px; right:0; z-index:20000; cursor:pointer; background:url(\''+m+"../locale/"+d+'/images/SliderButton.png\') top right no-repeat;"></div> 	<div class="LiveHelpSliderClose" style="position:relative; bottom:-5px; height:20px; width:283px; right:0; z-index:20000; cursor:pointer; background:url(\''+m+"../locale/"+d+'/images/SliderClose.png\') top right no-repeat;"></div></div> 	<div class="LiveHelpSliderText" style="display:block; background:url(\''+m+"../locale/"+d+"/images/SliderText.png') no-repeat; width:119px; height:89px; overflow:hidden; position:fixed; top:320px; right:20px; z-index:0; display:none;\"></div>";jQuery("body").append(aa)}jQuery(window).bind("resize",M);jQuery(".LiveHelpButton").click(function(){H(jQuery(this));return false});jQuery(".LiveHelpCallButton").click(function(){H(jQuery(this),"","call.php");return false});jQuery(".LiveHelpSlider").hover(function(){clearTimeout(jQuery(".LiveHelpSlider").data("SliderTimeoutClose"));var ab=setTimeout(function(){jQuery(".LiveHelpSlider").animate({width:283},{duration:1000,easing:"easeInOutQuad"})},250);jQuery(".LiveHelpSlider").data("SliderTimeoutOpen",ab)},function(){clearTimeout(jQuery(".LiveHelpSlider").data("SliderTimeoutOpen"));var ab=setTimeout(function(){jQuery(".LiveHelpSlider").animate({width:32},{duration:1000,easing:"easeInOutQuad"})},3000);jQuery(".LiveHelpSlider").data("SliderTimeoutClose",ab)});jQuery(".LiveHelpSliderClose").click(function(){clearTimeout(jQuery(".LiveHelpSlider").data("SliderTimeoutClose"));jQuery(".LiveHelpSlider").animate({width:32},{duration:1000,easing:"easeInOutQuad"});return false});e()});function a(aa){var ac=jQuery("#"+aa).offset();var ag=parseInt(ac.top);var ae=parseInt(ac.left);var Z=jQuery(window).scrollTop();var ab=jQuery(window).scrollLeft();var V=Z+v;var W=ab+G;if(ag!=V||ae!=W){if(this.targetY!=V||this.targetX!=W){this.targetY=V;this.targetX=W;var U=new Date();Y=this.targetY-ag;X=this.targetX-ae;C=Math.PI/2400;D=U.getTime();if(Math.abs(Y)>L){E=Y>0?this.targetY-L:this.targetY+L;Y=Y>0?L:-L}else{E=ag}if(Math.abs(X)>I){F=X>0?this.targetX-I:this.targetX+I;X=X>0?I:-I}else{F=ae}}var U=new Date();var ad=Y*Math.sin(C*(U.getTime()-D))+E;var af=X*Math.sin(C*(U.getTime()-D))+F;ad=Math.round(ad);af=Math.round(af);if((Y>0&&ad>ag)||(Y<0&&ad<ag)){jQuery("#"+aa).css("top",ad+"px")}if((X>0&&af>ae)||(X<0&&af<ae)){jQuery("#"+aa).css("left",af+"px")}}}function M(){var W=0;var U=0;var V=document.documentElement;W=self.innerWidth||(V&&V.clientWidth)||document.body.clientWidth;U=self.innerHeight||(V&&V.clientHeight)||document.body.clientHeight;I=W;L=U;if(l=="right"){G=W-N-30}else{if(l=="middle"){G=Math.round((W-20)/2)-Math.round(N/2)}}if(r=="bottom"){v=U-T-55}else{if(r=="center"){v=Math.round((U-20)/2)-Math.round(T/2)}}}function e(){var U=h();var ac=jQuery("script[src*='livehelp/scripts/jquery.livehelp.noconflict.min.js']").attr("src");var W=ac.split("jquery.livehelp.noconflict.min.js");if(W!=null){m=W[0]}var ad=document.title.substring(0,150);var V=c();var ae=document.location.protocol+"//"+document.location.hostname;var aa;if(document.referrer.substring(0,ae.length)===ae.location){aa=""}else{aa=document.referrer}var Z=m+"../include/status.php";var ab="?JS=1&DEPARTMENT="+f+"&INITIATE="+i;if(g==0){ab="?JS=1&TITLE="+encodeURI(escape(ad))+"&URL="+encodeURI(escape(document.location))+"&REFERRER="+encodeURI(escape(aa))+"&DEPARTMENT="+f+"&INITIATE="+i+"&WIDTH="+screen.width+"&HEIGHT="+screen.height+"&TIME="+U;g=1}jQuery.ajax({url:Z+ab,dataType:"script",error:function(){},success:function(){if(g==0){g=1}}});b=U-j;if(b<90*60*1000){window.clearTimeout(u);u=window.setTimeout(function(){e()},S)}}function c(){var U=new Date();if(U){return U.getTimezoneOffset()}else{return""}}function h(){var U=new Date();return U.getTime()}function P(){if(p==0){M();x=window.setInterval(function(){a("initiateChatLiveHelp")},10);jQuery("#initiateChatLiveHelp").css("visibility","visible");n("Opened");p=1;initiateLoaded=0;t=0}}function n(U){i=U;e();if(U=="Accepted"||U=="Declined"){jQuery("#initiateChatLiveHelp").css("visibility","hidden")}}function K(U){if(U=="Online"){jQuery(".LiveHelpSlider").show()}else{jQuery(".LiveHelpSlider").hide()}if(LiveHelp.currentStatus!=""&&LiveHelp.currentStatus!=U){jQuery(document).trigger("LiveHelp.StatusModeChanged",[U]);LiveHelp.currentStatus=U;jQuery(".LiveHelpStatus").each(function(){var Z=jQuery(this).attr("src");var W=/^[^?#]+\?([^#]+)/i;var V=W.exec(Z);if(V!=null){query="?"+V[1]+"&_="+h()}else{query="?_="+h()}jQuery(this).attr("src",m+"../include/status.php"+query);s()})}}function s(){jQuery(".LiveHelpStatus").each(function(){var U=k;if(U=="BRB"){U="Be Right Back"}jQuery(this).attr("title","Live Help - "+U);jQuery(this).attr("alt","Live Help - "+U)})}if(J!=""){if(/^(?:^[\-!#$%&'*+\\.\/0-9=?A-Z^_`a-z{|}~]+@[\-!#$%&'*+\\\/0-9=?A-Z^_`a-z{|}~]+\.[\-!#$%&'*+\\.\/0-9=?A-Z^_`a-z{|}~]+$)$/i.test(J)){J="mailto:"+J}B=0}function R(V,Z){Z=Z.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var W="[\\?&]"+Z+"=([^&#]*)";var U=new RegExp(W);var aa=U.exec(V);if(aa==null){return""}else{return decodeURIComponent(aa[1].replace(/\+/g," "))}}function H(W,U,V){var ac="LiveHelp";if(typeof W!="undefined"){var aa=W.attr("class");var ab=aa.split(" ")[1];var Z=W.children("img.LiveHelpStatus").attr("src");var U=R(Z,"DEPARTMENT")}else{var ab=this.template}if(B==0&&k!="Online"){if(J!=""){document.location=J}return false}else{if(typeof V=="undefined"||V==""){var V="index.php"}if(typeof U=="undefined"||U==""){var U=""}else{U="&DEPARTMENT="+U}if(typeof ab=="undefined"||ab==""){var ab=""}else{ab="&TEMPLATE="+ab}A=window.open(m+"../"+V+"?LANGUAGE="+d+U+ab,ac,o)}if(A){A.opener=self}}return{chatWidth:z,chatHeight:q,hAlign:l,vAlign:r,currentStatus:k,offlineRedirect:J,locale:d,OfflineEmail:B,displayInitiateChat:function(){P()},updateInitiateStatus:function(U){n(U)},changeStatus:function(U){K(U)},openLiveHelp:function(){H()}}}();function displayInitiateChat(){LiveHelp.displayInitiateChat()}function updateInitiateStatus(a){LiveHelp.updateInitiateStatus(a)}function changeStatus(a){LiveHelp.changeStatus(a)}function openLiveHelp(){LiveHelp.openLiveHelp()};
