<!-- Author: Brian Mackenzie -->
<!-- Scripts for Sports Coach -->
function GetCookie (name) 
{  
 var arg = name + "=";  
 var alen = arg.length;  
 var clen = document.cookie.length;  
 var i = 0;  
 while (i < clen) 
 {    
  var j = i + alen;    
  if (document.cookie.substring(i, j) == arg)      
  return getCookieVal (j);    
  i = document.cookie.indexOf(" ", i) + 1;    
  if (i == 0) break;   
 }  
 return null;
}

function SetCookie (name, value, expires) 
{  
 var argv = SetCookie.arguments;  
 var argc = SetCookie.arguments.length;  
 var expires = (argc > 2) ? argv[2] : null;  
 var path = (argc > 3) ? argv[3] : null;  
 var domain = (argc > 4) ? argv[4] : null;  
 var secure = (argc > 5) ? argv[5] : false;  
 document.cookie = name + "=" + escape (value) + 
 ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
 ((path == null) ? "" : ("; path=" + path)) +  
 ((domain == null) ? "" : ("; domain=" + domain)) +    
 ((secure == true) ? "; secure" : "");
}

function getCookieVal(offset) 
{
 var endstr = document.cookie.indexOf (";", offset);
 if (endstr == -1)
 endstr = document.cookie.length;
 return unescape(document.cookie.substring(offset, endstr));
}

function checkCount(name) 
{
 <!-- Code for the floater -->
 var sname ='pup';
 var count = GetCookie(sname);
 var floater = document.getElementById("floater");
 if (count == null )
  {
   count=1;
   SetCookie(sname, count, null, "/");
  }
 if (count < 5)
  {
  if (count == 1 || count == 4)
   {
    floater.style.display = "block";
   }
  count++;
  SetCookie(sname, count, null, "/");
  }
}

function closeban()
{
 <!-- Code for the floater -->
 var floater = document.getElementById("floater");
 floater.style.display = "none";
}

function floaterpage()
{
<!-- Code for floater for all pages except home page -->
 document.write('<DIV ID="floater" style="display:none"> <DIV ID="floaterTop"><a href="javascript:closeban()">Close this window</a></DIV> <DIV ID="floaterText"> <P style="font: bold 20px Verdana, Arial, sans-serif; margin: 10px, 10px 0 10px;">Free Downloads!  Discover the Secrets to Training for Speed, Power & Strength</p> <p style="font: bold 18px Verdana, Arial, sans-serif; margin: 10px, 10px 0 10px;">Start reading now and we will also send you a <br />Free weekly Sports Training ezine</p>  <p style="font: bold 12px Verdana, Arial, sans-serif; margin: 10px, 10px 0 10px;">For Free Downloads and Weekly Expert Advice - Enter email address:</p> <form action="http://www.pponline.co.uk/miff_external" method="post" onclick="signup()"> <input type="text" name="email" size="25" maxlength="40"> <input type="hidden" name="source" value="SCphpSCMcore"> <input type="hidden" name="accName" value="sports-performance"> <input type="hidden" name="welcomepage" value="http://www.pponline.co.uk/prewp/freedownload/scmiffwelcome.html"> <input name="unsubscribe" type="submit" title="Submit" value="Submit"> </FORM> <p>We will never give or sell your details to a 3rd party<br /> <a href="http://www.sports-coach.net/scpriv.html">Privacy Policy</a></p> <p><a href="javascript:closeban()">Close this window</a></p> </DIV> </DIV>');
}

function signup(page,rsz)
{
 <!-- Code to hide floater for 1 year when visitor signs up for the free newsletter -->
 var sname ='pup';
 count=10;
 var expDays = 365; // number of days the cookie should last
 var expDate = new Date();
 expDate.setTime(expDate.getTime() +  (86400000 * expDays)); 
 SetCookie(sname, count, expDate, "/");
}

