//var $J = jQuery.noConflict();
jQuery(document).ready(function(){
	$('#cnt_header ul.menu li:last').css({'border' : 'none', 'padding-right' : '0px'});
	$('#cnt_header ul.lang li:last').css({'border' : 'none', 'padding-right' : '0px'});
	$('ul.pri_cat li:nth-child(4n)').css({'margin-right' : '0px'});
	$('ul.sec_cat li:nth-child(5n)').css({'margin-right' : '0px'});
	$('table.striped tr:odd').css({'background-color' : '#EFEFEF'});
	//$('ul.sitemap li.sec:nth-child(7)').css({'clear' : 'both'});
	$('ul.sitemap li.sec:nth-child(5)').css({'clear' : 'both'});

	var el = $('#cnt_menu ul li');
	var w = Math.round(770/el.size())-1;

	$(document).data("col_width", w);
	$(document).data("col_count", el.size());

	el.css({'width':w+'px'});
	var lw = 770 - (w+1)*(el.size()-1) - 2;
	$('#cnt_menu ul li:last').css({'border-right' : '1px solid #000', 'width' : lw+'px'});
	$('#cnt_content ul.submenu').css({'width':w+2+'px'});
	$('#cnt_content div.subcol').css({'margin-left':w+2+'px'});
	
	//$('a.lightbox').lightBox({resizeToWindow: true}); 
///*
	var a=0;
	$('.ext_img img').each(function(i){
		//console.log($(this).height()+'x'+$(this).width());
		if ($(this).height()>$(this).width()) {
			$(this).width(90);
			a = ($(this).height()-90)/2;
			$(this).css('marginTop', '-'+a+'px');
		} else if ($(this).width()>$(this).height()) {
			$(this).height(90);
			a = ($(this).width()-90)/2
			$(this).css('marginLeft', '-'+a+'px');
		}
		//console.log($(this).height()+'x'+$(this).width());
	})
//*/
	$('.ext_img:even').css('marginRight', '10px');
	jQuery('a.lightbox').lightBox();
});

