$(document).ready(function(){if(livechatType!="0"){var tmp=$("#"+livechatID);var parent=tmp.parent();parent.css({"padding":"0","margin":"0"});tmp.css({"position":"absolute"}).appendTo("body");if(livechatType=="2"){tmp.css({"right":"0"});}}});window.onload=function(){LC_InitLang=livechatLang;};String.prototype.getBytesLength=function(){var length=0;for(i=0;i=0&&iCode<=255)||(iCode>=0xff61&&iCode<=0xff9f)){length+=1;}else{length+=2;}} return length;};String.prototype.isDate=function(){var vl=this;var r=$.trim(vl).match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(r==null) return false;var d=new Date(r[1],r[3]-1,r[4]);return(d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]);};(function($){jQuery.fn.numeric=function(callback){callback=typeof callback=="function"?callback:function(){};$(this).css("ime-mode","disabled");this.bind("keypress",function(e){var key=e.charCode?e.charCode:e.keyCode?e.keyCode:0;if(key==8){return true;} if(key==46){return false;}else{return key>=46&&key<=57;}});this.bind("blur",function(){callback.apply(this);});this.bind("paste",function(){var s=clipboardData.getData('text');if(!/\D/.test(s));value=s.replace(/^0*/,'');return false;});this.bind("dragenter",function(){return false;});this.bind("keyup",function(){if(/(^0+)/.test(this.value)){this.value=this.value.replace(/^0*/,'');}});};$.fn.bgIframe=$.fn.bgiframe=function(s){var isIEBoole=false;var isIE=!!window.ActiveXObject;var isIE6=isIE&&!window.XMLHttpRequest;var isIE8=isIE&&!!document.documentMode;var isIE7=isIE&&!isIE6&&!isIE8;if(isIE){if(isIE6){isIEBoole=true;}} if($.browser.msie&&isIEBoole){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='