var intervalId;
function prepare(){
	// load the javascript file
	var headElt = document.createElement("script");
	headElt.src = 'http://www.hyves.nl/precompiled/hyvesconnect_async.js', headElt.type = "text/javascript";
	document.getElementsByTagName("head").item(0).appendChild(headElt);

	// schedule a check at 100msec interval
	intervalId = window.setInterval('defer()',100);
}

function defer(){
	// check if the Hyves object is available
	if(typeof Hyves != 'undefined'){
		// clear the interval (no more checks)
		window.clearInterval(intervalId);
		// create the tip button
		Hyves.connect.hub({hub_id: '11138140'}, null, 'placeholder');
	}
}





