<!--
// --------------------------------------------------//

function popwin(file,keyw,topline,note1,note2,note3,note4,file2,note5,note6,file3,note7,note8,file4,note9,noteA) {

// the following "popup.closed" test fails in FrontPage, even when the object exists.
// So, skip the test completely if we are on a "localMachine" (pathname contains "C:\")
currentPath = parent.location.pathname;
var localMachineREG = /C:\\/;
if (!currentPath.match(localMachineREG)) {
  if(window.popup) { if(!popup.closed) popup.close(); }
}

// keyw should be:
// 'h'  for horizontal (landscape) display  [DEFAULT]
// 'h+' for HIGHER horizontal (landscape) display
// 'v'  for vertical (portrait) display;
// 'v+' for HIGHER vertical (portrait) display;

if (keyw=='vertical' || keyw=='v')
   popup = window.open('','popupWindow',
   'width=560,height=530,screenX=100,screenY=30,left=100,top=20,status=no,resizable=yes,scrollbars=yes');
else if (keyw=='highVertical' || keyw=='v+')
   popup = window.open('','popupWindow',
   'width=560,height=600,screenX=100,screenY=30,left=100,top=20,status=no,resizable=yes,scrollbars=yes');
else if (keyw=='highHorizontal' || keyw=='h+')
   popup = window.open('','popupWindow',
   'width=560,height=490,screenX=100,screenY=30,left=100,top=20,status=no,resizable=yes,scrollbars=yes');
else
   popup = window.open('','popupWindow',
   'width=560,height=435,screenX=100,screenY=30,left=100,top=20,status=no,resizable=yes,scrollbars=yes');
if (parseInt(navigator.appVersion) >= 4) popup.focus();
popup.document.write('<html><head><title>Brandywine Furniture - You can\'t beat the best! &nbsp; &nbsp; </title>');
popup.document.write('<link rel="stylesheet" type="text/css" href="../colors.css">');
//popup.document.write('<SCR'+'IPT TYPE="text/javascript" LANGUAGE=JavaScript>');
//popup.document.write('if (document.all)');
//popup.document.write('document.body.onmousedown=new Function("if(event.button==2)alert(\'Feature disabled.  Images protected by copyright.\')")');
//popup.document.write('</SCR'+'IPT>');
popup.document.write('</head><body alink="#508088"><b>');

popup.document.write('<table border="0" width="100%"><tr><td align="center" height="25" valign="top">');
popup.document.write('<center><a href="javascript:self.close()"'
+' style="text-decoration:none">Click on photograph to close window.</a></center>');
if(!topline || topline=='' || topline==' ') {popup.document.write('<center>'+topline+'</center>')};
popup.document.write('</td></tr></table>');

popup.document.write('<center><a href="javascript:self.close()">'
+'<img border="0" src="'+file+'.jpg"></a></center>');

//popup.document.write('<center>'+file+'</center>');
//if(!note1 || note1=='' || note1==' ') note1='&nbsp;';
if(note1){popup.document.write('<center>'+note1+'</center>')};
if(note2){popup.document.write('<center><span class="contrast-color">'+note2+'</span></center>')};
if(note3){popup.document.write('<center>'+note3+'</center>')};
if(note4){popup.document.write('<center>'+note4+'</center>')};

if(file2) {
popup.document.write('<center><br><a href="javascript:self.close()">'
+'<img border="1" src="'+file2+'.jpg"></a></center>');
if(note5){popup.document.write('<center>'+note5+'</center>')};
if(note6){popup.document.write('<center>'+note6+'</center>')};}

if(file3) {
popup.document.write('<center><br><a href="javascript:self.close()">'
+'<img border="1" src="'+file3+'.jpg"></a></center>');
if(note7){popup.document.write('<center>'+note7+'</center>')};
if(note8){popup.document.write('<center>'+note8+'</center>')};}

if(file4) {
popup.document.write('<center><br><a href="javascript:self.close()">'
+'<img border="1" src="'+file4+'.jpg"></a></center>');
if(note9){popup.document.write('<center>'+note9+'</center>')};
if(noteA){popup.document.write('<center>'+noteA+'</center>')};}

//popup.document.write('<center>'+currentPath+'</center>');
//popup.document.write('<br><center><a href="javascript:self.close()"'
//+' style="text-decoration:none">Click on photograph to close window.</a></center>');
popup.document.write('</b></body></html>');
popup.document.close();
}

// ------------------------------------------------------------------------//

function ce() {window.status='Click to enlarge';return true;}

function bf() {window.status='Brandywine Furniture - You can\'t beat the best!'; return true;}

// ------------------------------------------------------------------------//
// ---- Always set MenusInitialized variable so we can test it ------------//

    MenusInitialized = false;

// ------------------------------------------------------------------------//
// ------------------------------------------------------------------------//

