


var iMagine_safari_3_1_mac_popup_block_msg = 'You are using Safari 3.1 and it has blocked our Pop-Up Window.\nTo view the Pop-Up Window:\n1) disable your Pop-Up blocker by going into the Safari menu in your browser\'s menu bar and unselecting the Block Pop-Up Windows option\n2) then click on the link again';
var iMagine_safari_3_1_win_popup_block_msg = 'You are using Safari 3.1 and it has blocked our Pop-Up Window.\nTo view the Pop-Up Window:\n1) disable your Pop-Up blocker by going into the Edit menu in your browser\'s menu bar and unselecting the Block Pop-Up Windows option\n2) then click on the link again';

var HDiMagineTrackerImage = new Image;
var HDiMagineTrackerURL = escape(window.location.href);
if (window.location.href.indexOf('https:') < 0)
  HDiMagineTrackerImage.src="http://www.hunterdouglas.com/clicktracker.jsp?url="+HDiMagineTrackerURL+"&sessionid=08F5A4C0ADD943C7D66D112C605A28DF";
else
  HDiMagineTrackerImage.src="https://www.hunterdouglas.com/clicktracker.jsp?url="+HDiMagineTrackerURL+"&sessionid=08F5A4C0ADD943C7D66D112C605A28DF";

function getProductLink(id)
{
     
    window.location.href="http://www.hunterdouglas.com/our-products-detail.jsp?id="+id+"&sessionid=08F5A4C0ADD943C7D66D112C605A28DF";
    
}
function getProductsLink()
{
     
    window.open("http://www.hunterdouglas.com/our-products.jsp?sessionid=08F5A4C0ADD943C7D66D112C605A28DF&ref="+HDiMagineTrackerURL,"HDDealerSynd", "");
    
}
function getiMagineLink()
{
     
    window.open("http://www.hunterdouglas.com/imagine_wrapper.jsp?sessionid=08F5A4C0ADD943C7D66D112C605A28DF&ref="+HDiMagineTrackerURL,"iMagine", "toolbar=no,menubar=no,width=880,height=670,resizable=yes");
    
}
function getiMagineProductLink(id)
{
     
    window.open("http://www.hunterdouglas.com/imagine_wrapper.jsp?sessionid=08F5A4C0ADD943C7D66D112C605A28DF&id="+id+"&ref="+HDiMagineTrackerURL,"iMagine", "toolbar=no,menubar=no,width=880,height=670,resizable=yes");
    
}
function getiMagineProductLinkWithMode(id,mode)
{
     
    window.open("http://www.hunterdouglas.com/imagine_wrapper.jsp?sessionid=08F5A4C0ADD943C7D66D112C605A28DF&id="+id+"&mode="+mode+"&return=true&ref="+HDiMagineTrackerURL,"iMagine", "toolbar=no,menubar=no,width=880,height=670,resizable=yes");
    
}
function getiMagineProductLinkWithModeInside(swatchid,imaginemode)
{
     
    top.location.href="http://www.hunterdouglas.com/imagine_wrapper.jsp?sessionid=08F5A4C0ADD943C7D66D112C605A28DF&id="+swatchid+"&mode="+imaginemode+"&return=true&ref="+HDiMagineTrackerURL;
    
}
function getiMagineLinkQS(qstring) 
{
    window.open("http://www.hunterdouglas.com/imagine_wrapper.jsp?" + qstring + "&deeplink_data="+escape(qstring+"&sessionid=08F5A4C0ADD943C7D66D112C605A28DF")+"&sessionid=08F5A4C0ADD943C7D66D112C605A28DF&ref="+HDiMagineTrackerURL,"iMagine", "toolbar=no,menubar=no,width=880,height=670,resizable=yes");
}
function getiMagineLinkReturnStatus() {
  var iMaginePopup=window.open("http://www.hunterdouglas.com/imagine_wrapper.jsp?sessionid=08F5A4C0ADD943C7D66D112C605A28DF&ref="+HDiMagineTrackerURL,"iMagine", "toolbar=no,menubar=no,width=880,height=670,resizable=yes");
  if (!iMaginePopup) {
    if (iMagineBrowserCheckIfSafari3_1()) {
      var n = navigator;
      var na = n.appVersion;
      if ( na.indexOf( 'Mac' ) != -1 ) {
        alert(iMagine_safari_3_1_mac_popup_block_msg);
      } else {
        alert(iMagine_safari_3_1_win_popup_block_msg);
      }
    }
    return false;
  } else return true;
}
function getiMagineProductLinkReturnStatus(id) {
  var iMaginePopup=window.open("http://www.hunterdouglas.com/imagine_wrapper.jsp?sessionid=08F5A4C0ADD943C7D66D112C605A28DF&id="+id+"&ref="+HDiMagineTrackerURL,"iMagine", "toolbar=no,menubar=no,width=880,height=670,resizable=yes");
  if (!iMaginePopup) {
    if (iMagineBrowserCheckIfSafari3_1()) {
      var n = navigator;
      var na = n.appVersion;
      if ( na.indexOf( 'Mac' ) != -1 ) {
        alert(iMagine_safari_3_1_mac_popup_block_msg);
      } else {
        alert(iMagine_safari_3_1_win_popup_block_msg);
      }
    }
    return false;
  } else return true;
}
function iMagineBrowserCheckIfSafari3_1() {
var n = navigator;
var nua = n.userAgent;
if (nua.indexOf('Version/3.1') != -1 && nua.indexOf('Safari') != -1) return true;
else return false;
}


