Climate: Carbon ‘offsets’ rise 4% in 2012

June 2nd, 20134:39 am @

0



,containerID: ‘divGigyaLoginTop’
,pendingRegistration: ‘FALSE’
}

var showSiteFollowBarUI_params=

iconSize: 22

// function to populate name and photo box in header of page
function renderUI(res)
if(document.getElementById(“profile”))
if (res.user != null res.user.isConnected)
document.getElementById(“name”).innerHTML = res.user.nickname;
if (res.user.thumbnailURL.length 0)
document.getElementById(“photo”).src = res.user.thumbnailURL;
else
document.getElementById(“photo”).src = “http://cdn.gigya.com/site/images/bsAPI/Placeholder.gif”;
document.getElementById(“profile”).style.display = “block”;
document.getElementById(“gig-logout”).style.display = “block”;
document.getElementById(“gigya-login-message”).style.display = “none”;
document.getElementById(“gigya-login-text”).style.display = “block”;
else
document.getElementById(“profile”).style.display = “none”;
document.getElementById(“gig-logout”).style.display = “none”;
document.getElementById(“gigya-login-message”).style.display = “block”;
document.getElementById(“gigya-login-text”).style.display = “none”;
document.getElementById(“name”).innerHTML = “”;

// Logout from Gigya platform. This method is activated when “Logout” button is clicked
function logoutFromGS()
gigya.socialize.logout(); // logout from Gigya platform

Drupal.behaviors.gigyaHeaderUserInfo = function (context)
gigya.socialize.showAddConnectionsUI(connect_params_top);
gigya.socialize.showFollowBarUI(showSiteFollowBarUI_params);
//gigya.socialize.showLoginUI(login_params_top);

// get user info
gigya.socialize.getUserInfo( callback: renderUI );

// register for connect status changes
gigya.socialize.addEventHandlers(onConnectionAdded: renderUI);

;

//–


Article source: http://www.globalpost.com/dispatch/news/afp/130530/climate-carbon-offsets-rise-4-2012