$(document).ready(function(){ // fix height problem for the right column var right_height = $('#pageContainer .page').height(); var left_height = $('#supplementary').height(); if(right_height>left_height) { $('#supplementary').css('height',right_height+'px'); } var legform=$('#form_legislatie').length; if(legform>0) { $('#legislatie_select').load('/!ajx/dict_litere.php'); $('#legislatie_select').change(function() { $('#serviciul_select').load('/!ajx/dict_terms.php?id='+$(this).val()); }); $('#serviciul_select').change(function() { var path = $('#serviciul_select').val(); if(path.length>0) { var loc = window.location.hostname; document.location='http://'+loc+'/'+path; } }); } // font size body_font_size_initial = parseInt($('#content div.body').css('font-size')); body_font_size = parseInt($('#content div.body').css('font-size')); body_line_height = parseInt($('#content div.body').css('line-height')); $('li.font_size ul li a.plus').click( function(){ if (body_font_size < 20) { body_font_size = body_font_size+1; body_line_height = body_line_height+2; $('div.body *').css('line-height',body_line_height+'px'); $('div.body *').css('font-size',body_font_size+'px'); return false; } } ); $('li.font_size ul li a.minus').click( function(){ if (body_font_size_initial < body_font_size) { body_font_size = body_font_size-1; body_line_height = body_line_height-2; $('#content div.body *').css('line-height',body_line_height+'px'); $('#content div.body *').css('font-size',body_font_size+'px'); } return false; } ); });