
// catcher
function doNothing() {};


// get base url 
with (this.location) { baseURL = href.substring(0, href.lastIndexOf ("/") + 1) }


// browser and OS detection
var browserOS = navigator.platform;
var webBrowser = navigator.appName;
var browserVer = navigator.appVersion.substring(0,3);


// stylesheet assignment

	if (webBrowser == "Microsoft Internet Explorer") {
		styleObj = '<link rel="stylesheet" href=/code/explorer.css type="text/css">';
	} else if ((browserOS == "Win32") && (webBrowser == "Netscape") && (browserVer.indexOf('5') != -1)) {
		styleObj = '<link rel="stylesheet" href=/code/netscape6PC.css type="text/css">';
	} else if ((browserOS == "Win32") && (webBrowser == "Netscape") && (browserVer.indexOf('4') != -1)) {
		styleObj = '<link rel="stylesheet" href=/code/netscape4PC.css type="text/css">';
	} else if ((browserOS == "MacPPC") && (webBrowser == "Netscape") && (browserVer.indexOf('5') != -1)) {
		styleObj = '<link rel="stylesheet" href=/code/explorer.css type="text/css">';
	} else if ((browserOS == "MacPPC") && (webBrowser == "Netscape") && (browserVer.indexOf('4') != -1)) {
		styleObj = '<link rel="stylesheet" href=/code/netscape4mac.css type="text/css">';
	} else {
		styleObj = '<link rel="stylesheet" href=/code/generic.css type="text/css">';
	}




// image rollover image information

imglinelinks = new Image()
imglinelinks.src = "/images/nav/footer-princestreet_hr.gif";

newimglinelinks = new Image()
newimglinelinks.src = "/images/nav/footerNav-locations_off.gif";

imglinelinksPSTon1 = new Image();
imglinelinksPSTon1.src = "/images/nav/footerNavtest.gif";

imglinelinksPSToff1 = new Image();
imglinelinksPSToff1.src = "/images/nav/footerNavtestoff2.gif";

function imgActPST1() {
    if (document.images) {
    document.newimglinelinks.src = eval("imglinelinks" + "PSTon1.src");
    }
}

function imgInactPST1() {
    if (document.images) {
    document.newimglinelinks.src = eval("imglinelinks" + "PSToff1.src");
    }
}

// global variables 






var num = null;

// image name construction 

imageDir	= "/images/nav/";
offSuffix	= "_off.gif";
onSuffix	= "_on.gif";

var totalMice = 0;	     
var mausArray = new Array();



// create new mausover objects

function mausObj (width, height, name, statusText) {

  this.width		= width;
  this.height		= height;
  this.name			= name;
  this.statusText	= statusText; 
  this.off			= new Image (width, height);
  this.off.src		= imageDir + name + offSuffix;  
  this.on			= new Image (width, height);
  this.on.src		= imageDir + name + onSuffix;  

}

function makeMausObj(width, height, name, statusText) {

   mausArray[totalMice] = new mausObj(width, height, name, statusText);
  
  totalMice++;
  
}


// mouseover

function doMausOver(num) {

	document.images[mausArray[num].name].src = mausArray[num].on.src;
	self.status = mausArray[num].statusText;

}


// mouseout

function doMausOut (num) {

	document.images[mausArray[num].name].src = mausArray[num].off.src;
      
	self.status = "";

}


// popup window code

	function thisIsPop(page, pWidth, pHeight, scrollSet) {
	
		var popWindow = null;
		page = page + ".html";
		
		if (!pWidth) {
			var pWidth = 610;
		}	
		
		if (!pHeight) {
			var pHeight = 400;
		}	

		if (!scrollSet) {
			var scrollSet = 1;
		}

			var displayString = "width=" + pWidth + ",height=" + pHeight + ",scrollbars=" + scrollSet +",resizable";   
			
    		popWindow = window.open(page,'PopWindow',displayString);

				if (popWindow != null) {
					if (popWindow.opener == null) { popWindow.opener = self; }
					popWindow.opener.name = "popDaddy";
				} 		
		
	}



	function topFloat() { 
		if (document.images) {
			parent.focus();					
			setTimeout("topFloat()",1000);
		} else { return; }
 	}


// IFS header rollovers
// rollover image array (width, height, name, statusText)

