var root = $('PDI_container1051705');var a1 = root.getElementsByTagName('a')[0];var a2 = root.getElementsByTagName('a')[1];a1.addEvent('mouseup', function(e) { 	e = new Event(e).stop(); 	doAdjust();});function adjustStuff() {	var root = $('PDI_container1051705');		var a1 = root.getElementsByTagName('a')[0];	a1.setStyles({'border': 0, 'font-family': 'Helvetica, Arial, sans-serif', 'font-size': '11px', 'color': '#0b76a8'});		if (a1.innerHTML.indexOf('View') != -1) {		a1.set('html', 'View Results');	}	else if (a1.innerHTML.indexOf('Poll') != -1) {		a1.set('html', 'Return to Poll');	}	else { }		a1.addEvent('mouseover', function() {		this.setStyle('text-decoration', 'underline');	});	a1.addEvent('mouseout', function() {		this.setStyle('text-decoration', 'none');	});		a1.getNext().destroy();		// gets rid of <br> tag		var pipe = new Element('span', {    // create a new <span> element		'html': '&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;poll created on&nbsp;',		'style': 'font: 11px/15px Helvetica, Arial, sans-serif'	});	pipe.inject(a1, 'after');		var a2 = root.getElementsByTagName('a')[1];		a2.setStyles({'border': 0, 'font-family': 'Helvetica, Arial, sans-serif', 'font-size': '11px', 'color': '#0b76a8'});	a2.addEvent('mouseover', function() {		this.setStyle('text-decoration', 'underline');	});	a2.addEvent('mouseout', function() {		this.setStyle('text-decoration', 'none');	});		a1.addEvent('mouseup', function(e) {		e = new Event(e).stop();		doAdjust();	});		var button = root.getElement('input.pds-votebutton');		if (button) {		button.removeProperty('style');		button.removeProperty('class');		button.setProperty('value', 'vote');		button.setStyles({'width': '70px', 'height': '30px', 'display': 'block', 'margin-bottom': '20px', 'font-size': '12px'});	}		$('spinner').setStyle('display', 'none');	root.setStyle('display', 'block');}function doAdjust() {	root.setStyle('display', 'none');		(function () { 		adjustStuff(); 	}).delay(1200); 	 	$('spinner').setStyle('display', 'block');}adjustStuff();