// JavaScript Document
//Josh Clark Design Portfolio: By Josh Clark, at http://www.joshclarkdesign.com
//** Created: 5/24/2009


// Declares the lists of images that will appear as sets in the main viewer area

var mind_over_machines = new Array ("<img src='images/large/mind_over_machines_01.jpg' alt='Mind Over Machines Business Card Design' border='0' syncwith='mind_over_machines' />","<img src='images/large/mind_over_machines_04.jpg' alt='Mind Over Machines Flyer Design' border='0' syncwith='mind_over_machines' />","<img src='images/large/mind_over_machines_02.jpg' alt='Mind Over Machines Thank You Card Design' border='0' syncwith='mind_over_machines' />","<img src='images/large/mind_over_machines_06.jpg' alt='Mind Over Machines Pocket Folder Design' border='0' syncwith='mind_over_machines' />","<img src='images/large/mind_over_machines_05.jpg' alt='Mind Over Machines Pocket Folder Design' border='0' syncwith='mind_over_machines' />");

var seventhseal = new Array ("<img src='images/large/seventhseal_01.jpg' alt='Seventh Seal Album Design' border='0' syncwith='seventhseal' />","<img src='images/large/seventhseal_02.jpg' alt='Seventh Seal Album Design' border='0' syncwith='seventhseal' />","<img src='images/large/seventhseal_03.jpg' alt='Seventh Seal Album Design' border='0' syncwith='seventhseal' />","<img src='images/large/seventhseal_04.jpg' alt='Seventh Seal Album Design' border='0' syncwith='seventhseal' />","<img src='images/large/seventhseal_05.jpg' alt='Seventh Seal Album Design' border='0' syncwith='seventhseal' />");

var project1 = new Array ("<img src='images/dummy-images/project-image-1.jpg' alt='' border='0' syncwith='project1' />","<img src='images/dummy-images/project-image-2.jpg' alt='' border='0' syncwith='project1'/>","<img src='images/dummy-images/project-image-3.jpg' alt='' border='0' syncwith='project1'/>");

var project2 = new Array ("<a href='http://www.blackholerockclub.com' target='_blank'><img src='images/large/blackhole_02.jpg' alt='Black Hole Site Design' syncwith='project2' border='0'/></a>","<a href='http://www.blackholerockclub.com' target='_blank'><img src='images/large/blackhole_03.jpg' alt='Black Hole Site Design' syncwith='project2' border='0'/></a>");

var project3 = new Array ("<a href='http://www.learningextjs.com' target='_blank'><img src='images/large/learning_extjs_02.jpg' alt=''Learning Ext JS Site Design Close Up' syncwith='project3' border='0'/>","<a href='http://www.learningextjs.com' target='_blank'><img src='images/large/learning_extjs.jpg' alt='Learning Ext JS Site Design' syncwith='project3' border='0'/>");

var project4 = new Array ("<img src='images/large/home_and_stone_home.jpg' alt='Home and Stone Site Design Option 1' syncwith='project4'/>","<img src='images/large/home_and_stone_02.jpg' alt='Home and Stone Site Design Option 1' syncwith='project4'/>","<img src='images/large/home_and_stone_03.jpg' alt='Home and Stone Site Design Option 1' syncwith='project4'/>","<img src='images/large/home_and_stone_01.jpg' alt='Home and Stone Site Design Option 2' syncwith='project4'/>","<img src='images/large/home_and_stone_04.jpg' alt='Home and Stone Site Design Option 2' syncwith='project4'/>");

var project5 = new Array ("<img src='images/large/elevation_01.jpg' alt='Elevation Site Design Option 1' syncwith='project5'/>","<img src='images/large/elevation_02.jpg' alt='Elevation Site Design Option 1' syncwith='project5'/>","<img src='images/large/elevation_03.jpg' alt='Elevation Site Design Option 2' syncwith='project5'/>","<img src='images/large/elevation_04.jpg' alt='Elevation Site Design Option 2' syncwith='project5'/>");

