 var ns4;
 var ns6;
 var ie4;
	   
 browserName = navigator.appName;
 
 if (browserName == 'Netscape') {
      ns4 = (document.layers)? true:false;
	  ns6 = (document.getElementById)? true:false;
 }
 else if (browserName == 'Microsoft Internet Explorer') {
      ie4 = (document.all)? true:false;
 }
 
 // Set matilda table 
    var matilda_table = "<table width='360' border='1' align='center' cellpadding='4' cellspacing='0' bordercolor='#00567A'>";
       matilda_table = matilda_table + "<tr bgcolor='#00567A'> ";
                                  matilda_table = matilda_table + "<td height='15'><strong><font color='#FFFFFF' size='1' face='Arial, Helvetica, sans-serif'>Item</font></strong></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#FFFFFF'><strong><font size='1' face='Arial, Helvetica, sans-serif'>Length ";
                                  matilda_table = matilda_table + " (mm) </font></strong></font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#FFFFFF'><strong><font size='1' face='Arial, Helvetica, sans-serif'>Width ";
                                   matilda_table = matilda_table + "(mm) </font></strong></font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#FFFFFF'><strong><font size='1' face='Arial, Helvetica, sans-serif'>Height ";
                                  matilda_table = matilda_table + " (mm) </font></strong></font></div></td>";
                                  matilda_table = matilda_table + "</tr>";
                                  matilda_table = matilda_table + "<tr valign='top'> ";
                                  matilda_table = matilda_table + "<td height='15'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>Buffet</font></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>1800</font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>460</font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>900</font></div></td>";
                                  matilda_table = matilda_table + "</tr>";
                                  matilda_table = matilda_table + "<tr valign='top'> ";
                                  matilda_table = matilda_table + "<td height='15'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>Buffet ";
                                  matilda_table = matilda_table + " Hutch </font></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>1800</font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>460</font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>2050</font></div></td>";
                                  matilda_table = matilda_table + "</tr>";
                                  matilda_table = matilda_table + "<tr valign='top'> ";
                                  matilda_table = matilda_table + "<td height='15'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>Chair</font></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>450</font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>480</font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>Seat ";
                                  matilda_table = matilda_table + "465<br>";
                                   matilda_table = matilda_table + "Total 1000</font></div></td>";
                                  matilda_table = matilda_table + "</tr>";
                                 matilda_table = matilda_table + " <tr valign='top'> ";
                                  matilda_table = matilda_table + "<td height='15'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>Dining ";
                                  matilda_table = matilda_table + "Table </font></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>1800/2060/2360</font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>1070</font></div></td>";
                                  matilda_table = matilda_table + "<td height='15'> <div align='center'><font color='#00567A' size='1' face='Arial, Helvetica, sans-serif'>740</font></div></td>";
                                matilda_table = matilda_table + "</tr>";
                              matilda_table = matilda_table + "</table>";


 
 
 
 
function reveal_matilda(val) { 
   if (ns6) {
			ElementPresent = (document.getElementById(val))? true:false;
			var x = document.getElementById('matilda_val').value;
  		}
  		else if (ie4) {
			ElementPresent = (document.all[val])? true:false;
			var x = document.all["matilda_val"].value;
  		}
  		else if (ns4) {
			ElementPresent = (document.layers[val])? true:false;
			var x = document.layers["matilda_val"].value;
  		}
   
   
   
   if (ElementPresent) {
   		if (val == 'div_matilda') {
		  //alert(document.getElementById(val).innerHTML);
		  if (x == 1) { 
		    
		   	if (ie4) {
			    document.all["matilda_val"].value = 0;
    		    document.all[val].innerHTML = matilda_table;
				document.all["matilda_text"].innerHTML = 'Click arrow to <strong><u>close</u></strong> the matilda product specifications.';
  			}
			else if (ns6) {
			    document.getElementById('matilda_val').value = 0;
				document.getElementById(val).innerHTML = matilda_table;
				document.getElementById('matilda_text').innerHTML = 'Click arrow to <strong><u>close</u></strong> the matilda product specifications.';
			}
						
		} 
		else if (x == 0) {
	  		
			if (ns6) {
			    document.getElementById('matilda_val').value = 1;
				document.getElementById(val).innerHTML = '';
				document.getElementById('matilda_text').innerHTML = 'Click arrow to open the matilda product specifications.';
			}
			else if (ie4) {
				document.all["matilda_val"].value = 1;
				document.all[val].innerHTML = '';
				document.all["matilda_text"].innerHTML = 'Click arrow to open the matilda product specifications.';
			}
			
	    } //  else if (x == 0)
	  
	  }
	}
}
 
