1var mod_pagespeed_G523KVqa4K = "var getElementsByClassName=function(className,tag,elm){if(document.getElementsByClassName){getElementsByClassName=function(className,tag,elm){elm=elm||document;var elements=elm.getElementsByClassName(className),nodeName=(tag)?new RegExp(\"\\\\b\"+tag+\"\\\\b\",\"i\"):null,returnElements=[],current;for(var i=0,il=elements.length;i<il;i+=1){current=elements[i];if(!nodeName||nodeName.test(current.nodeName)){returnElements.push(current);}}return returnElements;};}else if(document.evaluate){getElementsByClassName=function(className,tag,elm){tag=tag||\"*\";elm=elm||document;var classes=className.split(\" \"),classesToCheck=\"\",xhtmlNamespace=\"http://www.w3.org/1999/xhtml\",namespaceResolver=(document.documentElement.namespaceURI===xhtmlNamespace)?xhtmlNamespace:null,returnElements=[],elements,node;for(var j=0,jl=classes.length;j<jl;j+=1){classesToCheck+=\"[contains(concat(' ', @class, ' '), ' \"+classes[j]+\" ')]\";}try{elements=document.evaluate(\".//\"+tag+classesToCheck,elm,namespaceResolver,0,null);}catch(e){elements=document.evaluate(\".//\"+tag+classesToCheck,elm,null,0,null);}while((node=elements.iterateNext())){returnElements.push(node);}return returnElements;};}else{getElementsByClassName=function(className,tag,elm){tag=tag||\"*\";elm=elm||document;var classes=className.split(\" \"),classesToCheck=[],elements=(tag===\"*\"&&elm.all)?elm.all:elm.getElementsByTagName(tag),current,returnElements=[],match;for(var k=0,kl=classes.length;k<kl;k+=1){classesToCheck.push(new RegExp(\"(^|\\\\s)\"+classes[k]+\"(\\\\s|$)\"));}for(var l=0,ll=elements.length;l<ll;l+=1){current=elements[l];match=false;for(var m=0,ml=classesToCheck.length;m<ml;m+=1){match=classesToCheck[m].test(current.className);if(!match){break;}}if(match){returnElements.push(current);}}return returnElements;};}return getElementsByClassName(className,tag,elm);}\nfunction alternate(table_class){var tables=getElementsByClassName(table_class,\"table\");for(var j=0;j<tables.length;j++){var rows=tables[j].getElementsByTagName(\"tr\");for(var i=0;i<rows.length;i++){if(i%2==0){rows[i].id=\"even_row\";}else{rows[i].id=\"odd_row\";}}}}function set_image_frame(){var tables=getElementsByClassName(\"image_frame\");var imgs;for(var j=0;j<tables.length;j++){imgs=tables[j].getElementsByTagName(\"img\");imgs[0].padding=\"0px 0px 0px 0px\";imgs[0].style.borderStyle=\"ridge\";imgs[0].style.borderWidth=\"4px\";imgs[0].style.borderCollapse=\"collapse\";imgs[0].style.borderColor=\"#A18F5D\";imgs[0].style.padding=\"0px 0px 0px 0px\";tables[j].width=imgs[0].width+5;if(tables[j].rows.length>1){tables[j].rows[1].cells[0].className=\"photo_caption_cell\";}if(tables[j].align==\"center\"){tables[j].style.margin=\"5px auto 5px auto\";}}}function myinit(){alternate('thetable');set_image_frame();setTimeout(\"if (window != top) top.location.href = location.href;\",3000);}"; 2var mod_pagespeed_ENCXaUzLF9 = "function SetCookie(){if(arguments.length<2){return;}var n=arguments[0];var v=arguments[1];var d=0;if(arguments.length>2){d=parseInt(arguments[2]);}var exp='';if(d>0){var now=new Date();then=now.getTime()+(d*24*60*60*1000);now.setTime(then);exp='; expires='+now.toGMTString();}document.cookie=n+\"=\"+escape(String(v))+'; path=/'+exp;}function ReadCookie(n){var cookiecontent=new String();if(document.cookie.length>0){var cookiename=n+'=';var cookiebegin=document.cookie.indexOf(cookiename);var cookieend=0;if(cookiebegin>-1){cookiebegin+=cookiename.length;cookieend=document.cookie.indexOf(\";\",cookiebegin);if(cookieend<cookiebegin){cookieend=document.cookie.length;}cookiecontent=document.cookie.substring(cookiebegin,cookieend);}}return unescape(cookiecontent);}function AuthorizeDownload(file){if(ReadCookie(\"Sign-up\")==\"Y\"){if(FileTypeIs(file,\"mp3\")){window.location=\"https://www.foreigners-in-china.com/media-files/\"+file;}else if(FileTypeIs(file,\"pdf\")){var newWindow=window.open(\"https://www.foreigners-in-china.com/support-files/\"+file,'_blank');newWindow.focus();}else{alert(\"Internal error. Please contact us to report this error so that we can fix it. Thanks.\");}}else{alert(\"The file will be available for free download only after you sign up for the 'E-Zine For Foreigners in China', which is also free. Thank y
2ou for visiting www.foreigners-in-china.com. Ming\");}}function AuthroizeEmbed(file1,file2,file3,file4){var result=\"\";if(file1.length>0){result+=\"https://www.foreigners-in-china.com/media-files/\"+file1;}if(file2.length>0){result+=\",https://www.foreigners-in-china.com/media-files/\"+file2;}if(file3.length>0){result+=\",https://www.foreigners-in-china.com/media-files/\"+file3;}if(file4.length>0){result+=\",https://www.foreigners-in-china.com/media-files/\"+file4;}return result;}function GetAudioEmbedValue(sound_file){return\"playerID=1&soundFile=\"+sound_file;}function OpenInNewWindow(url,window_name){window.open(url,window_name,'scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');}function FileTypeIs(file,type){var l=file.length;var file_type=file.substring(l-3,l);return(file_type==type);}function AuthorizePictureDownload(file){if(ReadCookie(\"Sign-up\")==\"Y\"){if(\"thumbnail-\"==file.substring(0,10).toLowerCase()){OpenInNewWindow(\"https://www.foreigners-in-china.com/images/\"+file.substring(10,file.length),\"_blank\");}else{OpenInNewWindow(\"https://www.foreigners-in-china.com/images/\"+file,\"window2\");}}else{alert(\"All Pictures will be available for free download only after you sign up for the 'E-Zine For Foreigners in China', which is also free.\");}}"; 3var mod_pagespeed_aVzIHVZD0U = "var FIX=FIX||{};FIX.addEventListener=function(el,type,callback){if(typeof el.addEventListener==='function'){el.addEventListener(type,callback,false);}else if(typeof el.attachEvent==='object'&&el.attachEvent!==null){el.attachEvent('on'+type,callback);}};FIX.pageWrapperHeight=0;FIX.designMode=\"\";FIX.passwordProtection=\"none\";FIX.getBoxPropertyValue=function(el,property){var camelProperties={'padding-top':'paddingTop','padding-right':'paddingRight','padding-bottom':'paddingBottom','padding-left':'paddingLeft','border-top-width':'borderTopWidth','border-right-width':'borderRightWidth','border-bottom-width':'borderBottomWidth','border-left-width':'borderLeftWidth','margin-top':'marginTop','margin-right':'marginRight','margin-bottom':'marginBottom','margin-left':'marginLeft'};if(!camelProperties[property]){throw new Error('FIX unknown property \"'+property+'\".');}var styleValue='';if(typeof window.getComputedStyle==='function'){styleValue=parseInt(window.getComputedStyle(el,null).getPropertyValue(property),10);}else if(typeof el.currentStyle==='object'&&el.currentStyle!==null){styleValue=parseInt(el.currentStyle[camelProperties[property]],10);}if(isNaN(styleValue)){styleValue=0;}return styleValue;};FIX.findLiner=function(parentId){var parent=document.getElementById(parentId);if(!parent){return;}var el=parent.firstChild;while(el){if(/(^|\\s)Liner(\\s|$)/.test(el.className)){return el;}el=el.nextSibling;}};FIX.isImageBlockImage=function(img){var el=img;while(el){if(/(^|\\s)ImageBlock(\\s|$)/.test(el.className)){return true;}else if(/(^|\\s)Liner(\\s|$)/.test(el.className)){return false;}el=el.parentNode;}return false;};FIX.computeHeightForLiner=function(el,height){var verticalPadding=FIX.getBoxPropertyValue(el,'padding-top')+FIX.getBoxPropertyValue(el,'padding-bottom');var verticalBorder=FIX.getBoxPropertyValue(el,'border-top-width')+FIX.getBoxPropertyValue(el,'border-bottom-width');var topMargin=FIX.getBoxPropertyValue(el,'margin-top');return height-verticalPadding-verticalBorder-topMargin;};FIX.computeAvailableWidth=function(el){var horizontalPadding=FIX.getBoxPropertyValue(el,'padding-left')+FIX.getBoxPropertyValue(el,'padding-right');return el.clientWidth-horizontalPadding;};FIX.computeTotalWidth=function(el,availableWidth){var horizontalPadding=FIX.getBoxPropertyValue(el,'padding-left')+FIX.getBoxPropertyValue(el,'padding-right');var horizontalBorder=FIX.getBoxPropertyValue(el,'border-left-width')+FIX.getBoxPropertyValue(el,'border-right-width');var horizontalMargin=FIX.getBoxPropertyValue(el,'margin-left')+FIX.getBoxPropertyValue(el,'margin-right');if(horizontalMargin===(availableWidth-el.width-horizontalBorder)){horizontalMargin=0;}return el.width+horizontalPadding+horizontalMargin+horizontalBorder;};FIX.fixLiners=function(){var pageWrapper=document.getElementById('PageWrapper');var ids=['ContentColumn','NavColumn','ExtraColumn'];var highestLinerHeight=0;var liners=[];var id;var liner;var i,ilen;var linerNewHeight;for(i=0,ilen=ids.length;i<ilen;i++){id=ids[i];liner=FIX.findLiner(id);if(liner){var linerTopMargin=FIX.getBoxPropertyValue(liner,'margin-top');var linerHeight=liner.offsetHeight+linerTopMargin;liners.push(liner);
3if(linerHeight>highestLinerHeight){highestLinerHeight=linerHeight;}}}for(i=0,ilen=liners.length;i<ilen;i++){liner=liners[i];if(liner){linerNewHeight=FIX.computeHeightForLiner(liner,highestLinerHeight);if(linerNewHeight>0){linerNewHeight=linerNewHeight+'px';if(typeof document.body.style.maxHeight===\"undefined\"){liner.style.height=linerNewHeight;}else{liner.style.minHeight=linerNewHeight;}}}}FIX.pageWrapperHeight=pageWrapper.offsetHeight;};FIX.getColumnsBlockColumn=function(image){var el=image.parentNode;var columnsBlock=false;while(el){if(/(^|\\s)columns_block(\\s|$)/.test(el.className)){columnsBlock=true;break;}else if(/(^|\\s)Liner(\\s|$)/.test(el.className)){return false;}el=el.parentNode;}el=image.parentNode;while(el){if(el.tagName===\"TD\"){return el;}el=el.parentNode;}return false;};FIX.imageResizer=function(image,maxWidth){var imgTotalWidth;image.style.display=\"\";imgTotalWidth=FIX.computeTotalWidth(image,maxWidth);if(imgTotalWidth>maxWidth){image.width=(image.width-(imgTotalWidth-maxWidth));image.style.height=\"auto\";if(FIX.designMode===\"legacy\"){if(typeof MOBILE==='undefined'||MOBILE.viewMode!=='mobile'){FIX.fixLiners();}}}};FIX.fixImgs=function(){var ids;var id;var liners=[];var liner;var availableWidth=0;var i,ilen;var images;var image;if(FIX.passwordProtection===\"on\"){ids=['NavColumn','ExtraColumn','Header','Footer'];}else if(FIX.passwordProtection===\"off\"){ids=['ContentColumn'];var styleContent='#ContentColumn .ImageBlock img { display: none; }';var head=document.getElementsByTagName(\"head\")[0];var style=document.createElement(\"style\");style.setAttribute('type','text/css');style.setAttribute('id','hideImgs');if(style.styleSheet){style.styleSheet.cssText=styleContent;}else{style.appendChild(document.createTextNode(styleContent));}head.appendChild(style);}else{ids=['ContentColumn','NavColumn','ExtraColumn','Header','Footer'];}var hideImgsStyle=document.getElementById(\"hideImgs\");for(i=0,ilen=ids.length;i<ilen;i++){id=ids[i];liner=FIX.findLiner(id);if(liner){liners.push({element:liner,availableWidth:FIX.computeAvailableWidth(liner),images:liner.getElementsByTagName(\"img\")});}}if(hideImgsStyle){hideImgsStyle.parentNode.removeChild(hideImgsStyle);}for(i=0,ilen=liners.length;i<ilen;i++){images=liners[i].images;for(var j=0,jlen=images.length;j<jlen;j++){image=images[j];if(FIX.isImageBlockImage(image)){image.style.display=\"none\";}}}for(i=0,ilen=liners.length;i<ilen;i++){images=liners[i].images;for(j=0,jlen=images.length;j<jlen;j++){image=images[j];if(FIX.isImageBlockImage(image)){var columnsBlockColumn=FIX.getColumnsBlockColumn(image);if(columnsBlockColumn){availableWidth=columnsBlockColumn.offsetWidth;}else{availableWidth=liners[i].availableWidth;}image.style.display=\"block\";image.style.maxWidth=\"none\";(function(img,width){if(img.complete){FIX.imageResizer(img,width);}else{image.style.display=\"none\";img.onload=function(){FIX.imageResizer(img,width);}}FIX.addEventListener(window,'load',function(){FIX.imageResizer(img,width);});}(image,availableWidth));}}
3}};FIX.scrollIntoViewHash=function(){var el=document.getElementById(window.location.hash.replace(\"#\",\"\"));if(el){setTimeout(function(){el.scrollIntoView(true);},500);}};FIX.doEndOfHead=function(){document.write('<style id=\"hideImgs\" type=\"text/css\">#PageWrapper .ImageBlock img { display: none; }</style>');};FIX.doEndOfBody=function(){var pageWrapper=document.getElementById('PageWrapper');if(!pageWrapper){return;}var startLoop=function(){var counter=0;var max=120;var delay=500;var loop=function(){counter++;if(counter>max){return;}pageWrapper=document.getElementById('PageWrapper');if(pageWrapper.offsetHeight!==FIX.pageWrapperHeight){FIX.fixLiners();}setTimeout(function(){loop();},delay);};loop();};FIX.fixImgs();if(window.location.hash){FIX.addEventListener(window,'load',FIX.scrollIntoViewHash);}if(FIX.designMode===\"legacy\"){if(typeof MOBILE==='undefined'||MOBILE.viewMode!=='mobile'){FIX.fixLiners();if(document.readyState===\"complete\"){startLoop();}else{FIX.addEventListener(window,'load',startLoop);}}}};FIX.track=function(anchorEl){if(/sbi[^.]+.?\\.sitesell\\.com/.test(window.location.href)){return true;}else{var anchorElHref=/href=\"(.*?)\"/g.exec(anchorEl.outerHTML)[1];var path=anchorElHref.split(\"/\").slice(3).join(\"/\");var matches=anchorElHref.match(/^https?\\:\\/\\/([^\\/]+)/);var thisDomain=window.location.hostname.replace(/^www\\./,\"\");if(matches&&(thisDomain!==matches[1].substr(-thisDomain.length))&&(!/google/.test(matches[1]))&&(!/\\.mp4|\\.avi|\\.css|\\.doc|\\.docx|\\.dot|\\.dotx|\\.exe|\\.flv|\\.gif|\\.jpeg|\\.jpg|\\.js|\\.mov|\\.mp3|\\.mp4|\\.mpeg|\\.mpg|\\.pdf|\\.png|\\.potx|\\.pps|\\.ppsx|\\.ppt|\\.pptx|\\.qt|\\.ra|\\.ram|\\.rm|\\.swf|\\.tex|\\.txt|\\.wav|\\.wma|\\.wmv|\\.xls|\\.xlsx|\\.xlt|\\.xltx|\\.xml|\\.zip/.test(path))){var url='/cgi-bin/counter.pl?url='+encodeURIComponent(anchorElHref)+'&referrer='+encodeURIComponent(window.location);if(anchorEl.target.toLowerCase()==='_blank'){window.open(url);}else{window.location.href=url;}return false;}else{return true;}}};var getMsg=(function(){var original=getMsg;return function(form){var result=original(form);if(document.getElementById('ProtectedContent').style.display==='block'){FIX.passwordProtection=\"off\";FIX.doEndOfBody();}return result;};}());if('ab'.substr(-1)!='b'){String.prototype.substr=function(substr){return function(start,length){if(start<0)start=this.length+start;return substr.call(this,start,length);}}(String.prototype.substr);}";
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.