var project6 = new Array ("<img src='images/large/ctasc_01.jpg' alt='CTASC Design' syncwith='project6'/>","<img src='images/large/ctasc_02.jpg' alt='CTASC Design' syncwith='project6'/>");

var project7 = new Array ("<img src='images/large/sasasspa_01.jpg' alt='SaSa's Spa Design' syncwith='project7'/>","<img src='images/large/sasasspa_02.jpg' alt='SaSa's Spa Design' syncwith='project7'/>");

var wash_logo = new Array ("<img src='images/large/wash_logo.gif' alt='Wash Logo Design' syncwith='wash_logo'/>");

var uglymug_logo = new Array ("<img src='images/large/uglymug_01.gif' alt='Ugly Mug Logo Design' syncwith='uglymug_logo'/>");

var yoga_logo = new Array ("<img src='images/large/yoga_butterfly.gif' alt='Yoga Butterfly Logo Design' syncwith='yoga_logo'/>");

var boomtown_logo = new Array ("<img src='images/large/boomtown_01.gif' alt='Bottom Logo Design' syncwith='boomtown'/>");

var ss_logo = new Array ("<img src='images/large/seventhseal_logo_new.gif' alt='Seventh Seal Logo Design' syncwith='ss_logo'/>","<img src='images/large/seventhseal_logo_old.gif' alt='Seventh Seal Logo Design' syncwith='ss_logo'/>");

var anamide_logo = new Array ("<img src='images/large/anamide_01.gif' alt='Anamide Logo Design' syncwith='anamide_logo'/>");

var bhrc_logo = new Array ("<img src='images/large/blackhole_01.gif' alt='Black Hole Logo Design' syncwith='bhrc_logo'/>");

var project9 = new Array ("<img src='images/large/danielle_renee_01.jpg' alt='Danielle Renee Design Work' syncwith='project9'/>");

var project10 = new Array ("<img src='images/large/remarriage_01.jpg' alt='reMarriage Website Design' syncwith='project10'/>","<img src='images/large/remarriage_02.jpg' alt='reMarriage Website Design' syncwith='project10'/>");

var project11 = new Array ("<img src='images/large/elitemga_01.jpg' alt='Elite MGA Website Design' syncwith='project11'/>","<img src='images/large/elitemga_02.jpg' alt='Elite MGA Website Design' syncwith='project11'/>");

var project12 = new Array ("<img src='images/large/ofac_02.jpg' alt='OFAC Application Design' syncwith='project12'/>","<img src='images/large/ofac_01.jpg' alt='OFAC Application Design' syncwith='project12'/>");

var project13 = new Array ("<img src='images/large/flyers_01.jpg' alt='Flyer Design' syncwith='project13'/>","<img src='images/large/flyers_04.jpg' alt='Flyer Design' syncwith='project13'/>","<img src='images/large/flyers_02.jpg' alt='Flyer Design' syncwith='project13'/>","<img src='images/large/flyers_03.jpg' alt='Flyer Design' syncwith='project13'/>");

var aca = new Array ("<img src='images/large/aca-web-01.jpg' alt='ACA' syncwith='aca'/>","<img src='images/large/aca-web-02.jpg' alt='ACA' syncwith='aca'/>","<img src='images/large/aca-web-03.jpg' alt='ACA' syncwith='aca'/>");

var centermd = new Array ("<img src='images/large/center-md-01.jpg' alt='Center Maryland' syncwith='centermd'/>","<img src='images/large/center-md-02.jpg' alt='Center Maryland' syncwith='centermd'/>");

var fitzmaurice = new Array ("<img src='images/large/fitz-web-01.jpg' alt='Fitzmaurice Community Services' syncwith='fitzmaurice'/>","<img src='images/large/fitz-web-02.jpg' alt='Fitzmaurice Community Services' syncwith='fitzmaurice'/>","<img src='images/large/fitz-web-03.jpg' alt='Fitzmaurice Community Services' syncwith='fitzmaurice'/>");

