function expandFeature(li) {
	jQuery(li).parent().find('ul').hide();
	jQuery(li).find('ul').show();
	jQuery(li).click(function() {
		jQuery(li).find('ul').toggle();
	});
}

function rotateImg(arrow) {
	var re = /arrow_(\w+)\.jpg/;
	var direction = re.exec(arrow.src)[1];
	
    if (jQuery(arrow).parent().parent().attr('id').search('screenshot') != -1) { 
		var currentImg = $('#screenshot');
		re = /screenshot_(\d+)\.jpg/;
		re2= /(.*screenshot_)\d+(\.jpg)/;
	} else {
		var currentImg = $('#conceptArt');
		re = /concept_(\d+)\.jpg/;
		re2 = /(.*concept_)\d+(\.jpg)/;
	}	
	var currentNum = re.exec(currentImg.attr('src'))[1];
	var newNum;
	if (direction == 'right') {
		newNum = parseInt(currentNum, 10) + 1;
	} else {
		newNum = parseInt(currentNum, 10) - 1;
	}
	if (newNum > 6) {
		newNum = 1;
	} else if (newNum < 1) {
		newNum = 6;
	}

	var newSrc = currentImg.attr('src').replace(re2, ('$1' + '0' + newNum + '$2'));
	currentImg.attr('src', newSrc);
	currentImg.parent().attr('href', newSrc);
}



