var debugEl; var pr_img; function vote(c,id) { var obj=newAjaxObject(); obj.onreadystatechange=function() { if(obj.readyState==4) { $('vote'+id).innerHTML = obj.responseText; $('votebuttons'+id).innerHTML = ""; } } obj.open('GET', 'vote.php?c='+c+'&i='+id, true); obj.send(null); } function switchTab(tabElement) { $(tabElement).siblings('.tab-active').removeClass('tab-active').addClass('tab'); $(tabElement).addClass('tab-active').removeClass('tab'); } function initialize() { pr_img = $(".pressrelease-image img")[0]; if(pr_img != null) { var real_width; $("") .attr("src", $(pr_img).attr("src")) .load(function() { real_width = this.width; if(real_width < 900) { $(pr_img).removeAttr("width"); } }); } } /*function get_filler() { // Dirty hack to avoid the 'press releases' section resizing when switching tabs return "