var momweb = new Array ("<img src='images/large/mom-web-01.jpg' alt='Mind Over Machines' syncwith='momweb'/>","<img src='images/large/mom-web-02.jpg' alt='Mind Over Machines' syncwith='momweb'/>","<img src='images/large/mom-web-03.jpg' alt='Mind Over Machines' syncwith='momweb'/>","<img src='images/large/mom-web-04.jpg' alt='Mind Over Machines' syncwith='momweb'/>","<img src='images/large/mom-web-05.jpg' alt='Mind Over Machines' syncwith='momweb'/>","<img src='images/large/mom-web-06.jpg' alt='Mind Over Machines' syncwith='momweb'/>");

var ssweb = new Array ("<img src='images/large/seventhseal-web-01.jpg' alt='Seventh Seal' syncwith='ssweb'/>","<img src='images/large/seventhseal-web-02.jpg' alt='Seventh Seal' syncwith='ssweb'/>","<img src='images/large/seventhseal_06.jpg' alt='Seventh Seal Album Design' border='0' syncwith='ssweb' />");

var skirmish = new Array ("<img src='images/large/skirmish-web-01.jpg' alt='Skirmish' syncwith='skirmish'/>","<img src='images/large/skirmish-web-02.jpg' alt='Skirmish' syncwith='skirmish'/>");

var zanninos_logo = new Array ("<img src='images/large/zanninos-logo-01.jpg' alt='Zannino's Logo Design' syncwith='zanninos_logo'/>","<img src='images/large/zanninos-logo-02.jpg' alt='Zannino's Logo Design syncwith='zanninos_logo'/>","<img src='images/large/zanninos-logo-03.jpg' alt='Zannino's Logo Design syncwith='zanninos_logo'/>","<img src='images/large/zanninos-logo-04.jpg' alt='Zannino's Logo Design syncwith='zanninos_logo'/>");

var unisearch_logo = new Array ("<img src='images/large/unisearch-logo.jpg' alt='Unisearch Logo Design' syncwith='unisearch_logo'/>");

var rcd_logo = new Array ("<img src='images/large/rcd-logo.jpg' alt='RCD Logo Design' syncwith='rcd_logo'/>","<img src='images/large/rcd-logo-02.jpg' alt='RCD Logo Design' syncwith='rcd_logo'/>");

var nrai_interface = new Array ("<img src='images/large/nrai-01.jpg' alt='NRAI Interface Design' syncwith='nrai_interface'/>","<img src='images/large/nrai-02.jpg' alt='NRAI Interface Design' syncwith='nrai_interface'/>");

var eb_interface = new Array ("<img src='images/large/eb-01.jpg' alt='Everything is Better Tshirt Designs' syncwith='eb_interface'/>");

var osi_logo = new Array ("<img src='images/large/osi-01.jpg' alt='Outside Solutions Logo Design' syncwith='osi_logo'/>","<img src='images/large/osi-02.jpg' alt='Outside Solutions Logo Design' syncwith='osi_logo'/>");

var whole_layout = new Array ("<img src='images/large/whole-01.jpg' alt='Whole EP Design' syncwith='whole_layout'/>","<img src='images/large/whole-02.jpg' alt='Whole EP Design' syncwith='whole_layout'/>");

var mobi_layout = new Array ("<img src='images/large/mobi-01.jpg' alt='MOBI Brochure Design' syncwith='mobi_layout'/>");

var gerretson_layout = new Array ("<img src='images/large/gerretson-01.jpg' alt='Gerretson Brochure Design' syncwith='gerretson_layout'/>");

var mcsa_layout = new Array ("<img src='images/large/mcsa-01.jpg' alt='MCSA Card Design' syncwith='mcsa_layout'/>");

