// JavaScript Document// name="designation" content="PS"
// name="csg" content="Yes"
// name="pcg" content="Yes"
// end split here

/*
This is a robust script that loads a random image with corresponding link. 
You can throw in as many images into rotation as you wish.

*/

// Original script modified for caption under image

    function showcaseImage(path,linkURL,caption) {
    	this.path = path
    	this.linkURL = linkURL
    	this.caption = caption
    }

	var myimages = new Array()
	
	//specify random images below. You can have as many as you wish
    myimages[0] = new showcaseImage("images/yellow.gif","#", "In 2007, Canada\'s creative sector contributed over $46 billion in GDP to the national economy.")
    myimages[1] = new showcaseImage("images/red.gif","#","In 2007, tourists visiting B.C. arts and cultural attractions spent $566 million.")
    myimages[2] = new showcaseImage("images/orange.gif","#","B.C.\'s arts and culture industries account for almost 5% of the province\'s GDP and employ 80,000 people.")
    myimages[3] = new showcaseImage("images/grey.gif","#","Cultural tourism, including heritage tourism, is one of the fastest growing tourism sectors in B.C.")
    myimages[4] = new showcaseImage("images/comm1.gif","#","Twice as many Canadian households spent money on live performing arts as spent money on live sports events.")
    myimages[5] = new showcaseImage("images/blue.gif","#","Studies indicate that visual arts can reduce stress levels and reduce symptoms of depression.")
	myimages[6] = new showcaseImage("images/blue.gif","#","Music can lower blood pressure in pregnant women, reduce the need for pain killers following surgery and stimulate an unborn child\'s heartbeat.")
	myimages[7] = new showcaseImage("images/blue.gif","#","Research suggests that attendance at cultural events, reading books or periodicals, making music or singing in a choir can increase your life expectancy.")
	myimages[8] = new showcaseImage("images/blue.gif","#","Children and youth develop motor, intellectual and social skills as well as creativity through play, arts and cultural activities.")
	myimages[9] = new showcaseImage("images/blue.gif","#","Youth with high involvement in the arts had significantly higher marks, lower dropout rates and lower reported boredom rates than other young people.")
	myimages[10] = new showcaseImage("images/blue.gif","#","In 1978, film and television production was a $12 million in B.C.  Thirty years later, it’s a $1.2 billion industry.")
	myimages[11] = new showcaseImage("images/blue.gif","#","Vancouver is the most artistic major city in Canada; it has the highest percentage of the labour force working in arts and culture.")
	myimages[12] = new showcaseImage("images/blue.gif","#","For every dollar received from governments, Canadian performing arts organizations generate $2.70 in economic activity.")
	myimages[13] = new showcaseImage("images/blue.gif","#","The international cultural tourism sector is increasing by 15% annually.")
	myimages[14] = new showcaseImage("images/blue.gif","#","Between 1981-2001, employment in Canada\'s cultural tourism sector grew by 81%.")
	myimages[15] = new showcaseImage("images/blue.gif","#","Seven of the 10 most artistic small communities in the country, and six of the 10 most artistic large cities, are in B.C.")

	var randomNum = Math.floor(Math.random() * myimages.length)
	document.write(''+
'      <a href="../' + myimages[randomNum].linkURL + '" target="_blank"> </a>' +
myimages[randomNum].caption  )        


