function SuccessStory(imgsrc, text, url) {
		// ss object
		this.imgsrc = imgsrc;
		this.smallImageWidth = "40";
		this.smallImageHeight = "27";
		this.imgsmall = "<img src='"+this.imgsrc+"' width='"+this.smallImageWidth+"' height='"+this.smallImageHeight+"' alt='story'/>";
		this.largeImageHeight = "134";
		this.largeImageWidth = "89";	
		this.imglarge = "<img src='"+this.imgsrc+"' width='"+this.largeImageHeight+"' height='"+this.largeImageWidth+"' alt='story'/>";
		this.text = text;
		this.url = url;
	}

	var arrStories = new Array();
	arrStories[0] = new SuccessStory("/InvestAssets/images/success-stories/eclipsall-small.png", "<p><strong>Eclipsall Energy Corporation was founded in 2009 with the objective of being the premier manufacturer of PV solar panels in North America</strong></p>Early on, our management team knew that the location of the manufacturing facility would be a key decision. Many hours were spent evaluating, visiting and considering sites in Ontario and other parts of Canada. Our ultimate decision was a location in Scarborough, in metropolitan Toronto.", "/News-and-Reports/Success-Stories-and-Profiles/Cleantech-and-Green-Energy/Eclipsall-Energy.aspx");
	arrStories[1] = new SuccessStory("/InvestAssets/images/success-stories/umbra-small.png", "<p><strong>Umbra exports its Toronto-designed home decor all over the world.</strong></p>Design makes cities great. It defines their skyline, decorates the streets and inspires citizens to be curious, thoughtful and proud. But design does not have to be on a large scale to contribute toward its city's aesthetic. A city can be made more beautiful one home at a time, says Les Mandelbaum, co-founder of Toronto home decor company Umbra", "/News-and-Reports/Success-Stories-and-Profiles/Creative-Industries.aspx");
	arrStories[2] = new SuccessStory("/InvestAssets/images/success-stories/sickkids-small.png", "<p><strong>Biomedical research at The Hospital for Sick Children is attracting top scientists.</strong></p>For the Chief of Research at SickKids in Toronto, collaboration is the key to the future. That's why Dr. Janet Rossant is so enthusiastic about the work being done in the MaRS Discovery District - a unique zone in the city where innovations in science and technology are commercialized through partnerships between researchers and private enterprise. ", "/News-and-Reports/Success-Stories-and-Profiles/Life-Sciences/The-Hospital-for-Sick-Children-Research-Institute.aspx");
	arrStories[3] = new SuccessStory("/InvestAssets/images/success-stories/scotiabank-small.png", "<p><strong>Scotiabank - an international bank with local spirit</strong></p>Offering services in 50 different countries makes Scotiabank one of Canada's most established international financial services companies. And although these services may take the company around the globe, Scotiabank has been proudly headquartered in Toronto since 1900.", "/News-and-Reports/Success-Stories-and-Profiles/Finance/Scotiabank.aspx");
	arrStories[4] = new SuccessStory("/InvestAssets/images/success-stories/sideeffects-small.png", "<p><strong>3D animation company brings creative ideas to life</strong></p>What do the films Transformers, Pirates of the Caribbean: Dead Man's Chest, and Spider-Man 3 have in common? They were all made using 3D animation software developed by Toronto-based Side Effects Software Inc. Side Effects Software's technology has been used in more than 200 feature films, and its contributions to the film industry have earned two Academy Awards.", "/News-and-Reports/Success-Stories-and-Profiles/ICT/Side-Effects-Inc-.aspx");
	arrStories[5] = new SuccessStory("/InvestAssets/images/success-stories/goldman-small.png", "<p><strong>Goldman Sachs opens fund-administration office in Toronto.</strong></p>The Goldman Sachs Group, Inc., one of the world's leading investment-banking, asset-management and securities firms has chosen Toronto to grow and diversify its hedge-fund administration business. Goldman Sachs has opened its newest Goldman Sachs Administration Services office in Toronto with Fund Accounting and Investor Servicing areas of its hedge fund administration operations.", "/News-and-Reports/Success-Stories-and-Profiles/Finance/Goldman-Sachs.aspx");

	var n = arrStories.length;
	var imghtml;

	$(document).ready(function() {
	
		for(var i=0; i<n; i++){

			story = arrStories[i];
			$("#st"+i).html(story.imgsmall);
		}
		
		$(".smallthumb").bind("mouseover", function(){
			var id = $(this).attr("id");
			id = id.replace("st","");
			position = id*1;
			showStory(position);
		});
		
		$(".smallthumb").bind("click", function(){
			var id = $(this).attr("id");
			id = id.replace("st","");
			position = id*1;
			document.location=arrStories[position].url;
		});
		
		showStory(0);
		
	});
	
	function showStory(which){
		
		$("#successStoryImage").html(arrStories[which].imglarge);
		$("#successStoryText").html(arrStories[which].text);
	}
