// ***** Modify randomized teasers here ***** //
var numberOfChoices = 14;

var Image1 = new Array(numberOfChoices);
var Image2 = new Array(numberOfChoices);
var Image3 = new Array(numberOfChoices);
var Image4 = new Array(numberOfChoices);

var Title1 = new Array(numberOfChoices);
var Title2 = new Array(numberOfChoices);
var Title3 = new Array(numberOfChoices);
var Title4 = new Array(numberOfChoices);

var Link1 = new Array(numberOfChoices);
var Link2 = new Array(numberOfChoices);
var Link3 = new Array(numberOfChoices);
var Link4 = new Array(numberOfChoices);

var Href1 = new Array(numberOfChoices);
var Href2 = new Array(numberOfChoices);
var Href3 = new Array(numberOfChoices);
var Href4 = new Array(numberOfChoices);

// first teaser choices
Image1[0]='url(images/grey_tops/newsletter_icon_grey_top.jpg)';
Image1[1]='url(images/grey_tops/horoscope_grey_top.jpg)';
Image1[2]='url(images/grey_tops/magnet_grey_top.jpg)';
Image1[3]='url(images/grey_tops/books.jpg)';
Image1[4]='url(images/grey_tops/abandon_hope.jpg)';
Image1[5]='url(images/grey_tops/boy_leaves.jpg)';
Image1[6]='url(images/grey_tops/santa.jpg)';
Image1[7]='url(images/grey_tops/newsletter_icon_grey_top.jpg)';
Image1[8]='url(images/grey_tops/horoscope_grey_top.jpg)';
Image1[9]='url(images/grey_tops/magnet_grey_top.jpg)';
Image1[10]='url(images/grey_tops/books.jpg)';
Image1[11]='url(images/grey_tops/mean_bee.jpg)';
Image1[12]='url(images/grey_tops/spacey.jpg)';
Image1[13]='url(images/grey_tops/osho.jpg)';

Title1[0]='Newsletter';
Title1[1]='Your Future?';
Title1[2]='The Secret?';
Title1[3]='Recommended';
Title1[4]='Abandon Hope';
Title1[5]='Acceptance';
Title1[6]='Believe It Or Not?';
Title1[7]='Free Newsletter';
Title1[8]='Your Future?';
Title1[9]='The Secret?';
Title1[10]='Recommended';
Title1[11]='The Have To Bees';
Title1[12]='Wannabe';
Title1[13]='Random Osho';

Link1[0]='<a href="newsletter/latest.shtml">Our very latest articles, stories and letters ...</a>';
Link1[1]='<a href="thought/happy_cow_horoscope.shtml">Happy Cow\'s own unique approach to astrology ...</a>';
Link1[2]='<a href="thought/loa_3_words.shtml">It isn\'t a secret. The Law of Attraction in 3 Words ...</a>';
Link1[3]='<a href="inspiration/store.shtml">Happy Cow\'s favourite happy books and DVDs ...</a>';
Link1[4]='<a href="thought/abandon_hope.shtml">Happiness is never in the future. Love. Now ...</a>';
Link1[5]='<a href="thought/acceptance.shtml">We love every one of you just the way you are ...</a>';
Link1[6]='<a href="thought/believe_it_or_not.shtml">Please don\'t believe anything we have to say ...</a>';
Link1[7]='<a href="newsletter/latest.shtml">Our very latest articles, stories and letters ...</a>';
Link1[8]='<a href="thought/happy_cow_horoscope.shtml">Happy Cow\'s own unique approach to astrology ...</a>';
Link1[9]='<a href="thought/loa_3_words.shtml">It isn\'t a secret. The Law of Attraction in 3 Words ...</a>';
Link1[10]='<a href="inspiration/store.shtml">Happy Cow\'s favourite happy books and DVDs ...</a>';
Link1[11]='<a href="thought/have_to_bees.shtml">Those buzzy busy bodies with a sting of guilt ...</a>';
Link1[12]='<a href="thought/wannabe.shtml">Tell me what you want, what you really really want ...</a>';
Link1[13]='<a href="inspiration/quotes_osho_random.shtml">Shake your mind with the random quote generator ...</a>';

Href1[0]='newsletter/latest.shtml';
Href1[1]='thought/happy_cow_horoscope.shtml';
Href1[2]='thought/loa_3_words.shtml';
Href1[3]='inspiration/store.shtml';
Href1[4]='thought/abandon_hope.shtml';
Href1[5]='thought/acceptance.shtml';
Href1[6]='thought/believe_it_or_not.shtml';
Href1[7]='newsletter/latest.shtml';
Href1[8]='thought/happy_cow_horoscope.shtml';
Href1[9]='thought/loa_3_words.shtml';
Href1[10]='inspiration/store.shtml';
Href1[11]='thought/have_to_bees.shtml';
Href1[12]='thought/wannabe.shtml';
Href1[13]='inspiration/quotes_osho_random.shtml';

