/**
 * Maakt een ul element actief
 **/
function makeActive(listID, element) {
	document.title = "LLOX » " + element;
	$("#" + listID + " ul li a").each( function() {
		if ( $(this).text() == element ) {
			$(this).css("color", "#a2c130");
			$(this).parent().attr("class", "active");
		} else 
		 $(this).css("color", "#818386");
		 $(this).parent().attr("class", "");
	});
}

/**
 * Maakt talen actief
 **/
 function makeLangActive(langName) {
 	$("#nav-lang li a").each( function() {
 		var element = "";
 		if (langName == 'nl') {
 			element = 'Nederlands';
 		}
 		if (langName == 'en') {
 			element = 'English';
 		}
 		if (langName == 'ro') {
 			element = 'Romania';
 		}
 		
 		if ( $(this).text() == element ) {
			$(this).css("color", "#5A5B5E");
		} else 
		 $(this).css("color", "#C4C5C8");
 		
 	 		
 	});
 	
 }


/**
 * Toont vergroting van een foto in content gebied
 **/
function showBig(imagename) {
	hideBig();
	$("#project-text").hide();
	$("#content").empty();
	// alles verwijderen om scrollpane kwijt te geraken
	var htmlForImage = "<img id=\"bigImage\" src=\"/images/projects/_large/" + imagename + "\" alt=\"\" />";
	$("#content").append(htmlForImage);
}

function hideBig() {
	$("#bigImage").remove();
}

function slideProjectInfo() {
	$("#project-text").show("slow");
	$("#content").jScrollPane({scrollbarWidth:7});
}



	
	

