/* Code by De Facto Design */
function slideshow(num) {
	viewportWidth = 484; // Width of the viewport and also the images in the portfolio slideshow pages.
	$("#scroll").stop().animate({left:-(viewportWidth*num)},1000, 'easeInOutCubic');
	temp = $("#centercontent");
	temp2 = $(temp).find(".projectNav");
	temp3 = $(temp2).find("li");
	i = 0;
	temp3.each(function(){
		$(this).find("a").removeClass("selected");
		$(this).find("a").addClass("");
		if (i == num) {
			$(this).find("a").addClass("selected");
		}
		i++;
	});
	//george's stuff
	imageToDisplay = $("#projectImageBottom");
	imageToDisplay2 = $(imageToDisplay).find("img");
	if (isNaN(num)) {
		imageNumber = 1;
	} else {
		imageNumber = num + 1;
	}
	$(imageToDisplay2).attr({ 
          src: imagedir + imageNumber + ".jpg"
        });
}

browserBypass = false;

if (BrowserDetect.browser == "Safari" && BrowserDetect.version == "312.6") {
	browserBypass = true;
}