VaR browser = (function () {var NA = Window. navigator, UA = Na. useragent. tolowercase (), browsertester =/(MSIE | WebKit | gecko | presto | opera | safari | Firefox | chrome | Maxthon | Android | iPad | iPhone | WebOS | hpwos) [\/OS] * ([\ D _.] +)/ig, browser = {platform: Na. platform}; UA. replace (browsertester, function (a, B, c) {var blower = B. tolowercase (); If (! Browser [blower]) {browser [blower] = C ;}}); If (browser. opera) {// Changes the location of the version number UA after opera9.8. replace (/opera. * version \/([\ D.] +)/, function (a, B) {browser. opera = B ;}) ;}if (browser. MSIE) {browser. ie = browser. MSIE; var v = parseint (browser. MSIE, 10); browser ['ie '+ V] = true;} return browser ;}) (); var getdocrect = function (DOC) {Doc = Doc | document; vaR win = Doc. defaultview | Doc. parentwindow, Mode = Doc. compatmode, root = doc.doc umentelement, H = win. innerheight | 0, W = win. innerwidth | 0, scrollx = win. pagexoffset | 0, scrolly = win. pageyoffset | 0, scrollw = root. scrollwidth, scrollh = root. scrollheight, offsetw, offseth; If (mode! = 'Css1compat') {// quirks root = Doc. Body; scrollw = root. scrollwidth; scrollh = root. scrollheight;} If (Mode &&! Browser. opera) {// IE, Gecko W = root. clientwidth; H = root. clientheight;} scrollw = math. max (scrollw, W); scrollh = math. max (scrollh, H); scrollx = math. max (scrollx, doc.doc umentelement. scrollleft, Doc. body. scrollleft); scrolly = math. max (scrolly, doc.doc umentelement. scrolltop, Doc. body. scrolltop); offsetw = document. body. offsetwidth | document.doc umentelement. offsetwidth; offseth = document. body. Offsetheight | document.doc umentelement. offsetheight; return {width: W, height: H, scrollwidth: scrollw, scrollheight: scrollh, scrollx: scrollx, scrolly: scrolly, contentwidth :( scrollw = W? Offsetw: scrollw), contentheight :( scrollh = H? Offseth: scrollh )};};