$(document).ready(function(){
	var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
	if(IE6 == false) {
		$("#cv_content").accordion({
			alwaysOpen: false,
			header: ".ui-accordion-header",
			content: ".ui-accordion-content",
			autoHeight: false
		});
	} else {
		$("#navigation").remove();
	}
	
	$("#mailLink").bind('click', function(event) {
		$(this).attr("href", "mailto:andrei@mindware.ro");
		$(this).html("andrei@mindware.ro")
	});
	
	$("#navigation ul li a").bind('click', function(event) {
		activate = parseInt($(this).attr("rel"));
		$("#cv_content").accordion("activate", activate-1);
		return;
	});
	
	$(".what_did_i_do_p").append("<span><em>Click projects to see details</em></span>")
	
	$("#what_did_i_do dl dd").hide();
	
	$("#what_did_i_do dl dt").bind('click', function(event) {
		$(this).next("dd").toggle("slow", function() {
			/* ie7 cleartype bug */
			if($.browser.msie) {
				$(this).get(0).style.removeAttribute('filter');
			}
		});
		
	});
	
});