$(document).ready(function(){
	if($('#sectionnavigation li.active')){
		var active = $('#sectionnavigation li.active');
		if($(active).prev("li")) {
			var previous = $(active).prev("li");
			previous.css("border-right", "2px solid #fff");
		}
	}

});

/* File tracking */

	$(document).ready(function(){
	
		var link_path = "";
		$("div#content a").each(function(){
			if($(this).attr("href")) {
				if ($(this).attr("href").match(/\.(doc|pdf|xls|ppt|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3|jpg|jpeg)$/)) {
					$(this).bind("click",function(){ trackfiles($(this)); });
				}
			}
		});
	});
			
	function trackfiles(node) {
		file_path = "";
		filename = node.attr("href").split("/");
		extension = node.attr("href").match(/\.(doc|pdf|xls|ppt|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3|jpg|jpeg)$/);
		file_path = "/downloads/"+extension[0].replace(".","")+"/"+filename[filename.length-1];
		pageTracker._trackPageview(file_path);
	}