var quiz = new Array(); var r = 0;
var resPage = 'beer';
quiz[r++] =('Your friend calls you up on a Thursday afternoon and says that they have an extra ticket for a concert that night.  Which one would you be most likely to take~Oakridge Boys at Paramount~Death Cab for Cutie at Noomos~James Taylor at Key Arena~Chemical Romance at The High Dive~~');
quiz[r++] =('It is a rainy September Day and you are showing some friends around Post Alley at Pike Place.  Soon you find yourself staring at a wall of gum and want to make an addition.  Which gum are you most likely to have in your mouth?~Big League Chew~Bubbleisous~Orbitz~Dentyne~~');
quiz[r++] =('We all love our roads in Seattle.  Especially the bridges.  Which bridge do you spend the most time on that you wish you did not~West Seattle Bridge~520~I-90~Alaskan Way Viaduct~~');
quiz[r++] =('You win the lottery and suddenly you can afford to buy a house with a view in Seattle.  Which mountain(s) do you look at~Mount Rainier~Mount Baker~Cascades~Olympics~~');
quiz[r++] =('What island in the sound is most appealing?~Lopez~Orcas~Whidbey~Bainbridge~~');
quiz[r++] =('Which Vehicle is most like the one you currently drive~I do not own a car, Public Transit is the life for me~Subaru Outback~Dodge Caravan~Honda Accord~~');
quiz[r++] =('Your friends go out of town and ask you to watch their four legged friend for the weekend.  You graciously accept, but it suddenly dawns on you that you really do not like their dog.  Their dog is a~Black Lab~Labra-Doodle~Actually a Cat~Pug~~');
quiz[r++] =('What kind of art would you like to have?~Andy Warhol~Personalized Art drawn by a friend~Your Own~Picasso~~');
quiz[r++] =('Which movie are you most likely to watch while drinking a Two Beers Brewing Co. Ale?~I Heart Huckabees~Napolean Dynamite~Harry Potter~Lord of the Rings~~');
quiz[r++] =('Life is difficult and you decide that you are going to do some reading to help you get through.  You are most likely to pick up~The Koran~Bhagvad Gita~The Holy Bible~Self-Help Books~~');
quiz[r++] =('After drinking maybe one too many Two Beers Brewing Company Ales you find yourself involved in a conversation about what internal organ you are most like, you answer?~Appendix~Lung~Gall Bladder~Kidney~~');
quiz[r++] =('Beer is best drank with a meal prepared by people you love.  When you have people over for dinner you are most likely to make?~Alaskan King Salmon with Asparagus~Teriyaki Chicken with steamed white rice~Fried Tofu with a medley of fresh vegetables~Pot Roast with Mashed Potatoes, Carrots, and Gravy~~');
quiz[r++] =('. You are checking the weather report before you go to bed and see that it is going to be an incredible day tomorrow.  Suddenly your phone rings, its your boss.  For some crazy reason you answer and your boss tells you to take the day off tomorrow to enjoy the weather.  What do you do?~I would hop on the bus, head downtown and visit the shops and art studios then end up getting dinner at a Thai place before~There is no such thing as a day off.  So I would probably get up at 7, drink some coffee and get caught up on email~Getting up with the sun driving up to the mountains and doing a day hike with my four legged friend~By sleeping in till noon, waking up and eating Cinnamon Toast Crunch and watching old episodes of the Simpsonâ€™s~~');
quiz[r++] =('If your life were a movie how would you describe it~Western~Horror~Comedy~Romantic-Comedy~~');
quiz[r++] =('The shoes that you wear the most are?~Crocs~Sandles~Running Shoes~Leather~~');
quiz[r++] =('We all have a season that we like the most, which one is yours?~Fall~Spring~Summer~Winter~~');
quiz[r++] =('If you had to describe your best friend with one of the following characteristics, what would you choose?~Passionate, always looking for a good argumen~Cares deeply, and wants to make sure I\'m well~Refreshing, always looking to the positive and full of adventure~Easy going, willing to listen when I have something to share~~');


var quest = 10;

// Random Quiz Selector Addon
// copyright 12th April, 2005 by Stephen Chapman
// these functions may be added to the bottom of the quizhead.js script
// of most of my quiz scripts to randomly select "quest" questions from
// a larger array of questions
// permission to use this Javascript on your web page is granted
// provided that all of the code in this script (including these
// comments) is used without any alteration

function randQuiz(num,arry) {if (quiz.length < num) return arry;var rndary = new Array();for (var i = 0; i<arry.length; i++) {var x = Math.floor(Math.random()*500)+100;var y = 101+i;rndary[i] = ''+x+y+':'+arry[i];}rndary.sort();var newary = new Array();var sel = '';for (var i=0; i<num; i++) {sel += rndary[i].substr(3,3); newary[i] = rndary[i].substr(7);}document.cookie = 'quizSel='+sel;return newary;}
function sameQuiz(quiz,sel) {var newary = new Array();for (var i=0; i< sel.length/3;i++) {var n = sel.substr(i*3,3);var m = parseInt(n) - 101;newary[i] = quiz[m];}return newary;}
function readCookie(cname) {thisCookie = document.cookie.split('; ');for (var i=0; i<thisCookie.length;i++) {if (thisCookie[i].split('=')[0] == cname) return thisCookie[i].split('=')[1];} return false;}
var sel = readCookie('quizSel');if (sel) quiz = sameQuiz(quiz,sel);else quiz = randQuiz(quest,quiz);
                  
