<!-- (c) All content Copyright 1995 - 2006 Neil Verplank,  Dovetail Custom Furniture -->


	
if(top==self) { 
	path	    	= "/furniture/";
	var appVer      = navigator.appVersion;
	var NS	  	= (navigator.appName == 'Netscape') && ((appVer.indexOf('3') != -1) || (appVer.indexOf('4') != -1));
	var MSIE	= (appVer.indexOf('MSIE 4') != -1);

	url 		= new String(location.href);
	pos     	= url.indexOf("furniture/");
	pos2     	= url.indexOf("/cgi-bin/");
	if (pos > 0) {
		lnk	= url.substr(pos+10);
		file    = "main.htm?" + lnk;
	} else if (pos2>0) {
		file = "main.htm?" + url.substr(pos2);
	} else {
		file	= "";
	}

	jump    	= path + file;

	if (NS || MSIE) {
		location.replace(jump);
	} else {
		location.href = jump;
	}
}
