function HidePullDown() {
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
//if (document.getElementsByName("ADD_CART_ITEM_ARRAY<>sku_id")!= null) {  //Product Detail pages
//		document.getElementsByName("ADD_CART_ITEM_ARRAY<>sku_id").style.visibility = "hidden";
//		}
if (document.getElementById("leftNavBrands")!= null) {  //sections left nav drop down menu
		document.getElementById("leftNavBrands").style.visibility = "hidden";
		}
if (document.getElementById("cboSortBy")!= null) {  //sections left nav drop down menu
		document.getElementById("cboSortBy").style.visibility = "hidden";
		}		
if (document.getElementById("display")!= null) { //EndecaSearch results
		document.getElementById("display").style.visibility = "hidden";
		}
if (document.getElementById("srt")!= null) {  //EndecaSearch results
		document.getElementById("srt").style.visibility = "hidden";
		}
if ((document.getElementById("CREDIT_CARD<>cardBrand_cd")!= null)&& !(sPage.indexOf("qas_ver")> -1)&& !(sPage.indexOf("PayMethod")> -1)) {  //my account
		document.getElementById("CREDIT_CARD<>cardBrand_cd").style.visibility = "hidden";
		}
if (document.getElementById("CART_ITEM_ARRAY<>shipToID")!= null) {  //check out for returned
		document.getElementById("CART_ITEM_ARRAY<>shipToID").style.visibility = "hidden";
		}
if (document.getElementById("CART_ITEM_ARRAY<>shippingMethod")!= null) {  //check out for returned
		document.getElementById("CART_ITEM_ARRAY<>shippingMethod").style.visibility = "hidden";
		}
if (document.getElementById("Line1")!= null) {  //check out for returned
		document.getElementById("Line1").style.visibility = "hidden";
		}
//if ((document.multiship.elements[38].name.indexOf('CART_ITEM_ARRAY<>shippingMethod')>-1)) {  //check out for returned
		//document.multiship.elements[38].style.visibility = "hidden";
		//}
if (document.getElementById("SHIP_TO_ADDRESS<>indGift")!= null) {  //check out and my account
		document.getElementById("SHIP_TO_ADDRESS<>indGift").style.visibility = "hidden";
		}
if (document.getElementById("BILL_TO_ADDRESS<>indGift")!= null) {  //check out and my account
		document.getElementById("BILL_TO_ADDRESS<>indGift").style.visibility = "hidden";
		}
if ((document.getElementById("CREDIT_CARD<>cardMonth_cd")!= null)&& !(sPage.indexOf("mng_CreditCard")> -1)) {  //check out
		document.getElementById("CREDIT_CARD<>cardMonth_cd").style.visibility = "hidden";
		}
if ((document.getElementById("CREDIT_CARD<>cardYear_cd")!= null)&& !(sPage.indexOf("mng_CreditCard")> -1)) {  //check out
		document.getElementById("CREDIT_CARD<>cardYear_cd").style.visibility = "hidden";
		}
if (document.getElementById("ADD_CART_ITEM_ARRAY<>sku_id")!= null) { //ProductDetail
		document.getElementById("ADD_CART_ITEM_ARRAY<>sku_id").style.visibility = "hidden";
		}
if (document.getElementById("ADD_CART_ITEM<>sku_id")!= null) { //ProductDetail
		document.getElementById("ADD_CART_ITEM<>sku_id").style.visibility = "hidden";
		}
if (document.getElementById("Title")!= null) { //email_collect_popup_main
		document.getElementById("Title").style.visibility = "hidden";
		}
if (document.getElementById("monthDOB")!= null) { //email_collect_popup_main
		document.getElementById("monthDOB").style.visibility = "hidden";
		}
if (document.getElementById("dayDOB")!= null) { //email_collect_popup_main
		document.getElementById("dayDOB").style.visibility = "hidden";
		}
if (document.getElementById("store_codes")!= null) { //email_collect_popup_main
		document.getElementById("store_codes").style.visibility = "hidden";
		}
if (document.getElementById("errN")!= null) { //EndecaSearch no results
		document.getElementById("errN").style.visibility = "hidden";
		}
if (document.getElementById("ShopByPage")!= null) { //catalog
		document.getElementById("ShopByPage").style.visibility = "hidden";
		}
	}

