// gallery_description[1] = "Cynthia Willis ~ Children's Writer"
// gallery_skills[1] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."

window.onload = initAll;

var position = 0; // Position of the current image

var gallery_url = new Array()

    gallery_url[0] = '<a href="http://www.kearnsrhodesrealestate.com" target="_blank">'
    gallery_url[1] = '<a href="http://www.lizfinley.com" target="_blank">'
	gallery_url[2] = '<a href="http://www.womensauxsted.org" target="_blank">'
	gallery_url[3] = '<a href="http://www.smartecard.org" target="_blank">'
	gallery_url[4] = '<a href="http://www.mainlinehandcenter.com" target="_blank">'
	gallery_url[5] = '<a href="http://www.elizabethstowellison.com" target="_blank">'
	gallery_url[6] = '<a href="http://www.cynthiawillis.com" target="_blank">'
	gallery_url[7] = '<a href="http://www.larkinteriors.com" target="_blank">'
	gallery_url[8] = '<a href="http://www.steveflink.com" target="_blank">'
	gallery_url[9] = '<a href="http://www.shannonhitchcock.com" target="_blank">'
	gallery_url[10] = '<a href="http://www.wiebeassoc.com" target="_blank">'
	gallery_url[11] = '<a href="http://www.furchgottscottart.com" target="_blank">'
	gallery_url[12] = '<a href="http://www.homeinspectorgarrity.com" target="_blank">'
	gallery_url[13] = '<a href="http://www.timelessdwellings.com" target="_blank">'
	gallery_url[14] = '<a href="http://www.nickpupillo.com" target="_blank">'
	gallery_url[15] = '<a href="http://www.rhodesrealestatelaw.com" target="_blank">'
	gallery_url[16] = '<a href="http://www.treyburn.org" target="_blank">'

	
var gallery = new Array()
	gallery[0] = "images/kearnsrhodeslg.jpg"
	gallery[1] = "images/liz.jpg"
	gallery[2] = "images/womens.jpg"
	gallery[3] = "images/alexanders.jpg"
	gallery[4] = "images/main.jpg"
	gallery[5] = "images/elizabeth.jpg"
	gallery[6] = "images/willis.jpg"
	gallery[7] = "images/lark.jpg"
	gallery[8] = "images/steve.jpg"
	gallery[9] = "images/shannon.jpg"
	gallery[10] = "images/wiebeassoc.jpg"
	gallery[11] = "images/carol.jpg"
	gallery[12] = "images/michael.jpg"
	gallery[13] = "images/timeless.jpg"
	gallery[14] = "images/nick.jpg"
	gallery[15] = "images/rhodes.jpg"
	gallery[16] = "images/treyburn.jpg"


var gallery_title = new Array()
	gallery_title[0] = "The Kearns Rhodes Real Estate Team"
	gallery_title[1] = "Liz Finley ~ Artist"
	gallery_title[2] = "Women's Auxiliary for St. Edmond's Home"
	gallery_title[3] = "Smart e-Card, the Smartest Way to Give and Receive"
	gallery_title[4] = "Main Line Hand Center" 
	gallery_title[5] = "Elizabeth Stow Ellison ~ Writer"
	gallery_title[6] = "Cynthia Willis ~ Children's Writer"
	gallery_title[7] = "Lark Interiors"
	gallery_title[8] = "Steve Flink ~ Tennis Historian"
	gallery_title[9] = "Shannon Hitchcock ~ Writer"
	gallery_title[10] = "Wiebe Associates - Risk Management"
	gallery_title[11] = "Carol Furchgott Scott ~ Illustrator"
	gallery_title[12] = "Michael Garrity ~ Home Inspector"
	gallery_title[13] = "Timeless Dwellings ~ Interior Design"
	gallery_title[14] = "Nicholas Pupillo & Son ~ Custom Kitchens & Baths"
	gallery_title[15] = "Mark S. Rhodes Real Estate Law"
	gallery_title[16] = "Treyburn Neighborhood Association"
	
