var linkArray = new Array (
new Array ("Keep a race journal", "http://www.chicagobikeracing.com/index.php/site/post/tip_1_keep_a_race_journal/"),
new Array ("Race in Matteson", "http://www.chicagobikeracing.com/index.php/site/post/tip_2_race_in_matteson/"),
new Array ("Start in your big ring", "http://www.chicagobikeracing.com/index.php/site/post/tip_3_start_in_your_big_ring/"),
new Array ("Practice clipping in", "http://www.chicagobikeracing.com/index.php/site/post/tip_4_practice_clipping_in/"),
new Array ("Bring a changing towel", "http://www.chicagobikeracing.com/index.php/site/post/tip_5_bring_a_changing_towel/"),
new Array ("Shift down at the light", "http://www.chicagobikeracing.com/index.php/site/post/tip_6_shift_down_at_the_light/"),
new Array ("Wag the elbow", "http://www.chicagobikeracing.com/index.php/site/post/tip_7_wag_the_elbow/"),
new Array ("Scout the course early", "http://www.chicagobikeracing.com/index.php/site/post/tip_8_scout_the_course_early/"),
new Array ("Pre-complete your waivers", "http://www.chicagobikeracing.com/index.php/site/post/tip_9_pre_complete_your_waivers/"),
new Array ("Confirm your results", "http://www.chicagobikeracing.com/index.php/site/post/tip_10_confirm_your_results/"),

new Array ("Go to the track", "http://www.chicagobikeracing.com/index.php/site/post/tip_11_go_to_the_track/"),

new Array ("Shop for a team", "http://www.chicagobikeracing.com/index.php/site/post/tip_12_shop_for_a_team/"),

new Array ("Use newspaper to dry your shoes", "http://www.chicagobikeracing.com/index.php/site/post/tip_13_use_newspaper_to_dry_your_shoes/"),

new Array ("Remember everything", "http://www.chicagobikeracing.com/index.php/site/post/tip_14_remember_everything/"),

new Array ("Drink responsibly", "http://www.chicagobikeracing.com/index.php/site/post/tip_15_drink_responsibly/"),

new Array ("Hold your line at the finish", "http://www.chicagobikeracing.com/index.php/site/post/tip_16_hold_your_line_at_the_finish/"),

new Array ("Practice your cornering", "http://www.chicagobikeracing.com/index.php/site/post/tip_17_practice_your_cornering/"),

new Array ("Expect to suck", "http://www.chicagobikeracing.com/index.php/site/post/tip_18_expect_to_suck/"),
new Array ("Join a team", "http://www.chicagobikeracing.com/index.php/site/post/tip_19_join_a_team/"),
new Array ("Share the road", "http://www.chicagobikeracing.com/index.php/site/post/tip_20_share_the_road/"),
new Array ("Make the most of your team", "http://www.chicagobikeracing.com/index.php/site/post/tip_21_make_the_most_of_your_team/"),
new Array ("Align logos with valves", "http://www.chicagobikeracing.com/index.php/site/post/tip_22_align_logos_with_valves/"),
new Array ("Pin from the center", "http://www.chicagobikeracing.com/index.php/site/post/tip_23_pin_from_the_center/"),
new Array ("Light up", "http://www.chicagobikeracing.com/index.php/site/post/tip_24_light_up/"),
new Array ("Follow your heart", "http://www.chicagobikeracing.com/index.php/site/post/tip_25_follow_your_heart/"),
new Array ("Don't cross wheels", "http://www.chicagobikeracing.com/index.php/site/post/tip_26_dont_cross_wheels/"),




	new Array (2 ) // a filler, so we don't have to worry about removing the comma at the end of the last entry.
);

rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};

totalLinks = linkArray.length - 1;
var randNum = rand (totalLinks) - 1;

thisLinkArray = linkArray[randNum];
var tipNum = randNum + 1;
var tip = thisLinkArray[0];
var linkURL = thisLinkArray[1];
document.write("\<h2>TIP \#" + tipNum + "\</h2>\<h1>" + tip + "\</h1>\<P>\<a href=\"" + linkURL + "\">{ READ WHY }\</a>\</p>");