var walton = new Array ("<a href='http://www.waltonartscenter.org' target='_blank'><img src='images/large/walton-01.jpg' alt='Walton Homepage Design' syncwith='walton'/></a>","<a href='http://www.waltonartscenter.org' target='_blank'><img src='images/large/walton-02.jpg' alt='Walton Homepage Design' syncwith='walton'/></a>","<a href='http://www.waltonartscenter.org' target='_blank'><img src='images/large/walton-03.jpg' alt='Walton Interior Design' syncwith='walton'/></a>","<a href='http://www.waltonartscenter.org' target='_blank'><img src='images/large/walton-04.jpg' alt='Walton Calendar Design' syncwith='walton'/></a>","<a href='http://www.waltonartscenter.org' target='_blank'><img src='images/large/walton-05.jpg' alt='Walton Calendar Design' syncwith='walton'/></a>","<a href='http://www.waltonartscenter.org' target='_blank'><img src='images/large/walton-06.jpg' alt='Walton Ticketor Design' syncwith='walton'/></a>");

var repertorio = new Array ("<img src='images/large/repertorio-01.jpg' alt='Repertorio Homepage Design' syncwith='repertorio'/>");

var vesta = new Array ("<a href='http://www.vestascension.com' target='_blank'><img src='images/large/vesta-01.jpg' alt='Vestascension Homepage Design' syncwith='vesta'/></a>","<a href='http://www.vestascension.com' target='_blank'><img src='images/large/vesta-02.jpg' alt='Vestascension Website Design' syncwith='vesta'/></a>");


// Object containing all project image sets
var imageBank = {
	
	project1:project1,
	project2:project2,
	project3:project3,
	project4:project4,
	project5:project5,
	project6:project6,
	project7:project7,
	project9:project9,
	project10:project10,
	project11:project11,
	project12:project12,
	project13:project13,
	seventhseal:seventhseal,
	mind_over_machines:mind_over_machines,
	aca:aca,
	centermd:centermd,
	fitzmaurice:fitzmaurice,
	momweb:momweb,
	ssweb:ssweb,
	skirmish:skirmish,
	wash_logo:wash_logo,
	uglymug_logo:uglymug_logo,
	yoga_logo:yoga_logo,
	boomtown_logo:boomtown_logo,
	ss_logo:ss_logo,
	anamide_logo:anamide_logo,
	bhrc_logo:bhrc_logo,
	zanninos_logo:zanninos_logo,
	unisearch_logo:unisearch_logo,
	rcd_logo:rcd_logo,
	nrai_interface:nrai_interface,
	eb_interface:eb_interface,
	osi_logo:osi_logo,
	whole_layout:whole_layout,
	mobi_layout:mobi_layout,
	gerretson_layout:gerretson_layout,
	mcsa_layout:mcsa_layout,
    walton:walton,
    repertorio:repertorio,
    vesta:vesta
};

