
/* Write the heading banner etc.. */
document.write("<div class=\"headBackground\">");
document.write("<table  cellspacing=\"0\" width=\"100%\">");
document.write("<tr>");

document.write("<td width=\"150\">");
document.write("<a href=\"../home/index.html\"><img src=\"../../imageResources/JimsTennisComHead100.jpg\" border=\"0\" alt=\"Jim\'s Tennis Home\"></a>");
document.write("</td>");



/* 
Note for ads.swf.

Flash player 8 requires security settings to allow local swf to call internet URL, e.g. using getURL.  

This link accesses the SecurityManager.
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html#119065

Trusted local paths such as c:\LP can be added.
 
*/


// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) {
   document.write("<td width=\"260\">");
   document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=ads width=260 height=80 codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0\">");
   document.write(" <param name=\"movie\" value=\"../../flash/ads/ads.swf\" />");
   document.write(" <param name=\"quality\" value=\"high\" />");
   document.write(" <param name=\"play\" value=\"true\" />");
   document.write(" <param name=\"loop\" value=\"true\" />");
   document.write(" <param name=\"bgcolor\" value=\"#ffffff\" />");
   document.write(" <embed src=\"../../flash/ads/ads.swf\" width=260 height=80 bgcolor=\"#ffffff\" quality=\"high\" loop=\"true\"");
   document.write("  type=\"application/x-shockwave-flash\" pluginspace=\"http://www.macromedia.com/go/getflashplayer\" />");
   document.write("</object>");
   document.write("</td>");

} else {  // flash is too old or we can't detect the plugin
  
  // Show an ad if no flash.
   document.write("<td width=\"260\">");
   document.write("<img src=\"../../imageResources/dunlopSport.jpg\">");
   document.write("</td>");

   // Could show a message.
//   document.write("<td width=\"260\">");
//   document.write("This web site needs <b>Flash</b> which is <b>unavailable on your web browser.</b><br>");
//   document.write("Click <a href=\"../../html/viewingTips/viewingTips.html\">here</a> for more information");
//   document.write("</td>");
}

document.write("</tr>");
document.write("</table>");
document.write("</div>");

