$(document).ready(function() {
	jQuery('#accordionMenuNav').accordion({
		active: '.activeLink',
		event: 'click',
    		animated: false,
		fillSpace: false,
		header: '.mainLink',
		navigation: true,
		autoheight: false
	});

	jQuery('#accordionMenuReps').accordion({
		active: '.activeLink',
		event: 'click',
    		animated: false,
		fillSpace: false,
		header: '.clickShowReps',
		autoheight: false
	});

	jQuery('#accordionMenuPressReleases').accordion({
		active: '.activeLink',
		event: 'click',
    		animated: false,
		fillSpace: false,
		header: '.clickShowPressReleaseYear',
		autoheight: false
	});


	$("div.rounded").corner("round top 5px");
	$("a.rounded").corner("round top 5px");
	$("li.rounded").corner("round top 5px");
	$("div#parameterSearch.rounded").corner("round 10px");
	$("div#lensCodeSearch.rounded").corner("round 10px");
	$("div#lensCodeSearch.rounded").corner("round 10px");

	$("table").tablesorter({
   		// set forced sort on the fourth column and in decending order.
   		sortList: [[0,0]]
 	});

  	var GB_ANIMATION = true;
	$("a.greybox").click(function(){
		var t = this.title || $(this).text() || this.href;
		GB_show(t,this.href,470,600);
		return false;
	});
});