/* Code by De Facto Design
	changed by gregg henry
*/

browserBypass = false;

currentImgPath = "";
currentSwfPath = "";
currentName = "";
currentWidth = "";
currentHeight = "";
currentPlayer = "";

if (BrowserDetect.browser == "Safari" && BrowserDetect.version == "312.6") {
	browserBypass = true;
}

jQuery(document).ready(function($) {
	if (screen.width < 1024) {
	}
})

function slideshow(index,num) {
	viewportWidth = 536; // Width of the viewport and also the images in the portfolio slideshow pages.
	workBlock = "#scroll"+index;
	$(workBlock).stop().animate({left:-(viewportWidth*num)},1000, 'easeInOutCubic');
	temp = $(workBlock).parent().parent();
	temp2 = $(temp).find(".whitebox-right");
	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++;
	});
}