if (document.images) {
  
  image1on = new Image();
  image1on.src = "/pics/h_icon_home_a.gif";
  
  image2on = new Image();
  image2on.src = "/pics/h_icon_mail_a.gif";

  image3on = new Image();
  image3on.src = "/pics/h_icon_maps_a.gif";

  image1off = new Image();
  image1off.src = "/pics/h_icon_home_i.gif";
  
  image2off = new Image();
  image2off.src = "/pics/h_icon_mail_i.gif";

  image3off = new Image();
  image3off.src = "/pics/h_icon_maps_i.gif";
}
function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

function showPic( imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor ) {
	if(imgWidth<=100)imgWidth=100
	if(imgHeight<=100)imgHeight=100
	winHeight=imgHeight+20;
	w = window.open('','CCA','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+imgWidth+',height='+winHeight);
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<STYLE TYPE='text/css'>" );
	w.document.write( "A {font:10px verdana; color:"+textColor+"; text-decoration:none;}" );
	w.document.write( "A:Visited {font:10px verdana; color:"+textColor+"; }" );
	w.document.write( "A:Active { font:10px verdana; color:"+textColor+"; }" );
	w.document.write( "A:Hover { font: 10px verdana; color:"+textColor+"; }" );
	w.document.write( "IMG {border-color: "+textColor+";}" );
	w.document.write( "BODY { font:normal 10px verdana; color:"+textColor+"; background-color:"+bgColor+"; }" );
	w.document.write( "</STYLE>" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true\n");
	w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31+20)\n");
	w.document.write( "	else if(NN6) self.sizeToContent()\n");
	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+20)\n");
	w.document.write( "	self.focus()\n");
	w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<table cellpadding=0 cellspacing=0 border=0><tr><td colspan=3><img src='"+imgName+"' border=0 alt='"+imgCaption+"'></td></tr>" );
	w.document.write( "<tr><td align='left'>&nbsp;&nbsp;<a>&copy; Carpet Corporation of America.</a></td>" );
	w.document.write( "<td align='right'><a href='javascript:top.window.close();'>close window</a>&nbsp;&nbsp;</td></tr>" );
	w.document.write( "</table></body></html>" );
	w.document.close();
}

var newwindow;
function matssample(url)
{
	newwindow=window.open(url,'name','height=620,width=515');
	if (window.focus) {newwindow.focus()}
}