function menu(dir)
{
<!-- Menu options for each page -->
dir == null ? add = "" : add="../";
s="&nbsp;&nbsp;";
document.write('<p></p><font title="Topics" style="font-size: 11pt" color="#FF0000">Topics</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'siteindx.htm title="Index of all the available pages on Sports Coach">A&raquo;Z Page Index</a><br />'+s+'<a href="#fit">Fitness Training</a><br />'+s+'<a href="#art">Library of Articles</a><br />'+s+'<a href="#coa">Sports Coaching</a><br />'+s+'<a href="#sci">Sports Science</a><br />'+s+'<a href="#eve">Sports &amp; Events</a><br />'+s+'<a href="#prod">Sports Products</a><br />'+s+'<a href="#fed">Visitors Feedback</a><br />'+s+'<a href="#web">Web Site Information</a></font><p></p>');
<!-- Search facility -->
dir == null ? search(0) : search(1);
document.write('<p></p><font title="Selection of pages related to Fitness Training" style="font-size: 11pt" color="#FF0000"><a name="fit"></a>Fitness Training</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'siteindx.htm title="Index of all the available pages on Sports Coach">A&raquo;Z Page Index</a><br />'+s+'<a href='+add+'circuit.htm title="Improve your strength and endurance with circuit training">Circuit Training </a><br />'+s+'<a href='+add+'complex.htm title="Develop elastic strength with complex training">Complex Training</a> <br />'+s+'<a href='+add+'corestab.htm title="How to control your lumbar stability at all times and during complex movements">Core Stability</a><br />'+s+'<a href='+add+'enduranc.htm title="Endurance training">Endurance Training</a><br />'+s+'<a href='+add+'hrm1.htm title="Using a heart rate monitor to improve performance">Heart Rate Training</a><br />'+s+'<a href='+add+'hilltrain.htm title="Hill Training">Hill Training</a><br />'+s+'<a href='+add+'imagery.htm title="The elements of imagery development ">Imagery</a><br />'+s+'<a href='+add+'ltad.htm title="Long Term Athletic Development">LTAD</a><br />'+s+'<a href='+add+'massage.htm title="The benefits of sports massage">Massage</a><br />'+s+'<a href='+add+'medball.htm title="Medicine Ball Training">Medicine Ball Training</a><br />'+s+'<a href='+add+'mental.htm title="The application of mental imagery">Mental Imagery</a><br />'+s+'<a href='+add+'eval.htm title="Tests to monitor athlete development">Performance Tests</a><br />'+s+'<a href='+add+'plymo.htm title="Development of power or explosiveness">Plyometrics</a><br />'+s+'<a href='+add+'relaxation.htm title="Relaxation techniques">Relaxation</a><br />'+s+'<a href='+add+'economy.htm title="Stride length, strike rate and breathing rhythms">Running Economy</a><br />'+s+'<a href='+add+'middist/index.htm title="Middle distance running technique">Running Technique</a><br />'+s+'<a href='+add+'speed.htm title="Speed training">Speed Training </a><br />'+s+'<a href='+add+'drinks.htm title="The types of Sports Drinks">Sports Drinks</a><br />'+s+'<a href='+add+'sprints/index.htm title="The art of sprinting">Sprinting</a><br />'+s+'<a href='+add+'tapering.htm title="Tapering for competition">Tapering</a><br />'+s+'<a href='+add+'articles/tindex.htm title="Training articles">Training Articles</a><br />'+s+'<a href='+add+'trainprog.htm title="Examples of various annual training programs">Training Programs</a><br />'+s+'<a href='+add+'warmup.htm title="Warm up and cool down">Warm up &amp; Cool down</a><br />'+s+'<a href='+add+'weight.htm title="Development of strength using weights">Weight Training</a></font><p></p>');
document.write('<font title="Articles on coaching and fitness training" style="font-size: 11pt" color="#FF0000"><a name="art"></a>Library of Articles</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'articles/index.htm title="Index of library articles">Index</a><br />'+s+'<a href='+add+'articles/cindex.htm title="Articles on coaching">Coaching</a><br />'+s+'<a href='+add+'articles/tindex.htm title="Articles on Training">Training</a><br />'+s+'<a href='+add+'articles/sindex.htm title="Sports specific Articles">Sport Specific</a><br />'+s+'<a href='+add+'articles/rindex.htm title="Literature Reviews">Literature Reviews</a></font><p></p>');
document.write('<font title="Selection of pages related to Sports Science" color="#FF0000" style="font-size: 11pt"><a name="sci"></a>Sports Science</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'siteindx.htm title="Index of all the available pages on Sports Coach">A&raquo;Z Page Index</a><br />'+s+'<a href='+add+'agility.htm title="How to change the direction of your body in an efficient and effective manner">Agility</a><br />'+s+'<a href='+add+'biomechanics.htm title="Biomechanics">Biomechanics</a><br />'+s+'<a href='+add+'bodytype.htm title="Body type, size and composition">Body Build</a> <br />'+s+'<a href='+add+'conditon.htm title="The nine fitness elements to develop in an athlete">Conditioning</a><br />'+s+'<a href='+add+'energy.htm title="Relationship between exercise intensity and energy source">Energy Pathways</a><br />'+s+'<a href='+add+'enduranc.htm title="Aerobic and anaerobic endurance">Endurance</a><br />'+s+'<a href='+add+'ergoaids.htm title="Ergogenic Aids">Ergogenic Aids</a><br />'+s+'<a href='+add+'group.htm title="Group development and interaction">Group Dynamics</a><br />'+s+'<a href='+add+'history.htm title="The history of sport 1200AD to today">History of Sport</a><br />'+s+'<a href='+add+'infofb.htm title="How athletes obtain information feedback on their performance">Information Feedback</a><br />'+s+'<a href='+add+'lactic.htm title="Lactic Acid">Lactic Acid</a><br />'+s+'<a href='+add+'levers.htm title="Classification of Levers">Levers</a><br />'+s+'<a href='+add+'ltad.htm title="Long Term Athletic Development">LTAD</a><br />'+s+'<a href='+add+'mobility.htm title="Development of range of movement - flexibility">Mobility</a><br />'+s+'<a href='+add+'muscle.htm title="Muscle types, balance and movement">Muscles</a><br />'+s+'<a href='+add+'nutrit.htm title="Eating and drinking to meet your needs">Nutrition</a><br />'+s+'<a href='+add+'oxdebit.htm title="The additional oxygen required to restore all systems to normal">Oxygen Debt</a><br />'+s+'<a href='+add+'pep.htm title="How to create a PEP">Personal Exercise Plan</a><br />'+s+'<a href='+add+'physiol.htm title="Science of body function - Energy Systems, V02max etc">Physiology</a><br />'+s+'<a href='+add+'psych.htm title="Science of the mind - Relaxation, visualisation etc">Psychology</a><br />'+s+'<a href='+add+'continuum.htm title="Skills cannot be neatly labelled so we place them on a continuum">Skill Classification</a><br />'+s+'<a href='+add+'tech.htm title="How to develop a new skill">Skill Development</a><br />'+s+'<a href='+add+'speed.htm title="The development of speed">Speed</a><br />'+s+'<a href='+add+'strength.htm title="Strength training - weight training, circuit training etc">Strength</a><br />'+s+'<a href='+add+'trnprin.htm title="The three principles of training: specificity, overload and reversibility">Training Principles</a><br />'+s+'<a href='+add+'vitamins.htm title="Water and fat soluble vitamins">Vitamins</a><br />'+s+'<a href='+add+'vo2max.htm title="How to improve your VO2 max">VO2max</a></font><p></p>');
<!-- Search facility -->
dir == null ? search(0) : search(1);
document.write('<p></p><font title="Selection of pages related to Coaching" style="font-size: 11pt" color="#FF0000"><a name="coa"></a>Sports Coaching</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'siteindx.htm title="Index of all the available pages on Sports Coach">A&raquo;Z Page Index</a><br />'+s+'<a href='+add+'safe.htm title="Child Protection">Child Protection</a><br />'+s+'<a href='+add+'coachass.htm title="Five key areas that coaches should focus on">Coach Assessment</a><br />'+s+'<a href='+add+'coaches/index.htm title="A world wide network of Sports Coaches">Coaches Corner</a><br />'+s+'<a href='+add+'articles/cindex.htm title="Coaching and training articles">Coaching Articles</a><br />'+s+'<a href='+add+'ethics.htm title="National Coaching Foundation code of ethics for sports coaches">Coaching Ethics</a><br />'+s+'<a href='+add+'coaching.htm title="Coaching Principles">Coaching Principles</a><br />'+s+'<a href='+add+'coachphil.htm title="How to devlop a coaching philosophy">Coaching Philosophy</a><br />'+s+'<a href='+add+'coachres.htm title="Links to useful resources">Coaching Resources</a><br />'+s+'<a href='+add+'coachsr.htm title="The skills & roles of a Coach">Coaching Skills & Roles</a><br />'+s+'<a href='+add+'commun.htm title="How to successfully communicate with people">Communication Skills</a><br />'+s+'<a href='+add+'injury.htm title="General rules for injury avoidance">Injury Prevention</a><br />'+s+'<a href='+add+'ltad.htm title="Long Term Athletic Development">LTAD</a><br />'+s+'<a href='+add+'overtrn.htm title="Signs and causes of over training">Over Training</a><br />'+s+'<a href='+add+'eval.htm title="Tests to monitor athlete development">Performance Tests</a><br />'+s+'<a href='+add+'plan.htm title="Creating a training programme for your sport/event">Planning the Training</a><br />'+s+'<a href='+add+'legal.htm title="Coaches legal reponsibilities">Responsibilities</a><br />'+s+'<a href='+add+'safety.htm title="Track and Field Safety">Track & Field Safety</a><br />'+s+'<a href='+add+'trainprog.htm title="Examples of various annual training programs">Training Programs</a></font><p></p>');
document.write('<font title="Selection of pages on sports and events" style="font-size: 11pt" color="#FF0000"><a name="eve"></a>Sports &amp; Events</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'usafootball/index.htm title="American Football">American Football</a><br />'+s+'<a href='+add+'basketball/index.htm title="Basketball">Basketball</a><br />'+s+'<a href='+add+'boxing/index.htm title="Boxing">Boxing</a><br />'+s+'<a href='+add+'xcountry.htm title="Cross Country Running">Cross Country</a><br />'+s+'<a href='+add+'cycling/index.htm title="Cycling">Cycling</a><br />'+s+'<a href='+add+'decath/index.htm title="Decathlon">Decathlon</a><br />'+s+'<a href='+add+'discus/index.htm title="Discus">Discus</a><br />'+s+'<a href='+add+'fell/index.htm title="Fell Running">Fell Running</a><br />'+s+'<a href='+add+'football/index.htm title="Football (Soccer)">Football (Soccer)</a><br />'+s+'<a href='+add+'golf/index.htm title="Golf">Golf</a><br />'+s+'<a href='+add+'hepth/index.htm title="Heptathlon">Heptathlon</a><br />'+s+'<a href='+add+'highjump/index.htm title="High Jump">High Jump</a><br />'+s+'<a href='+add+'hurdles/index.htm title="Sprint Hurdles">Hurdles - Sprint</a><br />'+s+'<a href='+add+'javelin/index.htm title="Javelin">Javelin</a><br />'+s+'<a href='+add+'longdist/index.htm title="Long Distance Running">Long Distance</a><br />'+s+'<a href='+add+'longjump/index.htm title="Long Jump">Long Jump</a><br />'+s+'<a href='+add+'middist/index.htm title="Middle Distance Running">Middle Distance</a><br />'+s+'<a href='+add+'polevault/index.htm title="Pole Vault">Pole Vault</a><br />'+s+'<a href='+add+'rowing/index.htm title="Rowing">Rowing</a><br />'+s+'<a href='+add+'rugby/index.htm title="Rugby">Rugby</a><br />'+s+'<a href='+add+'shot/index.htm title="Shot Putt">Shot Putt</a><br />'+s+'<a href='+add+'sprints/index.htm title="Sprinting">Sprinting</a><br />'+s+'<a href='+add+'squash/index.htm title="Squash">Squash</a><br />'+s+'<a href='+add+'steeplechase/index.htm title="Steeplechase">Steeplechase</a><br />'+s+'<a href='+add+'swimming/index.htm title="Swimming">Swimming</a><br />'+s+'<a href='+add+'tennis/index.htm title="Tennis">Tennis</a><br />'+s+'<a href='+add+'triathlon/index.htm title="Triathlon">Triathlon</a><br />'+s+'<a href='+add+'triplejump/index.htm title="Triple Jump">Triple Jump</a><br />'+s+'<a href='+add+'ultimate/index.htm title="Ultimate Frisbee">Ultimate Frisbee&#153;</a></font><p></p>');
document.write('<font title="Selection of pages on books, newsletters and sports equipment" style="font-size: 11pt" color="#FF0000"><a name="prod"></a>Sports Products</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'books.htm title="Selection of books on training and coaching">Books</a><br />'+s+'<a href='+add+'newsletter.htm title="Sport related magazines">Magazines</a><br />'+s+'<a href='+add+'products.htm title="Training Shoes, Accessories, Equipment, Clothing etc">Training Accessories</a></font><p></p>');
document.write('<font style="font-size: 11pt" title="Visitors feedback" color="#FF0000"><a name="fed"></a>Visitors Feedback</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'comments.htm title="Visitors comments about Sports Coach">Comments Received</a><br />'+s+'<a href='+add+'/zisp/mailer title="Provide your feedback on the Sports Coach website">Provide Feedback</a></font><p></p>');
document.write('<font style="font-size: 11pt" title="Pages related to web site Management" color="#FF0000"><a name="web"></a>Web Site Information</font><br /><font style="font-size: 9pt">'+s+'<a href='+add+'siteindx.htm title="Index of all the available pages on Sports Coach">A&raquo;Z Page Index</a><br />'+s+'<a href='+add+'up2day.htm title="The awards received by Sports Coach">Awards</a><br />'+s+'<a href='+add+'disclaim.htm title="Sports Coach disclaimer and copyright">Disclaimer &amp; Copyright</a><br />'+s+'<a href='+add+'help.htm title="How to find the information you are after">Help - Where do I find</a><br />'+s+'<a href='+add+'linkexc.htm title="Sports Coach Link Exchange Policy">Link Exchange Policy</a> <br />'+s+'<a href='+add+'visitors.htm title="Visitor Statistics">Visitor Statistics</a> <br />'+s+'<a href='+add+'whatsnew.htm title="Latest web site updates">Web Site Updates</a> <br />'+s+'<a href='+add+'aboutme.htm title="Sports Coach web master and Coach">Web Master &amp; Coach</a></font><p></p>');
<!-- Adlinks -->
adlinksb();
}

function miffboxt(dir)
{
 <!-- Places the miff box at the top of each page -->
  dir == 0 ? pic = "ppyellowt.gif" : pic = "../ppyellowt.gif";
 document.write('<table width="240" align="LEFT" NOWRAP="NOWRAP" border="1" height="110" BACKGROUND="'+pic+'"><td align="center" width="240" height="110" Valign="bottom"><form action="http://www.pponline.co.uk/miff_external" method="post" onclick="signup()"><input type="text" name="email" size="25" maxlength="45" style="font-size: 8pt"><input type="hidden" name="source" value="SCylpSCMground"><input type="hidden" name="accName" value="sports-performance"><input type="hidden" name="welcomepage" value="http://www.pponline.co.uk/prewp/freedownload/scmiffwelcome.html"><input name="unsubscribe" type="submit" title="Submit" value="Submit" style="font-size: 8pt"><br /><font style="font-size: 8pt">&nbsp</font></form></td></table>'); 
}

function miffbox(dir)
{
 <!-- Places the miff box at the bottom of each page -->
 document.write('<h3>Free Sports Training and Fitness Reports from "Peak Performance"</h3><table width="100%" align="center" border="1" cellpadding="2" cellspacing="2" BGcolor="#3399FF"><tr Valign="MIDDLE"> <td align="center" BGcolor="#FFFF66" width="650" Valign="MIDDLE"><form action="http://www.pponline.co.uk/miff_external" method="post" onclick="signup()"><p><font style="font-family: Verdana; font-size: 14pt; color: red">Download FREE Sports Training and Fitness Reports Now</font><br /><font style="font-family: Verdana; font-size: 11pt; color: blue">Submit your email address - </font><input type="text" name="email" size="40" maxlength="45" style="font-size: 10pt"><input type="hidden" name="source" value="SCylpSCMground"><input type="hidden" name="accName" value="sports-performance"><input type="hidden" name="welcomepage" value="http://www.pponline.co.uk/prewp/freedownload/scmiffwelcome.html"><input name="unsubscribe" type="submit" title="Submit" value="Submit" style="font-size: 10pt"></p></form></td></tr></table>');
}

function sclogo(dir,lr)
{
 <!-- Sports Coach Logo at the top of each page -->
 dir == 0 ? add = "" : add = "../";
 lr == 0 ? pic = "sclogo.gif" : pic = "sclogo.gif";
 <!-- Replace right Sports Coach Logo with google link ad -->
 if (lr ==0)
 {
	 adlinksr();
 }
 else
 {
 document.write('<a href="http://www.brianmac.co.uk/"> <img src='+add+pic+' ALT="Go to the Sports Coach Home Page" width="135" height="100" border="0"></a> <p></p>');
 }
}

function adsenset(t)
{
<!-- AdSense advert top of the page -->
google_ad_client = "pub-6580312449935063";
google_ad_slot = "5029917193";
google_ad_width = 468;
google_ad_height = 60;
 document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>');
}

function adsensem(m)
{
<!-- AdSense advert middle of the page -->
google_ad_client = "pub-6580312449935063";
google_ad_slot = "7768333893";
google_ad_width = 468;
google_ad_height = 60;
 document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>');
}

function adsenseb(b)
{
<!-- AdSense advert bottom of the page -->
 document.write('<h3>Additional Information</h3>');
google_ad_client = "pub-6580312449935063";
google_ad_slot = "6059399553";
google_ad_width = 336;
google_ad_height = 280;
 document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>');
}

function adlinks(b)
{
<!-- AdSense links advert top of the menu -->
google_ad_client = "pub-6580312449935063";
google_ad_slot = "0888236915";
google_ad_width = 160;
google_ad_height = 90;
 document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>');
}

function adlinksb(b)
{
<!-- AdSense links advert bottom of the menu -->
google_ad_client = "pub-6580312449935063";
google_ad_slot = "6157411064";
google_ad_width = 160;
google_ad_height = 90;
 document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>');
}

function adlinksr(b)
{
<!-- AdSense links advert top right menu -->
google_ad_client = "pub-6580312449935063";
google_ad_slot = "7480765515";
google_ad_width = 160;
google_ad_height = 90;
 document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>');
}

function search(dir)
{
	 <!-- Goggle Search box -->
 dir == 0 ? add = "" : add = "../";
 document.write('<form method="get" action="http://www.google.com/custom" target="google_window"><table width="90%" border="1" align="center" valign="bottom" bgcolor="F0F0F0"><tr><td align="center" valign="middle"><div align="center"> <br/><a href="http://www.google.com/"> <img src='+add+'goggle.gif border="0" alt="Google"></img></a><br/> <font style="font-size: 8pt">Enter Topic details<br/> <input type="hidden" name="domains" value="www.brianmac.co.uk"></input> <input type="text" name="q" size="21" maxlength="45" value="" style="font-size: 7pt"></input><br/> <input type="submit" name="sa" value="Find Information" style="font-size: 9pt"></input> <input type="hidden" name="sitesearch" value="www.brianmac.co.uk" checked="checked"></input> <input type="hidden" name="client" value="pub-6580312449935063"></input> <input type="hidden" name="forid" value="1"></input> <input type="hidden" name="ie" value="ISO-8859-1"></input> <input type="hidden" name="oe" value="ISO-8859-1"></input> <input type="hidden" name="safe" value="active"></input> <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input> <input type="hidden" name="hl" value="en"></input> </div><br/></td></tr></table></form>');
}

function topadverts(dir) 
{
 <!-- Display random 2 book images at the top of the page -->
   advertise(dir,2,1);
}

function advertise(dir,num,top)  
{
  <!-- Display book images at the side of each page -->
  var maximg = 13;
  var xname ='adcount';
  var icount = GetCookie(xname);
  var images = [,"ppyoungathletest.gif","ppachillest.gif","pprugbyt.gif","ppswimstrt.gif","ppmart.gif","pp101t.gif","ppspeedt.gif","ppcoret.gif","pppsycht.gif","pp9elementst.gif","ppmastert.gif","pumpup.gif","mentalt.jpg"];
  var addresses = [,"coaching-young-athletes","achilles-tendinitis-prevention-and-treatment","training-for-rugby","strength-training-for-swimmers","marathon-training-personal-best","101-performance-evaluation-tests","training-speed-power-strength","core-stability-training","sports-psychology-will-to-win","9-key-elements-fitness","training-master-athletes","http://www.illpumpyouup.com","http://www.sports-psychology-tips.com/sports-psychology-ebook.html?utm_source=BrianMac&utm_medium=banner&utm_campaign=Courage%2Bto%20Win%20Sport%20-%20BrianMac"];
  var titles = [,"Coaching&nbsp;Young&nbsp;Athletes","Achilles&nbsp;Tendinitis","Training&nbsp;for&nbsp;Rugby","Strength&nbsp;Training&nbsp;for&nbsp;Swimmers","Marathon&nbsp;Training","101&nbsp;Performance&nbsp;Evaluation&nbsp;Tests","Training&nbsp;for&nbsp;Speed,&nbsp;Power&nbsp;and&nbsp;Strength","Training&nbsp;for&nbsp;Core&nbsp;Stability","Sports&nbsp;Psychology:&nbsp;the&nbsp;will&nbsp;to&nbsp;win","The&nbsp;9&nbsp;Key&nbsp;Elements&nbsp;of&nbsp;Fitness","Training&nbsp;for&nbsp;Master&nbsp;Athletes","Bodybuilding&nbsp;and&nbsp;weight&nbsp;loss&nbsp;supplements","Mental&nbsp;Toughness&nbsp;for&nbsp;Sport"];
  if (icount == null ) 
  {
    icount=5;
    SetCookie(xname,icount);
  }
  cnt = num;
  dir == 1 ? add = "../" : add = "";
  for (i=0; i<cnt; i++)
  {
   address = "";
   dir == 1 ? image = "../" : image = "";
   nextimg = icount;
   address = "http://www.pponline.co.uk/books/"+addresses[nextimg]+"?src=bmAD";
    if (nextimg>11)
    {
      address = addresses[nextimg];
    }
   image = add+images[nextimg];
   tit = titles[nextimg];
   <!-- Check if adverts for the top line -->
   if (top == 1)
   {
     document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='+address+' title='+tit+' target="_blank"><img src='+image+' width="86" height="120" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;')
   }
   else
   {
     document.write('<p>&nbsp;</p><p align="center"> <a href='+address+' title='+tit+' target="_blank"> <img src='+image+' width=86 height=120 border="0"></a></p><p>&nbsp;</p><p>&nbsp;</p>');
   }
   icount == maximg ? icount=1 : icount++;
  }
  SetCookie(xname,icount);
}

function footer(mdate)
{
 <!-- Display a footer at the bottom of the page -->
 var m=[,"January","February","March","April","May","June","July","August","September","October","November","December"];
 d=parseInt(mdate.substr(3,2),10);
 t="th";
 if(d==2 || d==22) t="nd";
 if(d==1 || d==21 || d==31) t="st";
 if(d==3 || d==23) t="rd";
 ndate=d+t+" "+m[parseInt(mdate.substr(0,2),10)]+" "+mdate.substr(6,4);
 document.write('<HR><table width="100%" cellpadding="1" cellspacing="5"><tr><td width="9%" align="center" BGcolor="#66CCFF"><a href="#top"><SPAN style="font-family:arial;font-size:8pt" title="Return to the top of this page">Top of Page</SPAN></a></td><td width="9%" align="center" BGcolor="#66CCFF"><a href="http://www.brianmac.co.uk/"><SPAN style="font-family:arial;font-size:8pt" title="Go to the Sports Coach Home Page">Home Page</SPAN></a></td><td width="82%" align="RIGHT"><SPAN style="font-family:arial;font-size:8pt">&copy; Sports Coach : Page Created - 1st January 1997 : Last Modified - ' + ndate + '</SPAN> </td> </tr></table>');
}

function schelp(dir,page)
{
<!-- Display the help facility -->   
 document.write('<h3>Need more help?</h3> <p>If you are unable to find the information you are looking for then please <a href="mailto:brian@brianmac.demon.co.uk?subject=Advice required on ' + page + ' "> email me your query</a>.</p>');
<!-- Display the Feedback request -->  
 document.write('<h3>Your feedback on the Sports Coach Web Site</h3><p>I would value your feedback on the Sports Coach Web Site as it will help me improve its content. <a href="http://www.brianmac.co.uk/zisp/mailer">Please select this link to provide your feedback</a>.</p>');
}

function qlinks(topic)
{
<!-- Display FastBox Link Adverts -->
 document.write('<h3>Additional Links</h3><p>The following links are provided by Fastbox. Sports Coach has no contol of the quality of the information provided by these links.</p><script type="text/javascript" src="http://www.fastbox.co.uk/rql.php?p=BRIANMAC&q=' + topic +'&w=300&bc=FFFFFF&lc=FF0000&st=N"></script> <script type="text/javascript" src="http://www.fastbox.co.uk/ql.php?p=BRIANMAC&qc=0000FF&t=h&tc=000000&bc=FFFFFF&bg=FFFFFF&ss=N&st=N&qlinks=Fitness Trainers, Health Clubs, Sports Equipment, Sports Tickets"></script>');
 <!-- Display FastBox image Adverts -->
 var images = [,130,148];
 var imaximg = 2;
 var iname ='imcount';  
 var imc = GetCookie(iname);
 if (imc == null ) 
  {
    imc=1;
    SetCookie(iname,imc);
  }
<!-- Display FastBox Picture Advert -->  
  pic=images[imc];
  document.write('<script type="text/javascript" src="http://www.fastbox.co.uk/image2ads/image.php?p=BRIANMAC&i='+pic+'"></script>');
  imc == imaximg ? imc=1 : imc++;
  SetCookie(iname,imc);
}