
							var appn = navigator.appName;
							function updateLeatherOptions(){
								if (document.getElementById('orderForm') && document.getElementById('orderForm').material){
									if (document.getElementById('orderForm').material.value==1 || document.getElementById('orderForm').material.value==5){
										
										if (document.getElementById('orderForm').material.value==1){
											if (document.getElementById('typeNameDiv'))
												document.getElementById('typeNameDiv').innerHTML='Microfiber';
										} else {
											if (document.getElementById('typeNameDiv'))
												document.getElementById('typeNameDiv').innerHTML='Premium Microfiber';
										}
										if (appn=='Netscape')  {
											//document.getElementById('leatherTypeDiv').style.height='0px';
											document.getElementById('leatherTypeDiv').style.display='none';
										} else{
											document.getElementById('leatherTypeDiv').innerHTML='';
										}		
									} else {
										
										if (document.getElementById('typeNameDiv')){
											if (document.getElementById('orderForm').material.value==2)
												document.getElementById('typeNameDiv').innerHTML='Standard Leather';
											else if (document.getElementById('orderForm').material.value==3)
												document.getElementById('typeNameDiv').innerHTML='Premium Leather';
											else if (document.getElementById('orderForm').material.value==4)
												document.getElementById('typeNameDiv').innerHTML='Ultra Leather';
											else if (document.getElementById('orderForm').material.value==6)
												document.getElementById('typeNameDiv').innerHTML='Nusuede';
											else if (document.getElementById('orderForm').material.value==7)
												document.getElementById('typeNameDiv').innerHTML='Velour';
											};
										if (appn=='Netscape')  {
											document.getElementById('leatherTypeDiv').style.display='block';
											if (document.getElementById('orderForm').material.value==2){
												document.getElementById('premiumAllLeatherDiv').style.display='none';
												document.getElementById('ultraAllLeatherDiv').style.display='none';
												document.getElementById('standardAllLeatherDiv').style.display='block';
											} else if (document.getElementById('orderForm').material.value==3) {
												document.getElementById('standardAllLeatherDiv').style.display='none';
												document.getElementById('ultraAllLeatherDiv').style.display='none';
												document.getElementById('premiumAllLeatherDiv').style.display='block';
											} else {
												document.getElementById('standardAllLeatherDiv').style.display='none';
												document.getElementById('premiumAllLeatherDiv').style.display='none';
												document.getElementById('ultraAllLeatherDiv').style.display='block';
											}
										} else{
											document.getElementById('leatherTypeDiv').innerHTML='';
											if (document.getElementById('orderForm').material.value==2){
												document.getElementById('leatherTypeDiv').innerHTML='';
											} else if (document.getElementById('orderForm').material.value==3){ 
												document.getElementById('leatherTypeDiv').innerHTML='';
											} else {
												document.getElementById('leatherTypeDiv').innerHTML='\r\n\t\t<table width=\"100%\" border=\"0\">\r\n\t\t\t<tr>\r\n\t\t\t\t<td width=\"2\"></td>\r\n\t\t\t\t<td width=\"75\" class=\"config\"></td>\r\n\t\t\t\t<td class=\"config\"  width=\"\">\r\n\t\t\t\t\r\n\t\t\t\t\t<input type=\"hidden\" name=\"allLeatherU\" value=\"2\">\r\n\t\t\t\t\t\r\n\t\t\t\t</td>\r\n\t\t\t\t<td width=\"2\"></td>\r\n\t\t\t</tr>\r\n\t\t</table>\r\n';
											}
										}		
									}
								}
							}
							updateLeatherOptions();
							

		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(\'z1.jpg\', 350,350,750,750);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tnz1.jpg\" height=\"51\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000050.jpg\', 350,350,800,800);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000050.jpg\" height=\"51\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000052.jpg\', 350,350,800,800);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000052.jpg\" height=\"51\" width=\" 51\"></a> <BR> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000054.jpg\', 350,316,800,723);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000054.jpg\" height=\"46\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000056.jpg\', 350,277,800,633);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000056.jpg\" height=\"40\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000383.jpg\', 268,384,558,800);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000383.jpg\" height=\"71\" width=\" 50\"></a> <BR> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000385.jpg\', 293,384,610,800);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000385.jpg\" height=\"67\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000387.jpg\', 350,202,800,462);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000387.jpg\" height=\"29\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000390.jpg\', 347,384,723,800);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000390.jpg\" height=\"56\" width=\" 51\"></a> <BR> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00000709.jpg\', 347,384,723,800);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00000709.jpg\" height=\"56\" width=\" 51\"></a> &nbsp; &nbsp; <a onclick=\"document.getElementById(\'picDesc\').innerHTML=\'<strong></strong>\';\" href=\"javascript:show(\'00001275.jpg\', 350,231,800,528);\"><img alt=\"HT-125 - Show this image\" border=\"0\" src=\"/images/products/595/tn00001275.jpg\" height=\"34\" width=\" 51\"></a> \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(\'z1.jpg\', 750, 750)\"><img alt=\"HT-125 - Show Larger Image\" src=\"/images/products/595/sz1.jpg\" width=\" 350\" height=\"350\" 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/595/' + num , w,h)
		}
        function zoom(n){
			windowOpener("700", "980", "zm595", '/zoom.cfm?c=595&n=' +  n)
       }

		function showz(num,w,h,x,y){
			document.getElementById('productImage').innerHTML='<a href="javascript:zoom(\'o' + num + '\')"><img alt="HT-125 - Show Larger Image" border="0" src="/images/products/595/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="HT-125 - Show Larger Image" border="0" src="/images/products/595/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="HT-125 - Show Larger Image" border="0" src="/images/products/595/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(){}
		