// second teaser choices
Image2[0]='url(images/grey_tops/dance.jpg)';
Image2[1]='url(images/grey_tops/bible.jpg)';
Image2[2]='url(images/grey_tops/mind_power.jpg)';
Image2[3]='url(images/grey_tops/ocean_waves.jpg)';
Image2[4]='url(images/grey_tops/washing_machine.jpg)';
Image2[5]='url(images/grey_tops/battery_positive.jpg)';
Image2[6]='url(images/grey_tops/respect.jpg)';
Image2[7]='url(images/grey_tops/erin_smile.jpg)';
Image2[8]='url(images/grey_tops/hippy.jpg)';
Image2[9]='url(images/grey_tops/miss_summer.jpg)';
Image2[10]='url(images/grey_tops/marley.jpg)';
Image2[11]='url(images/grey_tops/peg_on_nose.jpg)';
Image2[12]='url(images/grey_tops/riverdance.jpg)';
Image2[13]='url(images/grey_tops/all_sorts.jpg)';

Title2[0]='Dance Moves';
Title2[1]='Growing Up';
Title2[2]='Hard Wired';
Title2[3]='Life Is Wobbly';
Title2[4]='So Good!';
Title2[5]='Positively Dishonest';
Title2[6]='Respect!';
Title2[7]='Bee Fives';
Title2[8]='Coloured Spectacles';
Title2[9]='Total Ecstasy';
Title2[10]='We\'re Jammin\'';
Title2[11]='Hangman';
Title2[12]='Enjoying The Show';
Title2[13]='Random Quotes';

Link2[0]='<a href="thought/dance_moves.shtml">You can choose to dance, with no destination in mind ...</a>';
Link2[1]='<a href="thought/growing_up.shtml">With great freedom comes great responsibility ...</a>';
Link2[2]='<a href="thought/hard_wired_happiness.shtml">Plug into your hard wired happiness ...</a>';
Link2[3]='<a href="thought/life_is_wobbly.shtml">Trying to iron out life\'s inevitable waves? ...</a>';
Link2[4]='<a href="thought/never_had_it_so_good.shtml">Everything\'s brilliant and nobody\'s happy ...</a>';
Link2[5]='<a href="thought/positively_dishonest.shtml">Beware the new guise of the Shiny Future Sellers ...</a>';
Link2[6]='<a href="thought/respect_your_self.shtml">Don\'t look back in anger, I heard you say ...</a>';
Link2[7]='<a href="thought/bee_fives.shtml">Two little girls ponder where funny comes from ...</a>';
Link2[8]='<a href="thought/coloured_specs.shtml">Are you constantly looking at life through a filter...</a>';
Link2[9]='<a href="thought/ecstasy.shtml">Step outside yourself and taste the wonder of ecstasy ...</a>';
Link2[10]='<a href="thought/jammin.shtml">Life can be a wonderfully free game of ad lib ...</a>';
Link2[11]='<a href="thought/hangman.shtml">A wonderfully simple true tale of Fathers\' Day love ...</a>';
Link2[12]='<a href="thought/enjoying_the_show.shtml">The harmonic wonder of getting things in perspective ...</a>';
Link2[13]='<a href="inspiration/quotes_various_random.shtml">Shake your mind with the random quote generator ...</a>';

Href2[0]='thought/dance_moves.shtml';
Href2[1]='thought/growing_up.shtml';
Href2[2]='thought/hard_wired_happiness.shtml';
Href2[3]='thought/life_is_wobbly.shtml';
Href2[4]='thought/never_had_it_so_good.shtml';
Href2[5]='thought/positively_dishonest.shtml';
Href2[6]='thought/respect_your_self.shtml';
Href2[7]='thought/bee_fives.shtml';
Href2[8]='thought/coloured_specs.shtml';
Href2[9]='thought/ecstasy.shtml';
Href2[10]='thought/jammin.shtml';
Href2[11]='thought/hangman.shtml';
Href2[12]='thought/enjoying_the_show.shtml';
Href2[13]='inspiration/quotes_various_random.shtml';