// Declaring the text that will be shown in the caption area
var project_caption1 = "<h2>client:</h2> Project number 1 caption <br /></div><h2>role:</h2> Role that I played in the project.";
var project_caption2 = "<h2>client:</h2> <a href='http://www.blackholerockclub.com' target='_blank'>Black Hole Night Club</a> <br /><h2>role:</h2> Logo Design, Website Design, Flash";
var project_caption3 = "<h2>client:</h2> <a href='http://www.learningextjs.com' target='_blank'>Learning Ext JS, Shea Frederick</a> <br /><h2>role:</h2> Website Design";
var project_caption4 = "<h2>client:</h2> Home & Stone <br /><h2>role:</h2> E-Commerce Website Design";
var project_caption5 = "<h2>client:</h2> Elevation Church <br /><h2>role:</h2> Website Design, XHTML/CSS, CMS";
var project_caption6 = "<h2>client:</h2> CTASC <br /><h2>role:</h2> Website Design";
var project_caption7 = "<h2>client:</h2> SaSa's Spa <br /></div><h2>role:</h2> Website Design";
var project_caption9 = "<h2>client:</h2> <a href='http://www.daniellereneeonline.com' target='_blank'>Danielle Renee</a> <br /><h2>role:</h2> Logo Design, Website Design, XHTML/CSS, CMS";
var project_caption10 = "<h2>client:</h2> <a href='http://www.remarriagemag.com' target='_blank'>reMarriage Magazine</a>  <br /><h2>role:</h2> Website Design";
var project_caption11 = "<h2>client:</h2> Elite MGA <br /><h2>role:</h2> Website Design, Flash Design";
var project_caption12 = "<h2>client:</h2> OFAC Watch <br /><h2>role:</h2> User Interface Design";
var project_caption13 = "<h2>client:</h2> Flyer Design for Multiple Clients <br /><h2>role:</h2> Graphic Design";
var seventhseal_caption = "<h2>client:</h2> <a href='http://www.seventhsealband.com' target='_blank'>Seventh Seal</a> <br /><h2>role:</h2> Album Cover Design, Logo Design, Website Design";
var mindovermachines_caption = "<h2>client:</h2> Mind Over Machines<br /><h2>role:</h2> Print Design - Pocket Folder, Thank you cards, Envelopes, Business Cards";
var aca_caption = "<h2>client:</h2> ACA: Answer Center America<br /><h2>role:</h2> Web design";
var centermd_caption = "<h2>client:</h2>Center Maryland<br /><h2>role:</h2> Web Development, Production Design";
var fitzmaurice_caption = "<h2>client:</h2>Fitzmaurice Community Services<br /><h2>role:</h2> Web Design";
var momweb_caption = "<h2>client:</h2>Mind Over Machines<br /><h2>role:</h2> Web Design, Interaction Design";
var ssweb_caption = "<h2>client:</h2>Seventh Seal<br /><h2>role:</h2> Web Design, Logo Design, Artwork";
var skirmish_caption = "<h2>client:</h2>Skirmish Paintball<br /><h2>role:</h2> Web Design, Logo Design";
var wash_logo_caption = "<h2>client:</h2>Wash This Out Design<br /><h2>role:</h2> Logo Design, Ad Design";
var uglymug_logo_caption = "<h2>client:</h2>Ugly Mug Coffee and Concert House<br /><h2>role:</h2> Logo Design";
var yoga_logo_caption = "<h2>client:</h2>Yoga Butterfly<br /><h2>role:</h2> Logo Design";
var boomtown_logo_caption = "<h2>client:</h2>Boomtown Internet Marketing<br /><h2>role:</h2> Logo Design";
var ss_logo_caption = "<h2>client:</h2>Seventh Seal<br /><h2>role:</h2> Logo Design";
var anamide_logo_caption = "<h2>client:</h2>Anamide<br /><h2>role:</h2> Logo Design";
var bhrc_logo_caption = "<h2>client:</h2>Black Hole Night Club<br /><h2>role:</h2> Logo Design";
var zanninos_logo_caption  = "<h2>client:</h2>Zannino's Catering<br /><h2>role:</h2> Logo Design";
var unisearch_logo_caption  = "<h2>client:</h2>Unisearch<br /><h2>role:</h2> Logo Design";
var rcd_logo_caption  = "<h2>client:</h2>RCD Technology<br /><h2>role:</h2> Logo Design";
var nrai_interface_caption = "<h2>client:</h2>NRAI<br /><h2>role:</h2> Interface Design";
var eb_interface_caption = "<h2>client:</h2>Everything is Better Tshirts<br /><h2>role:</h2> Interface Design";
var osi_logo_caption = "<h2>client:</h2>Outside Solutions, Inc.<br /><h2>role:</h2> Logo Design";
var whole_layout_caption = "<h2>client:</h2>Seventh Seal (Band)<br /><h2>role:</h2> EP Layout Design";
var mobi_layout_caption = "<h2>client:</h2>Mind Over Machines<br /><h2>role:</h2> Brochure Design";
var gerretson_layout_caption = "<h2>client:</h2>Gerretson<br /><h2>role:</h2> Brochure Design";
var mcsa_layout_caption = "<h2>client:</h2>MCSA<br /><h2>role:</h2> Card Design";
var walton_caption = "<h2>client:</h2>Walton Performing Arts Center<br /><h2>role:</h2> Website Design";
var repertorio_caption = "<h2>client:</h2>Repertorio Espanol<br /><h2>role:</h2> Website Design";
var vesta_caption ="<h2>client:</h2>Vestascension<br /><h2>role:</h2> Website Design";


// Object containing all captions