function initMenus() {
// Original code:
//      (C) 2001 www.CodeLifter.com
//      http://www.codelifter.com
// Modified greatly with sliding feature of menu removed.

    MenusInitialized = true;

    NS    = navigator.appName=="Netscape";
    Ver   = parseInt(navigator.appVersion);
    NS4   = NS && Ver>=4 && Ver<5;
    NS5up = NS && Ver>=5;

// ======================== Set X and Y Positions Here ==============================
// Set OffX in pixels to a negative number somewhat larger than the width of the menu.
// Set PosX & PosY variables to the desired "on" positon (in pixels).
// These numbers for PosX and PosYn were determined by trial and error.

// NOTE: Netscape will display a horizontal scroll bar indicating that the web page
//       continues to the right of the screen by an amount equal to OffX.
//       This happens when the top-level table has width="100%".
//       Work-around for this is unknown.  Suggest OffX be only as large as needed.

    OffX  = -250;
    PosX  =   95;   if (NS4) PosX  = 105;

    PosY1 =   68;   if (NS4) PosY1 =  76;
    PosY2 =  122;   if (NS4) PosY2 = 134;
    PosY3 =  156;   if (NS4) PosY3 = 176;
    PosY4 =  192;   if (NS4) PosY4 = 218;
    
// ==================================================================================

if (NS4) {
Lq = "document.layers.";
Sq = "";
eval(Lq+'menu1'+Sq+'.left=OffX'); eval(Lq+'menu1'+Sq+'.top=PosY1');
eval(Lq+'menu2'+Sq+'.left=OffX'); eval(Lq+'menu2'+Sq+'.top=PosY2');
eval(Lq+'menu3'+Sq+'.left=OffX'); eval(Lq+'menu3'+Sq+'.top=PosY3');
eval(Lq+'menu4'+Sq+'.left=OffX'); eval(Lq+'menu4'+Sq+'.top=PosY4');
} else {
Lq = "document.all.";
Sq = ".style";
document.getElementById('menu1').style.left = OffX+"px";
document.getElementById('menu2').style.left = OffX+"px";
document.getElementById('menu3').style.left = OffX+"px";
document.getElementById('menu4').style.left = OffX+"px";

document.getElementById('menu1').style.top = PosY1+"px";
document.getElementById('menu2').style.top = PosY2+"px";
document.getElementById('menu3').style.top = PosY3+"px";
document.getElementById('menu4').style.top = PosY4+"px";
}
}

function turnOn(name) {
turnAllOff();
if (NS5up) document.getElementById(name).style.left = PosX+"px";
else eval(Lq+name+Sq+'.left=PosX');
}

function turnOff(name) {
if (NS5up) document.getElementById(name).style.left = Offx+"px";
else eval(Lq+name+Sq+'.left=OffX');
}

function turnAllOff() {
if(MenusInitialized) {
  if (NS5up) {
  document.getElementById('menu1').style.left = Offx+"px";
  document.getElementById('menu2').style.left = Offx+"px";
  document.getElementById('menu3').style.left = Offx+"px";
  document.getElementById('menu4').style.left = Offx+"px";
  }
  else {
  eval(Lq+'menu1'+Sq+'.left=OffX');
  eval(Lq+'menu2'+Sq+'.left=OffX');
  eval(Lq+'menu3'+Sq+'.left=OffX');
  eval(Lq+'menu4'+Sq+'.left=OffX');
  }
}
}

function bottomLines(category) {
document.write(
 '<table border="0" bordercolor="#000000" width="100%">'
+'  <tr>'
+'    <td align="center">'
+'    <span style="font-family:Times New Roman,serif;'
+'    font-size:10pt; font-weight:bold;color:#508088;"><br>'
+'      Don\'t see what you\'re looking for here?&nbsp; This is'
+'      just a small sampling of Brandywine Furniture\'s<br>'
+'      huge selection of '+category+'.&nbsp; And, they are all available'
+'      at unbeatable everyday low prices.<br>'
+'      Call us toll free at 1-800-447-8083 or visit our store'
+'      (with five showrooms) soon!</span></td>'
+'  </tr>'
+'</table>');
}

// ------------------------------------------------------------------------//

function email_join_popup(arg) {
// 
// arg is either null ('') or the string ('../') to move up one directory level
//
// the following "popup.closed" test fails in FrontPage, even when the object exists.
// So, skip the test completely if we are on a "localMachine" (pathname contains "C:\")
currentPath = parent.location.pathname;
var localMachineREG = /C:\\/;
if (!currentPath.match(localMachineREG)) {
  if(window.popup) { if(!popup.closed) popup.close(); }
}
// use height=230 for ARIAL font;  use height=252 for TIMES NEW ROMAN font;
popup = window.open(arg+'email_join.htm','addresses',
'width=420,height=252,screenX=200,screenY=200,top=200,left=200,status=no,scrollbars=yes,resizable=yes');
}

// ------------------------------------------------------------------------//
// -->