
window.onload = showTip;

function showTip(){
	var tipArray = Array("<b>Putting</b> by Stewart Whiteford<br />Its important to position the ball directly below your eyes to give you the best view of the line of putt.  Comfort is the key to putting.  It doesn&acute;t matter how you hold the putter as long as it feels comfortable. Stay relaxed  and positive!",
						 "<b>Driving</b> by Donald McKay<br />Its all in the setup!  Tee the ball up with around half of the ball showing above the clubface.  Position the ball directly opposite your front heel with your feet slightly wider than shoulder width apart.  Let your weight favour your back foot to help hit the ball on the upswing sending it miles down the fairway!!",
						 "<b>Hybrids</b> by Donald Mckay<br />The secret to playing these clubs well is to play them like an iron and not a wood.  With the ball an inch or two inside your front heel and your hands positioned above the ball, hit down and through as you would with an iron. The ball will soar high and land softly near the flag.",
						 "<b>Pitching</b> by Donald McKay<br />Once you have chosen your club, grip down the shaft a little to gain extra control. Your feet should be slightly narrower with the ball positioned opposite the centre of your stance. Now push your hands forward slightly so they are ahead of the ball.  With your weight slightly on your front foot make a positive action brushing the grass on the way through.",
						 "<b>Bunker's</b> by Donald Mckay<br />Many amateurs take too much sand from bunkers, shoving their sand wedge deep into the sand. A fat sand shot, they've no doubt learned, is better than thinning it 40 yards over the back. The problem is not typically a matter of tactic but of setup.  The key to using the bounce is setting up left of the hole (for righties), aiming the clubface at the hole or slightly right, and then taking your grip. Opening the face of the club increases the bounce on your wedge and will stop the club from digging in too much. The ball will pop out right next to the hole!",
						 "<b>Under The Wind</b> by Henry Wong<br />The key point here is spin control.  The harder you hit a ball, the more it spins, the more it spins the higher it will fly. NOT GOOD!!  So take at least a club more, set the ball back in the stance and much like hitting a normal iron shot, you want to hit downwards and through the ball.  The swing doesn&acute;t need to be full, but it should be controlled, so hold down the grip and keep your head steady!",
						 "<b>Iron Play</b> by Henry Wong<br />The shot you’ll play most! Feet shoulder width apart, weight balanced evenly and the ball positioned between the left heel and centre of your stance. The secret to a crisp iron shot is to hit down and through the ball, hitting ball and then turf, creating a divot after the ball. Keep your head nice and steady throughout the swing and finish in a balanced position with your weight on your left side.");
	var tip = document.getElementById('tip');
	var randomnumber = Math.floor(Math.random()*6)
	tip.innerHTML = tipArray[randomnumber];
}