window.onload = initLinks; var myPics = new Array( "images/portfolio/portfolio_funafar.png", "images/portfolio/portfolio_pattycass.png", "images/portfolio/portfolio_privatetutordirectory.png", "images/portfolio/portfolio_vincentgarage.png", "images/portfolio/portfolio_zenspotmbs.png", "images/portfolio/portfolio_coachingforcouplesny.png", "images/portfolio/portfolio_miketrainor.png"); var myUrls = new Array( "http://vail.funafar.com", "http://www.pattycass.org", "http://www.privatetutordirectory.com", "http://www.vincentgarage.com", "http://www.zenspotmbs.com", "http://www.coachingforcouplesny.com", "http://www.giantcomedy.com"); var myLinks = new Array( "vail.funafar.com", "www.pattycass.org", "www.privatetutordirectory.com", "www.vincentgarage.com", "www.zenspotmbs.org", "www.coachingforcouplesny.com", "www.giantcomedy.com"); var myThumbs = new Array( "thumb1", "thumb2", "thumb3", "thumb4", "thumb5", "thumb6", "thumb7"); var myTitles = new Array( "Funafar", "Patrick Casabona Jr. Memorial Scholarship", "Private Tutor Directory", "Vincent Service Station", "ZenSpot", "Coaching for Couples", "Mike Trainor"); var myTexts = new Array( "Funafar.com is a vacation planning website featuring resorts, activities, events, dining, maps and coupons in Vail, CO.", "PattyCass.org is an online resource center for the Patrick Casabona Jr. Memorial Scholarship.", "PrivateTutorDirectory.com is a network connecting private tutors and students.", "VincentGarage.com is a promotional website for Vincent Service Station.", "ZenSpot.com is a promotional website for the ZenSpot yoga and fitness center.", "CoachingforCouplesNY.com is a promotional website for Coaching For Couples.", "GiantComedy.com is the online home of comedian Mike Trainor, featuring video, merchandise and Mike's blog."); var thisPic = 0; function initLinks() { document.getElementById("prevLink").onclick = processPrevious; document.getElementById("nextLink").onclick = processNext; document.getElementById("thumb1").onclick = processThis1; document.getElementById("thumb2").onclick = processThis2; document.getElementById("thumb3").onclick = processThis3; document.getElementById("thumb4").onclick = processThis4; document.getElementById("thumb5").onclick = processThis5; document.getElementById("thumb6").onclick = processThis6; document.getElementById("thumb7").onclick = processThis7; } function processPrevious() { if (thisPic == 0) { thisPic = myPics.length; } thisPic--; document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myLinks[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; clearThumb(); document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; return false; } function processNext() { thisPic++; if (thisPic == myPics.length) { thisPic = 0; } document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myLinks[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; clearThumb(); document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; return false; } function clearThumb() { document.getElementById("thumb1").className = "photo_gallery_mini"; document.getElementById("thumb2").className = "photo_gallery_mini"; document.getElementById("thumb3").className = "photo_gallery_mini"; document.getElementById("thumb4").className = "photo_gallery_mini"; document.getElementById("thumb5").className = "photo_gallery_mini"; document.getElementById("thumb6").className = "photo_gallery_mini"; document.getElementById("thumb7").className = "photo_gallery_mini"; } function processThis1() { thisPic = 0; clearThumb(); document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myUrls[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; } function processThis2() { thisPic = 1; clearThumb(); document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myUrls[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; } function processThis3() { thisPic = 2; clearThumb(); document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myUrls[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; } function processThis4() { thisPic = 3; clearThumb(); document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myUrls[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; } function processThis5() { thisPic = 4; clearThumb(); document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myUrls[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; } function processThis6() { thisPic = 5; clearThumb(); document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myUrls[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; } function processThis7() { thisPic = 6; clearThumb(); document.getElementById("myPicture").src = myPics[thisPic]; document.getElementById("myLink").href = myUrls[thisPic]; document.getElementById("myUrl").href = myUrls[thisPic]; document.getElementById("myUrl").innerHTML = myLinks[thisPic]; document.getElementById("myTitle").innerHTML = myTitles[thisPic]; document.getElementById("myText").innerHTML = myTexts[thisPic]; document.getElementById(myThumbs[thisPic]).className = "photo_gallery_mini_active"; }