<!--

var mode;
var EnhancedCapable;
var EnhancedMode = true;
var deftxt = "Welcome to ABCO Office Furniture"; 
var scrtxt = deftxt; 
var opt = ""; 
var lngth = scrtxt.length;
var width = 100;
var pos = -(width + 2);
var xi = 0;
var basewwwpath = "http://www.abcofurniture.com/";
// basewwwpath="//2ks01/is/new abco website/";                  // NOTE: Comment out this line when uploading to website
var prodpath = '<A HREF="'+ basewwwpath + 'products/';
var imgpath = basewwwpath + 'images/';
var vtrtdc = "<tr><td align=center valign='top'><";
var ImgArray = new Array();
var vpause="false";


function welcome() {

	if      (opt == "Session")	{scrtxt = "Session Series";}
	else if (opt == "Endure")	{scrtxt = "Endure Series";}
	else if (opt == "Dialog")	{scrtxt = "Dialog Series";}
	else if (opt == "ConfTbl")	{scrtxt = "Conference Table Series";}
	else if (opt == "Smart")	{scrtxt = "Smart Table Series";}
	else if (opt == "CF")		{scrtxt = "Computer Furniture";}
	else if (opt == "Units")	{scrtxt = "Units Series";}
	else if (opt == "NextGen")	{scrtxt = "Next Generation Series";}
	else if (opt == "Quality")	{scrtxt = "ABCO is Committed to Quality";}
	else if (opt == "WhatsNew")	{scrtxt = "There's Always Something New at ABCO";}
	else if (opt == "Products")	{scrtxt = "Quality Furniture for Your Business Needs";}
	else if (opt == "AboutUs")	{scrtxt = "ABCO Office Furniture";}
	else if (opt == "ContactUs")	{scrtxt = "Stay in Touch";}
	else if (opt == "Literature")	{scrtxt = "Let Us Send You More Information";}
	else if (opt == "SalesReps")	{scrtxt = "We Have Sales Reps almost EVERYWHERE";}
	else if (opt == "FabFin")	{scrtxt = "Get the Fabrics and Finishes YOU Want";}
	else if (opt == "SiteMap")	{scrtxt = "Lost? This is the Place to Look";}
	else {scrtxt = deftxt;}

	lngth = scrtxt.length;
	pos++;
	var scroller = "";
	var scroller1= "";
	if (pos == lngth) {pos = -(width + 2);}
	if (xi <= lngth) {xi++; scroller = scrtxt.substring(0, xi);}
	else if (xi<=((lngth*2)+2)) {xi++; scroller = scrtxt;}
	else if (xi<=((lngth*3)+2)) {xi++; scroller = scrtxt.substring(xi - (lngth * 2) - 1, lngth);}
	else {xi=0;}

	if (opt != "") {scroller = scrtxt;}

	window.status = scroller;
	setTimeout("welcome()", 75);
	}

function SetEnhanced() {
	var expdate = new Date();
	expdate.setTime(expdate.getTime() +  (48 * 60 * 60 * 1000 * 365));
	SetCookie("mode", true, expdate, "/", null, false);
	location.reload();
	}

function SetStandard() {
	var expdate = new Date();
	expdate.setTime(expdate.getTime() +  (48 * 60 * 60 * 1000 * 365));
	SetCookie("mode", false, expdate, "/", null, false);
	location.reload();
	}

function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1) endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
	}

function GetCookie (name){
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg) return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0)
		break;
		}
	return null;
	}

function SetCookie (name, value) {
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (2 < argc) ? argv[2] : null;
	var path = (3 < argc) ? argv[3] : null;
	var domain = (4 < argc) ? argv[4] : null;
	var secure = (5 < argc) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : "");
	}

function onStat(y) {opt=y;}

function offStat() {opt="";}

