if (typeof(top10embed) != "object" || top10embed == null) {
	var top10embed = {
		_uid: 0,

		onload: function() {
			// get the uid to give credit for the embed
			var getVars = parseGetVars(window.location.href);

			this._uid = (getVars.uid != undefined? getVars.uid: '0');

			top10.init();
		},

		onunload: function() {
			top10.shutdown();
		},

		setRefCookie: function() {
			if (this._uid != 0) {
				// we're just going to use the same cookie as the
				// pollreferrer--misnomer, but hey.
				var myDate = new Date(); 
				myDate.setDate(myDate.getDate()+30); // 30 days in future
				YAHOO.util.Cookie.set("pollreferrer", this._uid, { expires: myDate });
			}
		}
	}
}
