function findLivePageWidth() {

	if (window.innerWidth)

		return window.innerWidth;

	if (document.body.clientWidth)

		return document.body.clientWidth;

	return (null);
 }


function initSlides() {		<!-- not using this f, 3 lines moved to f showSlide(evt). 3-22-09  -->
	objectSlide=document.getElementById('slide');
	objectCover=document.getElementById('cover');
	objectPhotoSlide=document.getElementById('photoSlide');
}


function showSlide(evt) {

var dSCITM = new Array (
["U102", "X Backed Settee", "white", "32 x 42 x 16"],
["U108", "Round Occasional Table", " pine, white", "28 x 30"],
["U1106", "X Base 6ft Dining Table", "white", "30 x 72 x 38"],
["U130A", "X Door Cabinet (2 pieces)", "white", "89 x 50 x 18"],
["U146", "One Drawer Gallery Table", "grey", "24 x 22 x 17.5"],
["U147", "Barley Twist Side Table", "black, cherry", "30 x 34 x 21"],
["U148", "Barley Twist End Table", "black, cherry", "26 x 24 x 20"],
["U149", "Barley Twist Tall End Table", "black, cherry", "30 x 24 x 20"],
["U259", "Round Mirror", "washed white", "28in. dia"],
["U262L", "Large Bamboo Mirror", "bamboo, pine", "36 x 24"],
["U302", "Plantation TV Wall Cabinet", "white", "41 x 58 x 9"],
["U303", "Small 1-Door/1 Drawer Cabinet", "cherry, white, pine", "34.5x22.5x17.5"],
["U304", "Small 2-Door Reeded Cabinet", "white", "31 x 20 x 15"],
["U312", "English Entertainment Center (2 pieces)", "cherry, white, pine", "81 x 43 x 23"],
["U316", "Sliding Door Buffet", "cherry, mahogany, pine", "34 x 68 x 21"],
["U320", "X Sided Cabinet", "mahogany, white", "28 x 40 x 18"],
["U325", "3 Tiered Bookcase", "Black Lacquer", "39 x 60 x 18"],
["U326", "Normandy Bookcase", "white", "82 x 26 x 18"],
["U327", "Sliding Door China Cabinet", "black", "85 x 68 x 21"],
["U328", "Gustavian Vitrine w/Glass Doors", "washed white", "88.5 x 59 x 18"],
["U330", "Large Sliding Door Bookcase", "black, oak", "98 x 104 x 20"],
["U344", "Plantation Entertainment Center w/Drawers", "mahogany, white", "87 x 49 x 24.5"],
["U352B", "Plantation Triple Door Sideboard", "mahogany, white", "34 x 60 x 17"],
["U353B", "Bamboo Buffet", "bamboo, pine", "36 x 36 x 19"],
["U402", "Large Chest", "black, cherry, white", "36 x 40.5 x 21"],
["U403", "Swedish Linen Chest", "white ", "32 x 37.5 x 19.5"],
["U407", "Lingerie Chest", "white", "55 x 30 x 18.5"],
["U408", "Chest w/Dental Molding", "pine", "35 x 44 x 21"],
["U421", "King End Table - 4 Drawers", "cherry, white", "32.5 x 32 x 19"],
["U427", "Diamond Chest", " pine", "35 x 44 x 19"],
["U428 ", "Bamboo Bow Front Chest/Bamboo", "bamboo", "30 x 39 x 23"],
["U430 ", "Louis XVI Hall Chest 3 Drawers", "cherry", "35 x 45 x 20"],
["U432", "Bamboo Hall Chest", " bamboo", "35 x 44 x 21"],
["U433", "Pawley Chest 2 Drawers over 2", "black, pine, white", "35 x 42 x 20"],
["U434", "Pawley Chest 3 Drawers over 4", "black, pine, white", "35 x 58.5 x 20"],
["U435", "Bamboo Dresser 3 Drawers over 4", "bamboo", "34 x 60 x22"],
["U500", "Tapered Leg Bench", "grey, White Lacquer", "21 x 48 x 17"],
["U504B", "Serpentine Chest - 3 Drawers", "white", "34 x 42 x 21 "],
["U506", "Swedish Round Occasional Table", "white", "30 x 30 dia"],
["U508", "Round Occasional Table w/Stretcher Base", "white", "31 x 34 dia"],
["U509", "Oval Side Table", "black, cherry, white", "29 x 27 x 23"],
["U510", "Manor Chair w/o Rope Trim", "white", "39 x 19 x 23"],
["U517", "D Shaped Buffet w/Reeded Front", "white", "40 x 60 x 20"],
["U518KLP", "Ursula Bed Low Profile - KING (3 yds) $90 Uph Fee", "cherry, white", "56 x 84 x 89"],
["U518QLP", "Ursula Bed Low Profile-QUEEN (2 yds) $75 Uph Fee", "cherry, white", "56 x 66 x 88 "],
["U518TLP", "Ursula Bed Low Profile - TWIN (1 yd) $45 Uph Fee", "cherry, white", "56 x 44 x 85"],
["U526", "3 Tier Table", "black, cherry, pine, white", "30.5 x 22 x 22"],
["U528", "Chest of Drawers 2 Drawers over 4", "cherry, white", "46 x 40 x 22"],
["U530", "Bench (uph seat) (1 yd)", "cherry, white", "20 x 48 x 17.5"],
["U532K", "Inga Bed - KING", "cherry", "63/39 x 82 x 88 "],
["U532Q", "Inga Bed - QUEEN", "cherry", "63/39 x 64 x 88 "],
["U532T", "Inga Bed - TWIN", "cherry", "63/39 x 42 x 80 "],
["U534K", "Sophia Bed w/Shell - KING", "white", "63/35 x 82 x 88 "],
["U534Q", "Sophia Bed w/Shell - QUEEN", "white", "63/35 x 64 x 88 "],
["U534T", "Sophia Bed w/Shell - TWIN", "white", "63/35 x 42 x 80 "],
["U542", "2-Tiered Side Table", "cherry, white", "30 x 20 x 20"],
["U545K", "Astrid 4 Post Barley Twist - KING (dbl hump)", "black", "84/54/19x84x88 "],
["U545Q", "Astrid 4 Poster Barley Twist - QUEEN (single hump)", "black", "84/54/19x65x88 "],
["U545T", "Astrid 4 Poster Barley Twist - TWIN (single hump)", "black", "84/54/19x44x80 "],
["U548", "Bar Stool Uph Seat (CH or BH)", "black, cherry, white", "43.5 x 17 x 18"],
["U557", "Perry Desk", "black w/cherry inside, white", "57 x 47 x 28"],
["U559A", "One Section Bookcase", "black w/cherry inside", "33.5 x 31.5 x 14"],
["U559B", "Double Section Bookcase", "black w/cherry inside", "33 x 63 x 14"],
["U561", "Small writing Desk- 5 Drawers", "cherry,white", "30 x 48 x 22"],
["U575K", "Carlton Bed - KING", "White Lacquer", "48/14 x 84 x 88"],
["U575Q", "Carlton Bed - QUEEN", "White Lacquer", "48/14 x 65 x 88"],
["U576K", "South Hampton Bed - KING", "black", "65/36 x 84 x 88 "],
["U576Q", "South Hampton Bed - QUEEN", "black", "65/36 x 65 x 88 "],
["U577K", "Pawley Bed - KING", "black, white", "56/28 x 84 x 89 "],
["U577Q", "Pawley Bed - QUEEN", "black, white", "56/28 x 65 x 89 "],
["U577T", "Pawley Bed - TWIN", "black, white", "56/28 x 44 x 80 "],
["U588", "Slatted Counter Height Stool", "cherry", "25.5 x 17 x 12"],
["U592K", "Marie Bed - KING (3 yards) $90 Uph Fee", "white", "56/25 x 82 x 84"],
["U592Q", "Marie Bed - QUEEN (2 yards) $75 Uph Fee", "white", "56/25 x 63 x 84"],
["U592T", "Marie Bed - TWIN (1 yard) $45 Uph Fee", "white", "56/25 x 44 x 80"],
["U595", "Edwardian Day Bed", "black, cherry", "41 x 91 x 43"],
["U596T", "Pawley Trundle Bed", "black, white", "46 x 86 x 41"],
["U598K", "Bamboo Bed - KING", "bamboo", "61/24 x 83 x 84"],
["U598Q", "Bamboo Bed - QUEEN", "bamboo", "61/24 x 64 x 87"],
["U598T", "Bamboo Bed - TWIN", "bamboo", "61/24 x 44 x 80"],
["U599T", "Spindle Day Bed", "mahogany, white", "35 x 86 x 44"],
["U601", "2 Section Bookcase/Ladder", "black w/cherry inside", "94 x 68 x 14.5"],
["U604", "3 Drawer Bookcase", "Black Lacquer", "84 x 52 x 15"],
["U605", "Double Bookcase", "black, grey", "35 x 48 x 12"],
["U606L", "Tall Bookcase", "black, grey", "71 x 24 x 12"],
["U607", "Secretary Desk w/Paneled Doors", "black w/cherry inside", "84 x 41 x 19/12"],
["U700", "Gripsholm 2-Seater Bench", "white", "40 x 43 x 25"],
["U702A", "Windsor Armchair", "black", "38.5 x 21 x 18.5"],
["U702S", "Windsor Side Chair", "black, cherry", "38.5 x 21 x 18.7"],
["U711", "Bellman Chair (upholstered seat)", "black, white", "39 x 19 x 16"],
["U714S", "Bamboo Side Chair", "bamboo", "36 x 22 x 19"],
["U717", "X Backed Side Chair", "black, white", "38 x 18 x 18"],
["U718", "X Backed Counter Stool", "black, white", "40 x 17 x 20"],
["U721S", "Ribbon Back Side Chair (uph seat)", "cherry", "38.5 x 21 x 21"],
["U725S", "Gustavian Side Chair", "white", "38 x 19 x 16"],
["U800", "End Table - 4 Drawers", "black, cherry, white", "29.5 x 25.5 x 18"],
["U803", "Scalloped End Table", "white", "26 x 22 x 17"],
["U806", "Bamboo Desk", " bamboo", "30 x 39 x 18"],
["U809", "English Occasional Table w/Stretcher", "cherry", "30.5 x 33 x 16.5"],
["U812", "One Drawer End Table", "White Lacquer", "29 x 28 x 18"],
["U815", "Tapered Leg Etagere", "grey", "38 x 36 x 18"],
["U817", "Barley Twist Etagere", "cherry, pine", "38 x 36 x 18"],
["U821", "Dining Table - Tapered Leg - 6' (knock down)", "cherry, pine", "30 x 72 x 38"],
["U826", "Lodge Triple Diamond Buffet", "pine", "40 x 72 x 22"],
["U828", "Rectangular Tapered Leg Table", "Black Lacquer", "30 x 72 x 36"],
["U829", "Tapered Leg Table", "Black Lacquer", "30 x 42 dia"],
["U832", "Cotswold Dining Table", "pine", "30 x 54 x 16"],
["U833", "Demilune 3 Drawer Chest", "cherry", "34 x 32 x 16"],
["U835", "Bamboo Side Table", "bamboo", "29 x 26 x 18"],
["U839", "2 Drawer Sofa Table w/Barley Twist Legs", "black, cherry", "30 x 57 x 17.5"],
["U842", "Cotswold Coffee Table", "pine", "20 x 42 x 42"],
["U844", "Federal Sideboard", "mahogany", "34 x 60 x 16"],
["U845", "2 Tiered Oval Table", "white", "27 x 26 x 17"],
["U846 ", "Loft Side Table", "mahogany, white", "27 x 24"],
["U847L", "Kitchen Island - 3 Drawers - Large", "pine", "36 x 78 x 38"],
["U847S", "Kitchen Island - 3 Drawers - Small", "pine, white", "36 x 66 x 38"],
["U850", "Coffee Table", "Black or White Lacquer", "17 x 48 x 24"],
["U854", "Deco Sideboard", "mahogany, White Lacquer, washed white", "34 x 72 x 16"],
["U859", "Normandy Coffee Table", "washed white", "20 x 42 x 36"],
["U861", "Tapered Leg Occasional table", "Black or White Lacquer", "24 x 22 dia"],
["U867", "2 Tiered Table", "black, white", "30 x 22 x 18"],
["U868", "Gustavian Small Chest w/Gallery", "cherry, white", "32 x 17 x 15"],
["U870", "Gustavian Buffet", "white", "43 x 48 x 20"],
["U871", "Tapered Leg Console Table", "grey", "38 x 65 x 15"],
["U873", "Round Occasional Table w/3 Shelves", "cherry, mahogany", "28 x 28 dia"],
["U875", "Barley Twist Rectangular Coffee Table", "cherry", "17 x 48 x 28"],
["U878", "Pawley Turned Leg Coffee Table", "pine, white", "19 x 48 x 24"],
["U879A", "X Base Square Dining Table", "black base w/cherry top, white", "30 x 42 x 42"],
["U879B", "X Base Square Tall Dining Table", "black base w/cherry top,white", "37 x 42 x 42"],
["U880", "Bamboo Coffee Table", "bamboo", "18 x 42 x 42"],
["U881", "Nested Table", "mahogany, white ", "22 x 20 x 19"],
["U882", "Two Drawer End Table", "White Lacquer", "29 x 20 x 13"],
["U887", "Pawley Tapered Leg Cafe Table - 2 Drawer", "black, white", "19 x 48 x 24"],
["U8886", "Dining - Farm Table 6ft", "pine", "30 x 72 x 36"],
["U892 ", "Pawley End Table - 1 Drawer 2 Shelf", "black, pine, white", "32 x 30 x 18"],
["U896A", "2 Door Column Buffet", "pine", "41 x 56 x 20"],
["U896B", "3 Door Column Buffet", "pine", "41 x 84 x 20"],
["U897", "Pawley TV Stand", "Black or White Lacquer, washed white", "24 x 66 x 18"],
["U101", "Settee", "white", "32 x 42 x 18"],
["U120C", "Quad Bookcase Open Top  (2 pieces)", "black", "90 x 94 x 13 / 16"],
["U201T", "Louis Philippe Panel Bed - TWIN ", "black,cherry", "55/34 x 44 x 80 "],
["U260", "Round Mirror", "mah,wh,pine,bl", "36"],
["U317", "Display Cabinet w/Chickenwire", "cherry,black", "40 x 27 x 13.5"],
["U322", "Demilune Cabinet", "white", "30 x 30 x 15"],
["U351", "Plantation Double  Door Sideboard w/Hutch", "mahogany", "87 x 43 x 17 "],
["U351B", "Plantation Double Door Sideboard", "mahogany, white", "34 x 40 x 17"],
["U352", "Plantation Triple Door Sideboard w/Hutch", "mah, white", "87 x 63 x 17"],
["U400", "Small Chest", "bl,ch,wh,mah", "36 x 37 x 19"],
["U405", "Triple French Buffet", "black, cherry", "40 x 72 x 22"],
["U406", "Gentleman's Chest - Vertical", "black,cherry", "50 x 44 x 22"],
["U411", "Hall Chest", "black", "33.5 x 42 x 23"],
["U412", "Gentlemen's Chest - Horizontal", "black,cherry", "34 x 64 x 23"],
["U416", "Cabinet w/Decanted Corner", " pine", "34 x 60 x 17"],
["U419", "Captain's Chest", "pine", "51 x 48 x 21"],
["U431", "Mountain Server", "pine", "36 x 42 x 21"],
["U440", "Bombe 2 over 3 Chest ", "mahogany", "48 x 44 x  20"],
["U505KH", "Cottage Headboard - KING $60 Upholstery Fee", "pine, white", "57 x 83"],
["U506M", "Swedish Round Occasional Table (knock down)", "white", "30 x 36"],
["U507", "Rectangular Mirror", "white,pine,mah", "42 x 30"],
["U513", "Oval Dining Table (knock down)(seats 6)", "white", "30 x 73 x 48"],
["U518K", "Ursula Bed - KING                         (8 yds)", "cherry, white", "56/39 x 84 x 88"],
["U529", "Dresser - 3 Drawers over 4 Drawers ", "cherry, white", "34 x 59 x 22"],
["U531", "Open Top Corner Cab (2 pieces)", "white", "77 x 34 x 23"],
["U533T", "Scalloped TWIN (ONLY) Bed", "white, unf", "83 x 43 x 80"],
["U542", "2-Tiered Side Table", "cherry, white", "30 x 20 x 20"],
["U547", "Bar Stool Wood Seat (CH or BH)", "cherry,black", "43.5 x 17 x 18"],
["U560", "Mirror", "Unfinished,white", "32 x 24"],
["U584", "Canopy Pelmet (half round) TWIN", "cherry, white", "18"],
["U590K", "Riley 4-Poster Bed - KING", "mahogany", "86 x 84 x 84 long"],
["U593QH", "Plantation Headboard", "unfinished ", "64 x 64"],
["U603S", "Small Bamboo Bookcase", "black", "46 x 42 x 12"],
["U703A", "Armlandstol Sidechair", "black, white", "38 x 25 x 22"],
["U703S", "Armlandstol Armchair", "white", "38 x 24 x 20"],
["U704", "Armlandstol Ottoman", "white", "18 x 24 x 18"],
["U710SFA02", "Charles II Sidechair Paisley/Cherry Fin", "cherry", "46 x 22 x 17"],
["U710AFA03", "Charles II Armchair Paisley/Cherry Fin", "cherry", "46 x 22 x 17"],
["U8076", "Double Knee Cabriole Table - 6' (knock down)", "cherry", "30 x 72 x 36"],
["U843", "Coffee Table - Shaker Style", "pine", "17 x 51 x 31"],
["U848", "Round Pedestal Table", "cherry", "30 x 30"],
["U855", "Nantucket Sofa Table", "white", "30 x 54 x 16"],
["U856", "Nantucket Square Coffee Table", "white ", "20 x 32 x 32"],
["U886", "Pawley  End Table -  1Drawer 1 Shelf ", "white", "26 x 24 x 18"],
["U890", "Gate Leg Oval Dining Table", "cherry", "30 x 60 x 36"],
["U894", "Double Pedestal Table/Desk", "black, mah", "25 x 30 "]
);

	objectSlide=document.getElementById('slide');
	objectCover=document.getElementById('cover');
	objectPhotoSlide=document.getElementById('photoSlide');
	objectphotoInfo=document.getElementById('photoInfo');

	var itemNum = evt.src.split("small/");
	var itemNum1 = itemNum[1];
	itemNum2 = itemNum1.replace(".jpg", "");
	

	objectPhotoSlide.innerHTML='<img src="../images/large/' + itemNum[1] +'" id="largePhoto"  alt="" border="0" />';
	objectPhotoSlide.innerHTML+='<p>';


for (i=0; i < dSCITM.length; i++) {
	if (dSCITM[i][0] == itemNum2)
	{
	objectphotoInfo.innerHTML='<span class="slideControl">CLOSE X<br /><br /><br /><br /></span><br /><br />' + dSCITM[i][0] + '<br />' + dSCITM[i][1];
	objectphotoInfo.innerHTML+='<br />FINISHES -&nbsp;' + dSCITM[i][2] + '<br />' + dSCITM[i][3];
	break;
	}
	else {
	objectphotoInfo.innerHTML='<span class="slideControl">CLOSE X</span><br />';
	}
}

	livePageWidth = findLivePageWidth();
	newLeft = ((livePageWidth/2)-80) - (200);
	objectSlide.style.left = newLeft + 'px';
	objectSlide.style.display = 'block';
	objectCover.style.display = 'block';
}


function hideSlide() {
	objectSlide.style.display = 'none';	
	objectCover.style.display = 'none';
}

