/*
 * Dont copy paste this code ! this code isn't static. your site will be banned/removed in our list if you fetch this code directly into script.
 * use "<script type="text/javascript" src="http://www.societplus.com/gplusone.js"></script> rather you copy paste this script directly
 * it has dynamic securitykey variable generated by our server, that you can't generate yourself !
 * This script wouldn't annoy your another visitor, this script is trigered just for societ plus user.
 * if you don't abide the rules we will banned your url, and you must contact us at admin[at]societplus[dot]com
*/
var gdata;

function iplusthis(gdata){
	if (gdata.state=="on"){
		var target = gdata.href;
		var securitykey="00d3b18b39869796482163522c93190d";
		$.getJSON("http://www.societplus.com/plusback.php?jsoncallback=?", { google_url: target, sec_key: securitykey }, function(data) {
			switch (parseInt(data.succ_code)){
			case 0: alert(data.succ_mess+data.point+', '+data.client_username+' !'); break;
			default: alert(data.succ_mess);
			}
		});
		return false;
	}
	if (gdata.state=="off"){
		var target = gdata.href;
		var securitykey="00d3b18b39869796482163522c93190d";
		$.getJSON("http://www.societplus.com/unplusback.php?jsoncallback=?", { google_url: target, sec_key: securitykey }, function(data) {
			switch (parseInt(data.succ_code)){
			case 0: alert(data.succ_mess+data.point+', '+data.client_username+' !'); break;
			default: alert(data.succ_mess);
			}
		});
		return false;
	}
}

