function showPane(panel,el) {
	$('div.text-wrap div[id!=""]').hide();
	
	$('div.gallery-wrap div[id!=""]').hide();
	$('div.gallery-wrap').children(':first-child').show();
	
	$('div.text-wrap #'+ panel).show();
//	document.getElementById('currentPage').innerHTML = el.innerHTML;
	document.getElementById('currentPage').innerHTML = el.innerHTML;
}

function showSection(section) {
	$('div.gallery-wrap div[id!=""]').hide();
	$('div.gallery-wrap div#' + section).show();
	$(function() {
		$("#"+section).jCarouselLite({
				visible: 1,
				speed: 500,
				btnNext: ".next",
				btnPrev: ".prev",
				circular: false
			});
		});
}

function showClientComment(el,var1, id){
	var oAjax 		= new CAjax();
	oAjax.url 		= "../clients_comments/list_client_comment.php";
	oAjax.variables = "var1=" + var1 + "&id=" + id;
	oAjax.method = 'GET';
	oAjax.onDone 	= function(sResp){
							var divContentEl = document.getElementById('ClientComments');
							divContentEl.style.display = 'block';
							divContentEl.innerHTML = unescape(sResp);
							
							$('#ClientComments').css('top',document.getElementById('cList').offsetTop + el.offsetTop + 130);
							$('#ClientComments').css('left',document.getElementById('cList').offsetLeft + el.offsetLeft + 240);
						}
	oAjax.sendData();
	
}