<!--//
//Window Opener
function OpenWindow(strURL,winType,winName,winWidth,winHeight)
{
	var objWindow
	var NS4 = (document.layers) ? 1 : 0;
	var winl = (screen.width - winWidth) / 2;
	var wint = (screen.height - winHeight) / 2;

	if (winType == "custom")
	{
		objWindow=window.open(strURL, winName, 'scrollbars, resizable, width=' + winWidth + ', height=' + winHeight + ', top=' + wint + ', left=' + winl + '');
	}
	else
	{
		objWindow=window.open(strURL);
	}
}

//Layer Viewer
function view( name ) { 
if (document.layers) { // NS4 
document.layers[name].visibility = 'visible';
} 
else if (document.all) { // IE4+ 
document.all(name).style.visibility = 'visible';
} 
else if (document.getElementById) { // NS6 and IE5+ 
document.getElementById(name).style.visibility = 'visible';
}
} 
function hide( name ) { 
if (document.layers) { // NS4 
document.layers[name].visibility = 'hidden'; 
} 
else if (document.all) { // IE4+ 
document.all(name).style.visibility = 'hidden'; 
} 
else if (document.getElementById) { // NS6 and IE5+ 
document.getElementById(name).style.visibility = 'hidden'; // if layer$id 
} 
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//Rotating Image Script
var timeDelay = 5; // change delay time in seconds
var Pix = new Array
("images/rotating/007.jpg"
,"images/rotating/008.jpg"
,"images/rotating/003.jpg"
,"images/rotating/004.jpg"
,"images/rotating/005.jpg"
,"images/rotating/006.jpg" 
);
var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["RotatePix"].src = PicCurrent.src;
}

//Rotating News Banner
var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var ar = new Array();
ar[0] = "Design your own room <a href='http://ep5.eprevue.net/eprevuenet/RoomPlanner.aspx' class='news'>Click Here</a>";
ar[1] = "Get insider tips on how the pros decorate - <a href='decorating.htm' class='news'>Decorating Tips</a>";
ar[2] = "Need help with your latestest interior design project?<br>Visit our <a href='interiordesign.htm' class='news'>Interior Design Services</a>";
ar[3] = "Take a look at our online <a href='http://ep5.eprevue.net/eprevuenet/Search.aspx' class='news'>showroom</a>";
ar[4] = "Get great tips on how to shop for furniture - <a href='shopping.htm' class='news'>Shopping Tips</a>";
ar[5] = "A new look and a new feel all designed for your lifestyle...<br>Visit our <a href='lifestyle.htm' class='news'>Lifestyle Departments</a>";
var num = 0;
NewsTicker = timeDelay / 2; //Half of the Rotating Image script above
function startNews() {
  setInterval("update()", NewsTicker);
}
function update() {
  display("news", ar[num]);
  num++;
  if (num == ar.length) num = 0;
}
function display(id, str) {
  if (NS4) {
    with (document[id].document) {
      open();
      write(str);
      close();
    }
  } else {
    document.all[id].innerHTML = str;
  }
}

//Dynamic Frameset Loader
var TOC = "manufacturers.htm";  // default frame page
var blank = ''; // blank page
var page = (location.search) ? location.search.substring(1, location.search.length) : TOC;
// if query string ('?' after URL) set content variable to what follows the '?'
// otherwise, start fresh by setting content variable to TOC
function Loadpage() {
parent.main.location.href = page;
}
//-->