function homeOn(obj){
	$(obj).next('img').fadeIn(250);
}
function homeOff(obj){
	$(obj).next('img').fadeOut(250);
}
$(
	function(){
		$('.leftText').jScrollPane();
		$('#thumbRow0').fadeIn(250);
	var thumbRows = $('.thumbRow');
	thumbRowCount = thumbRows.length;
	}
)
function arrowOut(obj){
	$(obj).fadeTo(250, .6);
}
function arrowIn(obj){
	$(obj).fadeTo(250, 1);
}
var currentRow = 0;
function advanceRow(){
}
function reverseRow(){
}
function thumbRowForward(){
	if(currentRow + 1 < thumbRowCount){
		$('.thumbRow:visible').fadeOut(250, function(){
			$(this).next().fadeIn(250);
			currentRow += 1;
		});
	}
}
function thumbRowBack(){
	if(currentRow > 0){
		$('.thumbRow:visible').fadeOut(250, function(){
			$(this).prev().fadeIn(250);
			currentRow -= 1;
		});
	}
}
var imNum;
var imRefName;
function fadeMain(imPath){
	imNum = imPath;
	var imSrc = eval('loadIm' + imPath).src;
	imRefName = imSrc.substring(imSrc.lastIndexOf('/') + 1, imSrc.lastIndexOf('.'));
	$('.itemText').empty().css('display', 'none');
	$('.leftImage img').fadeOut(250, function(){
		$('.leftImage img').attr('src', imSrc).css('display', 'none').fadeIn(500);
		$('.itemText').append(loadText[imPath]).fadeIn(500);
	});
}
function doGalleryThumb(obj){
	$('.thumbLink:visible').css('opacity', 1).removeClass('thumbOn');
	$(obj).css('opacity', .5).addClass('thumbOn');
}
function fadeThumbOut(obj){
	$(obj).fadeTo(250, .5);
}
function fadeThumbIn(obj){
	var regClass = /thumbOn/;
	if(!regClass.exec($(obj).attr('class'))){
		$(obj).fadeTo(250, 1);
	}
}