function checkUA() {
	var UAversion = parseFloat(navigator.appVersion);
	var UA = (navigator.appName);
	var IEua = (UA == "Microsoft Internet Explorer");
	var Netscapeua = (UA == "Netscape");
	IEmajor = '';

	if (IEua) {
		if (navigator.appVersion.indexOf("MSIE") != -1) {
			IEmajorStart = navigator.appVersion.indexOf("MSIE") + 4;
			IEmajorEnd = (IEmajorStart + 5);
			theMajor = navigator.appVersion.substring(IEmajorStart, IEmajorEnd);
			(UAversion = theMajor);  
			}
		if (isNaN(UAversion)) {(UAversion = (UAversion.substring(0, (UAversion.length - 1))));}
		}
	 
	if ((Netscapeua & UAversion >= 5)||(IEua & UAversion >= 4)) {EnhancedMode = true;}
	else {EnhancedMode = false;}

	EnhancedCapable = EnhancedMode;

	} 

function preloadImg(vimgstat) {
	if (vimgstat=="New") {for(i=0; i<100; i++) {ImgArray[i]= new Image(); ImgArray[i].src= imgpath + "proddef.gif";}}
	else {for(i=0; i<(arguments.length); i++) {ImgArray[i].src= imgpath + arguments[i];}}

/*
	ImgArray[1].src= imgpath + "abco_logo1.jpg";
	ImgArray[3].src= imgpath + "butCompInf1.gif";
	ImgArray[5].src= imgpath + "butNew1.gif";
	ImgArray[7].src= imgpath + "butProducts1.gif";
	ImgArray[9].src= imgpath + "butLiterature1.gif";
	ImgArray[11].src= imgpath + "butContact1.gif";
	ImgArray[13].src= imgpath + "butWarranty1.gif",
	ImgArray[15].src= imgpath + "butConfig1.gif";
	ImgArray[17].src= imgpath + "butFeat1.gif";
	ImgArray[19].src= imgpath + "butGIZA1.gif";
	ImgArray[21].src= imgpath + "butSitemap1.gif";
	ImgArray[23].src= imgpath + "butSalesReps1.gif";
	ImgArray[25].src= imgpath + "butFabFin1.gif";
	ImgArray[27].src= imgpath + "butQuality1.gif";
	ImgArray[29].src= imgpath + "butBack1.gif";
	ImgArray[31].src= imgpath + "butLeftEnd.gif";
	ImgArray[32].src= imgpath + "butDiv.gif";
	ImgArray[33].src= imgpath + "butRightEnd.gif";
	ImgArray[34].src= imgpath + "butHDiv.gif";
	ImgArray[35].src= imgpath + "vspacer.gif";

*/
	}

function updImg(){

	preloadImg("update",
		"abco_logo1.jpg",
		"abco_logo2.jpg",
		"butCompInf1.gif",
		"butCompInf2.gif",
		"butNew1.gif",
		"butNew2.gif",
		"butProducts1.gif",
		"butProducts2.gif",
            "butDealer1.gif",
            "butDealer2.gif",
		"butLiterature1.gif",
		"butLiterature2.gif",
            "butContact1.gif",
		"butContact2.gif",
		"butWarranty1.gif",
		"butWarranty2.gif",
		"butConfig1.gif",
		"butConfig2.gif",
		"butFeat1.gif",
		"butFeat2.gif",
		"butGIZA1.gif",
		"butGIZA2.gif",
		"butSitemap1.gif",
		"butSitemap2.gif",
		"butSalesReps1.gif",
		"butSalesReps2.gif",
		"butFabFin1.gif",
		"butFabFin2.gif",
		"butQuality1.gif",
		"butQuality2.gif",
		"butBack1.gif",
		"butBack2.gif",
		"butLeftEnd.gif",
		"butDiv.gif",
		"butRightEnd.gif",
		"butHDiv.gif",
		"vspacer.gif"
		);

	}

function updBaseImg(){

	document.but0.src=imgpath+"abco_logo1.jpg";
	document.but1.src=imgpath+"butCompInf2.gif";
	document.but2.src=imgpath+"butNew2.gif";
	document.but3.src=imgpath+"butProducts2.gif";
      document.but6.src=imgpath+"butDealer2.gif";
	document.but7.src=imgpath+"butLiterature2.gif";
	document.but8.src=imgpath+"butContact2.gif";
      document.but9.src=imgpath+"butSitemap2.gif";
	if (EnhancedMode == true) // {document.butPrint.src=imgpath+"butPrint.gif";}
      document.slog.src=imgpath+"slogan.gif";
//	document.slog2.src=imgpath+"slogan2.gif";
//	document.slog3.src=imgpath+"slogan3.gif";
	document.spc1.src=imgpath+"vspacer.gif";
	document.spc2.src=imgpath+"vspacer.gif";
	}

