<!--

function popwin(file,size,flag,note1,note2,note3,note4,note5,note6,note7,note8,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(); }
}
// size parameter should be:
//   'b' for vertical (portrait) display + set up for big (extra large) display;
//   'v' for vertical (portrait) display;
//   'w' for WIDE vertical (portrait) display;
//   't' for TALL & WIDE vertical (portrait) display;
//   'm' for midway (midway between h and v)
//   'h' for horizontal (landscape) display (this is default if size is blank);
//  NOTE: window height will be reduced, if needed, to screen.availHeight - 130px
//        when height is reduced, we also set wtop (top & screenY) to zero.

            var wtop  = 20;
            var winh  = 420;
            var winw  = 560;
if (size=='m') {winh  = 490; wtop = 10;}
if (size=='v') {winh  = 530; wtop = 10;}
if (size=='b') {winh  = 700; wtop = 10; winw = 630;}
if (size=='w') {winh  = 530; wtop = 10; winw = 640;}
if (size=='t') {winh  = 700; wtop = 10; winw = 640;}
var avH = screen.availHeight - 130;
if (winh > avH) {
  winh = avH;
  wtop = 0;
}
popup = window.open('','popupWindow',
  'width='+winw+',height='+winh+',screenX=100,screenY='+wtop+',left=100,top='+wtop+',status=no,resizable=yes,scrollbars=yes');
popup.document.write('<html><head><title>Hunt Country Furniture -- Handcrafted excellence! &nbsp; &nbsp; </title>');
popup.document.write('<link rel="stylesheet" type="text/css" href="../../colors.css">');
popup.document.write('</head>');

// flag parameter signals to use the "sale" background file
//  OR, in the case of a "BIG" image (where size=="b"), flag contains the maximum window height
// BIG images are used for the Commercial Division photos, not for "sales".

     if(flag=='sale') {popup.document.write('<body alink="#CC9900" background="../../images/special/bgF0ECD8sale.gif">');}
else if(flag=='new')  {popup.document.write('<body alink="#CC9900" background="../../images/special/bgF0ECD8new.gif">');}
else                  {popup.document.write('<body alink="#CC9900" background="../../images/bgF0ECD8.gif">');}

if(size!='b') {
  popup.document.write('<center><a href="javascript:self.close()">'
  +'<span style="font-weight:bold;text-decoration:none">Click on photograph to close window.</span></a></center>');
// *** write a blank line to give a top margin above the picture.
  popup.document.write('<center>&nbsp;</center>');
  popup.document.write('<center><a href="javascript:self.close()"><img border="1" src="'+file+'.jpg"></a></center>');
}

if(size=='b') {
// *** write a blank line to give a top margin above the picture.
  popup.document.write('<center>&nbsp;</center>');
  
  if(flag) maxHeight='\&'+flag;
  else maxHeight='\&999999';
  popup.document.write('<center><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>' +
  '<td width="52%" rowspan="2" nowrap align="center"><span' +
  ' style="font-size:9pt; font-weight:bold; text-decoration:none">Commercial Division<br>' +
  ' Contract Furniture<br>&nbsp;<br>Dimensions<br>and prices<br>are' +
  ' subject<br>to change.<br>&nbsp;<br>Please confirm<br>before ordering.</span></td>' +
  '<td rowspan="2"><a href="bigPhoto.htm?'+file+maxHeight+'"><img border="1" src="'+file+'.jpg"></a></td>' +
  '<td width="48%" nowrap align="center"><a href="javascript:self.close()" ' +
  ' class="nav-side-text"><u>Close<br>Window</u></a></td>' +
  '</tr><tr>' +
  '<td width="48%" nowrap align="center"><a href="bigPhoto.htm?'+file+maxHeight+'" ' +
  ' class="nav-side-text"><u>Click to<br>Enlarge</u></a></td>' +
  '</tr></table></center>');

//  popup.document.write('<center>' +
//  '<a href="bigPhoto.htm?'+file+maxHeight+'" class="nav-side-text">' +
//  'Click <u>here</u> for enlarged view.</a></center>');
}

