<!-- This file contains these scripts -->
<!--<script src="../../javascript/AC_OETags.js" language="javascript"></script>-->
<!--<SCRIPT src="../../javascript/topMenu.js" type=text/javascript></SCRIPT>-->
<!--<script src="../../javascript/metaInfo.js" type=text/javascript></script>-->
<!--<script src="../../javascript/xmlDoc.js" type=text/javascript></script>-->
<!--<script src="../../javascript/xmlAppContent.js" type=text/javascript></script>-->

document.write("<meta name=\"description\" content=\"Jims Tennis Collection\">");
document.write("<meta name=\"keywords\" content=\"tennis, collection, memorabilia, history, old, century, rackets, equipment, stringing\">");
document.write("<meta name=\"robots\" content=\"index,follow\">");
document.write("<meta name=\"expires\" content=\"Never\">");

// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 6;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// -----------------------------------------------------------------------------


var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			version = "WIN 6,0,21,0";

			axo.AllowScriptAccess = "always";

			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

function GetSwfVer(){
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;			
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			if ( descArray[3] != "" ) {
				tempArrayMinor = descArray[3].split("r");
			} else {
				tempArrayMinor = descArray[4].split("r");
			}
			var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
    var str = '';
    if (isIE && isWin && !isOpera)
    {
  		str += '<object ';
  		for (var i in objAttrs)
  			str += i + '="' + objAttrs[i] + '" ';
  		for (var i in params)
  			str += '><param name="' + i + '" value="' + params[i] + '" /> ';
  		str += '></object>';
    } else {
  		str += '<embed ';
  		for (var i in embedAttrs)
  			str += i + '="' + embedAttrs[i] + '" ';
  		str += '> </embed>';
    }

    document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

/**
 * Notice:
 * This software may be broadcast, copied, distributed, modified or sold so long as the whole of this 
 * notice is included at the top of the affected code.    
 * Lawrence Pearce 2005-2007.
 * End of Notice.
 */
 
/* Constant prefix for sub option menu name, to avoid clashes with other variable names. */
SUB_OPTION = "SubOption"; 

/*
 * Flag that indicates if the menu thinks the user has focus.
 * When the user does not have focus the sub menu will become hidden after a short period.
 */
SUB_ACTIVE = false; 

/*
 * Holds the content of the currently selected line. 
 */
CURRENT_MENU = "";

/*
 * Function to show a two-line menu.
 *
 * Call it like this:  var menu = new TopMenu("Home > Contact", "subrackets");
 * 
 * param currentMenu This is the display text for the currently selected menu.
 * param currentOpt This is the system code for the currently selected menu that enable a market for the current menu to be shown. 
 *
 */
function TopMenu(currentMenu, currentOpt) {

		 document.write("<div class=\"subSeparatorInLine\">.</div>");

		 // Write the currently selected menu item.
		 CURRENT_MENU = "<div class=\"subSelected\" id="+SUB_OPTION+"subCurrentMenu"+">"+"<a href=\"../home/index.html\">Home</a>&nbsp;&nbsp;"+currentMenu+"</div>";
		 // SUPPORT_MENU can be used in other areas of the page for navigation, say at the end of the page.
		 SUPPORT_MENU = "<div class=\"main\">"+currentMenu+"</div>";
//		 document.write("<div class=\"subSelected\" id="+SUB_OPTION+"subCurrentMenu"+">"+currentMenu+"</div>");
		 document.write(CURRENT_MENU);
		 
		 // Sub line menu items.
		 // For each item provide: completed id param, and for each anchor complete the href and menu text. 
		 document.write("<div class=\"subMenu\" id="+SUB_OPTION+"subjims"+"><a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\"    href=\"../randomCollection/random.html\">Random Article</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\"    href=\"../contact/contact.html\">Contact</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../about/about.html\">About</a></div>");
		 document.write("<div class=\"subMenu\" id="+SUB_OPTION+"subrackets"+"><a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../playersRacketsCollection/rackets.html\">Players' Rackets</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../racketsCollection1/rackets.html\">Rackets 1890s - 2000</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../pictureRacketsCollection/rackets.html\">Picture Rackets</a></div>");
		 document.write("<div class=\"subMenu\" id="+SUB_OPTION+"submem"+"><a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../porcelainCollection/porcelain.html\">Porcelain</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../souveniersCollection/souveniers.html\">Souveniers</a></div>");
		 document.write("<div class=\"subMenu\" id="+SUB_OPTION+"subequip"+"><a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../courtEquipmentCollection/courtEquipment.html\">Court Equipment &amp; Balls</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../stringingMachinesCollection/stringingMachines.html\">Stringing Machines</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../stringingCollection/stringing.html\">Strings &amp; Things</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../racketPressesCollection/presses.html\">Racket Presses</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" xxxhref=\"../memorabiliaCollection/memorabilia.html\">Coming soon : Racket Covers</a></div>");
		 document.write("<div class=\"subMenu\" id="+SUB_OPTION+"subpaper"+"><a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../picturesCollection1/pictures.html\">Pictures</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../manufPromosCollection1/promos.html\">Manufacturers' Promos</a>|<a class=\"suba\" onmouseout=\"leftSub();\" onmouseover=\"enterSub();\" href=\"../bookMagCollection1/bookMag.html\">Books, Magazines</a></div>");
		 // This causes the next line to be positioned below.
		 document.write("<div class=\"subSeparatorLine\">.</div>");
}

/* Writes the sub options.
 * sub: contains the id of the sub line to make visible.
 * indent: integer number of pixels that the sub line will be indented by.
 */
function writeSubOption(sub, indent) {

		 SUB_ACTIVE = true;

		 hideSub();
		
		// Make the selected sub menu visible.
		var subMenu = document.getElementById(SUB_OPTION+sub);
		if(subMenu != null) {
		 		 subMenu.style.visibility="visible";
		 		 subMenu.style.textIndent=indent;
		}
}

/*
 * Handles mouse enter a sub menu.
 */
function enterSub() {

		 // Indicate that the user is actively using the menu.
		 SUB_ACTIVE = true;
}

/*
 * Handles mouse leaving a sub menu.
 */
function leftSub() {

		 // Flag that the user has left the menu.
		 SUB_ACTIVE = false;
		 
		 // Check after a while if the user is still not using the menu. 
		 setTimeout("clearSub();",250);

}

/*
 * Clears the sub menu if the user is not using the menu.
 */
function clearSub() {

		 if(SUB_ACTIVE == true) {
		 			   return;
		 }
		 
		 // Hide the sub menu.
		 hideSub();

		 // Show the currently selected menu.
		var currentMenu = document.getElementById(SUB_OPTION+"subCurrentMenu");
		currentMenu.style.visibility="visible";
}

/*
 * Finds all the menu's div elements and hide them.
 */
function hideSub() {
		var divs = document.getElementsByTagName("div");
		for(var i=0; i<divs.length; i++) {
			 var div = divs[i];
			 if(div.id.indexOf(SUB_OPTION) > -1) {
			 		 div.style.visibility="hidden";
			 }
		}
}


/*
 * Writes the content of the current menu.
 */
function writeCurrentMenu() {
	//document.write(CURRENT_MENU);
}

var xmlhttp;

function loadXMLDoc(url, async)
{
xmlhttp=null;
	 if (window.ActiveXObject){
	 	try {
		 	  xmlhttp=new XMLHttpRequest();
		 	  xmlhttp.onreadystatechange=state_Change;
		 	  xmlhttp.open("GET",url,async);
	   	 	  xmlhttp.send(null);
		 	  if(async == false) {
		 	   state_Change(); // Synchronous request returned and state method has to be called explicitly.
			  }
		} catch (err) {
	     xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		 xmlhttp.onreadystatechange=state_Change; // Synchronous request is returned via this function with MS version
		 xmlhttp.open("GET",url,async);
	   	 xmlhttp.send();
		}
	 } else if (window.XMLHttpRequest) {
		  xmlhttp=new XMLHttpRequest();
		 xmlhttp.onreadystatechange=state_Change;
		 xmlhttp.open("GET",url,async);
	   	 xmlhttp.send(null);
		 if(async == false) {
		 	   state_Change(); // Synchronous request returned and state method has to be called explicitly.
		 }
	 }  else {
	 	alert("Your browser does not support XMLHTTP, it would be appreciated if you could report this problem to us by e-mail. Thanks!");
  	}
}

function state_Change()
{
  // alert('state Change '+xmlhttp.readyState+' '+xmlhttp.status);
   
   if (xmlhttp.readyState==4)
   {
     // if "OK"
	   if (xmlhttp.status==200 || xmlhttp.status==0)
	   {
		   writeContent();
	   }
       else
       {
       	   alert("Problem retrieving XML data, it would be appreciated if you could report this problem to us by e-mail. Thanks!");
       }
  }  
}

function writeContent()
{
 try {
	xmlhttp.overrideMimeType('text/xml');
	} catch (err) {
	}


  var response = xmlhttp.responseXML.documentElement;
  
  if(response == null) { 
  		try {
			response = new ActiveXObject("Microsoft.XMLDOM");
			response.loadXML(xmlhttp.responseText);
		} catch (err) {
		}
  }
  
  var responseText = xmlhttp.responseText;
  
  x=response.getElementsByTagName("item");

  isRandom = false;
  randomItem = 10000;
  isZoomAllowed = true;

  txt = "";
   
  try {
  
    if(randomVersion) {
	
	    isRandom = true;

		 while(randomItem >= x.length) {
		 
		 	 randomItem = Math.floor(Math.random() * 100);
		 }
	}

  } catch (err) {
  
    txt=txt + "<img border=\"0\" src=\"../../imageResources/SmallImagePlay.gif\"  alt=\"zoom +/-\" onclick=\"zoomAll()\" onMouseOver=\"pointerCursor()\" onMouseOut=\"defaultCursor()\"><span class=\"functionOption faded\">zoom +/-</span>";
  }


  try {
    if(zoomAllowed ==  false) {
		isZoomAllowed = false;
	}

  } catch (err) {
  	// No action
  }
  
  txt=txt + "<div class=\"separatorHLine\">.</div>"; 
  
  txt=txt + "<table class=\"catlg\" cellspacing=\"0\">";
  
  for (i=0;i<x.length;i++)
  {
   	  if(isRandom && i != randomItem) {
	  	continue;
	  }
	  
	  
	  txt=txt + "<tr>";

	  if(isZoomAllowed) {
		  try {
		    if(defaultZoomIn) {
	  
			  xx="<img alt=\"See large picture\" id=\"cat"+i+"\" src=\"../../imageResources/"+x[i].getAttribute("image")+"\" width=\"1000\" onclick=\"zoomPic(this)\" onMouseOver=\"pointerCursor()\" onMouseOut=\"defaultCursor()\" >";
			}
		  } catch (err) {
			  xx="<img alt=\"See large picture\" id=\"cat"+i+"\" src=\"../../imageResources/"+x[i].getAttribute("image")+"\" width=\"400\" onclick=\"zoomPic(this)\" onMouseOver=\"pointerCursor()\" onMouseOut=\"defaultCursor()\" >";
		  }
	  } else {
	  	  xx="<img id=\"cat"+i+"\" src=\"../../imageResources/"+x[i].getAttribute("image")+"\" width=\"400\"  >";
	  }
	  
	  try {
	    if(defaultZoomIn) {
		  txt=txt + "<td width=\"1000\" class=\"catlgTableCellDetail\" valign=\"top\">" + xx + "<div class=\"separatorHLine\">.</div>";
		}

	  } catch (err) {
		  txt=txt + "<td width=\"400\" class=\"catlgTableCellDetail\" valign=\"top\">" + xx + "<div class=\"separatorHLine\">.</div>";
	  }

	  xx=x[i].getAttribute("title") + "<div class=\"separatorHLine\">.</div>" + "<b>" + x[i].getAttribute("date") + "</b>" + "<div class=\"separatorHLine\">.</div>" + x[i].getAttribute("desc1") + "<div class=\"separatorHLine\">.</div>" + x[i].getAttribute("desc2");
	  txt=txt + xx + "</td>";
	  
	  txt=txt + "</tr>";
  }
	
  txt=txt + "</table>";

  if(isRandom == false) {
//  	txt=txt + "<br>" + SUPPORT_MENU;
  }

  
	try {
		document.getElementById('asyncContent').innerHTML=txt; // InnerHTML supported by IE.
		
	} catch (err) {
			document.write(txt);
	}
}


function zoomAll()
{

 zoomIn = false;
 
 if(document.getElementById('cat'+1).width==400) {
 	zoomIn = true;
 }

 
     for (i=0;i<10000;i++) {
	 
			pic = document.getElementById('cat'+i);
			if(pic == null) {
			   break;
			}
	 
	 	 	try {
	    	   	if(zoomIn) {
					setPicWidth(pic, 1000);
				} else { 
					setPicWidth(pic, 400);
				}	
			} catch (err) {
	  		  break;
	  		}   
  	}	
} 

function setPicWidth(pic, newWidth)
{
  	  try {
	  	  pic.width=newWidth;
	  } catch (err) {
	  }   
}


function zoomPic(zoomItem) 
{

 if(document.getElementById(zoomItem.id).width==400) {
	document.getElementById(zoomItem.id).width=1000;
 } else { 
	document.getElementById(zoomItem.id).width=400;
 } 
}


function pointerCursor()
{
 	document.body.style.cursor="pointer";
	//document.getElementById("p1").style.cursor="text";
}

function defaultCursor()
{
 	document.body.style.cursor="default";
	//document.getElementById("p1").style.cursor="text";
}