makeMausObj(60, 47, "topNav-products", "Products");
makeMausObj(50, 47, "topNav-gallery", "Gallery");
makeMausObj(99, 47, "topNav-enduse", "End-Use Segments");
makeMausObj(80, 47, "topNav-sustain", "Sustainability");
makeMausObj(77, 47, "topNav-profile", "Brand Profile");
makeMausObj(102, 47, "topNav-what", "What's Happening");
makeMausObj(96, 47, "topNav-library", "Reference Library");


// IFS footer

// rollover image array (width, height, name, statusText) 

makeMausObj(160, 51, "footerNav-home", "home");
makeMausObj(160, 51, "footerNav-sitemap", "site map");
makeMausObj(160, 22, "footerNav-sample", "the sample center");
makeMausObj(160, 13, "footerNav-dealer", "find a dealer");
makeMausObj(160, 16, "footerNav-contact", "contact us");
makeMausObj(160, 15, "footerNav-locations", "our locations");


var footerNav;

footerNav  = '<p>&nbsp;</p>';
footerNav += '<img src="/images/nav/footer-ifs_hr.gif" alt="" width="564" height="20" border="0">';
footerNav += '<table cellpadding="0" cellspacing="0" border="0" width="564">';
footerNav += '<tr>';
footerNav += '<td><a href="/" onMouseOver="doMausOver(7); return true" onMouseOut="doMausOut(7); return true"><img src="/images/nav/footerNav-home_off.gif"'; 
footerNav += ' alt="home" width="160" height="51" border="0" name="footerNav-home"></a';
footerNav += '><br>&nbsp;&nbsp;<a href="http://www.interfaceinc.com/"><img src="/images/nav/interfacelogo.gif" border="0"</td';
footerNav += '><td><a href="/sitemap/" onMouseOver="doMausOver(8); return true" onMouseOut="doMausOut(8); return true"><img src="/images/nav/footerNav-sitemap_off.gif"'; 
footerNav += ' alt="site map" width="160" height="51" border="0" name="footerNav-sitemap"></a></td';
footerNav += '><td><a href="http://www.thesamplecenter.com/" onMouseOver="doMausOver(9); return true" onMouseOut="doMausOut(9); return true"><img';
footerNav += ' src="/images/nav/footerNav-sample_off.gif" alt="the sample center" width="160" height="22" border="0" name="footerNav-sample"></a><br';
footerNav += '><a href="/ourlocations.html" onMouseOver="doMausOver(12); return true" onMouseOut="doMausOut(12); return true">';
footerNav += '<img src="/images/nav/footerNav-locations_off.gif" alt="our locations" width="160" height="15" border="0" name="footerNav-locations"></a><br';
footerNav += '><img src="/images/spacer.gif" width="160" height="1" alt=""><br><IMG src="/images/nav/footerNavtestoff2.gif" alt="" width="160" height="15" border="0" USEMAP="#Layout1" name="newimglinelinks">';
footerNav += '<MAP NAME="Layout1">';
footerNav += '<AREA SHAPE=RECT COORDS="1,1,160,15" HREF="/find_a_rep/repsearch.html" onMouseOver = "imgActPST1()" onMouseOut = "imgInactPST1()">';
footerNav += '</MAP><br';
footerNav += '><a href="http://resource.know-where.com/resource/" target="new" onMouseOver="doMausOver(10); return true" onMouseOut="doMausOut(10); return true"><img src="/images/nav/footerNav-dealer_off.gif"';
footerNav += ' alt="find a dealer" width="160" height="13" border="0" name="footerNav-dealer"></a><br';
footerNav += '><a href="/contact/" onMouseOver="doMausOver(11); return true" onMouseOut="doMausOut(11); return true"><img src="/images/nav/footerNav-contact_off.gif"';
footerNav += ' alt="contact us" width="160" height="16" border="0" name="footerNav-contact"></a>';
footerNav += ' </td>'; 
footerNav += '</tr>';
footerNav += '<tr>';
footerNav += '<td width="188"><img src="/images/spacer.gif" width="188" height="1" alt=""></td';
footerNav += '><td width="188"><img src="/images/spacer.gif" width="188" height="1" alt=""></td';
footerNav += '><td width="188"><img src="/images/spacer.gif" width="188" height="15" alt=""></td>';
footerNav += '</tr>'; 
footerNav += '</table>';







































	
