$(document).ready(function(){
	
	$("#path li:last").css("border", "0").addClass("active");
	$(".newsy .news:last").css("border", "0");
	$("#newsy .news:last").css("border", "0");
	$("#nav li:last").css("background", "none");
	$(".people ul:last").css("background", "none");
	
	var graphH = $("#graph").height();
	var hH = $("#graph h2").height();
	
		
	$("a.pdf, #logos a, #logosAkt a, #rss a").click( function() {
        window.open( $(this).attr('href') );
        return false;
    });
    
    var marginTop = (graphH - hH) / 2;
	if ($.browser.msie)
		$("#graph h2").css("margin-top", marginTop);
		
	$(".mar p").addClass("marginImg");
});




function rozwin(warstwa) {
	if (document.getElementById(warstwa).style.display=='block') {
		document.getElementById(warstwa).style.display='none';
	}
	else {
		document.getElementById(warstwa).style.display='block';
	}
}

var optionIndex = 0;
	function make_SelectList(){
		var text = document.getElementById("mainCodeDesc");
		text.disabled = false;
		text.value = "";
		var type = document.getElementById("mainCodeType");
		type.options.length = null;
		var optionIndex = 2;
		type.options[0] = new Option(" "," ");
		type.options[1] = new Option("NEW","NEW");
		for(var i=0;i<codeList.length;i++){
			type.options[optionIndex] = new Option(codeList[i],codeList[i]);
                                      //THIS LINE SHOULD CREATE THE YELLOW "HELP" BOX
			type.options[optionIndex].title = valueList[i];
			optionIndex++;
		}
	}
	//THIS show() function only worked in Mozilla for the mouseover of the options
	function show(){
		var text = document.getElementById("mainCodeDesc");
		if(this.value == " " || this.value == "NEW"){
			text.value = this.value;
		}else{
			text.value = valueList[getIndex(this.value)];
		}
	}