function ShowPullDown() {
//if (document.getElementsByName("ADD_CART_ITEM_ARRAY<>sku_id")!= null) {
//		document.getElementsByName("ADD_CART_ITEM_ARRAY<>sku_id").style.visibility = "visible";
//		}
if (document.getElementById("leftNavBrands")!= null) {
		document.getElementById("leftNavBrands").style.visibility = "visible";
		}
if (document.getElementById("cboSortBy")!= null) {
		document.getElementById("cboSortBy").style.visibility = "visible";
		}		
if (document.getElementById("display")!= null) {
		document.getElementById("display").style.visibility = "visible";
		}
if (document.getElementById("srt")!= null) {
		document.getElementById("srt").style.visibility = "visible";
		}
if (document.getElementById("CREDIT_CARD<>cardBrand_cd")!= null) {
		document.getElementById("CREDIT_CARD<>cardBrand_cd").style.visibility = "visible";
		}
if (document.getElementById("CART_ITEM_ARRAY<>shipToID")!= null) {
		document.getElementById("CART_ITEM_ARRAY<>shipToID").style.visibility = "visible";
		}
if (document.getElementById("CART_ITEM_ARRAY<>shippingMethod")!= null) {
		document.getElementById("CART_ITEM_ARRAY<>shippingMethod").style.visibility = "visible";
		}
if (document.getElementById("Line1")!= null) {
		document.getElementById("Line1").style.visibility = "visible";
		}
//if ((document.multiship.elements[38]!= null)&& (document.multiship.elements[38].name.indexOf('CART_ITEM_ARRAY<>shippingMethod')>-1)) {
		//document.multiship.elements[38].style.visibility = "visible";
		//}
if (document.getElementById("SHIP_TO_ADDRESS<>indGift")!= null) {
		document.getElementById("SHIP_TO_ADDRESS<>indGift").style.visibility = "visible";
		}
if (document.getElementById("BILL_TO_ADDRESS<>indGift")!= null) {
		document.getElementById("BILL_TO_ADDRESS<>indGift").style.visibility = "visible";
		}
if (document.getElementById("CREDIT_CARD<>cardMonth_cd")!= null) {
		document.getElementById("CREDIT_CARD<>cardMonth_cd").style.visibility = "visible";
		}
if (document.getElementById("CREDIT_CARD<>cardYear_cd")!= null) {
		document.getElementById("CREDIT_CARD<>cardYear_cd").style.visibility = "visible";
		}
if (document.getElementById("ADD_CART_ITEM_ARRAY<>sku_id")!= null) {
		document.getElementById("ADD_CART_ITEM_ARRAY<>sku_id").style.visibility = "visible";
		}
if (document.getElementById("ADD_CART_ITEM<>sku_id")!= null) {
		document.getElementById("ADD_CART_ITEM<>sku_id").style.visibility = "visible";
		}
if (document.getElementById("Title")!= null) {
		document.getElementById("Title").style.visibility = "visible";
		}
if (document.getElementById("monthDOB")!= null) {
		document.getElementById("monthDOB").style.visibility = "visible";
		}
if (document.getElementById("dayDOB")!= null) {
		document.getElementById("dayDOB").style.visibility = "visible";
		}
if (document.getElementById("store_codes")!= null) {
		document.getElementById("store_codes").style.visibility = "visible";
		}
if (document.getElementById("errN")!= null) {
		document.getElementById("errN").style.visibility = "visible";
		}
if (document.getElementById("ShopByPage")!= null) {
		document.getElementById("ShopByPage").style.visibility = "visible";
		}
	}

function ShowAllPullDowns(){
	if(document.ordersum_ru){
		AllSelectsOnForm(document.ordersum_ru, "visible");
	}
	if(document.mngSaveShipping){
		AllSelectsOnForm(document.mngSaveShipping, "visible");
	}
	if(document.mngSaveBilling){
		AllSelectsOnForm(document.mngSaveBilling, "visible");
	}
	if(document.EditBillAddress){
		AllSelectsOnForm(document.EditBillAddress, "visible");
	}
	if(document.AddBillAddress){
		AllSelectsOnForm(document.AddBillAddress, "visible");
	}
	if(document.EditShipAddress){
		AllSelectsOnForm(document.EditShipAddress, "visible");
	}
	if(document.AddShipAddress){
		AllSelectsOnForm(document.AddShipAddress, "visible");
	}
	if(document.multiship){
		AllSelectsOnForm(document.multiship, "visible");
	}
	if(document.mngNewCard){
		AllSelectsOnForm(document.mngNewCard, "visible");
	}
	if(document.email_updates_collect){
		AllSelectsOnForm(document.email_updates_collect, "visible");
	}
	if(document.choosenPage){
		AllSelectsOnForm(document.choosenPage, "visible");
	}
}

function HideAllPullDowns(){
	if(document.ordersum_ru){
		AllSelectsOnForm(document.ordersum_ru, "hidden");
	}
	if(document.mngSaveShipping){
		AllSelectsOnForm(document.mngSaveShipping, "hidden");
	}
	if(document.mngSaveBilling){
		AllSelectsOnForm(document.mngSaveBilling, "hidden");
	}
	if(document.EditBillAddress){
		AllSelectsOnForm(document.EditBillAddress, "hidden");
	}
	if(document.AddBillAddress){
		AllSelectsOnForm(document.AddBillAddress, "hidden");
	}
	if(document.EditShipAddress){
		AllSelectsOnForm(document.EditShipAddress, "hidden");
	}
	if(document.AddShipAddress){
		AllSelectsOnForm(document.AddShipAddress, "hidden");
	}
	if(document.multiship){
		AllSelectsOnForm(document.multiship, "hidden");
	}
	if(document.mngNewCard){
		AllSelectsOnForm(document.mngNewCard, "hidden");
	}
	if(document.email_updates_collect){
		AllSelectsOnForm(document.email_updates_collect, "hidden");
	}
	if(document.choosenPage){
		AllSelectsOnForm(document.choosenPage, "hidden");
	}
}

function AllSelectsOnForm(formName, ShowOrHide){
	for (i=0; i<formName.elements.length; i++){
		if((formName.elements[i].type=="select-one") || (formName.elements[i].type=="select-multiple") || (formName.elements[i].type=="select")){
			formName.elements[i].style.visibility = ShowOrHide;
		}
	}
}

function showReplaceText(text){
	var brName = "colorSizeBR";
	var brFullID;
	for(i=0; i<7; i++){
		brFullID = brName+i;
		if(document.getElementById(brFullID)){
			document.getElementById(brFullID).innerHTML = text;
		}
	}
	
	brName = "colorSizePlainBR";
	for(j=0; j<7; j++){
		brFullID = brName+j;
		if(document.getElementById(brFullID)){
			document.getElementById(brFullID).innerHTML = text;
		}
	}
}

