

		function gopho(){
		var photz = '\r\n\t\t\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td><img src=\"/images/titlegrad.jpg\" width=\"30\"></td>\r\n\t\t\t\t\t\t\t<td bgcolor=\"DDEEF6\" class=\"copy\" width=\"100%\" align=\"left\"><strong>Product Photos</strong></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t<table>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t<div class=\"imageF\">&nbsp; Other product images (Click image to enlarge)</div><BR>\r\n\t\t\t\t\t\t\t\t&nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'094.jpg\', 297,384,542,700);\"><img alt=\"060 - Show this image\" border=\"0\" src=\"/images/products/559/tn094.jpg\" height=\"66\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'Berkline-Recliners-060-3133-87.jpg\', 307,384,576,720);\"><img alt=\"060 - Show this image\" border=\"0\" src=\"/images/products/559/tnBerkline-Recliners-060-3133-87.jpg\" height=\"64\" width=\" 51\"></a> <BR> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'Berkline-Recliners-060-7061-74(2).jpg\', 298,384,524,675);\"><img alt=\"060 - Show this image\" border=\"0\" src=\"/images/products/559/tnBerkline-Recliners-060-7061-74(2).jpg\" height=\"66\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'Berkline-Recliners-060-9346-89.jpg\', 350,376,504,542);\"><img alt=\"060 - Show this image\" border=\"0\" src=\"/images/products/559/tnBerkline-Recliners-060-9346-89.jpg\" height=\"55\" width=\" 51\"></a> <BR> \r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t<td width=\"50\">&nbsp;</td>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div id=\"productImage\">\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:enlarge(\'094.jpg\', 542, 700)\"><img alt=\"060 - Show Larger Image\" src=\"/images/products/559/s094.jpg\" width=\" 297\" height=\"384\" border=\"0\"></a>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div><span id=\"picDesc\" class=\"small\"></span></div>\r\n\t\t\t\t\t\t\t\t<script>\r\n\t\t\t\t\t\t\t\tdocument.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\'\r\n\t\t\t\t\t\t\t\t</script>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t\t\r\n\t\t\t\t\t<BR><a href=\"#orderBox\"><img src=\"/images/buynow.gif\"  border=\"0\" alt=\"customize and buy now\"></a>\r\n\t\t\t\t\t';
		document.getElementById('phtid').innerHTML=photz;
		
			document.getElementById('picDesc').innerHTML='<strong></strong>'
		
		}

		function popImage(URL, w,h) {
			day = new Date();
			id = day.getTime();
			eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + (w+16) + ",height=" + (h+16) + "');");
		}
		function enlarge(num,w ,h){
			popImage('/images/products/559/' + num , w,h)
		}
        function zoom(n){
			windowOpener("700", "980", "zm559", '/zoom.cfm?c=559&n=' +  n)
       }

		function showz(num,w,h,x,y){
			document.getElementById('productImage').innerHTML='<a href="javascript:zoom(\'o' + num + '\')"><img alt="060 - Show Larger Image" border="0" src="/images/products/559/s' + num + '" width=' + w + '" height=' + h + '></a>';
		}

		function showpsdz(num,w,h,x,y,i){
			document.getElementById('productImage').innerHTML='<a href="javascript:doshowpsdz(\'' + i + '\')"><img alt="060 - Show Larger Image" border="0" src="/images/products/559/s' + num + '" width=' + w + '" height=' + h + '></a>';
		}
		function doshowpsdz(i){
		windowOpener(700,900,'z','/images/zoom/' + i );
		}
	
		function show(num,w,h,x,y){
			document.getElementById('productImage').innerHTML='<a href="javascript:enlarge(\'' + num + '\',' + x + ',' + y + ')"><img alt="060 - Show Larger Image" border="0" src="/images/products/559/s' + num + '" width=' + w + '" height=' + h + '></a>';
		}
	gotab = function (selectedTabPaneId) {
		var tabContainer,selectedTabPane,tabWrap,tabs,tabPaneWrap,tabPanes, selectedIndex;
		with (org.ditchnet) {
			selectedTabPane = document.getElementById(selectedTabPaneId);
			tabContainer    = dom.DomUtils.getFirstAncestorByClassName(
											selectedTabPane,
											jsp.TabUtils.TAB_CONTAINER_CLASS_NAME );
			tabWrap			= dom.DomUtils.getFirstChildByClassName(
											tabContainer,
											jsp.TabUtils.TAB_WRAP_CLASS_NAME );
			tabs			= dom.DomUtils.getChildrenByClassName(
											tabWrap,
											jsp.TabUtils.TAB_CLASS_NAME );
			tabPaneWrap		= dom.DomUtils.getFirstAncestorByClassName(
											selectedTabPane,
											jsp.TabUtils.TAB_PANE_WRAP_CLASS_NAME );
			tabPanes		= dom.DomUtils.getChildrenByClassName(
											tabPaneWrap,
											jsp.TabUtils.TAB_PANE_CLASS_NAME );
			for (var i = 0; i < tabPanes.length; i++) {
				if (tabPanes[i] == selectedTabPane) {
					selectedIndex = i;
					break;
				}
			}
			jsp.TabUtils.switchTab(tabs[selectedIndex]);
			if (selectedTabPaneId=='Materials')
				goMaterials();
		}
	};
	function myListener(evt) {
			
		    var selectedTabPane = evt.getTabPane();
			if (selectedTabPane){
			    var selectedTab  = evt.getTab();     
			    var tabContainer = evt.getTabContainer();
				//document.location.href=selectedTabPane.id+'.do?n=40A3722A-7D90-B208-F984-09AD287A1188&orgDitchnetTabPaneId=' + selectedTabPane.id;
				//alert(selectedTabPane.id);
				
				if (document.getElementById(selectedTabPane.id + '-d')){
					document.getElementById(selectedTabPane.id + '-d').innerHTML=eval(selectedTabPane.id + 'z');
				}
				if (selectedTabPane.id=='Materials'){
					goMaterials();		
				}
			}
		}	

		function goMaterials(){
			
				if (document.getElementById('Microfiber-d')){
					document.getElementById('Microfiber-d').innerHTML=eval('Microfiberz');
					document.getElementById('Microfiber').style.display='block';
				}
				if (document.getElementById('standard-d')){
					document.getElementById('standard-d').innerHTML=eval('standardz');
					document.getElementById('standard-d').style.display='block';
				}
				if (document.getElementById('ultra-d')){
					document.getElementById('ultra-d').innerHTML=eval('ultraz');
					document.getElementById('ultra-d').style.display='block';
				}
				if (document.getElementById('premium-d')){
					document.getElementById('premium-d').innerHTML=eval('premiumz');
					document.getElementById('premium-d').style.display='block';
				}
				if (document.getElementById('nusuede-d')){
					document.getElementById('nusuede-d').innerHTML=eval('nusuedez');
					document.getElementById('nusuede-d').style.display='block';
				}
				if (document.getElementById('velour-d')){
					document.getElementById('velour-d').innerHTML=eval('velourz');
					document.getElementById('velour-d').style.display='block';
				}
		}

		
		function updatePrice(){}
		
