// JavaScript Document

var ic = 5; // Number of alternative images

var index = new Array(ic); // Array to hold filenames 
index[0] = "Repeat-x repeat-y is a collection of kick-ass patterns from a plethora of designers/illustrators/artists."; 
index[1] = "Repeat-x repeat-y, showcasing the most badass patterns from around the world."; 
index[2] = "Repeat-x repeat-y, as featured on Danny Dyer's Worlds Most Deadliest Patterns 2.";
index[3] = "Repeat-x repeat-y is a collection of kick-ass patterns from a plethora of designers/illustrators/artists."; 
index[4] = "Repeat-x repeat-y is a collection of kick-ass patterns from a plethora of designers/illustrators/artists."; 


var info = new Array(ic); // Array to hold filenames 
info[0] = "A is for amazing. P is for pattern."; 
info[1] = "Your moms favourite pattern makers."; 
info[2] = "We always make the guest list.";
info[3] = "Our pattern's are the K9's testicles."; 
info[4] = "You fucking love us."; 


var submit = new Array(ic); // Array to hold filenames 
submit[0] = "All patterns will be judged, harshly."; 
submit[1] = "Become a member of the pattern elite. Your partner will be more forthcoming. Factoid."; 
submit[2] = "This is the submission section. But we're not talking BDSM.";
submit[3] = "Do you cut the mustard? Does your pattern slice the mayo?"; 
submit[4] = "Join us, make your nana proud as fuck."; 

function pickRandom(range) 
{ if (Math.random) return Math.round(Math.random() * (range-1)); else { var now 
= new Date(); return (now.getTime() / 1000) % range; } } 

// Write out an IMG tag, using a randomly-chosen image name. 
var choice = pickRandom(ic); 
