visible = false;

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("all-things-content").getElementsByTagName("div");
		for (i=0; i<navRoot.length; i++) {
			if (navRoot[i].className == "rollover-box") {
				node = navRoot[i].parentNode;
				node.onmouseover = function() {
					this.className+="rollover";
				}
				node.onmouseout = function() {
					this.className=this.className.replace("rollover", "");
				}
			}
		}
	}
}

window.onload=startList;

showTips = function () {
	subCategory = document.getElementById("sub-category-list");
	if (subCategory.style.display == "none" || !visible) {
		subCategory.style.display = "block";
	} else {
		subCategory.style.display = "none";
	}
	visible = true;
}

var varFooterPopLeft1 = (screen.availWidth / 2) - 200;		
var varFooterPopTop1 = (screen.availHeight / 2) - 175;

/* opens a popup window that contains the revlon privacy policy web page. */

function PrivacyPopUp1() {
	window.open("http://www.revlon.com/Corporate/Privacy.aspx","privacy_policy","top=" + varFooterPopTop1 + ",left=" + varFooterPopLeft1 + ",width=400,height=350,location=no,toolbar=no,scrollbars=yes");
}

/* opens a popup window that contains the revlon legal terms web page. */

function TermsPopUp1() {
	window.open("http://www.revlon.com/Corporate/Terms.aspx","terms_of_use","top=" + varFooterPopTop1 + ",left=" + varFooterPopLeft1 + ",width=400,height=350,location=no,toolbar=no,scrollbars=yes");
}

/* opens a popup window that contains the revlon for discolored nails web page.  This link is found behind the corresponding image rollover. */

function RevlonPopUp1(RevlonURL) {
	var varFooterPopLeft = (screen.availWidth / 2) - 400;		
	var varFooterPopTop = (screen.availHeight / 2) - 375;
	window.open(RevlonURL,"RevlonPopup","top=" + varFooterPopTop + ",left=" + varFooterPopLeft + ",width=800,height=725,location=no,toolbar=no,scrollbars=yes");
}