if(note1) {
   if(note1=='text') popup.document.write('<center>'+eval(file+'_text')+'</center>');
   else   popup.document.write('<center>'+note1+'</center>');
     };
if(note2){popup.document.write('<center>'+note2+'</center>')};
if(note3){popup.document.write('<center>'+note3+'</center>')};
if(note4){popup.document.write('<center>'+note4+'</center>')};
if(note5){popup.document.write('<center>'+note5+'</center>')};
if(note6){popup.document.write('<center>'+note6+'</center>')};
if(note7){popup.document.write('<center>'+note7+'</center>')};
if(note8){popup.document.write('<center>'+note8+'</center>')};
if(note9){popup.document.write('<center>'+note9+'</center>')};
if(noteA){popup.document.write('<center>'+noteA+'</center>')};
popup.document.write('</body></html>');
popup.document.close();
if (parseInt(navigator.appVersion) >= 4) { setTimeout('popup.focus()',100); }
}

// ------------------------------------------------------------------------//

function ce() {window.status='Click for a large photograph'; return true;}

function m1() {window.status='Hunt Country Furniture - Impeccable quality'; return true;}

// ------------------------------------------------------------------------//

// Always set endingMsg to "noClickMsg" as the default //
endingMsg = 'noClickMsg';
// The individual page will set this variable to something else if desired //
// Other options are: 'click' and 'clickPlus' //

function rightBorderEnding() {
if(endingMsg=='noClickMsg') document.write('<br><br>');
if(endingMsg=='click')      document.write('<br><br><br>Click on<br>photos to<br>enlarge<br><br><br>');
if(endingMsg=='clickPlus')  document.write('<br>Click on<br>photos to<br>enlarge');
}

// ------------------------------------------------------------------------//

// Always set rightSideWarrenty to "10" as the default //
rsWarrenty = '10';
// The individual page will set this variable to something else if desired //
// Other option is: '1'
function rightSideWarrenty() {
if(rsWarrenty=='10'||rsWarrenty!='1') document.write(
              '<br>American<br>'+
              'made&nbsp;and<br>'+
              'backed<br>'+
              'by&nbsp;our<br>'+
              'exclusive<br>'+
              '<span style="color:#666633">10-year</span><br>'+
              'warranty.<br><br><br></span>'
              );
if(rsWarrenty=='1')  document.write(
              '<br><br>Made&nbsp;in<br>'+
              'the&nbsp;USA<br>'+
              'with&nbsp;a<br>'+
              'one-year<br>'+
              'commercial<br>'+
              'warranty.<br><br><br></span>'
              );
}

// ------------------------------------------------------------------------//


function checkImage(name) {
  if(!eval('window.'+name)) { document.write('<br>'+
    '<br><font size="+1" color="#FF0000">'+
//    'No image named '+name+'<br>'+
    'One or more Images are not being displayed!<br><br>'+
    'You may need to disable Ad Blocking in your<br>'+
    'Norton Security or Norton Firewall software.<br><br>'+
    'You can also use the <a '+
    'href="../country-furniture-sitemap.htm"><b>site map</b></a> '+
    'to select<br>various furniture categories</font><br><br>');
    return false;
  }
  else return true;
}

// ------------------------------------------------------------------------//

function email_join_popup() {

// 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('http://huntcountryfurniture.com/email_join.htm','addresses',
'width=420,height=230,screenX=200,screenY=200,top=200,left=200,status=no,scrollbars=yes,resizable=yes');
}

// ------------------------------------------------------------------------//

function getCookie(cookiename) {
  var myexpression = eval("/" + cookiename + "=([^;]*)/");
  myexpression.exec(document.cookie);
  return RegExp.$1;
}
function setCookie(name, value, expires) {
  document.cookie=name + "=" + escape(value) + "; path=/" + 
  ((expires == null) ? "" : "; expires=" + expires.toGMTString());
}
function delCookie(name) {
  document.cookie=name + "=; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}

// ------------------------------------------------------------------------//
// -->