function makewidgetobject(data){
	if (typeof acwlength == "undefined"){
		maxlength = 5;
	}else{
		maxlength = acwlength;
	}
	
	//document.getElementById("amplify-clog-widget").innerHTML= '<div class="acw-title"><a href="'+data.link+'">What I\'m reading</a></div>';
	//document.getElementById("amplify-clog-widget").innerHTML += '<div class="acw-title-group"><a href="'+data.link+'">What We\'re reading</a></div>';
	
	document.getElementById("amplify-clog-widget").innerHTML= '<div class="acw-title"><a href="'+data.link+'">Amplify</a></div>';
	document.getElementById("amplify-clog-widget").innerHTML += '<div class="acw-title-group"><a href="'+data.link+'">Amplify</a></div>';


	document.getElementById("amplify-clog-widget").innerHTML += '<div id="acw-list"></div>';
	document.getElementById("amplify-clog-widget").innerHTML += '<div class="acw-foot"><a href="http://amplify.com">Life beyond 140 characters</a></div>';
	
	//alert('here');
	if(data.item.length < maxlength){
		var maxlen = data.item.length;
	}else{
		var maxlen = maxlength;
	}
	for(var x=0;x<maxlen;x++){
		var title=data.item[x].title;
		var link =data.item[x].link;
		document.getElementById("acw-list").innerHTML +='<div class="acw-item"><a target="_blank" href="'+ link +'"><img class="acw-authorimg" src="'+data.item[x].authorimg+'" /><span class="acw-itemtitle">'+ title + '</span> <span class="acw-author">by ' + data.item[x].clogauthor + '</span> <span class="acw-date">' + data.item[x].dateago + ' ago</span></a></div>';
	}
}

function AmplifyWidget(awoptions){
	
	//include('http://' + aw_options.clogname + '.amplify.com/wp-content/mu-plugins/clogs/clogwidget.js');
	//include('http://' + awoptions.clogname + '.amplify.com/wp-json.php');
	return true;
}