// third teaser choices
Image3[0]='url(images/grey_tops/heart.jpg)';
Image3[1]='url(images/grey_tops/sand_dancer.jpg)';
Image3[2]='url(images/grey_tops/blue_fractal.jpg)';
Image3[3]='url(images/grey_tops/heart.jpg)';
Image3[4]='url(images/grey_tops/lottie.jpg)';
Image3[5]='url(images/grey_tops/thinker_silhouette.jpg)';
Image3[6]='url(images/grey_tops/chalk_eraser.jpg)';
Image3[7]='url(images/grey_tops/two_sticks.jpg)';
Image3[8]='url(images/grey_tops/planet.jpg)';
Image3[9]='url(images/grey_tops/saoirse.jpg)';
Image3[10]='url(images/grey_tops/golden_rule.jpg)';
Image3[11]='url(images/grey_tops/pan_pipes.jpg)';
Image3[12]='url(images/grey_tops/hurricane.jpg)';
Image3[13]='url(images/grey_tops/nis.jpg)';

Title3[0]='Thoughtless';
Title3[1]='Sand Dancer';
Title3[2]='Disillusioned?';
Title3[3]='Top Tips';
Title3[4]='Love Peepl';
Title3[5]='Your Toughts?';
Title3[6]='Unteach Me!';
Title3[7]='Sticks and Stones';
Title3[8]='Blue Planet';
Title3[9]='Unconditional';
Title3[10]='The Golden Rule';
Title3[11]='Pan Pipes';
Title3[12]='Eye of the Storm';
Title3[13]='Random Uncle Nis';

Link3[0]='<a href="thought/thoughtless.shtml">No hell below, no heaven above, just endless ...</a>';
Link3[1]='<a href="thought/sand_dancer.shtml">The wonderful creations of eternal free spirit ...</a>';
Link3[2]='<a href="thought/disillusionment.shtml">Congratulations! Your wondrous Reality awaits ...</a>';
Link3[3]='<a href="thought/tips_for_wonderful_life.shtml">Happy Cow\'s legendary Self Help book ...</a>';
Link3[4]='<a href="thought/love_peepl.shtml">Wonderful wisdom comes from the mouth of a babe ...</a>';
Link3[5]='<a href="thought/what_do_you_think.shtml">Are you sure you have a mind of your own? ...</a>';
Link3[6]='<a href="thought/unteach_me.shtml">Before thought and judgement begin, You are ...</a>';
Link3[7]='<a href="stories/sticks_stones.shtml">A moving parable about thought, effort and let go ...</a>';
Link3[8]='<a href="stories/blue_planet.shtml">A little planet was feeling a bit fed up with his lot ...</a>';
Link3[9]='<a href="stories/unconditional.shtml">Walter the Sofa Elf travels to Ireland to forget lost love ...</a>';
Link3[10]='<a href="thought/golden_rule.shtml">What if others don\'t like the same things as you do? ...</a>';
Link3[11]='<a href="stories/pan_pipes.shtml">Listen to the mesmerising music of no conditions ...</a>';
Link3[12]='<a href="thought/eye_storm.shtml">Come with me now to the centre of Life ...</a>';
Link3[13]='<a href="inspiration/quotes_nis_random.shtml">Shake your mind with the random quote generator ...</a>';

Href3[0]='thought/thoughtless.shtml';
Href3[1]='thought/sand_dancer.shtml';
Href3[2]='thought/disillusionment.shtml';
Href3[3]='thought/tips_for_wonderful_life.shtml';
Href3[4]='thought/love_peepl.shtml';
Href3[5]='thought/what_do_you_think.shtml';
Href3[6]='thought/unteach_me.shtml';
Href3[7]='stories/sticks_stones.shtml';
Href3[8]='stories/blue_planet.shtml';
Href3[9]='stories/unconditional.shtml';
Href3[10]='thought/golden_rule.shtml';
Href3[11]='stories/pan_pipes.shtml';
Href3[12]='thought/eye_storm.shtml';
Href3[13]='inspiration/quotes_nis_random.shtml';

// fourth teaser choices
Image4[0]='url(images/grey_tops/ljh_red.jpg)';
Image4[1]='url(images/grey_tops/rainbow_water.jpg)';
Image4[2]='url(images/grey_tops/market_place.jpg)';
Image4[3]='url(images/grey_tops/infinity.jpg)';
Image4[4]='url(images/grey_tops/priest.jpg)';
Image4[5]='url(images/grey_tops/ripples.jpg)';
Image4[6]='url(images/grey_tops/elephant.jpg)';
Image4[7]='url(images/grey_tops/handshake.jpg)';
Image4[8]='url(images/grey_tops/mountain_rainbow.jpg)';
Image4[9]='url(images/grey_tops/alien_landscape.jpg)';
Image4[10]='url(images/grey_tops/autumn_leaves.jpg)';
Image4[11]='url(images/grey_tops/control_adventure.jpg)';
Image4[12]='url(images/grey_tops/shaman.jpg)';
Image4[13]='url(images/grey_tops/swifty.jpg)';

