<!--

// ---------- Begin Confirm Action

		function generalConfirm(message,address) {
			if(confirm(message)) {
				window.location = address;
			}
		}

// ---------- End Confirm Action

// ---------- Begin Navigation Scripts.

function navShowHide(caller, ID, action) {
	
	if (action == 'show') {
		
		// Hide other menus if open.
		if (typeof(hideID) != 'undefined') {
			
			if (hideID != ID) {
				
				// Hide current menu.
				document.getElementById(hideID).style.display='none';
				
			}
			
		}
		
		// Only set values if the element is NOT being displayed.
		if (document.getElementById(ID).style.display != 'block') {
			
			var caller_height = caller.offsetHeight;
			
			var current_left = 0;
			var current_top = 0;
			
			if (caller.offsetParent) {
				while (1) {
					current_left+=caller.offsetLeft;
					current_top+=caller.offsetTop;
					if (!caller.offsetParent) {
						break;
					}
				caller=caller.offsetParent;
				}
			} else if (caller.x) {
				current_left+=caller.x;
				current_top+=caller.y;
			}
			
			// Add height to place the submenu below the "caller".
			current_top = current_top + caller_height;
			
			document.getElementById(ID).style.left=current_left + 'px';
			document.getElementById(ID).style.top=current_top + 'px';
			
		}
		
		// Show the element.
		document.getElementById(ID).style.display='block';
		
		// Set the "navShowState".
		navShowState = true;
		
	} else {
		
		// Set the ID of the element to hide.
		hideID = ID;
		
		// Set the "navShowState".
		navShowState = false;
		setTimeout("navHideExecuteNew();", 800 ); 
		
	}
	
}

function navHideExecuteNew() {

	if (navShowState != true) {
		
			// Hide last open menu.
			document.getElementById(hideID).style.display='none';
	}
	
}

function navShow(IDS, parentButtonID, parentButtonSrcNormal, parentButtonSrcOver, topMargin, leftMargin) {
	
	showID = IDS;
	pButtonID = parentButtonID;
	pButtonSN = 'https://media.eldoradofurniture.com/images/websites/www.eldoradofurniture.com/layout/' + parentButtonSrcNormal;
	pButtonSO = 'https://media.eldoradofurniture.com/images/websites/www.eldoradofurniture.com/layout/' + parentButtonSrcOver;
	showState = 1;
	
	// Hide other menus if open.
	if (typeof(hideID) != 'undefined') {
		if (hideID != showID) {
			// Hide current menu.
			document.getElementById(hideID).style.display='none';
			// Dim the button.
			document.getElementById(pButtonIDHide).src=pButtonSNHide;
		}
	}
	
	// Define the last buttons shown.
	pButtonIDHide = parentButtonID;
	pButtonSNHide = 'https://media.eldoradofurniture.com/images/websites/www.eldoradofurniture.com/layout/' + parentButtonSrcNormal;
	pButtonSOHide = 'https://media.eldoradofurniture.com/images/websites/www.eldoradofurniture.com/layout/' + parentButtonSrcOver;
	
	// Show current menu.
	subMenuX = document.getElementById(parentButtonID).offsetLeft + leftMargin;
	subMenuY = document.getElementById(parentButtonID).offsetTop + document.getElementById(parentButtonID).height + topMargin;
	document.getElementById(showID).style.left=subMenuX;
	document.getElementById(showID).style.top=subMenuY;
	document.getElementById(showID).style.display='block';
	
	// Highlight the button.
	document.getElementById(pButtonID).src=pButtonSO;
}

function navHide(IDH) {
	hideID = IDH;
	showState = 0;
	setTimeout("navHideExecute();", 800 ); 
}

function navHideExecute() {
	if (showState != 1) {
			// Hide current menu.
			document.getElementById(hideID).style.display='none';
			// Dim the button.
			document.getElementById(pButtonID).src=pButtonSN;
	}
}

function dropAddress(object) {
	if(object.options[object.selectedIndex].value != ''){
	window.location.href = object.options[object.selectedIndex].value;
	}
}

// ---------- End Navigation Scripts.

// ---------- Begin Popup Scripts.

function modalWindow(windowAddress, windowWidth, windowHeight) {
	if (window.showModalDialog) {
		window.showModalDialog(windowAddress,'mWindow', 'dialogWidth:' + windowWidth + 'px;dialogHeight:' + windowHeight + 'px;scroll:no;');
	} else {
		window.open(windowAddress,'mWindow', 'width=' + windowWidth + ',height=' + windowHeight + ' ,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes');
	}
}

function productCloseUp(ID) {
	windowAddress = '/popup/product_closeup.html?pID=' + ID;
	windowWidth = screen.availWidth;
	windowHeight = screen.availHeight;
	if (window.showModalDialog) {
		window.showModalDialog(windowAddress,'mWindow', 'dialogWidth:' + windowWidth + 'px;dialogHeight:' + windowHeight + 'px;scroll:no;');
	} else {
		window.open(windowAddress,'mWindow', 'width=' + windowWidth + ',height=' + windowHeight + ' ,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes');
	}
}

function popUpSSP(page) {
	screenWidth = screen.availWidth;
	screenHeight = screen.availHeight;
	
	windowWidth = 545
	windowHeight = 340
	
	leftCheck = (screenWidth - windowWidth) / 2 
	topCheck = (screenHeight - windowHeight) / 2 
	
	if (leftCheck > 0){
		leftPosition = leftCheck
		}
		else{
		leftPosition = 0
		windowWidth = screenWidth
	}
	if (topCheck > 0){
		topPosition = topCheck
		}
		else{
		topPosition = 0
		windowHeight = screenHeight - 30
	}
	popUpSSPAddress = page 
	popUpSSPFloater = window.open(popUpSSPAddress,'popUpSSPWindow','toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=0,width=' + windowWidth + ',height=' + windowHeight + ',left=' + leftPosition + ',top=' + topPosition);
}

function roomPlannerView(ADDRESS) {
	screenWidth = screen.availWidth
	screenHeight = screen.availHeight
	
	windowWidth = 800
	windowHeight = 550
	
	leftCheck = (screenWidth - windowWidth) / 2 
	topCheck = (screenHeight - windowHeight) / 2 
	
	if (leftCheck > 0){
		leftPosition = leftCheck
		}
		else{
		leftPosition = 0
		windowWidth = screenWidth
	}
	if (topCheck > 0){
		topPosition = topCheck
		}
		else{
		topPosition = 0
		windowHeight = screenHeight - 30
	}	
	roomPlannerViewAddress = ADDRESS
	roomPlannerViewFloater = window.open(roomPlannerViewAddress,'roomPlannerViewWindow','toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=0,width=' + windowWidth + ',height=' + windowHeight + ',left=' + leftPosition + ',top=' + topPosition);
}

// ---------- End Popup Scripts.

// ---------- Begin Adobe Scripts.

//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

// ---------- Begin Adobe Scripts.

//-->