(function (host, locId, peMode, writeLoc) {

	this.host = host;
	this.locId = locId;
	this.peMode = peMode;
	this.writeLoc = writeLoc;
	this.firedPE = false;
	this.firedIN = false;
	window["ccs_cc_legacy_check"] = this;
	this.processLoad = function () {

		function addScript(s) {
			var sc = document.createElement('script');
			sc.type = 'text/javascript';
			sc.src = s;
			document.getElementsByTagName('head')[0].appendChild(sc);
		}

		function findInlineLocation(root) {
			for (var i = 0; i < root.childNodes.length; i++) {
				var n = root.childNodes[i];
				if (n.tagName == 'DIV') {
					if (n.id == 'inline_showcase' || /\inline_showcase\b/.test(n.className))
						return n;
				}
				var res = findInlineLocation(n);
				if (res != null)
					return res;
			}

			return null;
		}

		var o = window["ccs_cc_legacy_check"];
		var showin = '', showpe = '';
		if (!o.firedIN) {
			var inlineDiv = findInlineLocation(document);
			if (inlineDiv != null) {
				if (!inlineDiv.id)
					inlineDiv.id = 'ccs_cc_inline_showcase';
				showin = '&showin=' + inlineDiv.id;
				o.firedIN = true;
				addScript(o.host + showin);
			}
		}
		if (!o.firedPE) {
			if (peMode != "2") {
				if (document.getElementById(o.locId)) {
					showpe = '&showpe=' + o.locId;
					o.firedPE = true;
					addScript(o.host + showpe);
				}
			} else {
				o.firedPE = true;
			}
		}

		if (!o.firedPE || !o.firedIN)
			window.setTimeout(o.processLoad, 20);
	};

	if (this.writeLoc && peMode != "2")
		document.write('<span id=\'' + this.locId + '\'></span>');
	var m = this.processLoad;
	if (document.addEventListener) {
		document.addEventListener("DOMContentLoaded", m, false);
		window.addEventListener("load", m, false);

	} else if (document.attachEvent) {
		document.attachEvent("onreadystatechange", m);
		window.attachEvent("onload", m);
	}

	window.setTimeout(m, 20);
})('http://ws.cnetcontent.com/Csp/?mfrname=Lenovo&mfrsku=67Y1480&country=us&lng=ez&legacysid=634078821398012800&t=legacy','ccs_cc_legacy_662ec8da64af40ee9cf8fc3b0f699b8d',0,true);