Title4[0]='Obstacles';
Title4[1]='Pools';
Title4[2]='Pleasure Market';
Title4[3]='Infinity!';
Title4[4]='Island Life';
Title4[5]='Ripples';
Title4[6]='Elephantianity';
Title4[7]='Xenos';
Title4[8]='Fools\' Gold';
Title4[9]='The Bagfill Folk';
Title4[10]='Leaves';
Title4[11]='Direction';
Title4[12]='No Agreement';
Title4[13]='Random Swifty';

Link4[0]='<a href="stories/obstacles.shtml">Come with The Visitor to The Land of Obstacles ...</a>';
Link4[1]='<a href="stories/pools.shtml">Come in, come in, the water is so lovely ...</a>';
Link4[2]='<a href="stories/pleasure_market.shtml">None of them ever looked towards the centre ...</a>';
Link4[3]='<a href="stories/infinite_beings.shtml">Mister Infinite Being was a little bit bored ...</a>';
Link4[4]='<a href="stories/the_island.shtml">A Christian missionary lands on a remote island ...</a>';
Link4[5]='<a href="stories/ripples.shtml">Remember the substance in which the patterns dance ...</a>';
Link4[6]='<a href="stories/elephantianity.shtml">A new religion is born on the African plains ...</a>';
Link4[7]='<a href="stories/xenos.shtml">Two nations once tood on an isle, side by side ...</a>';
Link4[8]='<a href="stories/fools_gold.shtml">A young man sets off on a quest to find riches ...</a>';
Link4[9]='<a href="stories/bagfill.shtml">Travel to the land of the oddly familiar Bagfill folk ...</a>';
Link4[10]='<a href="stories/leaves.shtml">A shaman talks to a boy about the nature of death ...</a>';
Link4[11]='<a href="stories/direction.shtml">Are you sure that you want to control the show? ...</a>';
Link4[12]='<a href="stories/no_agreement.shtml">The Shaman asks some intriguing questions ...</a>';
Link4[13]='<a href="inspiration/quotes_swifty_random.shtml">Shake your mind with the random quote generator ...</a>';

Href4[0]='stories/obstacles.shtml';
Href4[1]='stories/pools.shtml';
Href4[2]='stories/pleasure_market.shtml';
Href4[3]='stories/infinite_beings.shtml';
Href4[4]='stories/the_island.shtml';
Href4[5]='stories/ripples.shtml';
Href4[6]='stories/elephantianity.shtml';
Href4[7]='stories/xenos.shtml';
Href4[8]='stories/fools_gold.shtml';
Href4[9]='stories/bagfill.shtml';
Href4[10]='stories/leaves.shtml';
Href4[11]='stories/direction.shtml';
Href4[12]='stories/no_agreement.shtml';
Href4[13]='inspiration/quotes_swifty_random.shtml';

function getRandomNumber()
{
	return Math.floor(Math.random()*numberOfChoices);
}

function shuffleTeasers()
{
	var random1 = getRandomNumber();
	$("#teaser1").css("backgroundImage", Image1[random1]);
	$("#teaser1title").html(Title1[random1]);
	$("#teaser1link").html(Link1[random1]);
	$("#teaser1").click(function(){ window.location.href=Href1[random1] });
	$("#teaser1").css('cursor', 'pointer');
	$("#teaser1").css('cursor', 'hand');

	var random2 = getRandomNumber();
	$("#teaser2").css("backgroundImage", Image2[random2]);
	$("#teaser2title").html(Title2[random2]);
	$("#teaser2link").html(Link2[random2]);
	$("#teaser2").click(function(){ window.location.href=Href2[random2] });
	$("#teaser2").css('cursor', 'pointer');
	$("#teaser2").css('cursor', 'hand');

	var random3 = getRandomNumber();
	$("#teaser3").css("backgroundImage", Image3[random3]);
	$("#teaser3title").html(Title3[random3]);
	$("#teaser3link").html(Link3[random3]);
	$("#teaser3").click(function(){ window.location.href=Href3[random3] });
	$("#teaser3").css('cursor', 'pointer');
	$("#teaser3").css('cursor', 'hand');

	var random4 = getRandomNumber();
	$("#teaser4").css("backgroundImage", Image4[random4]);
	$("#teaser4title").html(Title4[random4]);
	$("#teaser4link").html(Link4[random4]);
	$("#teaser4").click(function(){ window.location.href=Href4[random4] });
	$("#teaser4").css('cursor', 'pointer');
	$("#teaser4").css('cursor', 'hand');

	setTimeout('shuffleTeasers()', 8000);
}

shuffleTeasers();
