<!--

//  ********************************************************
//  This function fabricates a new virtual page and displays the requested compatibility information.
//  Pass parameter definitions:
//		"A" - Displays compatibility list A, "Products having an internal 2.825" x 20 thread"
//		"B" - Displays list B, "Products that mount on an external 3½" x 8 thread"
//		"C" - Displays list C - Products having an external 3½" x 8 thread
//      "D" - Displays list D - Telescopes having diameter of 2.25"
//      "E" - Displays list E - Products receiving 504 & similar light sources
//  ********************************************************



function Compatibility(List)
{

// First put the List title together depending upon which list is requested

switch(List)
{
  case "A":
    var HeaderList ="<font face='Verdana' size='2'><b>List &quot;A&quot; - Products having an internal 2.825&quot; x 20 thread</b></font>";
	break;
	
  case "B":
    var HeaderList ="<font face='Verdana' size='2'><b>List &quot;B&quot; - Products that have an internal 3½&quot; x 8 thread</b></font>";
	break;
	
  case "C":
    var HeaderList ="<font face='Verdana' size='2'><b>List &quot;C&quot; - Products having an external 3½&quot; x 8 thread</b></font>";
	break;
	
  case "D":
    var HeaderList ="<font face='Verdana' size='2'><b>List &quot;D&quot; - Telescopes having an outer diameter of 2¼&quot;</b></font>";
	break;
	
  case "E":
    var HeaderList ="<font face='Verdana' size='2'><b>List &quot;E&quot; - Products receiving 504, 504-R, or 505 Series light sources, using adapters provided</b></font>";
	break;
}

// Construct the actual product listing content of each list:

switch(List)
{
  case "A":
    var ProdList ="<font face='Verdana' size='2'><ul><li>198-1 Trivet</li><br>";
    ProdList +="<li>230, 231, 232, 233 Heavy Duty Stands (fits in intermediate tubes)</li><br>";
    ProdList +="<li>235-6 Surface Mount Adapter<br><li>237 Groundhog Stand</li><br><li>239 Pedestal Stand</li><br>";
    ProdList +="<li>370-4 Pedestal Stand (fits in intermediate tube)</li><br>";
    ProdList +="<li>801-1, 810 Portable Stands (fits in intermediate tubes)</li><br>";
    ProdList +="<li>15084 Precision Lift Adapter</li></ul></font>";
    break;
    
  case "B":
    var ProdList ="<table border='0' width='100%' cellspacing='0' cellpadding='2'>";
    ProdList +="<tr><td width='50%' valign='top' align='left'><font face='Verdana' size='2'>";
    ProdList +="<ul><li>76RH Transit (and the discontinued 75-H Transit)</li><br>";
	ProdList +="<li>88-6, 89 Bases</li><br>";
	ProdList +="<li>234-x Stand Extensions (all lengths)</li><br>";
	ProdList +="<li>235-5, 235-15 Theodolite Adapters</li><br>";
    ProdList +="<li>235-17 Dovetail Adapter</li><br>";
    ProdList +="<li>235-H Lateral Slide (discontinued)</li><br>";
    ProdList +="<li>273-5 Lateral Adjuster (discontinued)</li><br>";
    ProdList +="<li>284-3 Mirror Mount (discontinued)</li><br>";
    ProdList +="<li>545-1 Precision Tilting Level</li></ul</font></td>";
    ProdList +="<td width='50%' valign='top' align='left'><font face='Verdana' size='2'>";
    ProdList +="<ul><li>800-MOD Precision Lift & Adapter</li><br>";
    ProdList +="<li>3010 Precision Tilting Level (discontinued)</li><br>";
    ProdList +="<li>5060 Precision Lift (discontinued)</li><br>";
    ProdList +="<li>5085 Lateral Adjuster (discontinued)</li><br>";
    ProdList +="<li>5087 Compound Lateral Adjuster (discontinued)</li><br>";
    ProdList +="<li>5144 Cup Mount Adapter</li><br>";
    ProdList +="<li>5150 Alignment Telescope Base</li><br>";
    ProdList +="<li>5191 &quot;T&quot;-Slotted Base Plate</li><br>";
    ProdList +="<li>15084 Precision Lift Adapter</li><br>";
    ProdList +="<li>B46632 Swivel Head Adapter</li></ul></font></td>";
    ProdList +="</tr></table>";
   break;
   
  case "C":
    var ProdList ="<table border='0' width='100%' cellspacing='0' cellpadding='2'>";
    ProdList +="<tr><td width='50%' valign='top' align='left'><font face='Verdana' size='2'>";
    ProdList +="<ul><li>198-1 Trivet</li><br>";
    ProdList +="<li>230, 230-0, 230-2, 230-HO, 230-H, and 230-HC Heavy Duty Stands</li><br>";
    ProdList +="<li>231, 231-0, 231-2, 231-HO, 231-H, and 231-HC Heavy Duty Stands</li><br>";
    ProdList +="<li>232, 232-0, 232-2, 232-HO, 232-H, 232-HC, 232-SP120, and 232-SP-MOD Heavy Duty Stands</li><br>";
    ProdList +="<li>233, 233-0, 233-2, 233-HO, 233-H, and 233-HC Heavy Duty Stands</li><br>";
    ProdList +="<li>235-3 Hollow Adapter</li><br>";
    ProdList +="<li>235-6 Adapter</li><br>";
    ProdList +="<li>235-10 Adapter (discontinued)</li><br>";
    ProdList +="<li>235-12 Adapter</li><br>";
    ProdList +="<li>235-18 Adapter</li></ul></font></td>";
    ProdList +="<td width='50%' valign='top' align='left'><font face='Verdana' size='2'>";
    ProdList +="<ul><li>237 Groundhog Stand</li><br>";
    ProdList +="<li>239, 239-0, 239-2, 239-R Pedestal Stands</li><br>";
    ProdList +="<li>330, 331, 333 Pedestal Stands</li><br>";    
    ProdList +="<li>370-4 Pedestal Stand</li><br>";
    ProdList +="<li>800-MOD Precision Lift Adapter</li><br>";
    ProdList +="<li>801-1, 810 Portable Stands</li><br>";
    ProdList +="<li>5016, 5025 Stands (discontinued)</li><br>";
    ProdList +="<li>5030, 5035 Portable Stands</li><br>";
    ProdList +="<li>5060 Precision Lift (discontinued)</li><br>";
    ProdList +="<li>5070 Trivet (discontinued)</li><br>";
    ProdList +="<li>5085 Lateral Adjuster (discontinued)</li><br>";
    ProdList +="<li>5087 Compound Lateral Adjuster (discontinued)</li><br>";
    ProdList +="<li>5146 Compound Lateral Adjuster</li><br>";
    ProdList +="<li>B46632 Swivel Head Adapter</li><br>";
    ProdList +="<li>M-Series portable stands</li></ul></font></td></tr></table>";
  break;
  
  case "D":
    var ProdList ="<table border='0' width='100%' cellspacing='0' cellpadding='2'>";
    ProdList +="<tr><td valign='top' align='left' colspan=2><font face='Verdana' size='2'>";
    ProdList +="<ul><li>271 Tilt Collimator</li><br>";
	ProdList +="<li>272-15 Multiple Target Collimator</li><br>";
	ProdList +="<li>2022, 2022-02, 2024, 2024-02, 2024BL, and 2030 Alignment Telescopes</li><br>";
	ProdList +="<li>2023 and C47280 Alignment Telescopes</li><br>";
	ProdList +="<li>2062 Alignment Telescope</li><br>";
    ProdList +="<li>Also the following discontinued products: 81 (all versions), 82, 83 (all versions), 4010</li></ul>";
    ProdList +="</font></td></tr></table>";
   break;
   
  case "E":
    var ProdList ="<table border='0' width='100%' cellspacing='0' cellpadding='2'>";
    ProdList +="<tr><td valign='top' align='left' colspan=2><font face='Verdana' size='2'>";
    ProdList +="<ul><li>76-RH Cross-axis telescope</li><br>";
    ProdList +="<li>193-L, 196-1 Eyepiece Accessories</li><br>";
    ProdList +="<li>191, 192 Eyepiece Accessories (discontinued)</li><br>";
    ProdList +="<li>271 Tilt Collimator</li><br>";
    ProdList +="<li>272-15 Multiple Target Collimator</li><br>";
    ProdList +="<li>381 Alignment Telescope</li><br>";
    ProdList +="<li>Also the following discontinued alignment telescopes: 81 (all versions), 82, 83, 83-1, 83-3, 83-4, 83-10,  83-11, 83-12, 83-13, 83-14, 83-16, 83-17, 83-18, 83-19, 83-20, 83-21,  83-1-3, 83-1-4, 83-1-M, 83-M</li></ul>";
    ProdList +="</font></td></tr></table>";
   break;
}

// Set the height of the new window based on which list is displayed

switch(List)
{
  case "A":
    var High = 420;
	break;
	
  case "B":
    var High = 535;
	break;
	
  case "C":
    var High = 550;
	break;
	
  case "D":
    var High = 450;
	break;

  case "E":
    var High = 450;
	break;

}


//  Construct the content of the virtual page, with table to hold the table of information and a "close window" button.

var Content ="<html><head>";
Content +="<title>Compatibility List</title></head>";
Content +="<body><div align='center'><center>";
Content +="<br><br><table border='2' width='95%' bordercolor='#C0C0C0' cellspacing='0' ";
Content +="cellpadding='5' height='1' style='border-collapse: collapse' id='table1'>";
Content +="<tr><td height='25' bgcolor='#C0C0C0'>";
Content +="<p align='center'>";
Content +=HeaderList;
Content +="</td></tr><tr><td>";
Content +=ProdList;
Content +="</td></tr></table><br>";
Content +="<a href='#' onClick= 'window.close();'>";
Content +="<img border='0' src='../images/CloseWindow.jpg' width='155' height='27'>";
Content +="</a></td></tr></table></center></div></body></html>";

//  We're going to open a new window in a moment but first we have to figure out if our customer is using a 
//  recent browser or an old one.  If the version is new enough, our code below will work.  If it is too old, the
//  customer is out of luck and we'll just give them a dialog box indicating they cannot use this function.

var Version=parseInt(navigator.appVersion);
var Recent = "No";

if(Version >= 4)
{
  if(document.getElementById)
   {Recent="Yes";}
  else if(document.layers)
   {Recent="SortOf";}
  else
   {Recent="No";}
}

//  If they have a fairly recent browser, we open a new window called PhotoWin (without unneeded scollbars, etc.) and 
//  write the content.   If their browser is too old, we just give them a message and tell them that they can't access this 
//  function.

if ((Recent=="Yes") || (Recent=="SortOf"))
   {
   Wide=750;
   var WindowTop= parseInt((window.screen.availHeight-(High))/2);
   var WindowLeft= parseInt((window.screen.availWidth-(Wide))/2);
   WinProps="height="+High+",width="+Wide+",top="+WindowTop+",left="+WindowLeft+",menubar=yes,toolbar=no,status=no,scrollbars=no,resizable=yes";
   var ListWin=window.open("","",WinProps);
   ListWin.document.open();
   ListWin.document.write(Content);
   ListWin.document.close();
   }
else
   {
   alert("Sorry, your browser does not support this function.");
   }

}
// END function Compatibility

// -->