//Preload to images for smoothe user experience
var image1 = new Image();
image1.src = "work-examples/1.jpg";

var image2 = new Image();
image2.src = "work-examples/2.jpg";

var image3 = new Image();
image3.src = "work-examples/3.jpg";

var image4 = new Image();
image4.src = "work-examples/4.jpg";

var image5 = new Image();
image5.src = "work-examples/5.jpg";

var image6 = new Image();
image6.src = "work-examples/6.jpg";




// Set text to go with Images and Define the RollOver Function

var example_descriptions = Array();



example_descriptions['flyers-folders-packaging'] = Array(
'Mike Rivett &amp; Ko Omura &#8211; Jazz Tour flyer, 2008/2009 &#8211; Mary Parsch Design',
'Practical Parenting Magazine &#8211; Media kit folder, 2006 <br />Employer: Time Inc. South Pacific',
'Blackmores Australia &#8211; Dual wall box, 2000 &#8211; College work <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Sydney Convicts Rugby 2004-2009 &#8211; Fundraising promotion flyers &#8211; Mary Parsch Design',
'Karlisle&#8217;s Baby Goods, 2006 &#8211; promotional flyers &#8211; Mary Parsch Design',
'Bride to Be Magazine &#8211; Media Kit folder, 2006 <br />Employer: Time Inc. South Pacific'
);



example_descriptions['brochures-booklets'] = Array(
'Commonwealth Bank &#8211; Map exhibition brochure, 2009 <br />Employer: CBA',
'Uncle Toby&#8217;s &#8211; Sudoku booklet for WHO magazine, 2006 <br />Employer: Time Inc. South Pacific',
'Powerhouse Museum &#8211; Space exploration brochure, 2001 &#8211; College work <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Bride to Be Magazine &#8211; Bridal shopping guide, 2005 <br />Employer: Time Inc. South Pacific <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Ray White Prestige Palm Beach &#8211; Real estate brochure, 2004 <br />Employer: Williams Design Associates',
'Sydney Japanese School &#8211; School brochure, 2001 &#8211; Mary Parsch Design'
);



example_descriptions['logos-cards-invitations'] = Array(
'Mama Moves Australia &#8211; Gift Certificate, 2008 &#8211; Mary Parsch Design',
'Property Industry Foundation &#8211; Charity Ball Invite, 2001 &#8211; Mary Parsch Design',
'Chanel / InStyle magazine &#8211; Fashion Event Invitation, 2005 <br />Employer: Time Inc. South Pacific',
'ABC Sensei Language School &#8211; Business Cards, 2009 &#8211; Mary Parsch Design',
'Nursingwear &#8211; Stationery, 2009 &#8211; Mary Parsch Design',
'Bady Sanctuary Beauty Salon &#8211; Corporate identity, 2006 &#8211; Mary Parsch Design'
);


example_descriptions['advertising'] = Array(
'Nursingwear &#8211; Magazine ads, 2005-2009 &#8211; Mary Parsch Design',
'Sticky Sweets &#8211; Ad in Bride to Be Magazine, 2006 <br />Employer: Time Inc. South Pacific',
'Max Walls International Real Estate &#8211; Ad in several Sydney publications, 2003 <br />Employer: Williams Design Associates',
'ANZ Bank &#8211; Mock Up for Bride to Be Magazine <br />Employer: Time Inc. South Pacific <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Cafe Birkinhead &#8211; Ad in Bride to Be Magazine <br />Employer: Time Inc. South Pacific',
'Rumours Luxury villas and spa &#8211; Ad in Bride to Be Magazine, 2006 <br />Employer: Time Inc. South Pacific'
);



example_descriptions['information-design'] = Array(
'Biocell Cord Blood Banking &#8211; Feature in Practical Parenting Magazine, 2005 <br />Employer: Time Inc. South Pacific',
'Psychoanalytical Journal &#8211; Sigmund Freud biography poster, 2001 &#8211; College work <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Bride to Be Magazine &#8211; Website user guide, 2006 <br />Employer: Time Inc. South Pacific',
'Commonwealth Bank &#8211; General bank forms, 2008-2009 <br />Employer: CBA',
'Heart Foundation &#8211; Guide to healthy eating for kids in Practical Parenting magazine, 2005 <br />Employer: Time Inc. South Pacific <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Bride to Be Magazine &#8211; Survey results brochure, 2006 <br />Employer: Time Inc. South Pacific'
);


example_descriptions['promotions'] = Array(
'Bride to Be Magazine &#8211; Survey promotion, 2006 <br />Employer: Time Inc. South Pacific',
'Rosehill Racecourse &#8211; Bride to Be Magazine promotion, 2005 <br />Employer: Time Inc. South Pacific',
'Fitness First &#8211; Bride to Be Magazine promotion, 2006 <br />Employer: Time Inc. South Pacific',
'Warner Brothers &#8211; Practical Parenting Magazine promotion, 2006 <br />Employer: Time Inc. South Pacific',
'Robert Welch cutlery &#8211; Bride to Be Magazine promotion, 2005 <br />Employer: Time Inc. South Pacific',
'Hooley Dooleys &#8211; Practical parenting Magazine promotion, 2005 <br />Employer: Time Inc. South Pacific'
);


example_descriptions['campaigns'] = Array(
'Johnson &amp; Johnson &#8211; Ads for InStyle Magazine, 2006 <br />Employer: Time Inc. South Pacific <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Dyson &#8211; Ads for Bride to Be Magazine, 2006 <br />Employer: Time Inc. South Pacific <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Coty Lancaster &#8211; Ads for InStyle Magazine, 2005 <br />Employer: Time Inc. South Pacific <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Nurofen &#8211; Ads for Practical Parenting Magazine, 2006 <br />Employer: Time Inc. South Pacific',
'Moet Chandon &#8211; Ads for WHO Magazine, 2006 <br />Employer: Time Inc. South Pacific <br /><span>(disclaimer: this concept was not commercially proceeded with)</span>',
'Freedom Furniture &#8211; Ads for Bride to Be Magazine, 2006 <br />Employer: Time Inc. South Pacific <br />(disclaimer: this concept was not commercially proceeded with)'
);


// NOTE the variable current_directory is set in the head of portfolio_skeleton with PHP.

var current_selection = 0;

function rollOver(id) {
if (id != current_selection) {
	document.getElementById('thumb_'+id).style.borderColor= '#fff';
} 
}

function rollOut(id) {
if (id != current_selection) {
	document.getElementById('thumb_'+id).style.borderColor= '#000000';
}
}

function imageclick(id) {
current_selection = id;

var i= 1;
while (i<=6) {
if (i != current_selection) {
	document.getElementById('thumb_'+i).style.borderColor= '#000000';
}
i++
}

	var example_image = document.getElementById('work-example');
	example_image.src = 'work-examples/'+id+'.jpg';
	example_image.style.display = 'block';
	//document.getElementById('mouse-over').style.display = 'none';
	document.getElementById('example-text').innerHTML = example_descriptions[current_directory][id - 1];
document.getElementById('thumb_'+id).style.borderColor= '#2782ba';
}