var infoBank = {
	
	project1:project_caption1,
	project2:project_caption2,
	project3:project_caption3,
	project4:project_caption4,
	project5:project_caption5,
	project6:project_caption6,
	project7:project_caption7,
	project9:project_caption9,
	project10:project_caption10,
	project11:project_caption11,
	project12:project_caption12,
	project13:project_caption13,
	seventhseal:seventhseal_caption,
	mind_over_machines:mindovermachines_caption,
	aca:aca_caption,
	centermd:centermd_caption,
	fitzmaurice:fitzmaurice_caption,
	momweb:momweb_caption,
	ssweb:ssweb_caption,
	skirmish:skirmish_caption,
	wash_logo:wash_logo_caption,
	uglymug_logo:uglymug_logo_caption,
	yoga_logo:yoga_logo_caption,
	boomtown_logo:boomtown_logo_caption,
	ss_logo:ss_logo_caption,
	anamide_logo:anamide_logo_caption,
	bhrc_logo:bhrc_logo_caption,
	zanninos_logo:zanninos_logo_caption,
	unisearch_logo:unisearch_logo_caption,
	rcd_logo:rcd_logo_caption,
	nrai_interface:nrai_interface_caption,
	eb_interface:eb_interface_caption,
	osi_logo:osi_logo_caption,
	whole_layout:whole_layout_caption,
	mobi_layout:mobi_layout_caption,
	gerretson_layout:gerretson_layout_caption,
	mcsa_layout:mcsa_layout_caption,
    walton:walton_caption,
    repertorio:repertorio_caption,
    vesta:vesta_caption
};


// Declaring the text for the Project titles
var project_title1 = "<h1>Project 1</h1>";
var project_title2 = "<h1><span class='featured'>Web:</span> Black Hole Night Club</h1>";
var project_title3 = "<h1><span class='featured'>Web:</span> Learning Ext JS</h1>";
var project_title4 = "<h1><span class='featured'>Web:</span> Home &amp; Stone Web and E-Commerce Design</h1>";
var project_title5 = "<h1><span class='featured'>Web:</span> Elevation Church</h1>";
var project_title6 = "<h1><span class='featured'>Web:</span> CTASC</h1>";
var project_title7 = "<h1><span class='featured'>Web:</span> SaSa's Spa</h1>";
var project_title9 = "<h1><span class='featured'>Web:</span> Danielle Renee</h1>";
var project_title10 = "<h1><span class='featured'>Web:</span> reMarriage Magazine</h1>";
var project_title11 = "<h1><span class='featured'>Web:</span> Elite MGA</h1>";
var project_title12 = "<h1>OFAC Watch Application Design</h1>";
var project_title13 = "<h1><span class='featured'>Layout:</span> Flyer Design for Multiple Clients</h1>";
var seventhseal_title = "<h1><span class='featured'>Layout:</span> Seventh Seal Album Cover Design</h1>";
var mindovermachines_title = "<h1><h1><span class='featured'>Layout:</span> Mind Over Machines Identity Package</h1>";
var aca_title = "<h1><span class='featured'>Web:</span> Answer Center America</h1>";
var centermd_title = "<h1><span class='featured'>Web:</span> Center Maryland</h1>";
var fitzmaurice_title = "<h1><span class='featured'>Web:</span> Fitzmaurice Community Services</h1>";
var momweb_title = "<h1><span class='featured'>Web:</span> Mind Over Machines</h1>";
var ssweb_title = "<h1><span class='featured'>Web:</span> Seventh Seal</h1>";
var skirmish_title = "<h1><span class='featured'>Web:</span> Skirmish</h1>";
var wash_logo_title = "<h1><span class='featured'>Logo:</span> Wash This Out Design</h1>";
var uglymug_logo_title = "<h1><span class='featured'>Logo:</span> The Ugly Mug Coffee and Concert House</h1>";
var yoga_logo_title = "<h1><span class='featured'>Logo:</span> Yoga Butterly</h1>";
var boomtown_logo_title = "<h1><span class='featured'>Logo:</span> Boomtown Internet Marketing</h1>";
var ss_logo_title = "<h1><span class='featured'>Logo:</span> Seventh Seal (Band)</h1>";
var anamide_logo_title = "<h1><span class='featured'>Logo:</span> Ananmide (Band)</h1>";
var bhrc_logo_title = "<h1><span class='featured'>Logo:</span> Black Hole Night Club</h1>";
var zanninos_logo_title = "<h1><span class='featured'>Logo:</span> Zannino's Catering</h1>";
var unisearch_logo_title = "<h1><span class='featured'>Logo:</span> Unisearch</h1>";
var rcd_logo_title = "<h1><span class='featured'>Logo:</span> RCD Technology</h1>";
var nrai_interface_title = "<h1><span class='featured'>Interface:</span> NRAI Private Web</h1>";
var eb_interface_title = "<h1><span class='featured'>Interface:</span> Everything is Better Tshirt Design</h1>";
var osi_logo_title = "<h1><span class='featured'>Logo:</span> Outside Solutions, Inc.</h1>";
var whole_layout_title = "<h1><span class='featured'>Layout:</span> Seventh Seal, Whole EP Layout Design</h1>";
var mobi_layout_title = "<h1><span class='featured'>Layout:</span> MOBI Application Brochure Design</h1>";
var gerretson_layout_title = "<h1><span class='featured'>Layout:</span> Gerretson Brochure Design</h1>";
var mcsa_layout_title = "<h1><span class='featured'>Layout:</span> MCSA Card Design</h1>";
var walton_title = "<h1><span class='featured'>Layout:</span> Walton Performing Arts Website Design</h1>";
var repertorio_title = "<h1><span class='featured'>Layout:</span> Repertorio Espanol Website Design</h1>";
var vesta_title = "<h1><span class='featured'>Layout:</span> Vestascension Website Design</h1>";

