
/* - design.js - */
// http://www.eea.europa.eu/portal_javascripts/design.js?original=1
var DESIGN_MIN_WIDTH=972;var DESIGN_MAX_WIDTH=1280;$(document).ready(function(){var r=/data-and-maps\/(figures|data)\/?$/;if(r.test(window.location.pathname)){$('body').addClass('fullscreen');$('#icon-full_screen').parent().remove()}});$(window).load(function(){$(window).resize()});$(window).resize(function(){var wrapper=$('#visual-portal-wrapper');var w=wrapper.width();if(w<DESIGN_MIN_WIDTH){wrapper.width(DESIGN_MIN_WIDTH)} else if(w>DESIGN_MAX_WIDTH){wrapper.width(DESIGN_MAX_WIDTH)}
var margin=$('#top-news-area').width() * 0.03;w=($('#top-news-area').width()-4 * margin)/5;$('#top-news-area .portlet-promotions').width(w);$('#top-news-area .portlet-promotions:lt(4)').css('marginRight',Math.floor(margin)+'px');$('#top-news-area .portlet-promotions:last').css({'marginRight':'0','float':'right'});$("#multimedia-highlights img, #top-news-area .portlet-promotions img").each(function(i){$(this).height((9/16) * $(this).width())});margin=($('#big_vid').height()-($("#multimedia-highlights ul li img").height() * 3))/2;$("#multimedia-highlights ul img:lt(2)").css('marginBottom',margin+'px');var largest_column_height=Math.max($("#articles-area").height(),$("#highlights-area").height());$(".frontpage .column-area").height(largest_column_height)});

