	var notify = new Notimoo();
	if (site.login == 1) 	addScript(site.location+'login.php?callback=vote');
	else addScript('login.php?callback=votelist',true);
	$$('#vote_notes fieldset ul li').each(function(child) {
		child.addEvents({
			'mouseenter': function() {
				child.getElement('b').tween('color','#ff0');
				
			},
			'mouseleave': function() {
				child.getElement('b').tween('color','#aaa');
			},
		});
	
	});
function VoteScript(data) {

	var x = data.data;
	var msg = data.msg;
	var go = data.go;
	if (msg) notify.show({title: 'Vote Rewards Message ',message: msg});
	
	var tr = $('vote_space').empty();
	var ul = new Element('ul').inject(tr);
	x.each(function(v) {
		var li = new Element('li');
		var img = new Element('img', {'src':v[4]}).injectInside(li);
		var name = new Element('h2').set('html',v[0]).injectAfter(img);
		var points = new Element('div').set('html','<b>'+v[1]+ '</b> Mu Cash').injectAfter(name);
		var rep = new Element('div').set('html','<b>'+v[2]+'</b> Vote Available').injectAfter(points);
		
		li.inject(ul);
		li.addEvents({
			'click': function() {
				rep.set('html','Processing Vote...');
				addScript(site.location+'login.php?callback=vote&id='+v[0]);
			},
			'mouseenter': function() {
				//this.tween('background-color','#121212');			
				
			},
			'mouseleave': function() {
				//this.tween('background-color','#000');			
			},
		
		});
	});
	if (go) window.location = go;

}


	// CLEAN THIS UP AFTER aka safe to delete
	function dump(arr,level) {
		var dumped_text = "";
		if(!level) level = 0;
		
		//The padding given at the beginning of the line.
		var level_padding = "";
		for(var j=0;j<level+1;j++) level_padding += "    ";
		
		if(typeof(arr) == 'object') { //Array/Hashes/Objects 
			for(var item in arr) {
				var value = arr[item];
				
				if(typeof(value) == 'object') { //If it is an array,
					dumped_text += level_padding + "'" + item + "' ...\n";
					dumped_text += dump(value,level+1);
				} else {
					dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
				}
			}
		} else { //Stings/Chars/Numbers etc.
			dumped_text = "===>"+arr+"<===("+typeof(arr)+")";
		}
		return dumped_text;
	}
	
	
	// END CLEAN THIS UP