var gallery_number = new Array()
	gallery_number[0] = "1"
	gallery_number[1] = "2"
	gallery_number[2] = "3"
	gallery_number[3] = "4"
	gallery_number[4] = "5"
	gallery_number[5] = "6"
	gallery_number[6] = "7"
	gallery_number[7] = "8"
	gallery_number[8] = "9"
	gallery_number[9] = "10"
	gallery_number[10] = "11"
	gallery_number[11] = "12"
	gallery_number[12] = "13"
	gallery_number[13] = "14"
	gallery_number[14] = "15"
	gallery_number[15] = "16"
	gallery_number[16] = "17"
	
var gallery_client = new Array()
	gallery_client[0] = "The Kearns Rhodes Team"
	gallery_client[1] = "Liz Finley"
	gallery_client[2] = "Women's Auxiliary"
	gallery_client[3] = "Smart e-Card"
	gallery_client[4] = "Main Line Hand Center"
	gallery_client[5] = "Elizabeth Stow Ellison"
	gallery_client[6] = "Cynthia Willis"
	gallery_client[7] = "Lark Interiors"
	gallery_client[8] = "Steve Flink"
	gallery_client[9] = "Shannon Hitchcock"
	gallery_client[10] = "Wiebe Associates"
	gallery_client[11] = "Carol Furchgott Scott"
	gallery_client[12] = "Michael Garrity Home Inspector"
	gallery_client[13] = "Timeless Dwellings"
	gallery_client[14] = "Nicholas Puppilo & Sons"
	gallery_client[15] = "Mark S. Rhodes Law"
	gallery_client[16] = "Treyburn Neighborhood Association"

	
var gallery_description = new Array()
	gallery_description[0] = "Kristen Kearns and Lucy Rhodes are The Kearns Rhodes Team backed by Long & Foster Real Estate.  They are your Main Line source for real estate.  Real, reliable realtors in the Philadelphia suburbs, helping Sellers and Buyers with all their real estate needs."
	gallery_description[1] = "Philadelphia area artist Liz Dooney Finley creates landscape and still life oil paintings to capture the beauty of a special moment in time.  Recent landscapes include scenes from the Jersey shore, Philadelphia Main Line, Ireland Coastal towns, and the Caribbean.  "
	gallery_description[2] = "Women's Auxiliary Lark Interiors serves suburban Philadelphia and coastal South Carolina. Judi Larkin Designs includes consulting, staging and move planning. Don Larkin Installations includes wallpapering and repairs, wallpapered furniture, cornices, screens and floor cloths."
	gallery_description[3] = "Smart e-Cards are a great way to send your family and friends holiday greetings and other special messages while helping your favorite charity and helping the environment by saving our trees and other resources!"
	gallery_description[4] = "The Main Line Hand Center is an independent, therapist-owned upper extremity rehabilitation center."
	gallery_description[5] = "Elizabeth Stow Ellison is a children's writer.  Her new book Flight was recently published by Holiday House."
	gallery_description[6] = "Cynthia Chapman Willis is an author of children's books and instructional materials for elementary classrooms. She has two novels published by Feiwel and Friends, Dog Gone and Buck Fever."
	gallery_description[7] = "Lark Interiors serves suburban Philadelphia and coastal South Carolina. Judi Larkin Designs includes consulting, staging and move planning. Don Larkin Installations includes wallpapering and repairs, wallpapered furniture, cornices, screens and floor cloths."
	gallery_description[8] = "An incurable tennis addict, Steve Flink has been following the game since 1965.  Flink is a Senior Correspondent for Tennis Week Magazine, a publication he joined in 1992.  From 1974-91, he worked at World Tennis Magazine as a writer, columnist and editor.  "
	gallery_description[9] = "Shannon Hitchcock is a Florida based freelance writer.  She belongs to The Society For Children's Book Writers & Illustrators."
	gallery_description[10] = "Mike Wiebe founded Wiebe Associates to help Middle Market companies manage their Risk and Insurance programs including Health and Welfare Insurance."
	gallery_description[11] = "Carol Furchgott Scott has thirty plus years experience working with individuals, small businesses, major newspapers, magazines and Fortune 500 companies.  From whimsical illustrations of pets to major advertising campaigns, Carol's creativity shines through.  A graduate of Rhode Island School of Design, Carol also studied at the Sorbonne in Paris, France.  Visit Carol's website for more information."
	gallery_description[12] = "Michael Garrity is a New York State licensed home inspector.  Michael is a professional carpenter with over 38 years experience.  He has worked in and around Westchester County mainly in residential construction.  Michael believes in quality construction and offers many insights that you may not get with just any home inspector."
	gallery_description[13] = "Timeless Dwellings is located in West Chester, PA and specializes in Interior Design.  The owner, Katie Micciolo is a dynamic designer committed to giving her residential and commercial clients exceptional design and service."
	gallery_description[14] = "Nicholas Pupillo & Sons is a family owned and operated business and they are located in Norristown, PA.  They have been designing and constructing beautiful kitchens and baths since 1961 and have thousands of satisfied customers."
	gallery_description[15] = "Mark S. Rhodes takes care of your legal matters so that you can take care of business.  Using knowledge, experience and out-of-the-box thinking, Mark is dedicated to providing effective and practical solutions to procure outstanding results for his clients."
	gallery_description[16] = "Treyburn Neighborhood Association is a large website with over 46 pages, hundreds of original images and an attractive FLASH movie introduction.  The website serves the Treyburn Neighborhood community exclusively with valuable information, such as neighborhood directory, contractor referrals, upcoming events and more.  This website is password protected."
	
