var co2stats_width = 0, co2stats_height = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
co2stats_width = window.innerWidth;
co2stats_height = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
co2stats_width = document.documentElement.clientWidth;
co2stats_height = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
co2stats_width = document.body.clientWidth;
co2stats_height = document.body.clientHeight;
}
co2stats_scrfr = (co2stats_width*co2stats_height+0.0)/(screen.width*screen.height);
document.write('');
document.write('
');
co2stats_img = new Image();
co2stats_img.onload = function() { co2stats_img = new Image(); }
co2stats_img.onerror = function() { co2stats_img = new Image(); }
co2stats_hover = new Image();
co2stats_hover.onload = function() { co2stats_hover = new Image(); }
co2stats_hover.onerror = function() { co2stats_hover = new Image(); }
function co2stats_upd() {
co2stats_img.src = 'http://www.co2stats.com/prowidget.php?s=1272&ref=' + encodeURIComponent(location.href) + '&scrfr=' + co2stats_scrfr + '&noshow=1';
}
function co2stats_onhover() {
tmStartThrob('badgeimg');
co2stats_hover.src = 'http://www.co2stats.com/prowidget.php?s=1272&hover=1&ref=' + encodeURIComponent(location.href);
}
function co2stats_onmouseout() {
tmStopThrob();
}
setInterval("co2stats_upd()",300000);