// Object containing all titles
var titleBank = {
	
	project1:project_title1,
	project2:project_title2,
	project3:project_title3,
	project4:project_title4,
	project5:project_title5,
	project6:project_title6,
	project7:project_title7,
	project9:project_title9,
	project10:project_title10,
	project11:project_title11,
	project12:project_title12,
	project13:project_title13,
	seventhseal:seventhseal_title,
	mind_over_machines:mindovermachines_title,
	aca:aca_title,
	centermd:centermd_title,
	fitzmaurice:fitzmaurice_title,
	momweb:momweb_title,
	ssweb:ssweb_title,
	skirmish:skirmish_title,
	wash_logo:wash_logo_title,
	uglymug_logo:uglymug_logo_title,
	yoga_logo:yoga_logo_title,
	boomtown_logo:boomtown_logo_title,
	ss_logo:ss_logo_title,
	anamide_logo:anamide_logo_title,
	bhrc_logo:bhrc_logo_title,
	zanninos_logo:zanninos_logo_title,
	unisearch_logo:unisearch_logo_title,
	rcd_logo:rcd_logo_title,
	nrai_interface:nrai_interface_title,
	eb_interface:eb_interface_title,
	osi_logo:osi_logo_title,
	whole_layout:whole_layout_title,
	mobi_layout:mobi_layout_title,
	gerretson_layout:gerretson_layout_title,
	mcsa_layout:mcsa_layout_title,
    walton:walton_title,
    repertorio:repertorio_title,
    vesta:vesta_title
};



 
// When a thumbnail is clicked, the caption, title and main viewer are updated with the desired content