var gallery_skills = new Array()
	gallery_skills[0] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[1] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[2] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[3] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[4] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[5] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[6] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[7] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[8] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[9] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[10] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[11] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[12] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[13] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[14] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[15] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."
	gallery_skills[16] = "HTML, DHTML, CSS, PHP, Javascript, Adobe Photoshop & Adobe FLASH."


function initAll() { //assign events 
document.getElementById("client1").onclick = processClient1;	
document.getElementById("client2").onclick = processClient2;	
document.getElementById("client3").onclick = processClient3;	
document.getElementById("client4").onclick = processClient4;	
document.getElementById("client5").onclick = processClient5;	
document.getElementById("client6").onclick = processClient6;	
document.getElementById("client7").onclick = processClient7;	
document.getElementById("client8").onclick = processClient8;	
document.getElementById("client9").onclick = processClient9;	
document.getElementById("client10").onclick = processClient10;	
document.getElementById("client11").onclick = processClient11;	
document.getElementById("client12").onclick = processClient12;	
document.getElementById("client13").onclick = processClient13;	
document.getElementById("client14").onclick = processClient14;	
document.getElementById("client15").onclick = processClient15;	
document.getElementById("client16").onclick = processClient16;	
document.getElementById("client17").onclick = processClient17;	

}		

function processClient1() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[0]+'<img src="'+gallery[0]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
	
function processClient2() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[1]+'<img src="'+gallery[1]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient3() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[2]+'<img src="'+gallery[2]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient4() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[3]+'<img src="'+gallery[3]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient5() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[4]+'<img src="'+gallery[4]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient6() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[5]+'<img src="'+gallery[5]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient7() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[6]+'<img src="'+gallery[6]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient8() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[7]+'<img src="'+gallery[7]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient9() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[8]+'<img src="'+gallery[8]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient10() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[9]+'<img src="'+gallery[9]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient11() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[10]+'<img src="'+gallery[10]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient12() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[11]+'<img src="'+gallery[11]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient13() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[12]+'<img src="'+gallery[12]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient14() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[13]+'<img src="'+gallery[13]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient15() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[14]+'<img src="'+gallery[14]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient16() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[15]+'<img src="'+gallery[15]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		
function processClient17() {	
	
	document.getElementById("view_portfolio").innerHTML = gallery_url[16]+'<img src="'+gallery[16]+'" alt="" width="648" height="648" border="0" /></a>';		
	document.getElementById("portfolio_number").innerHTML = gallery_number[position];		
	document.getElementById("portfolio_title").innerHTML = gallery_title[position];
	document.getElementById("portfolio_client").innerHTML = gallery_client[position];
	document.getElementById("portfolio_description").innerHTML = gallery_description[position];
	document.getElementById("portfolio_skills").innerHTML = gallery_skills[position];
	}		
		

// To make the gallery loop continuously, in the function "processNext" pointer++; must go before the else statement
// Unless "return false;" is included at the end of both functions, the html code will redirect portfolio.html to previous.html or next.html 
// MAKE SURE ALL LINES END IN A ';'!!!
