jQuery(document).ready(function(n){"use strict";function u(){var t=jQuery("meta[name=website-survey-url]").attr("content");navigator.cookieEnabled&&t&&n.ajax({url:t,dataType:"json",data:{},success:function(n){f(n.SurveyDetail)}})}function f(u){function d(){var n=document.getElementById("redsurvey_div"),t;g(o)!="true"&&(t=document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop,n.style.top=t+screen.height/5+"px",n.style.display="block")}function l(){var n=document.getElementById("redsurvey_div");n.style.display="none"}function g(n){var r,i,t;if(document.cookie=="")return!1;for(i=document.cookie.split(";"),t=0;t<i.length;t++)if(r=i[t],r.indexOf(n+"=")>-1)return"true";return"false"}function y(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString(),document.cookie=n+"="+t+u+"; path=/"}function nt(n){n.preventDefault(),l();var t=new Date;y(o,"N="+t.toGMTString(),90)}function tt(n){n.preventDefault();var t=new Date;l(),y(o,"Y="+t.toGMTString(),90),rt()}function it(n){n.preventDefault(),l()}function rt(){var n,t=screen.width/2-h/2,i=screen.height/2-s/2;b=="now"?n=window.open(a,"redsurvey","resizable=1,scrollbars=1,height="+s+",width="+h+",toolbar=0,menubar=0,left="+t+",top="+i):(n=window.open(a,"redsurvey","resizable=1,scrollbars=1,height="+s+",width="+h+",toolbar=0,menubar=0,left="+t+",top="+i),n.blur(),window.focus(),window.resizeBy(1,1))}var o=u.ID,p=u.TITLE,w=u.ENABLED,b=u.TYPE,a=u.URL,s=u.HEIGHT,h=u.WIDTH,f="",k=0,e,c,v;for(f+='<div id="redsurvey_div" style="display:none;">\n',f+='  <div id="shadow">\n',f+='    <div id="modal_main">\n',f+='      <div id="modal_main_header"> <img src="'+r+'parliament_logo_blue_bg.gif" alt="Parliament logo" class="logo" /> <a ',f+='class="close_button" tabindex="1">Close<\/a> \n',f+="      <\/div>\n",f+='      <div id="modal_main_body">\n',f+="        <h4>"+p+"<\/h4>\n",e=1;e<=10;e++)c=u["TEXT"+e],c!=""&&(f+="<p>"+c+"<\/p>\n",k+=100);f+='        <a class="yes" tabindex="2" title="Yes, I want to participate in this survey">Yes<\/a>\n',f+='<a class="no" tabindex="3" title="No, I do not want to participate in this survey">No<\/a>\n ',f+='\t\t<br class="clear" />\n',f+="      <\/div>\n",f+="    <\/div>\n",f+="  <\/div>\n",f+="<\/div>\n",n("body").prepend(f),t==1&&w&&(v=i*1e3,setTimeout(d,v));n("#redsurvey_div a.yes").on("click",tt);n("#redsurvey_div a.no").on("click",nt);n("#redsurvey_div a.close_button").on("click",it)}var t=1,i=2,r="/assets/images/surveys/";u()})