window.status = "Loading...";
checkUA();
preloadImg("New");

mode = GetCookie("mode");

if (EnhancedMode == true) {if (mode == "false") {EnhancedMode=false;}} 


if (EnhancedMode == true) {document.write('<script language="javascript" src="'+basewwwpath+'enhanced.js"></script>');}
else {
document.write ('<table cellpadding=0 cellspacing=0 height=* valign="top"><tr><td height=*  background="' + imgpath + 'pgLeft.jpg" valign="top">');
document.write ('<table align="center" border = 0 width=180 cellpadding=0 cellspacing=0 valign="top">');
document.write (vtrtdc + 'A HREF="'+ basewwwpath + 'abco.html" onMouseOver="but0.src=ImgArray[1].src" onMouseOut="but0.src=ImgArray[1].src"><img name="but0" alt="Home" border="0" height="120" width="180"></a></td></tr>');
document.write (vtrtdc + 'img name="spc1" border="0" height="35" width="1" src="'+imgpath+'"vspacer.gif"></td></tr>');
document.write (vtrtdc + 'A HREF="'+ basewwwpath + 'about/index.html" onMouseOver="but1.src=ImgArray[4].src;Show(1);" onMouseOut="but1.src=ImgArray[4].src;Hide(1);"><img name="but1" alt="Company Info" border="0" height="25" width="150"></A></td></tr>');
document.write (vtrtdc + 'A HREF="'+ basewwwpath + 'whatsnew/index.html" onMouseOver="but2.src=ImgArray[6].src" onMouseOut="but2.src=ImgArray[6].src"><img name="but2" alt="What\'s New" border="0" height="25" width="150"></A></td></tr>');
document.write (vtrtdc + 'A HREF="'+ basewwwpath + 'products/index.html"onMouseOver="but3.src=ImgArray[8].src;Show(2);" onMouseOut="but3.src=ImgArray[8].src;Hide(2);" ><img name="but3" alt="Product Offerings" border="0" height="25" width="150"></A></td></tr>');

document.write (vtrtdc + 'A HREF="'+ basewwwpath + 'about/dealeresource.html" onMouseOver="but3.src=ImgArray[10].src;Show(11);" onMouseOut="but6.src=ImgArray[10].src;Hide(11);" ><img name="but6" alt="Dealer Resources" border="0" height="25" width="150"></A></td></tr>');

document.write (vtrtdc + 'A HREF="'+ basewwwpath + 'literature/index.html" onMouseOver="but7.src=ImgArray[12].src;Show(12);" onMouseOut="but7.src=ImgArray[12].src;Hide(12);"><img name="but7" alt="Literature Request" border="0" height="25" width="150"></A></td></tr>');
document.write (vtrtdc + 'A HREF="'+ basewwwpath + 'contact/index.html" onMouseOver="but8.src=ImgArray[14].src;Show(9);" onMouseOut="but8.src=ImgArray[14].src;Hide(9);"><img name="but8" alt="Contact Us" border="0" height="25" width="150"></A></td></tr>');
document.write (vtrtdc + 'img name="spc2" border="0" height="35" width="1" src="'+imgpath+'"vspacer.gif"></td></tr>');
document.write ('<tr><td height=*>&nbsp;</td></tr>');
document.write ('</table></td><td width="20">&nbsp;</td>');
document.write ('<td width=575 height=* valign="top" align="center">');
document.write ('<table><tr><td align="center" valign="top"><img name="slog" height="35" width="566"></td></tr><tr><td valign="top">');
//document.write ('<table><tr><td align="center" valign="top"><nobr><img name="slog1" height="35" width="311"><img name="slog2" height="35" width="73"><img name="slog3" height="35" width="168"></nobr></td></tr><tr><td valign="top">');
	}

// -->
