var browser=navigator.appName; $(document).ready(function() { loader('getLocation','','podrocje_container'); /** pove�ava , pomanj�anje fontov **/ var font_manipulation = 0; // Increase Font Size $('#increaseFont').click(function(){ if (font_manipulation < 2) { var currentFontSize = $('html').css('font-size'); var currentFontSizeNum = parseFloat(currentFontSize, 10); var inc = 1.25; if (browser == 'Microsoft Internet Explorer') { inc = 1.30; } var newFontSize = currentFontSizeNum*inc; $('html').css('font-size', newFontSize); font_manipulation = font_manipulation+1; } return false; }); // Decrease Font Size $('#decreaseFont').click(function(){ if (font_manipulation > -1) { var currentFontSize = $('html').css('font-size'); var currentFontSizeNum = parseFloat(currentFontSize, 10); var dec = 0.80; if (browser == 'Microsoft Internet Explorer') { dec = 0.80; } var newFontSize = currentFontSizeNum*dec; $('html').css('font-size', newFontSize); font_manipulation = font_manipulation-1; } return false; }); }); function show_on_key(val) { if (val.length == 1) { val = val.toUpperCase(); $('#search').val(val); } $('.hidden_row').hide(); $('.hidden_row:contains("'+val+'")').show(); } function show_all(val) { $('.hidden_row').toggle(); if ($('#show_hide_all_'+val).html() == 'Prikaži vse države') { $('#show_hide_all_'+val).css({"background":"#F2F2F2 url('_images/minus.png') no-repeat"}); $('#show_hide_all_'+val).html('Skrij države'); } else { $('#show_hide_all_'+val).css({"background":"#F2F2F2 url('_images/plus.png') no-repeat"}); $('#show_hide_all_'+val).html('Prikaži vse države'); } } function loader(action,val,container) { $('#main_container').html('
Prosimo, počakajte ...
'); $('#loader').show(); if(val != 'empty') { $.ajax({ type: 'POST', url: '_roaming/loader.php', data: 'action='+action+'&data='+val, success: function(data){ $('#loader').hide(); $('#'+container).children().remove(); $('#'+container).fadeIn('normal'); $('#'+container).html(data); } }); } } function select(id) { if($('#eu_noneu').val() == 'empty') { $('#drzave_list').fadeOut('normal'); $('#main_container').fadeOut('normal'); } if($('#'+id).val() == 'empty') { $('#main_container').fadeOut('normal'); } }