	$(document).ready(function() {
		var n = $(".head_menu a").length;var length;var length_sum = 1;
			$(".head_menu a").each(function(n, element){length = $(element).html().length;length_sum = length + length_sum;});
			$(".head_menu a").each(function(n, element){
				length = $(element).html().length;
				width = Math.round((100/length_sum) * length) + '%';
				$(element).parent().css('width',width);
			});
//			$('.corner_outer,.corner_inter,.pagination ul li a,pagination ul li span,.news_more,.submit').corner("4px");
		 });	/* GALLERY SETTINGS */
  hs.graphicsDir = '/js/highslide/graphics/';
  hs.align = 'left';
  hs.transitions = ['expand', 'crossfade'];
  hs.outlineType = 'rounded-white';
  hs.fadeInOut = true;
  //hs.numberPosition = 'caption';
  hs.dimmingOpacity = 0.1;

// controlbar
  if (hs.addSlideshow) hs.addSlideshow({
	//slideshowGroup: 'group1',
  	interval: 2500,
  	repeat: false,
  	useControls: true,
  	fixedControls: 'hit',
  	overlayOptions: {
  		opacity: .6,
  		position: 'bottom center',
  		hideOnMouseOut: true
  	}
  });

/* ONE IMAGE SETTINGS
  hs_one.graphicsDir = '/js/highslide/graphics/';
  hs_one.outlineType = 'rounded-white';
  hs_one.transitions = ['expand', 'crossfade'];
  hs_one.fadeInOut = true;
*/


