function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}



/***********************************************
* Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
* Copyright 2002-2007 by Sharon Paine
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* IMPORTANT: Put script after tooltip div or 
	 put tooltip div just before </BODY>. */

var dom = (document.getElementById) ? true : false;
var ns5 = (!document.all && dom || window.opera) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ie4 && !ie5 && !dom) ? true : false;

var origWidth, origHeight;

// avoid error of passing event object in older browsers
if (nodyn) { event = "nope" }

///////////////////////  CUSTOMIZE HERE   ////////////////////
// settings for tooltip 
// Do you want tip to move when mouse moves over link?
var tipFollowMouse= true;	
// Be sure to set tipWidth wide enough for widest image
var tipWidth= 250;
var offX= 20;	// how far from mouse to show tip
var offY= 12; 
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "8pt";
// set default text color and background color for tooltip here
// individual tooltips can have their own (set in messages arrays)
// but don't have to
var tipFontColor= "#000000";
var tipBgColor= "#DDECFF"; 
var tipBorderColor= "#004c8b";
var tipBorderWidth= 3;
var tipBorderStyle= "ridge";
var tipPadding= 4;

// tooltip content goes here (image, description, optional bgColor, optional textcolor)
var messages = new Array();
// multi-dimensional arrays containing: 
// image and text for tooltip
// optional: bgColor and color to be sent to tooltip
messages[0] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Almond_2.jpg','Almond (51% Olefin, 49% Polyester)',"#FFFFFF");
messages[1] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Beach_2.jpg','Beach (100% polyester)',"#ffffff");
messages[2] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Blue_2.jpg','Blue (100% polyester)','#ffffff');
messages[3] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/BurgundyV_2.jpg','Burgundy (100% Vinyl)','#ffffff');
messages[4] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/ChestnutV_2.jpg','New Chestnut (100% Vinyl)','#ffffff');
messages[5] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Emerald_2.jpg','Emerald (46% Polyester, 31% Olefin, 21% Acrylic, 2% Nylon)','#ffffff');
messages[6] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Expresso_2.jpg','Expresso (100% polyester)','#ffffff');
messages[7] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Glacier_2.jpg','Glacier (51% Olefin, 49% Polyester)','#ffffff');
messages[8] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Keylime_2.jpg','Keylime (100% polyester)','#ffffff');
messages[9] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Merlot_2.jpg','Merlot (46% Polyester, 31% Olefin, 21% Acrylic, 2% Nylon)','#ffffff');
messages[10] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/MidnightBlue_2.jpg','Midnight Blue (46% Polyester, 31% Olefin, 21% Acrylic, 2% Nylon)','#ffffff');
messages[11] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Mocha_2.jpg','Mocha (46% Acrylic, 40% Polyester, 9% Cotton, 5% Nylon)','#ffffff');
messages[12] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/MushroomV_2.jpg','Mushroom (100% Vinyl)','#ffffff');
messages[13] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Navy_2.jpg','Navy (100% polyester)','#ffffff');
messages[14] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/NewKhaki_2.jpg','New Khaki (100% polyester)','#ffffff');
messages[15] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/NewLatte_2.jpg','New Latte (100% polyester)','#ffffff');
messages[16] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Oatmeal_2.jpg','Oatmeal (51% Olefin, 49% Polyester)','#ffffff');
messages[17] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Olive_2.jpg','Olive (100% polyester)','#ffffff');
messages[18] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Raspberry_2.jpg','Raspberry (51% Olefin, 49% Polyester)','#ffffff');
messages[19] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/RoseTwist_2.jpg','Rose Twist','#ffffff');
messages[20] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/RoyalBlueV_2.jpg','Royal Blue (100% Vinyl)','#ffffff');
messages[21] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Sage_2.jpg','Sage (84% Olefin, 16% Polyester)','#ffffff');
messages[22] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/AquamarineP_2.jpg','Aquamarine (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[23] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/BriarwoodP_2.jpg','Briarwood (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[24] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/BronzeP_2.jpg','Bronze (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[25] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/CamelP_2.jpg','Camel (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[26] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/CashmereP_2.jpg','Cashmere (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[27] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/DogwoodP_2.jpg','Dogwood (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[28] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/EbonyP_2.jpg','Ebony (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[29] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/FieldsP_2.jpg','Fields (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[30] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/GeorgianP_2.jpg','Georgian (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[31] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/HorseHairP_2.jpg','Horse Hair (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[32] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/HunterP_2.jpg','Hunter (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[33] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/LavenderP_2.jpg','Lavender (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[34] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/LeatherP_2.jpg','Leather (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[35] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/LinenP_2.jpg','Linen (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[36] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/LodenP_2.jpg','Loden (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[37] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/ManorP_2.jpg','Manor (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[38] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/MerlotP_2.jpg','Merlot (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[39] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/MossP_2.jpg','Moss (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[40] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/ParchmentP_2.jpg','Parchement (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[41] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/PearlP_2.jpg','Pearl (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[42] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/SaddleP_2.jpg','Saddle (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[43] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/ShetlandP_2.jpg','Shetland (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[44] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/SunShowerP_2.jpg','Sun Shower (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[45] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/TudorP_2.jpg','Tudor (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[46] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/AtlanticP_2.jpg','Atlantic (100% Polyurethane surface with 65% Polyester and 35% Rayon Backing)','#ffffff');
messages[47] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/BuffUL_2.jpg','Buff (100% Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[48] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/FudgeUL_2.jpg','Fudge (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[49] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/GarnetUL_2.jpg','Garnet (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[50] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/GraniteUL_2.jpg','Granite (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[51] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/MysticUL_2.jpg','Mystic (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[52] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/NileUL_2.jpg','Nile (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[53] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/PecanUL_2.jpg','Pecan (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[54] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/PralineUL_2.jpg','Praline (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[55] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/RavenWingUL_2.jpg','Raven Wing (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[56] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/ShetlandUL_2.jpg','Shetland (Polyurethane surface with 100% Rayon Backing)','#ffffff');
messages[57] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Berry_2.jpg','Berry (100% polyester)','#ffffff');
messages[58] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Chocolate_2.jpg','Chocolate (100% polyester)','#ffffff');
messages[59] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Coffee_2.jpg','Coffee (100% polyester)','#ffffff');
messages[60] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Camel_2.jpg','Camel (100% polyester)','#ffffff');
messages[61] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Maple_2.jpg','Maple (100% polyester)','#ffffff');
messages[62] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Marine_2.jpg','Marine (100% Nylon)','#ffffff');
messages[63] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Moss_2.jpg','Moss (100% Nylon)','#ffffff');
messages[64] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Taupe_2.jpg','Taupe (100% Nylon)','#ffffff');
messages[65] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Wheat_2.jpg','Wheat (100% Nylon)','#ffffff');
messages[66] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Wine_2.jpg','Wine (100% Nylon)','#ffffff');
messages[67] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Cappuccino_2.jpg','Cappuccino (100% Polyester)','#ffffff');
messages[68] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Clover_2.jpg','Clover (100% Polyester)','#ffffff');
messages[69] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Ginger_2.jpg','Ginger (100% Polyester)','#ffffff');
messages[70] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Gumball_2.jpg','Gumball (100% Polyester)','#ffffff');
messages[71] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Malt_2.jpg','Malt (100% Polyester)','#ffffff');
messages[72] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Oyster_2.jpg','Oyster (100% Polyester)','#ffffff');
messages[73] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Pickle_2.jpg','Pickle (100% Polyester)','#ffffff');
messages[74] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Soy_2.jpg','Soy (100% Polyester)','#ffffff');
messages[75] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Terra_Cotta_2.jpg','Terra Cotta (100% Polyester)','#ffffff');
messages[76] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Black_VinylV_2.jpg','Black Vinyl (100% Vinyl)','#ffffff');
messages[77] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Cocoa_2.jpg','Cocoa (100% Polyester)','#ffffff');
messages[78] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Fern_2.jpg','Fern (100% Polyester)','#ffffff');
messages[79] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Sandal_2.jpg','Sandal (100% Polyester)','#ffffff');
messages[80] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Sky_2.jpg','Sky(100% Polyester)','#ffffff');
messages[81] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Celery_2.jpg','Celery','#ffffff');
messages[82] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Cream_2.jpg','Cream','#ffffff');
messages[83] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/RedPepper_2.jpg','Red Pepper','#ffffff');
messages[84] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/VanillaBean_2.jpg','Vanilla Bean','#ffffff');
messages[85] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Brass_2.jpg','Brass','#ffffff');
messages[86] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Herb_2.jpg','Herb','#ffffff');
messages[87] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Slate_2.jpg','Slate','#ffffff');
messages[88] = new Array('http://www.pridemobility.com/liftchairs/images/fabrics/Truffle_2.jpg','Truffle','#ffffff');

////////////////////  END OF CUSTOMIZATION AREA  ///////////////////

// preload images that are to appear in tooltip
// from arrays above
if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = messages[i][0];
  }
}

// to layout image and text, 2-row table, image centered in top cell
// these go in var tip in doTooltip function
// startStr goes before image, midStr goes between image and text
var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var midStr = '" border="0"></td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';

////////////////////////////////////////////////////////////
//  initTip	- initialization for tooltip.
//		Global variables for tooltip. 
//		Set styles
//		Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = tooltip.style;
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		document.onmousemove = trackMouse;
	}
}

//window.onload = initTip;
addLoadEvent(initTip);

/////////////////////////////////////////////////
//  doTooltip function
//			Assembles content for tooltip and writes 
//			it to tipDiv
/////////////////////////////////////////////////
var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num) {
	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	// set colors if included in messages array
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	if (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
		tipcss.backgroundColor = curBgColor;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
	else t1=setTimeout("tipcss.visibility='visible'",100);
}

var mouseX, mouseY;
function trackMouse(evt) {
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
	mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	if (tipOn) positionTip(evt);
}

/////////////////////////////////////////////////////////////
//  positionTip function
//		If tipFollowMouse set false, so trackMouse function
//		not being used, get position of mouseover event.
//		Calculations use mouseover event position, 
//		offset amounts and tooltip width to position
//		tooltip within window.
/////////////////////////////////////////////////////////////
function positionTip(evt) {
	if (!tipFollowMouse) {
		mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
		mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;
	var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = mouseX-(tpWd+offX)+"px";
	else tipcss.left = mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = winHt-(tpHt+offY)+"px";
	else tipcss.top = mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}

document.write('<div id="tipDiv" style="position:absolute; visibility:hidden; z-index:100"></div>')