Fashion acne skincare sandalwood beauty products tata harper

Related Stories:

Living

Fashion

acne skincare sandalwood beauty products tata harper

christian nielsen pitch black ep nio inevil

newswire rachael leigh cook recreates brain drugs drug war critique

game thrones hot pie opened own bakery real life

hot damn draya michele friends stretch flexible cakes yoga class

rats director morgan spurlock talks globetrotting horror doc deadline

urban outfitters fall clothing best styles

players washington redskins roster bubble

neymar superstar bring psg champions league glory sports sporting news

tv show must bb live feeds friday june

Fashion Tue Aug 08 2017 14:00:00 GMT+0000 (UTC)
ory"); var self = this; var cols = []; var COLUMN_WIDTH = 330; var MIN_COLUMN_WIDTH = 300; var COLUMN_MARGINS = 30; var PAGE_PADDING = 40; var SCROLLBAR_WIDTH = 20; // sometimes Firefox is not done animating sidebar appearance and width is reported larger than it is on handleResize var innerWidth = zglobals.innerWidth; console.log("innerWidth=" + innerWidth); PAGE_PADDING = 0.15 * innerWidth; var minnumcols = Math.floor((innerWidth - SCROLLBAR_WIDTH - PAGE_PADDING) / COLUMN_WIDTH); var maxnumcols = Math.floor((innerWidth - SCROLLBAR_WIDTH - PAGE_PADDING) / MIN_COLUMN_WIDTH); var numcols = Math.max(maxnumcols, minnumcols); var colwidth = (innerWidth - SCROLLBAR_WIDTH - PAGE_PADDING) / numcols; var marginleft = (innerWidth - SCROLLBAR_WIDTH - numcols * colwidth)/2; colwidth = colwidth-COLUMN_MARGINS; if (zglobals.smallscreen) { numcols = 2; colwidth = (innerWidth - COLUMN_MARGINS/2*(numcols+1) - (zglobals.mobile ? 0 : SCROLLBAR_WIDTH))/2; marginleft = COLUMN_MARGINS/2; } var colnum = 0, style, widget, colwidgets, column; for (var i = 0, len = widgets.length; i < len; ++i) { widget = widgets[i]; cols[colnum] = cols[colnum] || [] cols[colnum].push(widget); ++colnum; if (colnum >= numcols) { colnum = 0; } } for (var i = 0, len = cols.length; i < len; ++i) { colwidgets = cols[i]; style = {width: colwidth + "px"}; if (i == 0) { style.marginLeft = marginleft + "px"; } else if (zglobals.smallscreen) { style.margin = 0; } column = document.createElement('div'); column.className = "NewsPageColumn"; column.id = "column" + i; for (var n in style) { column.style[n] = style[n]; } for (var j = 0, lenj = colwidgets.length; j < lenj; ++j) { column.appendChild(colwidgets[j]); } document.getElementById("columns").appendChild(column); } } // Add a getElementsByClassName function if the browser doesn't have one // Limitation: only works with one class name // Copyright: Eike Send http://eike.se/nd // License: MIT License if (!document.getElementsByClassName) { Element.prototype.getElementsByClassName = function(search) { var d = document, elements, pattern, i, results = []; if (d.querySelectorAll) { // IE8 return d.querySelectorAll("." + search); } if (d.evaluate) { // IE6, IE7 pattern = ".//*[contains(concat(' ', @class, ' '), ' " + search + " ')]"; elements = d.evaluate(pattern, d, null, 0, null); while ((i = elements.iterateNext())) { results.push(i); } } else { elements = d.getElementsByTagName("*"); pattern = new RegExp("(^|\\s)" + search + "(\\s|$)"); for (i = 0; i < elements.length; i++) { if ( pattern.test(elements[i].className) ) { results.push(elements[i]); } } } return results; } } var LazyLoader = { lazyload: function(container_id, img_classname) { var container = document.getElementById(container_id); if (container) { var images = container.getElementsByClassName(img_classname); var now = Date.now()/1000, datasrc, img, load; var MAX_LOADTIME_SECS = 2; for (var i = 0, len = images.length; i < len; ++i) { img = images[i]; if (img.getBoundingClientRect().top < window.innerHeight + 400) { datasrc = img.getAttribute('data-src'); if (datasrc) { this._onloaders(img); img.src = datasrc; img.removeAttribute('data-src'); } else if (img.offsetHeight <= 35) { load = img.getAttribute('data-load'); if (now - parseInt(load) >= MAX_LOADTIME_SECS) { img.src = "http://cheers.ws/images/transparent.gif"; img.style.width = "98%"; img.style.height = "100px"; img.style.border = "2px solid #eeeeee"; } } } } } }, _onloaders: function(img) { img.onerror = function() { //console.log("onerror img.src=" + img.src); img.onload = null; img.src = "http://cheers.ws/images/transparent.gif"; img.style.width = "98%"; img.style.height = "100px"; img.style.background = "#eeeeee"; } img.onabort = function() { //console.log("onabort img.src=" + img.src); img.onload = null; img.src = "http://cheers.ws/images/transparent.gif"; img.style.width = "98%"; img.style.height = "100px"; img.style.background = "#eeeeee"; } img.onload = function() { //console.log("onload img.src=" + img.src); if (img.offsetHeight <= 35) { img.onload = null; img.src = "http://cheers.ws/images/transparent.gif"; img.style.width = "98%"; img.style.height = "100px"; img.style.background = "#eeeeee"; } } } }; window.onload = resize; window.onresize = resize; resize();