

var poll_88558 = "";
var results_88558 = "";

var pollElem_88558 = document.getElementById("pliner_poll_form_88558");
var resultsElem_88558 = document.getElementById("pliner_poll_results_88558");

poll_88558 += "<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-size: 12px; font-family: Calibri, Arial, sans-serif;\">";
poll_88558 += "<tr><td align=\"left\" id=\"pliner_poll_88558_container\">";
poll_88558 += "<div style=\"font-size: 14px; font-weight: bold;\">Election 2009: Which Party is fit to Govern the United Kingdom?</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"1\" id=\"answer_88558_1\" />";
poll_88558 += "<label for=\"answer_88558_1\">The Labour Party</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"2\" id=\"answer_88558_2\" />";
poll_88558 += "<label for=\"answer_88558_2\">The Conservative Party</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"3\" id=\"answer_88558_3\" />";
poll_88558 += "<label for=\"answer_88558_3\">The Liberal Democrats</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"4\" id=\"answer_88558_4\" />";
poll_88558 += "<label for=\"answer_88558_4\">The Democratic Unionist Party</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"5\" id=\"answer_88558_5\" />";
poll_88558 += "<label for=\"answer_88558_5\">The Scottish National Party</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"6\" id=\"answer_88558_6\" />";
poll_88558 += "<label for=\"answer_88558_6\">Sinn Féin</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"7\" id=\"answer_88558_7\" />";
poll_88558 += "<label for=\"answer_88558_7\">Plaid Cymru - Party of Wales</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"8\" id=\"answer_88558_8\" />";
poll_88558 += "<label for=\"answer_88558_8\">The Social Democratic and Labour Party</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"9\" id=\"answer_88558_9\" />";
poll_88558 += "<label for=\"answer_88558_9\">UKIP</label>";
poll_88558 += "</div>";
poll_88558 += "<div style=\"cursor: pointer; cursor: hand; padding-left: 19px; padding-right: 10px; text-indent: -20px;\" onmouseover=\"this.style.backgroundColor='#CCCCFF';\" onmouseout=\"this.style.backgroundColor='transparent';\" onclick=\"pliner_poll_88558_select(this);\">";
poll_88558 += "<input type=\"radio\" name=\"pliner_poll_88558\" value=\"10\" id=\"answer_88558_10\" />";
poll_88558 += "<label for=\"answer_88558_10\">The Green Party</label>";
poll_88558 += "</div>";
poll_88558 += "<br /><div align=\"center\"><input type=\"button\" value=\"Vote\" onclick=\"pliner_poll_88558_vote();\" /></div>";
poll_88558 += "<div align=\"center\"><a href=\"javascript:pliner_poll_88558_results();\" onclick=\"pliner_poll_88558_results();return false;\">View the Poll Results</a></div>";
poll_88558 += "</td></tr></table><br />";



results_88558 += "<div style=\"position: relative; background-image(http://www.pliner.net/apppoll2/images/loading.gif); background-position: center top; background-repeat: no-repeat;\">";
results_88558 += "<div style=\"position: absolute; top: 6px; right: 5px; z-index: 15; font-size: 11px;\">";
results_88558 += "<a href=\"javascript:\" onclick=\"resultsElem_88558.style.display = 'none';return false;\" style=\"color: #000000; text-decoration: none; font-family: Arial, Sans-Serif;\">";
results_88558 += "Close <img src=\"http://www.pliner.net/apppoll2/images/closemessage.gif\" width=\"10\" height=\"10\" align=\"absmiddle\" alt=\"Close Results\" border=\"0\" />";
results_88558 += "</a>";
results_88558 += "</div>";
results_88558 += "<iframe style=\"background-color: Transparent;\" height=\"300\" width=\"370\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" id=\"pliner_poll_frame_88558\"></iframe>";
results_88558 += "</div>";

pollElem_88558.innerHTML = poll_88558;
resultsElem_88558.innerHTML = results_88558;

resultsElem_88558.style.display = "none";
resultsElem_88558.style.position = "absolute";
resultsElem_88558.style.top = "0px";
resultsElem_88558.style.left = "0px";

function pliner_poll_88558_vote()
{
    var radioGroup = document.getElementsByName("pliner_poll_88558");
    var selectedValue = -1;

    for (var i=0; i < radioGroup.length; i++)
        if (radioGroup[i] != null && radioGroup[i].checked)
            selectedValue = radioGroup[i].value;
            
    if (selectedValue == -1) { alert("You have not made a selection yet!"); return; }

    pliner_poll_88558_results(selectedValue);
}

function pliner_poll_88558_results(answer)
{
    if (answer == null || answer == undefined || !answer) answer = -1;
    var addr = "http://www.pliner.net/apppoll2/results.aspx?p=19c3ee&v=" + answer;
    document.getElementById("pliner_poll_frame_88558").src = addr;
    
    var cont = document.getElementById("pliner_poll_88558_container");
    resultsElem_88558.style.display = "block";
    resultsElem_88558.style.top = FindPosY_88558(cont) + "px";
    resultsElem_88558.style.left = FindPosX_88558(cont) + "px";
}

function pliner_poll_88558_select(elem)
{
    if (elem == null || !elem) return;
    for (var n=0; n < elem.childNodes.length; n++)
        if (elem.childNodes[n].nodeName.toLowerCase() == 'input') 
            if (elem.childNodes[n].type.toLowerCase() == 'radio')
                elem.childNodes[n].checked = true;
}

function FindPosX_88558(obj) {
	var curleft = 0;
	if(obj.offsetParent)
		while(1) {
			curleft += obj.offsetLeft;
			if(!obj.offsetParent) break;
			obj = obj.offsetParent; }
	else if(obj.x) curleft += obj.x;
	return curleft; }
function FindPosY_88558(obj) {
	var curtop = 0;
	if(obj.offsetParent)
		while(1) {
			curtop += obj.offsetTop;
			if(!obj.offsetParent) break;
			obj = obj.offsetParent; }
	else if(obj.y) curtop += obj.y;
	return curtop; }