// JavaScript Document

window.onload = setPic;


var currImg = 0;



var captionText = new Array(
	"<p><strong>Description</strong>: Client had an older website with outdated content. Contact rates were not as high as we would like and the site font was small given they were an ophthalmology practice.</p><p><strong>Solution</strong>: Complete website redesign using their colors and logo as a foundation for the initial design.  We added contact forms on every page as a way to increase their contact rates and implemented functionality to allow a user to increase font size within the eyebrow navigation. </p><p><a href=\"http://www.kraffeye.com\" target=\"_blank\">View the website</a><img src=\"images/nextArrow.jpg\" alt=\"\" class=\"nextArrow\" /></p>",
	"<p><strong>Description</strong>: Client with an outdated site with limited options to showcase their restaurant.   New owners were looking to take the restaurant in a new direction focusing on the eclectic menu options and the warm environment that is Simeon's.</p><p><strong>Solution</strong>: Complete redesign. We used actual pictures of the restaurant to showcase their food and atmosphere.   By bringing their logo, pictures of the menu items, and a higher end image to the site, we have helped in the rebranding efforts for Simeon's.</p><p><a href=\"http://www.simeonsithaca.com\" target=\"_blank\">View the website</a><img src=\"images/nextArrow.jpg\" alt=\"\" class=\"nextArrow\" /></p>",
	"<p><strong>Description</strong>: Client was changing corporate direction from an older commercial printing business to a fresher marketing communications company. They wanted Customore to come up with a new design which would showcase their work while portraying more of an agency feel.</p><p><strong>Solution</strong>: Site Design.   Given that the company was changing their name and positioning, we thought a new design and URL would be appropriate.  We used big, bold images within the site to convey more of a marketing feel. We also implemented a portfolio player as a way to highlight samples of their work.</p><p><a href=\"http://www.kelmscottpress.com\" target=\"_blank\">View the website</a><img src=\"images/nextArrow.jpg\" alt=\"\" class=\"nextArrow\" /></p>",
	"<p><strong>Description</strong>: Client did not mind his coloring of existing site but knew content needed to be refreshed and imagery needed to be added. Client also wanted to have presence within the search engines to gain new leads from his website.</p><p><strong>Solution</strong>: Website Refresh.  We rewrote all of the content on the website in an effort to update his work. We also implemented Search Engine Optimization and quick contact forms on his site in an effort to boost traffic and conversion rates. To showcase his work, we built a photo gallery displaying all of his before and after work.</p><p><a href=\"http://www.mdbeautycare.com\" target=\"_blank\">View the website</a><img src=\"images/nextArrow.jpg\" alt=\"\" class=\"nextArrow\" /></p>",
	"<p><strong>Description</strong>: Client was launching a new product line, ConVA Systems, and needed to establish branding throughout their website and in print materials. They had a strict deadline to have all of collateral completed prior to their national tradeshow in less than three months. </p><p><strong>Solution</strong>: New Website. Print Collateral. We expanded upon their existing logos to create a new look and feel for the company.  We highlighted testimonials from their clients and the functionality of the product line to launch the marketing efforts.  We followed up with direct mail to attendees of the trade show welcoming them to visit the new ConVA Systems.</p><p><a href=\"http://www.convasystems.com\" target=\"_blank\">View the website</a><img src=\"images/nextArrow.jpg\" alt=\"\" class=\"nextArrow\" /></p>"
	
)
var captionTitle = new Array(
	"Project: Kraff Eye Institute",
	"Project: Simeon's on the Commons Restaurant",
	"Project: Kelmscott Communications",
	"Project: Back Bay Plastic Surgery,<br /> Dr. Dan Del Vecchio",
	"Project: ConVA Systems"
	
)

//JY----------------------

function setPic(myIndex) {
	if (myIndex != null)
	window.location.href="web.php?pid=" + myIndex + "#slideshow";
	if (myIndex == "" || myIndex == null || myIndex < 0)
		myIndex = 0;
		
	document.getElementById("slideshow").src = "images/portPics/slideImg" + myIndex + ".jpg";
	document.getElementById("imgTitle").innerHTML = captionTitle[myIndex];
	document.getElementById("imgText").innerHTML = captionText[myIndex];
	document.getElementById("prevLink").onclick = processPrevious;
	document.getElementById("nextLink").onclick = processNext;
	if (myIndex != currImg)
	currImg = myIndex;
}


//------------------------





//function initAll() {
//	document.getElementById("imgTitle").innerHTML = captionTitle[0];
//	document.getElementById("imgText").innerHTML = captionText[0];
//	document.getElementById("prevLink").onclick = processPrevious;
//	document.getElementById("nextLink").onclick = processNext;
//}

		

function processPrevious() {
	newSlide(-1);
}

function processNext() {
	newSlide(1);
}

function newSlide(direction) {
	var imgCt = captionText.length;
	
	currImg = currImg + direction;
	if (currImg < 0) {
		currImg = imgCt-1;
	}
	if (currImg == imgCt) {
		currImg = 0;
	}
	document.getElementById("slideshow").src = "images/portPics/slideImg" + currImg + ".jpg";
	document.getElementById("imgText").innerHTML = captionText[currImg];
	document.getElementById("imgTitle").innerHTML = captionTitle[currImg];
}

