var currenthl = 0;
var pathArray = new Array;
function switchHighLight(id, path)
{
	if ($('#highlight_content').html() == $('#highlight_content_'+id).html())
		return false;
	
	pathArray[id] = path;
	$('#highlight_'+currenthl).css({backgroundImage: 'url(\''+path+'linkbgd.gif\')'});
	$('#highlight_'+currenthl+' a').css({color:'#23531F'});
	$('#highlight_'+currenthl).css({width:'230px'});
	$('#highlight_'+currenthl).css({height:'67px'});
	
	currenthl = id;
	$('#highlight_'+id).css({backgroundImage: 'url(\''+path+'highlight_main_on.gif\')'});
	$('#highlight_'+id).css({width:'250px'});
	$('#highlight_'+id).css({height:'67px'});
	$('#highlight_'+id).css({zIndex:'999'});
	$('#highlight_'+id+' a').css({color:'#FFF'});
	
	/*$('#highlight_content').fadeOut('medium', function() {*/
		$('#highlight_content').html($('#highlight_content_'+id).html()).fadeIn('slow', function () {
			if (currenthl != id)
				switchHighLight(currenthl, pathArray[currenthl]);
		});
	/*});*/
	
	$('#highlight_selector').css({top: (((parseInt(id)-1)*51)-203)+'px'});
}