$(document).ready(function () {
											
	var i = 0;// Variable used to make sure that the user needs to see the featured items when they land on the homepage	
	
	
	$("#hiddenNavHome").show();
	$("#prevLinkHome").hide();
	$("#nextLinkHome").show();
	
	imageNumber = 0;
	projectName = $("#main_image").attr("syncwith");	
	
	currentProjectImages = imageBank[projectName];
	maxNumber = currentProjectImages.length - 1;	
	
	$("#previousButtonHome").click(function(event){
										
		
		$("#main_image").html(currentProjectImages[imageNumber - 1]);
		$("#main_image").hide();
		$("#main_image").fadeIn('slow');
	
		if(imageNumber > 0){
		imageNumber--;
		}
		
		$("#nextLinkHome").show();
		
		if(imageNumber == 0){
			
			$("#prevLinkHome").hide();
		}
		
		$(this).blur();
		return false;
		
	});
	
	
	$("#nextButtonHome").click(function(event){
		
		if(imageNumber == maxNumber){
			
			$("#main_image").html(currentProjectImages[imageNumber]);
			$("#main_image").hide();
			$("#main_image").fadeIn('slow');
			
		}
			
		if(imageNumber < maxNumber){
			
			$("#main_image").html(currentProjectImages[imageNumber + 1]);
			$("#main_image").hide();
			$("#main_image").fadeIn('slow');
			
			imageNumber++;
		}
		
		if(imageNumber == maxNumber){
			$("#nextLinkHome").hide();
			
		}
		
		$("#prevLinkHome").show();
		
		$(this).blur();
		return false;
		
	});
	
	
	
	$("#prevLink").hide();	
		
	$(".panel a").click(function(event){
		
		//$("#main_image_landing").empty().html('<img src="images/loading.gif" />');
		
		imageNumber = 0;
		projectName = this.attributes.name.nodeValue; 
		currentProjectImages = imageBank[projectName];
		maxNumber = currentProjectImages.length - 1;
		
		
		$("#project_title").html(titleBank[projectName]);
		$("#caption").html(infoBank[projectName]);
		
		$("#main_image").html(currentProjectImages[imageNumber]);	
		
		if(i == 0){
			$("#project_title_landing").hide();
			$("#project_title").fadeIn('slow');
		
			$("#main_image_landing").hide();
			$("#main_image").fadeIn('slow');
			
			$("#caption_landing").hide();
			$("#caption").fadeIn('slow');
			
		} else {
			$("#project_title").hide();
			$("#project_title").fadeIn('slow');
			
			$("#main_image").hide();
			$("#main_image").fadeIn('slow');
		
			$("#caption").hide();
			$("#caption").fadeIn('slow');
			
		}
		$("#hiddenNav").show();
		$("#prevLink").hide();
		$("#nextLink").show();
		
		if(currentProjectImages.length === 1){
			$("#nextLink").hide();
		}
		
		i++; // Updates variable so user can move on from landing page*/
		
		event.preventDefault();
							
	});
	
	
	
	
		
	$("#previousButton").click(function(event){
										
		
		
		$("#main_image").html(currentProjectImages[imageNumber - 1]);
		$("#main_image").hide();
		$("#main_image").fadeIn('slow');
	
		if(imageNumber > 0){
		imageNumber--;
		}
		
		$("#nextLink").show();
		
		if(imageNumber == 0){
			
			$("#prevLink").hide();
		}
		
		$(this).blur();
		return false;
		
	});
	
	
	$("#nextButton").click(function(event){
		
		if(imageNumber == maxNumber){
			
			$("#main_image").html(currentProjectImages[imageNumber]);
			$("#main_image").hide();
			$("#main_image").fadeIn('slow');
			
		}
			
		if(imageNumber < maxNumber){
			
			$("#main_image").html(currentProjectImages[imageNumber + 1]);
			$("#main_image").hide();
			$("#main_image").fadeIn('slow');
			
			imageNumber++;
		}
		
		if(imageNumber == maxNumber){
			$("#nextLink").hide();
			
		}
		
		$("#prevLink").show();
		
		$(this).blur();
		return false;
		
	});
	
	
/*	$(window).bind("load resize", function(){ //refresh position of nav buttons when page loads/resizes
			
			if(window.innerHeight >= 904){
			
				windowMiddle = (window.innerWidth / 2);
			
				$("#nextLink").css({left:windowMiddle + 392 +'px'})
				$("#prevLink").css({left:windowMiddle - 614 +'px'})
				
			}
			
			if(window.innerHeight < 904){
			
				windowMiddle = (window.innerWidth / 2);
			
				$("#nextLink").css({left:windowMiddle + 385 +'px'})
				$("#prevLink").css({left:windowMiddle - 624 +'px'})
				
			}
										   
			})							   */
	
});
