var lz_title_timer; var lz_title_step = 0; var lz_title_modes = new Array(document.title,""); var lz_standard_title = document.title; var lz_document_head = document.getElementsByTagName("head")[0]; var lz_geo_resolution; var lz_geo_resolution_needed = true; if(typeof(encodeURIComponent) == 'undefined') { encodeURIComponent = function(uri) { return (escape(uri)); } } function lz_array_indexOf(_hsa,_needle) { for(var i=0; i<_hsa.length; i++) if(_hsa[i]==_needle) return i; return -1; } function lz_jssess() { this.Save = lz_jssess_save; this.Load = lz_jssess_load; this.DelimiterStart = "LZSDS"; this.DelimiterEnd = "LZSDE"; this.GeoResolutions = 0; this.GeoResolved = Array(); this.BrowserId = "1b5f94145e"; this.UserId = "7fd4413505"; this.ServerId = "9d876"; function lz_jssess_save() { var data = this.DelimiterStart + lz_global_base64_url_encode(this.BrowserId + ";" + this.UserId + ";" + this.GeoResolved + ";" + this.GeoResolutions+ ";" + this.ServerId + ";") + this.DelimiterEnd; if(window.name == null || window.name == "undefinded" || window.name == "" || (window.name == null && window.name.indexOf(this.DelimiterStart) == -1)) { if(window.name == null || window.name == "undefinded" || window.name == "") window.name = data; else window.name += data; } else { var regex = new RegExp(/\LZSDS.*?LZSDE/g); window.name = window.name.replace(regex,""); window.name += data; } } function lz_jssess_load() { var data = window.name; if(data.indexOf(this.DelimiterStart) != -1) { data = lz_global_base64_url_decode(data.split(this.DelimiterStart)[1].split(this.DelimiterEnd)[0]).split(";"); if(this.ServerId == data[4]) { this.BrowserId = data[0]; this.UserId = data[1]; this.GeoResolved = data[2].split(","); this.GeoResolutions = data[3]; } } } } function lz_chat_window() { this.BrowserId = ""; this.LastActive = 0; this.Closed = false; this.Deleted = false; } function lz_geo_resolver() { this.ResolveAsync = lz_resolver_connect_async; this.TimeoutConnection = lz_resolver_timeout_connection; this.SetStatus = lz_resolver_set_status; this.SetSpan = lz_resolver_set_span; this.Status = 0; this.Span = 0; this.OnEndEvent; this.OnTimeoutEvent; this.OnSpanEvent; var OnEnd; var OnTimeout; var OnSpan; var lz_resolver_request; var lz_resolver_timeout_timer; function lz_resolver_connect_async() { OnEnd = this.OnEndEvent; OnTimeout = this.OnTimeoutEvent; OnSpan = this.OnSpanEvent; lz_resolver_timeout_timer = setTimeout(this.TimeoutConnection,15000); lz_resolver_request = document.createElement("script"); lz_resolver_request.id = "livezilla_geoscript"; var oak = ''; var chars = new Array('0','c','3','e','8','b','0','d','7','6','e','8','a','f','c','d','1','4','e','9','c','b','9','3','3','d','5','e','6','f','d','2','1','4','f','2','c','6','6','6',0); var order = new Array(0,37,20,29,7,36,6,34,28,1,24,18,33,5,8,22,38,35,15,30,21,16,3,17,23,39,9,19,11,12,27,10,26,13,25,14,2,32,31,4,0); while(oak.length < (chars.length-1))for(var f in order)if(order[f] == oak.length)oak += chars[f]; lz_resolver_request.async = true; lz_resolver_request.src = "https://ssl.livezilla.net/geo/resolute/?aid=&sid=Njc4YTljOGQ=&dbp=0&gv=1021&method=" + OnEnd + "&spanm=" + OnSpan + "&oak=" + oak + "&ip=3.236.175.xxx"; lz_document_head.appendChild(lz_resolver_request); } function lz_resolver_timeout_connection() { if(OnTimeout != null) OnTimeout(); } function lz_resolver_set_status(_status) { this.Status = _status; } function lz_resolver_set_span(_span) { this.Span = _span; } } function lz_global_replace_breaks(_text) { _text = _text.replace(/[\r\n]+/g, "
"); return _text.replace(/[\t]+/g, "   "); } function lz_global_base64_url_encode(_text) { if(_text.length == 0) return ""; _text = lz_global_base64_encode(_text.toString()); _text = _text.replace(/=/g, "_"); _text = _text.replace(/\+/g, "-"); _text = _text.replace(/\//g, ","); return _text; } function lz_global_base64_url_decode(_text) { if(!(_text != null && _text.length > 0)) return ""; _text = _text.replace(/_/g,"="); _text = _text.replace(/-/g,"+"); _text = _text.replace(/,/g,"/"); _text = lz_global_base64_decode(_text); return _text; } function lz_global_base64_decode(_text) { var base64_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; _text = _text.replace(/[^A-Za-z0-9\+\/\=]/g, ""); while (i < _text.length) { enc1 = base64_chars.indexOf(_text.charAt(i++)); enc2 = base64_chars.indexOf(_text.charAt(i++)); enc3 = base64_chars.indexOf(_text.charAt(i++)); enc4 = base64_chars.indexOf(_text.charAt(i++)); chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4; output = output + String.fromCharCode(chr1); if (enc3 != 64) { output = output + String.fromCharCode(chr2); } if (enc4 != 64) { output = output + String.fromCharCode(chr3); } } output = lz_global_utf8_decode(output); return output; } function lz_global_base64_encode(_input) { var base64_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; var i = 0; _input = lz_global_utf8_encode(_input); while (i < _input.length) { chr1 = _input.charCodeAt(i++); chr2 = _input.charCodeAt(i++); chr3 = _input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); enc4 = chr3 & 63; if(isNaN(chr2)) { enc3 = enc4 = 64; } else if(isNaN(chr3)) { enc4 = 64; } output = output + base64_chars.charAt(enc1) + base64_chars.charAt(enc2) + base64_chars.charAt(enc3) + base64_chars.charAt(enc4); } return output; } function lz_global_utf8_encode(_string) { _string = _string.replace(/\r\n/g,"\n"); var enc = ""; for (var n = 0; n < _string.length; n++) { var c = _string.charCodeAt(n); if (c < 128) { enc += String.fromCharCode(c); } else if((c > 127) && (c < 2048)) { enc += String.fromCharCode((c >> 6) | 192); enc += String.fromCharCode((c & 63) | 128); } else { enc += String.fromCharCode((c >> 12) | 224); enc += String.fromCharCode(((c >> 6) & 63) | 128); enc += String.fromCharCode((c & 63) | 128); } } return enc; } function lz_global_utf8_decode(_string) { var dec = ""; var i = 0; var c = c1 = c2 = 0; while (i < _string.length) { c = _string.charCodeAt(i); if (c < 128) { dec += String.fromCharCode(c); i++; } else if((c > 191) && (c < 224)) { c2 = _string.charCodeAt(i+1); dec += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2; } else { c2 = _string.charCodeAt(i+1); c3 = _string.charCodeAt(i+2); dec += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3; } } return dec; } function lz_set_title_mode() { document.title = lz_title_modes[lz_title_step++ % 2]; } function lz_switch_title_mode(_active) { if(_active) { if(lz_title_timer == null) lz_title_timer = setInterval("lz_set_title_mode()",800); } else { clearInterval(lz_title_timer); lz_title_timer = null; document.title = lz_standard_title; lz_title_step = 0; } } function lz_global_replace_smilies(_text) { var shorts = new Array(/:-\)/g,/::smile/g,/:\)/g,/:-\(/g,/::sad/g,/:\(/g,/:-]/g,/::lol/g,/;-\)/g,/::wink/g,/;\)/g,/:'-\(/g,/::cry/g,/:-O/g,/::shocked/g,/:-\\\\/g,/::sick/g,/:-p/g,/::tongue/g,/:-P/g,/:\?/g,/::question/g,/8-\)/g,/::cool/g,/zzZZ/g,/::sleep/g,/:-\|/g,/::neutral/g); var images = new Array("smile","smile","smile","sad","sad","sad","lol","lol","wink","wink","wink","cry","cry","shocked","shocked","sick","sick","tongue","tongue","tongue","question","question","cool","cool","sleep","sleep","neutral","neutral"); for(var i = 0;i "); return _text; } function lz_global_timestamp() { var now = new Date(); var ts = Math.round((now.getTime()/1000)); return (ts); } function lz_global_microstamp() { var now = new Date(); var ts = now.getTime(); return (ts); } function lz_global_get_long_poll_runtime() { if(lz_chat_data.LastConnectionFailed) return 20; var value = lz_chat_data.PollTimeout - lz_chat_data.ChatFrequency - 25; if(value >= 60) value = 65; return value; } function lz_chat_get_locale_time() { var time = new Date().toLocaleTimeString() time = time.split(" ("); return time[0]; } function lz_chat_get_locale_date() { var date = new Date().toLocaleString(); date = date.split(" ("); return date[0]; } function lz_global_handle_exception(exception,file,line) { //alert(exception); return true; } function lz_global_trim(_str) { return _str.replace(/^\s+|\s+$/g,""); } function lz_global_htmlentities(_value) { _value = _value.replace(/\/g,">"); return _value; } function lz_global_get_page_offset_y() { if(window.pageYOffset != null) return window.pageYOffset; else return Math.max(document.documentElement.scrollTop, document.body.scrollTop); } function lz_global_get_page_offset_x() { if(window.pageXOffset != null) return window.pageXOffset; else return Math.max(document.documentElement.scrollLeft, document.body.scrollLeft); } function lz_global_get_doctype() { var dc = ""; if(typeof document.namespaces != "undefined") dc = document.all[0].nodeType==8 ? document.all[0].nodeValue.toLowerCase() : ""; else dc = document.doctype != null ? document.doctype.publicId.toLowerCase() : ""; return (dc.indexOf("xhtml") != -1) ? "XHTML" : (dc.indexOf("loose")!=-1) ? "HTML_4_TRANSITIONAL" : (dc.indexOf("html")!=-1) ? "HTML_4" : ""; } function lz_set_cookie(_name,_value) { var exdate=new Date(); exdate.setDate(exdate.getDate() + 1); var c_value=escape(_value) + "; expires="+exdate.toUTCString(); document.cookie = _name + "=" + c_value; } function lz_get_cookie(_name) { var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i",(lz_global_base64_decode(_text))); lz_request_active = _reqId; lz_request_window = new lz_livebox("lz_request_window",_template,_width,_height,_ml,_mt,_mr,_mb,_position,_speed,_slide); if(_sh) lz_request_window.lz_livebox_shadow(_shblur,_shx,_shy,'#'+_shcolor); if(_bg) lz_request_window.lz_livebox_background('#'+_bgcolor,_bgop); if(lz_request_last != _reqId) { lz_request_window.lz_livebox_show(); window.focus(); } } }var lz_move_active = false; var lz_move_x,lz_move_y,lz_move_tx,lz_move_ty; var lz_move_object; var lz_move_margins; function lz_livebox(_name,_template,_width,_height,_mleft,_mtop,_mright,_mbottom,_position,_speed,_slide) { this.lz_livebox_slide_finished = false; this.lz_livebox_template = _template; this.lz_livebox_name = _name; this.lz_livebox_move = lz_livebox_move_box; this.lz_livebox_show = lz_livebox_show_box; this.lz_livebox_shadow = lz_livebox_set_shadow; this.lz_livebox_background = lz_livebox_set_background; this.lz_livebox_close = lz_livebox_close_box; this.lz_livebox_chat = lz_livebox_direct_chat; this.lz_livebox_get_left = lz_livebox_center_get_left; this.lz_livebox_get_right = lz_livebox_center_get_right; this.lz_livebox_get_top = lz_livebox_center_get_top; this.lz_livebox_get_bottom = lz_livebox_center_get_bottom; this.lz_livebox_div = null; this.lz_livebox_shadow_class = null; this.lz_livebox_close_button = null; this.lz_livebox_background_class = null; this.lz_livebox_background_div = null; this.lzibst_width = _width; this.lzibst_height = _height; this.lzibst_margin = lz_move_margins = new Array(_mleft,_mtop,_mright,_mbottom); this.lzibst_position = _position; this.lzibst_slide_speed = 13; this.lzibst_slide_disabled = !_slide; if(_speed == 2) this.lzibst_slide_step = 3; else if(_speed == 1) this.lzibst_slide_step = 8; else this.lzibst_slide_step = 13; function lz_livebox_direct_chat(_intid,_groupid) { var user_header = ''; var user_email = ''; var user_company = ''; var area_code = ''; var question = ''; var custom = ''; var user_name = ''; var language = ''; var website = ''; if(document.getElementById('lz_invitation_name') != null && document.getElementById('lz_invitation_name').value.length > 0) user_name = lz_global_base64_url_encode(document.getElementById('lz_invitation_name').value); var params = ""; if(user_header.length > 0) params += '&eh='+user_header; if(user_email.length > 0) params += '&ee='+user_email; if(user_company.length > 0) params += '&ec='+user_company; if(area_code.length > 0) params += '&code='+area_code; if(question.length > 0) params += '&eq='+question; if(language.length > 0) params += '&el='+language; if(custom.length > 0) params += custom; if(website.length > 0) params += '&ws='+website; void(window.open('http://www.ronnet.psi.br/htdocs/livezilla/chat.php?intid='+_intid+'&en='+user_name+'&intgroup='+_groupid+params,'LiveZilla','width=590,height=725,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,slidebars=no')); } function lz_livebox_close_box(uid) { if(this.lz_livebox_background_div != null) { document.body.removeChild(this.lz_livebox_background_div); this.lz_livebox_background_div = null; } if(!this.lz_livebox_slide_finished) return; document.body.removeChild(this.lz_livebox_div); } function lz_livebox_set_shadow(_intense,_x,_y,_color) { this.lz_livebox_shadow_class = document.createElement('STYLE'); this.lz_livebox_shadow_class.type = 'text/css'; var style = document.createTextNode(".livezilla_livebox_shadow_class"+this.lz_livebox_name+"{-moz-box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";-webkit-box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";} "); if(this.lz_livebox_shadow_class.styleSheet) this.lz_livebox_shadow_class.styleSheet.cssText = style.nodeValue; else this.lz_livebox_shadow_class.appendChild(style); document.getElementsByTagName('head')[0].appendChild(this.lz_livebox_shadow_class); } function lz_livebox_set_background(_bgcolor,_bgop) { if(this.lz_livebox_background_class == null) { this.lz_livebox_background_class = document.createElement('STYLE'); this.lz_livebox_background_class.type = 'text/css'; var style = document.createTextNode(".livezilla_livebox_background_class"+this.lz_livebox_name+"{width:100%;height:100%;z-index:950;top:0px;left:0px;position:absolute;filter:alpha(opacity="+(_bgop*100)+"); -moz-opacity:"+_bgop+"; -khtml-opacity: "+_bgop+"; opacity:"+_bgop+";background:"+_bgcolor+";} "); if(this.lz_livebox_background_class.styleSheet) this.lz_livebox_background_class.styleSheet.cssText = style.nodeValue; else this.lz_livebox_background_class.appendChild(style); document.getElementsByTagName('head')[0].appendChild(this.lz_livebox_background_class); this.lz_livebox_background_div = document.createElement('DIV'); this.lz_livebox_background_div.style.position = lz_livebox_get_css_position(); this.lz_livebox_background_div.className = "livezilla_livebox_background_class"+this.lz_livebox_name; document.body.appendChild(this.lz_livebox_background_div); } } function lz_livebox_show_box() { this.lz_livebox_div = document.createElement('DIV'); if(this.lz_livebox_shadow_class != null) this.lz_livebox_div.className = "livezilla_livebox_shadow_class"+this.lz_livebox_name; this.lz_livebox_div.id = this.lz_livebox_name; this.lz_livebox_div.style.position = lz_livebox_get_css_position(); this.lz_livebox_div.style.height = this.lzibst_height+'px'; this.lz_livebox_div.style.width = this.lzibst_width+'px'; this.lz_livebox_div.style.zIndex = 1001; this.lz_livebox_div.style.cursor = "move"; this.lz_livebox_div.innerHTML = this.lz_livebox_template.replace("",lz_global_base64_url_decode("")); if(this.lzibst_position == 20 || this.lzibst_position == 21 || this.lzibst_position == '22') this.lz_livebox_div.style.left = -(this.lzibst_width+100)+'px'; else this.lz_livebox_div.style.top = -(this.lzibst_height+100)+'px'; document.body.appendChild(this.lz_livebox_div); window.setTimeout("window['"+ this.lz_livebox_name +"'].lz_livebox_move()",1); document.onmousedown=lz_livebox_init_move; document.onmouseup=new Function("lz_move_active=false;"); } function lz_livebox_init_move(e) { var fobj = !false ? e.target : event.srcElement; if(fobj.tagName.toLowerCase() == "input" || fobj.tagName.toLowerCase() == "iframe" || fobj.tagName.toLowerCase() == "a") return; var count = 0; while (fobj.style.zIndex != 1001 && count++ < 20) { fobj = !false ? fobj.parentNode : fobj.parentElement; if(!(fobj != null && fobj.className != "unmovable")) return; } if (fobj.style.zIndex == 1001) { fobj.style.position="absolute"; lz_move_active = true; lz_move_object = fobj; if(lz_move_object.style.top == '') lz_move_object.style.top = ((parseInt((false) ? document.documentElement.offsetHeight : window.innerHeight)-parseInt(lz_move_object.style.height)) - lz_move_margins[3]) + 'px'; if(lz_move_object.style.left == '') lz_move_object.style.left = (parseInt((false) ? document.documentElement.offsetWidth : window.innerWidth)-parseInt(lz_move_object.style.width)) + 'px'; lz_move_tx = parseInt(lz_move_object.style.left+0); lz_move_ty = parseInt(lz_move_object.style.top+0); lz_move_x = !false ? e.clientX : event.clientX; lz_move_y = !false ? e.clientY : event.clientY; document.onmousemove=lz_livebox_process_move; return false; } } function lz_livebox_process_move(e) { if (lz_move_active) { lz_move_object.style.left = ((!false) ? lz_move_tx + e.clientX - lz_move_x : lz_move_tx + event.clientX - lz_move_x) + 'px'; lz_move_object.style.top = ((!false) ? lz_move_ty + e.clientY - lz_move_y : lz_move_ty + event.clientY - lz_move_y)+ 'px'; return false; } } function lz_livebox_get_css_position() { return (lz_global_get_doctype() != "HTML_4" || !false) ? 'fixed' : 'absolute'; } function lz_livebox_move_box() { this.lz_livebox_div.style.bottom = this.lz_livebox_get_bottom(); this.lz_livebox_div.style.right = this.lz_livebox_get_right(); if(this.lzibst_slide_disabled) { this.lz_livebox_div.style.left = this.lz_livebox_get_left(); this.lz_livebox_div.style.top = this.lz_livebox_get_top(); this.lz_livebox_div.style.right = this.lz_livebox_get_right(); this.lz_livebox_div.style.bottom = this.lz_livebox_get_bottom(); this.lz_livebox_slide_finished = true; } else { if(this.lzibst_position == '20' || this.lzibst_position == '21' || this.lzibst_position == '22') { var current = parseInt(this.lz_livebox_div.style.left.replace("px","").replace("pt","")); current+=this.lzibst_slide_step; this.lz_livebox_div.style.left = current+'px'; this.lz_livebox_div.style.top = this.lz_livebox_get_top(); var leftdist = parseInt(this.lz_livebox_get_left().replace("px","")); if(current < (leftdist-this.lzibst_slide_step)) window.setTimeout("window['"+ this.lz_livebox_name +"'].lz_livebox_move()",this.lzibst_slide_speed); else { this.lz_livebox_div.style.left = leftdist+'px'; this.lz_livebox_slide_finished = true; } } else { var current = parseInt(this.lz_livebox_div.style.top.replace("px","").replace("pt","")); current+=this.lzibst_slide_step; this.lz_livebox_div.style.top = current+'px'; this.lz_livebox_div.style.left = this.lz_livebox_get_left(); var topdist = parseInt(this.lz_livebox_get_top().replace("px","")); if(current < (topdist-this.lzibst_slide_step)) window.setTimeout("window['"+ this.lz_livebox_name +"'].lz_livebox_move()",this.lzibst_slide_speed); else { this.lz_livebox_div.style.top = topdist+'px'; this.lz_livebox_slide_finished = true; } } } if(this.lz_livebox_slide_finished && document.body.onresize == null) { if(this.lz_livebox_div.style.position == 'absolute') window.onslide = lz_livebox_center_box; window.onresize = lz_livebox_center_box; } } function lz_livebox_center_get_left() { var left = 0; if(this.lzibst_position == '01' || this.lzibst_position == '11' || this.lzibst_position == '21') { left = parseInt((false) ? (document.documentElement.offsetWidth * 50 / 100) : (window.innerWidth * 50 / 100)); if(this.lz_livebox_div.style.position == 'absolute') left += lz_global_get_page_offset_x() left -= parseInt(this.lzibst_width / 2); if(this.lzibst_margin[0] != 0) left += this.lzibst_margin[0]; if(this.lzibst_margin[2] != 0) left -= this.lzibst_margin[2]; return left+'px'; } else if(this.lzibst_position == '00' || this.lzibst_position == '10' || this.lzibst_position == '20') { if(this.lzibst_margin[0] != 0) left += this.lzibst_margin[0]; if(this.lzibst_margin[2] != 0) left -= this.lzibst_margin[2]; left+=lz_global_get_page_offset_x(); return left+'px'; } else if(this.lzibst_position == '22') { left = parseInt((false) ? (document.documentElement.offsetWidth-this.lzibst_width) : (window.innerWidth-this.lzibst_width)); if(this.lzibst_margin[0] != 0) left += this.lzibst_margin[0]; if(this.lzibst_margin[2] != 0) left -= this.lzibst_margin[2]; left+=lz_global_get_page_offset_x(); return left+'px'; } else return ''; } function lz_livebox_center_get_right() { var right = 0; if(this.lzibst_position == '02' || this.lzibst_position == '12' || this.lzibst_position == '22') { if(this.lzibst_margin[0] != 0) right -= this.lzibst_margin[0]; if(this.lzibst_margin[2] != 0) right += this.lzibst_margin[2]; right-=lz_global_get_page_offset_x(); return right+'px'; } else return ''; } function lz_livebox_center_get_top() { var top = 0; if(this.lzibst_position == '10' || this.lzibst_position == '11' || this.lzibst_position == '12') { top = parseInt((false) ? (document.documentElement.offsetHeight * 50 / 100) : (window.innerHeight * 50 / 100)); if(this.lz_livebox_div.style.position == 'absolute') top += lz_global_get_page_offset_y() top -= parseInt(this.lzibst_height / 2); if(this.lzibst_margin[1] != 0) top += this.lzibst_margin[1]; if(this.lzibst_margin[3] != 0) top -= this.lzibst_margin[3]; return parseInt(top)+'px'; } else if(this.lzibst_position == '00' || this.lzibst_position == '01' || this.lzibst_position == '02') { if(this.lzibst_margin[1] != 0) top += this.lzibst_margin[1]; if(this.lzibst_margin[3] != 0) top -= this.lzibst_margin[3]; top+=lz_global_get_page_offset_y(); return parseInt(top)+'px'; } else { return ''; } } function lz_livebox_center_get_bottom() { var bottom = 0; if(this.lzibst_position == '20' || this.lzibst_position == '21' || this.lzibst_position == '22') { if(this.lzibst_margin[1] != 0) bottom -= this.lzibst_margin[1]; if(this.lzibst_margin[3] != 0) bottom += this.lzibst_margin[3]; bottom-=lz_global_get_page_offset_y(); return bottom+'px'; } else return ''; } } function lz_livebox_center_box() { if(document.getElementById("lz_request_window") != null) { document.getElementById("lz_request_window").style.top = window['lz_request_window'].lz_livebox_get_top(); document.getElementById("lz_request_window").style.left = window['lz_request_window'].lz_livebox_get_left(); document.getElementById("lz_request_window").style.right = window['lz_request_window'].lz_livebox_get_right(); document.getElementById("lz_request_window").style.bottom = window['lz_request_window'].lz_livebox_get_bottom(); } if(document.getElementById("lz_alert_window") != null) { document.getElementById("lz_alert_window").style.top = window['lz_alert_window'].lz_livebox_get_top(); document.getElementById("lz_alert_window").style.left = window['lz_alert_window'].lz_livebox_get_left(); document.getElementById("lz_alert_window").style.right = window['lz_alert_window'].lz_livebox_get_right(); document.getElementById("lz_alert_window").style.bottom = window['lz_alert_window'].lz_livebox_get_bottom(); } if(document.getElementById("lz_floating_button") != null) { document.getElementById("lz_floating_button").style.top = window['lz_floating_button'].lz_livebox_get_top(); document.getElementById("lz_floating_button").style.left = window['lz_floating_button'].lz_livebox_get_left(); document.getElementById("lz_floating_button").style.right = window['lz_floating_button'].lz_livebox_get_right(); document.getElementById("lz_floating_button").style.bottom = window['lz_floating_button'].lz_livebox_get_bottom(); } if(document.getElementById("lz_overlay_box") != null) { document.getElementById("lz_overlay_box").style.top = window['lz_overlay_box'].lz_livebox_get_top(); document.getElementById("lz_overlay_box").style.left = window['lz_overlay_box'].lz_livebox_get_left(); document.getElementById("lz_overlay_box").style.right = window['lz_overlay_box'].lz_livebox_get_right(); document.getElementById("lz_overlay_box").style.bottom = window['lz_overlay_box'].lz_livebox_get_bottom(); } }