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