var isFirefox=document.getElementById&&!document.all,QUOTE_CALLBACK_REPLACE_STRING="_so_callback_quote",EQUAL_CALLBACK_REPLACE_STRING="_so_callback_equal",QUOTE_REPLACE_STRING="_so_quote",EQUAL_REPLACE_STRING="_so_equal",LIST_REPLACE_STRING="_so_list",_gaq=_gaq||[];_gaq.push(["_setAccount","UA-3307458-1"]);_gaq.push(["_setDomainName",".scheduleonce.com"]);function AnalyticsTracker(b){_gaq.push(["_trackPageview",b])}
function disableSelection(b){if(typeof b.onselectstart!="undefined")b.onselectstart=OnSelectStart;else if(typeof b.style.MozUserSelect!="undefined")b.style.MozUserSelect="-moz-none";else b.onmousedown=OnSelectStart;b.style.cursor="default"}function OnSelectStart(b){b=isFirefox?b.target:event.srcElement;if(b.type=="textarea"||b.type=="text"||b.type=="password")return true;return false}function StringBuilder(b){this.strings=Array("");this.append(b)}StringBuilder.prototype.append=function(b){b&&this.strings.push(b)};
StringBuilder.prototype.clear=function(){this.strings.length=1};StringBuilder.prototype.toString=function(){return this.strings.join("")};function cloneArray(b){for(var c=[],d=b.length,e=0;e<d;e++)c[e]=b[e].constructor==Array?cloneArray(b[e]):b[e];return c}function HideDiv(b,c){var d=document.getElementById(b),e=true;if(c!=null)e=c;if(d!=null){d.style.visibility="hidden";if(e)d.style.display="none"}}
function HideDivElement(b,c){var d=true;if(c!=null)d=c;if(b!=null){b.style.visibility="hidden";if(d)b.style.display="none"}}function ShowDiv(b,c){var d=document.getElementById(b),e=true;if(c!=null)e=c;if(d!=null){d.style.visibility="visible";d.style.display=e?"block":""}}function ShowDivElement(b,c){var d=true;if(c!=null)d=c;if(b!=null){b.style.visibility="visible";b.style.display=d?"block":""}}
function IsVisible(b){b=document.getElementById(b);if(b!=null)if(b.style.visibility=="visible")return true;return false}function ClearDiv(b){b=document.getElementById(b);if(b!=null)b.innerHTML=""}function findPos(b){var c=curtop=0;if(b.offsetParent){c=b.offsetLeft;for(curtop=b.offsetTop;b=b.offsetParent;){c+=b.offsetLeft;curtop+=b.offsetTop}}return[c,curtop]}
function findPosSched(b){var c=curtop=0;if(b.offsetParent){c=b.offsetLeft;for(curtop=b.offsetTop;b=b.offsetParent;){c+=b.offsetLeft;curtop+=b.offsetTop}}if(browser.isChrome||browser.isIE||browser.isSafari||browser.isOpera)curtop+=20;return[c,curtop]}function getSize(b){var c=curheight=0;c=b.offsetWidth;curheight=b.offsetHeight;return[c,curheight]}function GetSizeFromString(b){return b==null?-1:b.replace?b==""?0:parseInt(b.replace("px","")):b}
function imposeMaxLength(b,c){var d=b.value;if(d.length>c)b.value=d.substring(0,c)}function splitToRowsByChars(b,c,d){var e="";e=b.substr(0,c)+"<br />";for(c=c;c<b.length;){e+=b.substr(c,d)+"<br />";c+=d}return e.substr(0,e.length-5)}String.prototype.wordWrap=function(b,c,d){var e,f,g,h=this.split("\n");if(b>0)for(e in h){g=h[e];for(h[e]="";g.length>b;f=d?b:(f=g.substr(0,b).match(/\S*$/)).input.length-f[0].length||b,h[e]+=g.substr(0,f)+((g=g.substr(f)).length?c:""));h[e]+=g}return h.join("\n")};
function SpliteToRows(b,c){return b.wordWrap(c,"<br/>",false)}function GetComboValue(b){var c=null;b=document.getElementById(b);if(b!=null)c=b.options[b.selectedIndex].value;return c}function SetComboByValue(b,c){var d=document.getElementById(b);if(d!=null)for(var e=d.options.length,f=0;f<e;f++)if(d.options[f].value==c){if(isFirefox)d.options[f].selected=true;d.options[f].setAttribute("selected","selected");d.selectedIndex=f;break}}function GetUserTimeInMiliseconds(b){return b.getTime()}
function ConvertUTCMilisecondsToClientMilseconds(b){return b-(new Date(b)).getTimezoneOffset()}function ConvertClientMilsecondsToUTCMiliseconds(b){b=new Date(b);return Date.UTC(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds())}function GetTimeStringByPrefrecesByDate(b){return b.formatDate("h:mma")}
function GetTimeStringByPrefrecesByHourMinute(b,c,d,e){if(e==null)e=false;var f="";f=30;f=d!=null?d.userTimeFormat:userTimeFormat;if(f==30&&!e){d="am";if(b>=12){d="pm";b-=12}if(b==0)b=12;f=b+":"+(c<10?"0":"")+c+" "+d}else f=b+":"+(c<10?"0":"")+c;return f}function CutStringToSize(b,c,d){if(d==null)d=false;var e=b;if(c>3)if(b.length>c){e=b.substring(0,c-3)+"...";if(d)e='<span title="'+b+'">'+e+"</span>"}return e}
function SplitStringToSize(b,c){for(var d="",e=b.length,f=0;f<e;f+=c)d+=b.substring(f,f+c)+" ";return d}function CutStringAtChar(b,c){var d=b.indexOf(c);if(d==-1)return b;return b.substring(0,d)}function SynchBorders(){}function GetHeight(b){return b.document.documentElement.scrollHeight}function CheckUncheck(b){chk=document.getElementById(b);if(chk!=null)chk.checked=!chk.checked}
function ShowVideo(b,c){ShowDiv("VideoPopUpDiv");ShowDiv("VideoPopUpFrame");var d='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="370" height="300"><param name="movie" value="http://www.youtube.com/v/'+b+'&autoplay=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=0"></param><embed src="http://www.youtube.com/v/'+b+'&autoplay=1&rel=0&color1=0x2b405b&color2=0x808080&border=0" type="application/x-shockwave-flash" width="370" height="300"></embed></object>',e=document.getElementById("VideoEmbeddTD"),
f=document.getElementById("VideoHeader");e.innerHTML=d;f.innerHTML=c;CenterDiv("VideoPopUpDiv");CenterDiv("VideoPopUpFrame");moveObjShimObj=document.getElementById("VideoPopUpDiv");movedObj=document.getElementById("VideoPopUpFrame");SynchMoveObjPopUpShim()}function HideVideo(){HideDiv("VideoPopUpDiv");HideDiv("VideoPopUpFrame");document.getElementById("VideoEmbeddTD").innerHTML=""}function GetIframeHeight(b){var c;try{c=GetHeight(b)}catch(d){customeSleep(100);c=GetHeight(b)}return c}
function synchIframeHeight(b){var c;c=GetIframeHeight(b.contentWindow);var d=b.contentWindow.document.getElementById("outerDiv");if(d!=null)c=getSize(d)[1];if(isFirefox)c+=10;b.style.height=c+5+"px";window.parent.OnFinishLoading&&window.parent.OnFinishLoading()}function f_clientWidth(){return f_filterResults(window.innerWidth?window.innerWidth:0,document.documentElement?document.documentElement.clientWidth:0,document.body?document.body.clientWidth:0)}
function f_clientHeight(){return f_filterResults(window.innerHeight?window.innerHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.body?document.body.clientHeight:0)}function f_scrollLeft(){return f_filterResults(window.pageXOffset?window.pageXOffset:0,document.documentElement?document.documentElement.scrollLeft:0,document.body?document.body.scrollLeft:0)}
function f_scrollTop(){return f_filterResults(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0)}function f_filterResults(b,c,d){b=b?b:0;if(c&&(!b||b>c))b=c;return d&&(!b||b>d)?d:b}function GetMouseX(b){b=isFirefox?b:event;var c=null;if(b.pageX)c=b.pageX;else if(b.clientX)c=b.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;return c}
function GetMouseY(b){b=isFirefox?b:event;var c=null;if(b.pageY)c=b.pageY;else if(b.clientY)c=b.clientY+document.documentElement.scrollTop+document.body.scrollTop;return c}(function(){var b=document.uniqueID&&document.compatMode&&!window.XMLHttpRequest&&document.execCommand;try{b&&b("BackgroundImageCache",false,true)}catch(c){}})();document.onkeydown=keyDown;
function contextmenu(b){b=isFirefox?b.target:event.srcElement;if(b!=null)if(b.type=="textarea"||b.type=="text"||b.type=="password")return true;return false}
function keyDown(b){var c=window.event?event.keyCode:b.keyCode,d=isFirefox?b.target:event.srcElement;b=isFirefox?b:event;if(c==13)if(d.type!="textarea"){b.returnValue=false;b.cancel=true;return false}if(c==8)if(d.type!="textarea"&&d.type!="text"&&d.type!="password"){b.returnValue=false;b.cancel=true;return false}if(c==9)if(d.type!="textarea"&&d.type!="text"&&d.type!="password"){b.returnValue=false;b.cancel=true;return false}}
function ClosePopUp(b){if(b==null)b=1;var c=document.getElementById("OpaqueDiv"+b);c!=null&&c.parentNode.removeChild(c);document.getElementById("PopupIFrame"+b).src="";HideDiv("PopupDiv"+b);HideDiv("PopupDivShim"+b)}function SynchPopupWithPopUpShim(b){var c=document.getElementById("PopupDivShim"+b),d=document.getElementById("PopupDiv"+b);if(c!=null&&d!=null){c.style.width=d.style.width;c.style.height=d.style.height;c.style.top=d.style.top;c.style.left=d.style.left;ShowDiv("PopupDivShim"+b)}}
function SynchPopupIframeHeight(b){if(b==null)b=1;var c=GetPopUpIframe(b);synchIframeHeight(c);var d=document.getElementById("PopupDiv"+b);c=getSize(c);d.style.width=c[0]+40+"px";d.style.height=c[1]+"px";SynchPopupWithPopUpShim(b);SynchBorders()}function GetPopUpIframe(b){return document.getElementById("PopupIFrame"+b)}
function ShowPopUp(b,c,d,e,f,g,h){if(h==null)h=1;b=document.getElementById("PopupTextTD"+h);var j=document.getElementById("OpaqueDiv"+h);j!=null&&ClosePopUp(h);j=document.createElement("div");j.id="OpaqueDiv"+h;j.className="opaque";var k,l;if(isFirefox){k=window.innerHeight;l=window.innerWidth}else{k=document.body.clientHeight;l=document.body.clientWidth}c=document.documentElement.scrollTop+document.body.scrollTop;b=(l-d)/2;j.style.cssText="background-color:black;position:absolute;left:0px;top:0px;width:10000px;height:1000px;z-index:"+
(1E4+2*h);j.style.width=l+"px";j.style.height=k+"px";document.getElementById("opaqueDivsContainer").appendChild(j);j=document.getElementById("PopupDiv"+h);k=document.getElementById("PopupDivShim"+h);if(k==null){k=document.createElement("iframe");k.style.cssText="background-color:black;display:none;position:absolute;left:0px;top:0px;width:10000px;height:1000px;";k.id="PopupDivShim"+h;j.parentNode.appendChild(k)}j.style.width=d+"px";j.style.height=e+"px";j.style.left=b+"px";j.style.top=c+"px";j.style.zIndex=
1E4+2*h+1;k.style.zIndex=1E4+2*h;document.getElementById("PopupIFrame"+h).src=g;b=document.getElementById("PopupTextTD"+h);b.innerHTML=f}function GenPopUpSynchIframe(b,c){var d=document.getElementById(c);synchIframeHeight(d);var e=document.getElementById(b);d=getSize(d);e.style.height=d[1]+50+"px";d=document.getElementById(b+"Shim");if(d!=null&&e!=null){d.style.width=e.style.width;d.style.height=e.style.height;d.style.top=e.style.top;d.style.left=e.style.left;ShowDiv(b+"Shim")}SynchBorders()}
function GenClosePopUp(b){GenClosePopUpFinal(b)}function GenClosePopUpFinal(b){var c=document.getElementById("OpaqueDiv"+b);c!=null&&c.parentNode.removeChild(c);document.getElementById(b+"IFrame");HideDiv(b);HideDiv(b+"Shim")}
function CenterDiv(b,c){if(c==null)c=false;var d=document.getElementById(b);if(d!=null){var e=getSize(d);GetWinNetSize();var f=document.getElementById(b+"Shim"),g=document.documentElement.scrollTop+document.body.scrollTop,h=document.body.clientHeight;h=(h-e[1])/2;var j=(f_clientWidth()-e[0])/2;if(c){g+=(f_clientHeight()-e[1])/2;g=Math.max(h,g);g=Math.max(30,g);if(browser.isIE)g+=15}d.style.left=j+"px";d.style.top=g+"px";if(f!=null){f.style.left=j+"px";f.style.top=g+"px"}}}
function FadeInGenPopUp(b){CenterDiv(b)}function FadeOutGenPopUp(b){HideDiv(b);HideDiv(b+"Shim");HideDiv("OpaqueDiv"+b)}
function GenShowPopUp(b,c,d,e,f,g,h,j){if(h==null)h=1E4;var k=document.getElementById(g+"TextTD");k=document.getElementById("OpaqueDiv"+g);k!=null&&GenClosePopUpFinal(g);k=isFirefox?document.createElement("div"):document.createElement("iframe");k.id="OpaqueDiv"+g;k.className="opaque";var l=h-100,m=GetWinNetSize();k.style.cssText="background-color:black;position:absolute;left:0px;top:0px;width:"+m[0]+"px;height:"+(m[1]+j)+"px;z-index:"+l;document.getElementById("opaqueDivsContainer").appendChild(k);
isFirefox||k.contentWindow.document.writeln('<body style="background-color:Black;"></body>');j=document.getElementById(g);j.style.width=d+"px";j.style.height=e;j.style.left=b+"px";j.style.top=c+"px";j.style.zIndex=h;k=document.getElementById(g+"TextTD");k.innerHTML=f;if(document.getElementById(g+"IFrame")!=null){document.getElementById(g+"IFrame").style.height=e;document.getElementById(g+"IFrame").contentWindow.isPopUp=true}ShowDiv(j.id)}function GenShowLoading(b){ShowDiv(b+"LoadingImg")}
function GenHideLoading(b){HideDiv(b+"LoadingImg")}function OpenPreviewEmailPopUp(b,c,d){window.open("EmailPreview.aspx?param="+b+"&PreviewType="+c+"&"+d,"EmailPreview","scrollbars=1,status=0,toolbar=0,location=0,menubar=0,resiazable=1,height=500,width=500")}function FindAllValidChars(b){for(var c=true,d=0;d<b.length;d++)if("abcdefghijklmnopqrstuvwxyz0123456789@.-_+~".indexOf(b.charAt(d).toLowerCase())==-1){c=false;break}return c}
function IsValidEmail(b){if(!FindAllValidChars(b))return false;if(b.indexOf("@")<1)return false;else if(b.lastIndexOf(".")<=b.indexOf("@"))return false;else if(Math.max(b.indexOf("+"),b.indexOf("~"))>=b.indexOf("@"))return false;else if(b.indexOf("@")==b.length)return false;else if(b.indexOf("..")>=0)return false;else if(b.indexOf(".")==b.length||b.indexOf(".")==0)return false;return true}
function synchPopUpHeight(b){if(b==null)b=1;var c=document.getElementById("PopupIFrame"+b);synchIframeHeight(c);var d=document.getElementById("PopupDiv"+b);c=getSize(c);d.style.height=c[1]+"px";SynchPopupWithPopUpShim(b);SynchBorders()}var x,y,movedObj,moveObjShimObj,popUpIdx;
function ObjectStartDrag(b,c,d){x=GetMouseX(b);y=GetMouseY(b);document.onmousemove=ObjMoveMouse;document.onmouseup=ObjDrop;movedObj=document.getElementById(c);moveObjShimObj=document.getElementById(d);if(movedObj!=null)movedObj.onmouseout=ObjDrop}function PopUpStartDrag(b,c){if(c==null)c=1;ObjectStartDrag(b,"PopupDiv"+c,"PopupDivShim"+c);popUpIdx=c}
function DocumentClicked(b){b=b&&b.target||event&&event.srcElement;for(var c="";c!="1"&&b!=null;)if(b.getAttribute){c=b.getAttribute("IsPopUp");attrib1=b.getAttribute("IsPopUpClick");if(attrib1=="1")return;if(c!="1")if(b!=null)b=b.parentNode}else{b=null;c=""}c!="1"&&window.ClickedOutSidePopUp&&window.ClickedOutSidePopUp()}
function ObjMoveMouse(b){if(movedObj!=null){var c=GetMouseX(b);b=GetMouseY(b);var d=GetSizeFromString(movedObj.style.left)+(c-x),e=GetSizeFromString(movedObj.style.top)+(b-y);if(d>0&&d<1E4)movedObj.style.left=d+"px";if(e>0&&e<1E4)movedObj.style.top=e+"px";x=c;y=b;SynchMoveObjPopUpShim()}else document.onmousemove=null}
function SynchMoveObjPopUpShim(){if(movedObj!=null)if(moveObjShimObj!=null){moveObjShimObj.style.width=movedObj.style.width;moveObjShimObj.style.height=movedObj.style.height;moveObjShimObj.style.top=movedObj.style.top;moveObjShimObj.style.left=movedObj.style.left;ShowDiv(moveObjShimObj.id)}}function ObjDrop(){document.onmousemove=null;moveObjShimObj=movedObj=document.onmouseup=null}
function GetMouseX(b){b=isFirefox?b:event;var c=null;if(b.pageX)c=b.pageX;else if(b.clientX)c=b.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;return c}function GetMouseY(b){b=isFirefox?b:event;var c=null;if(b.pageY)c=b.pageY;else if(b.clientY)c=b.clientY+document.documentElement.scrollTop+document.body.scrollTop;return c}
function loadJS(b){var c=document.getElementsByTagName("head").item(0),d=document.createElement("script");d.setAttribute("language","javascript");d.setAttribute("type","text/javascript");d.setAttribute("src",b);d.setAttribute("id",b);d.setAttribute("defer","true");isFirefox?c.appendChild(d):document.write("<script language="+d.language+" type="+d.type+" src="+d.src+" id="+d.id+" ><\/script>")}
function opacity(b,c,d,e){e=Math.round(e/100);var f=0;if(c>d)for(i=c;i>=d;i--){setTimeout("changeOpac("+i+",'"+b+"')",f*e);f++}else if(c<d)for(i=c;i<=d;i++){setTimeout("changeOpac("+i+",'"+b+"')",f*e);f++}}function changeOpac(b,c){var d=document.getElementById(c).style;d.opacity=b/100;d.MozOpacity=b/100;d.KhtmlOpacity=b/100;d.filter="alpha(opacity="+b+")"}var confirmYesFunc,confirmNoFunc;
function GetConfirmWindow(){for(var b=window,c=b.document.getElementById("opaqueDivsContainer");c==null&&b.parent!=null;){b=b.parent;c=b.document.getElementById("opaqueDivsContainer")}if(c!=null)return b;return null}
function SoConfirm(b,c,d,e){var f=GetConfirmWindow();if(f!=null){var g=f.document.getElementById("ConfirmDiv");if(e==null)e=253;if(e!=null)g.style.height=e+"px";f.GenShowPopUp(-10000,-10000,385,e,"Confirmation message","ConfirmDiv",999999,browser.isChrome||browser.isSafari?-16:0);f.document.getElementById("ConfTextTD").innerHTML=b;f.runningWindow=window;confirmYesFunc=c;confirmNoFunc=d;f.CenterDiv("ConfirmDiv",1)}}
function ConfirmBoxYesClicked(){ConfirmBoxClose();var b=window.runningWindow;b.confirmYesFunc!=null&&b.confirmYesFunc()}function ConfirmBoxNoClicked(){ConfirmBoxClose();var b=window.runningWindow;b.confirmNoFunc!=null&&b.confirmNoFunc()}function ConfirmBoxClose(){var b=document.getElementById("ConfirmDiv");b.style.left="-1000px";b.style.top="-1000px";FadeOutGenPopUp("ConfirmDiv")}function sortByIdx(b,c){var d=b.idx,e=c.idx;return d<e?-1:d>e?1:0}
function createCookie(b,c,d){d||(d=730);var e=new Date;e.setTime(e.getTime()+d*24*60*60*1E3);d="; expires="+e.toGMTString();document.cookie=b+"="+c+d+"; path=/"}function readCookie(b){b=b+"=";for(var c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];e.charAt(0)==" ";)e=e.substring(1,e.length);if(e.indexOf(b)==0)return e.substring(b.length,e.length)}return null}function eraseCookie(b){createCookie(b,"",-1)}
function IsValInArray(b,c){for(var d=b.length,e=0;e<d;e++)if(b[e]==c)return true;return false}function xreplace(b,c,d){b=b;for(var e=b.indexOf(c);e>-1;){b=b.replace(c,d);e=b.indexOf(c,e+d.length)}return b}function htmlEncodeText(b){return b=b.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function CleanText(b){b=xreplace(b,'"',"");b=xreplace(b,"'","");return b=xreplace(b,"\\","")}function CleanTextMessage(b){b=b.replace(/"/g,"&quot;");return b=b.replace(/&apos;/g,"\\'")}
function CleanTextMessageInp(b){return b.replace(/&apos;/g,"'")}
function GetWinSize(){var b=[];b[0]=0;b[1]=0;if(typeof window.innerWidth=="number"){b[0]=window.innerWidth;b[1]=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b[0]=document.documentElement.clientWidth;b[1]=document.documentElement.clientHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b[0]=document.body.clientWidth;b[1]=document.body.clientHeight}return b}
var lastWinSize,ignoreSizeChangeOnce=false;function DetectSizeChange(){var b=GetWinSize();if(lastWinSize==null)lastWinSize=b;else if(lastWinSize[0]!=b[0]||lastWinSize[1]!=b[1])if(ignoreSizeChangeOnce)ignoreSizeChangeOnce=false;else window.SizeChangedEvent&&window.SizeChangedEvent();lastWinSize=b;window.setTimeout("DetectSizeChange()",1E3)}function stopScroll(){window.scroll(0,0)}
function Browser(){var b,c,d;this.isOpera=this.isChrome=this.isSafari=this.isFF=this.isNS=this.isIE=false;this.version=null;this.isCSS3=false;b=navigator.userAgent;c="MSIE";if((d=b.indexOf(c))>=0){this.isIE=true;this.version=parseFloat(b.substr(d+c.length));if(this.version>="9")this.isCSS3=true}else{c="Firefox";if((d=b.indexOf(c))>=0){this.isFF=this.isNS=true;this.version=parseFloat(b.substr(d+c.length+1));if(this.version>="3")this.isCSS3=true}else{c="chrome";if((d=b.toLowerCase().indexOf(c))>=0){this.isChrome=
true;this.version=parseFloat(b.substr(d+c.length+1));if(this.version>="4")this.isCSS3=true}else{c="Safari";if(b.indexOf(c)>=0){this.isSafari=true;this.version=b;if(this.version>="5")this.isCSS3=true}else{c="Netscape6/";if((d=b.indexOf(c))>=0){this.isNS=true;this.version=parseFloat(b.substr(d+c.length))}else{c="Gecko";if(b.indexOf(c)>=0){this.isNS=true;this.version=6.1}else{c="Opera";if(b.indexOf(c)>=0){this.isOpera=true;d=b.indexOf("Version");this.version=parseFloat(b.substr(d+7+1));if(this.version>=
"10")this.isCSS3=true}}}}}}}}var browser=new Browser;
function GetWinNetSize(){var b,c=[],d=navigator.userAgent;c[0]=0;c[1]=0;if((b=d.indexOf("MSIE"))>=0){c[0]=document.documentElement.offsetWidth;c[1]=document.getElementsByTagName("body")[0].scrollHeight+132;if(parseFloat(d.substr(b+4))>7)c[0]-=20}else if(d.indexOf("Firefox")>=0){c[0]=window.document.body.offsetWidth;c[1]=window.innerHeight+window.scrollMaxY}else if(d.indexOf("Chrome")>=0){c[0]=document.body.clientWidth-4;c[1]=document.documentElement.scrollHeight+16}else if(d.indexOf("Safari")>=0){c[0]=
document.body.clientWidth-4;c[1]=document.documentElement.scrollHeight+16}else{c[0]=window.document.body.offsetWidth;c[1]=document.documentElement.scrollHeight}return c}function replaceLineBreakFromMessage(b){return xreplace(b,"line_break_placeHolder","\\n")}function customeSleep(b){for(var c=(new Date).getTime();;)if((new Date).getTime()-c>b)break}var appRequestsuffix=null;function IsStringEmptyOrNull(b){if(b==""||b==null||b.length==0)return true;return false}
function getElementHTML(b){var c=document.createElement("div");c.appendChild(b);return c.innerHTML}var soTipX=30,soTipY=-50;tooltip={name:"soTip",offsetX:soTipX,offsetY:soTipY,tip:null};
tooltip.preinit=function(){if(!b)var b="soTip";var c=document.getElementById(b);if(!c){c=document.createElementNS?document.createElementNS("http://www.w3.org/1999/xhtml","div"):document.createElement("div");c.id=b;c.className="tooltipDivStandard";document.getElementsByTagName("body").item(0).appendChild(c);if(document.getElementById)if(this.tip=document.getElementById(this.name))document.onmousemove=function(d){tooltip.move(d)}}};
tooltip.init=function(b,c){if(!d)var d="soTip";var e=document.getElementById(d);if(!e){e=document.createElementNS?document.createElementNS("http://www.w3.org/1999/xhtml","div"):document.createElement("div");e.id=d;e.className=c;document.getElementsByTagName("body").item(0).appendChild(e)}if(!b.getAttribute("tiptitle"))if(document.getElementById){if(this.tip=document.getElementById(this.name))document.onmousemove=function(f){tooltip.move(f)};if(b){a=b;if(sTitle=a.getAttribute("title")){a.setAttribute("tiptitle",
sTitle);a.removeAttribute("title");a.removeAttribute("alt");if(a.attachEvent){a.attachEvent("onmouseover",function(f){srcElement=f.srcElement?f.srcElement:f.target;if(srcElement.getAttribute("tiptitle"))tooltip.show(srcElement.getAttribute("tiptitle"),srcElement);else{f=tooltip.gettooltipparent(srcElement);tooltip.show(f.getAttribute("tiptitle"),f)}});a.attachEvent("onmouseout",function(){tooltip.hide()})}else{a.addEventListener("mouseover",function(f){srcElement=f.currentTarget;tooltip.show(srcElement.getAttribute("tiptitle"),
srcElement)},false);a.addEventListener("mouseout",function(){tooltip.hide()},false)}}}}};tooltip.gettooltipparent=function(b){for(b=b.parentNode;b.getAttribute("tiptitle")==""||b.getAttribute("tiptitle")==null;)b=b.parentNode;return b};
tooltip.move=function(b){var c=0,d=0;if(document.all){c=document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;d=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;c+=window.event.clientX;d+=window.event.clientY}else{c=b.pageX;d=b.pageY}b=GetWinSize();var e=c+this.offsetX,f=getSize(this.tip);if(c+this.offsetX+f[0]+30>b[0])e=c-this.offsetX-f[0];this.tip.style.left=
e+"px";this.tip.style.top=d+this.offsetY+"px"};tooltip.gettipHTML=function(b){var c=b.getAttribute("tipHeaderClass"),d=b.getAttribute("tipHeader"),e=b.getAttribute("tipContentClass"),f=b.getAttribute("tiptitle");this.tip.className=b.getAttribute("tipContainerClass");return c&&d&&e?'<div class="'+c+'">'+d+'</div><div class="'+e+'">'+f+"</div>":f};
tooltip.setTipProperties=function(b,c,d,e,f){b.setAttribute("tipHeaderClass",d);b.setAttribute("tipHeader",c);b.setAttribute("tipContentClass",e);b.setAttribute("tipContainerClass",f)};tooltip.show=function(b,c){if(this.tip){this.tip.innerHTML=tooltip.gettipHTML(c);this.tip.style.visibility="visible"}};tooltip.hide=function(){if(this.tip){this.tip.innerHTML="";this.tip.style.visibility="hidden"}};
function getChildDivElementsByClassName(b,c){for(var d=[],e=b.getElementsByTagName("div"),f=e.length,g=0;g<f;g++){var h=e[g];h.className==c&&d.push(h)}return d}function Contains(b,c){for(var d=b.length,e=0;e<d;e++)if(b[e]==c)return true;return false}function CleanList(b){if(b.options!=null)if(isFirefox)b.options.length=0;else for(var c=b.options.length-1;c>=0;c--)b.options[c]!=null&&b.removeChild(b.options[c])};

