$(document).ready(function() {
	$(".jquery_table tr:nth-child(2n-1)").css("background", "#eee");
	$(".jquery_table tr th:first-child").css("text-align", "left");
	$(".jquery_table tr td:first-child").css("text-align", "left");
	$(".block_1 .jquery_table tr:nth-child(2n-1)").css("background", "#fff");
	$(".block_1 .jquery_table tr:nth-child(2n)").css("background", "#eee");
	
	$(".block_3 .jquery_table tr td:nth-child(2)").css({
		"text-align":"right",
		"font-weight":"bold"
	});
	
	$(".poll tr td").css("text-align","left");
	$(".poll tr td:nth-child(2)").css({
		"text-align":"left",
		"font-weight":"normal"
	});
	
	$("table.poll .result span").parent().css("padding","0px");

	gal_thumbWidth = ($("#article_col_1").width() - 72) / 4;
	$(".img_gallery img").css("width",gal_thumbWidth);
	
	$(".popupwindow").popupwindow();
	
});

$(window).load(function(){
	$('#gallery').galleryView({
		panel_height: 305.333,
		panel_width: 458,
		frame_width: 72,
		frame_height: 54,
		filmstrip_size: 5,
		frame_opacity: 1,
		transition_speed: 350,
		nav_theme: 'light',
		filmstrip_position: 'top'
	});
	
	maxHeight = 0;
	$(".column").each(function() {
		if ($(this).height()>maxHeight) {
			maxHeight = $(this).height();
		}
	});
	$(".column").css("height", maxHeight);
});
