Guest User

Untitled

a guest
Jul 30th, 2011
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.08 KB | None | 0 0
  1. var pollClosed4424060 = false;
  2. var PDV_POLLRAND4424060 = false;
  3. var PDV_a4424060 = '';
  4. var PDV_o4424060 = '';
  5. var PDV_id4424060 = 4424060;
  6. var PDV_pt4424060 = 0;
  7. var PDV_po4424060 = 0;
  8. var PDV_b4424060 = 1;
  9. var PDV_pr4424060 = 1;
  10. var PDV_l4424060 = 1;
  11. var PDV_s4424060 = 127704;
  12. var PDV_h4424060 = 'fde41e443493ad3dd3fd7fe6cb0da3a8';
  13. var PDV_w4424060 = 4424060;
  14. var PDV_share4424060 = 0;
  15. var PDV_expire4424060 = 7257600;
  16. var PDV_version4424060 = 0;
  17. var PDV_def4424060 = '#PDI_container4424060 .pds-box{background:#CCC url(\"http://i.polldaddy.com/polls/alum-bg.png\") repeat-x top left;border:1px solid #006;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;width:400px;text-align:left;margin:0;padding:12px} #PDI_container4424060 .pds-question-top{font:normal normal bold 14px/20px Arial;color:#FFF;text-align:left;border:1px solid #000;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;background-color:#006;margin:0 0 15px;padding:12px} #PDI_container4424060 .pds-answer-group{display:block;padding:5px 0} #PDI_container4424060 .pds-feedback-group{padding:8px 0} #PDI_container4424060 .pds-answer-input{display:block;float:left;width:25px;padding:1px 0 0} #PDI_container4424060 .pds-input-label{font:normal normal bold 14px/14px Arial;color:#000;text-align:left;width:268px;position:relative;cursor:pointer;display:block;float:left;padding:4px 0 0} #PDI_container4424060 .pds-feedback-label{font:normal normal bold 14px/14px Arial;color:#000;text-align:left;position:relative;display:block;padding:4px 0 0} #PDI_container4424060 .pds-other-label{font:normal normal bold 14px/14px Arial;color:#000;text-align:left;width:268px;padding:4px 0 0} #PDI_container4424060 .pds-textfield{font:normal normal normal 12px/12px Arial;color:#444;text-align:left;background-color:#d9d9d9;border:1px solid #999;width:200px;margin:4px 0 0 25px;padding:2px} #PDI_container4424060 .pds-vote-button{font:normal normal bold 14px/14px Lucida Grande;color:#FFF;text-align:left;background-color:#900;border:1px solid #848484;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;display:block;float:left;text-decoration:none;margin:0;padding:6px 18px} #PDI_container4424060 .pds-vote-button-load{font:normal normal bold 14px/14px Lucida Grande;color:#FFF;text-align:left;background-color:#900;border:1px solid #848484;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;display:block;float:left;text-decoration:none;background:#eee url(\"http://i.polldaddy.com/polls/vote-loader-eeeeee.gif\") no-repeat scroll 50% 50%;margin:0;padding:6px 18px} #PDI_container4424060 .pds-answer-feedback{background:#ccc url(\"http://i.polldaddy.com/polls/alum-feedback.png\") repeat-x left top;border:0 solid #838383;margin:5px 0 0;padding:0} #PDI_container4424060 .pds-answer-feedback-bar{background:#900 url(\"http://www.gopusa.com/images/red_bg.png\") repeat-x left bottom;border:1px solid #4D6382;height:17px;margin:0;padding:0} #PDI_container4424060 .pds-total-votes{font:normal normal bold 12px/12px Arial;color:#000;text-align:left;border:0 solid #F0F0F0;margin:10px 0 0;padding:0} #PDI_container4424060 .pds-clear{clear:both;display:block} #PDI_container4424060 .pds-box A{outline:none;display:block;float:left} #PDI_container4424060 .pds-answer-other{clear:left;display:block} #PDI_container4424060 .pds-link{display:block;float:left} #PDI_container4424060 .pds-vote{padding:10px 0} #PDI_container4424060 .pds-vote-button-load SPAN{visibility:hidden} #PDI_container4424060 .pds-links{display:block;float:left;padding:10px 0 0 15px} #PDI_container4424060 .pds-view-results,.pds-comments,.pds-return-poll,.pds-pd-link,.pds-share{font:normal normal bold 14px/11px Arial;color:#000;text-align:left;padding:8px 10px 0 0} #PDI_container4424060 .pds-question A,.pds-answer A{float:none} #PDI_container4424060 .pds-answer-group BR,.pds-answer-other BR,.pds-vote BR{display:none} #PDI_container4424060 div {margin:0;padding:0;}';
  18. var PDV_sl4424060 = 0;
  19. var PDV_lnk4424060 = 0;
  20. var PDV_va4424060 = 16;
  21. var PDV_POLL_q4424060 = 'Should AZ's Sheriff Dupnik be recalled?';
  22.  
  23.  
  24. var PDV_POLL_medType4424060 = '0';
  25. var PDV_POLL_medID4424060 = '';
  26.  
  27. var PDV_A4424060 = new Array();
  28.  
  29. PDV_A4424060[0] = new Array(4);
  30. PDV_A4424060[0][0] = '19736772';
  31. PDV_A4424060[0][1] = 'Yes';
  32. PDV_A4424060[0][2] = '0';
  33. PDV_A4424060[0][3] = '';
  34.  
  35.  
  36. PDV_A4424060[1] = new Array(4);
  37. PDV_A4424060[1][0] = '19736773';
  38. PDV_A4424060[1][1] = 'No';
  39. PDV_A4424060[1][2] = '0';
  40. PDV_A4424060[1][3] = '';
  41.  
  42.  
  43. PDV_A4424060[2] = new Array(4);
  44. PDV_A4424060[2][0] = '19736774';
  45. PDV_A4424060[2][1] = 'I'm not sure.';
  46. PDV_A4424060[2][2] = '0';
  47. PDV_A4424060[2][3] = '';
  48.  
  49.  
  50. var PDV_l1_4424060 = 'View Results';
  51. var PDV_l2_4424060 = 'Other:';
  52. var PDV_l3_4424060 = 'Vote';
  53. var PDV_l4_4424060 = 'Please choose an answer first!';
  54. var PDV_l12_4424060 = 'Share This';
  55. var _debug = false;
  56. var _document_root = (is_secure() ? "https://polldaddy.com/swf/" : "http://i0.poll.fm/swf/");
  57. var sc, _container, _global_pc, _global_ss, _global_wn;
  58. var FlashDetect = new function () {
  59. var n = this;
  60. n.installed = false;
  61. n.raw = "";
  62. n.major = -1;
  63. n.minor = -1;
  64. n.revision = -1;
  65. n.revisionStr = "";
  66. var m = [{
  67. name: "ShockwaveFlash.ShockwaveFlash.7",
  68. version: function (a) {
  69. return k(a)
  70. }
  71. }, {
  72. name: "ShockwaveFlash.ShockwaveFlash.6",
  73. version: function (b) {
  74. var a = "6,0,21";
  75. try {
  76. b.AllowScriptAccess = "always";
  77. a = k(b)
  78. } catch (c) {}
  79. return a
  80. }
  81. }, {
  82. name: "ShockwaveFlash.ShockwaveFlash",
  83. version: function (a) {
  84. return k(a)
  85. }
  86. }];
  87. var k = function (b) {
  88. var a = -1;
  89. try {
  90. a = b.GetVariable("$version")
  91. } catch (c) {}
  92. return a
  93. };
  94. var o = function (a) {
  95. var b = -1;
  96. try {
  97. b = new ActiveXObject(a)
  98. } catch (c) {
  99. b = {
  100. activeXError: true
  101. }
  102. }
  103. return b
  104. };
  105. var l = function (a) {
  106. var b = a.split(",");
  107. return {
  108. raw: a,
  109. major: parseInt(b[0].split(" ")[1], 10),
  110. minor: parseInt(b[1], 10),
  111. revision: parseInt(b[2], 10),
  112. revisionStr: b[2]
  113. }
  114. };
  115. var h = function (c) {
  116. var a = c.split(/ +/);
  117. var d = a[2].split(/\./);
  118. var b = a[3];
  119. return {
  120. raw: c,
  121. major: parseInt(d[0], 10),
  122. minor: parseInt(d[1], 10),
  123. revisionStr: b,
  124. revision: j(b)
  125. }
  126. };
  127. var j = function (a) {
  128. return parseInt(a.replace(/[a-zA-Z]/g, ""), 10) || n.revision
  129. };
  130. n.majorAtLeast = function (a) {
  131. return n.major >= a
  132. };
  133. n.minorAtLeast = function (a) {
  134. return n.minor >= a
  135. };
  136. n.revisionAtLeast = function (a) {
  137. return n.revision >= a
  138. };
  139. n.versionAtLeast = function (c) {
  140. var b = [n.major, n.minor, n.revision];
  141. var a = Math.min(b.length, arguments.length);
  142. for (i = 0; i < a; i++) {
  143. if (b[i] >= arguments[i]) {
  144. if (i + 1 < a && b[i] == arguments[i]) {
  145. continue
  146. } else {
  147. return true
  148. }
  149. } else {
  150. return false
  151. }
  152. }
  153. };
  154. n.FlashDetect = function () {
  155. if (navigator.plugins && navigator.plugins.length > 0) {
  156. var e = "application/x-shockwave-flash";
  157. var f = navigator.mimeTypes;
  158. if (f && f[e] && f[e].enabledPlugin && f[e].enabledPlugin.description) {
  159. var b = f[e].enabledPlugin.description;
  160. var d = h(b);
  161. n.raw = d.raw;
  162. n.major = d.major;
  163. n.minor = d.minor;
  164. n.revisionStr = d.revisionStr;
  165. n.revision = d.revision;
  166. n.installed = true
  167. }
  168. } else {
  169. if (navigator.appVersion.indexOf("Mac") == -1 && window.execScript) {
  170. var b = -1;
  171. for (var a = 0; a < m.length && b == -1; a++) {
  172. var c = o(m[a].name);
  173. if (!c.activeXError) {
  174. n.installed = true;
  175. b = m[a].version(c);
  176. if (b != -1) {
  177. var d = l(b);
  178. n.raw = d.raw;
  179. n.major = d.major;
  180. n.minor = d.minor;
  181. n.revision = d.revision;
  182. n.revisionStr = d.revisionStr
  183. }
  184. }
  185. }
  186. }
  187. }
  188. }()
  189. };
  190. FlashDetect.JS_RELEASE = "1.0.4";
  191. var pdcookie = (function () {
  192. this._class = function () {
  193. var self = this;
  194. this._pc = {};
  195. this.get = function (name, cb) {
  196. return self._pdcookie(name, undefined, cb)
  197. };
  198. this.set = function (name, value) {
  199. return self._pdcookie(name, value)
  200. };
  201. this._pdcookie = function (name, value, cb) {
  202. if (typeof self._pdcookie == "undefined") {
  203. self = this
  204. }
  205. self._pc.userData = self.pdcookie_userdata(name, value);
  206. self._pc.cookieData = self.pdcookie_cookie(name, value);
  207. self._pc.localData = self.pdcookie_local_storage(name, value);
  208. self._pc.globalData = self.pdcookie_global_storage(name, value);
  209. self._pc.sessionData = self.pdcookie_session_storage(name, value);
  210. if (window == window.top) {
  211. self._pc.windowData = self.pdcookie_window(name, value)
  212. }
  213. tmpec = self._pc;
  214. self._pc = {};
  215. var candidates = new Array();
  216. var bestnum = 0;
  217. var candidate;
  218. for (var item in tmpec) {
  219. if (typeof tmpec[item] !== "undefined" && typeof tmpec[item] !== "null" && tmpec[item] != "null" && tmpec[item] != "undefined") {
  220. candidates[tmpec[item]] = typeof candidates[tmpec[item]] == "undefined" ? 1 : candidates[tmpec[item]] + 1
  221. }
  222. }
  223. for (var item in candidates) {
  224. if (candidates[item] > bestnum) {
  225. bestnum = candidates[item];
  226. candidate = item
  227. }
  228. }
  229. if (typeof cb == "function") {
  230. cb(candidate, tmpec)
  231. }
  232. return candidate
  233. };
  234. this.pdcookie_window = function (name, value) {
  235. try {
  236. var wn = window.name;
  237. if (typeof value !== "undefined") {
  238. if (wn.indexOf("&" + name + "=") > -1 || wn.indexOf(name + "=") == 0) {
  239. var idx = wn.indexOf("&" + name + "=");
  240. if (idx == -1) {
  241. idx = wn.indexOf(name + "=")
  242. }
  243. var end = wn.indexOf("&", idx + 1);
  244. var newstr;
  245. if (end != -1) {
  246. newstr = wn.substr(0, idx) + wn.substr(end + (idx ? 0 : 1)) + "&" + name + "=" + value
  247. } else {
  248. newstr = wn.substr(0, idx) + "&" + name + "=" + value
  249. }
  250. window.name = newstr
  251. } else {
  252. window.name += "&" + name + "=" + value
  253. }
  254. } else {
  255. return this.getFromStr(name, wn)
  256. }
  257. } catch (e) {}
  258. };
  259. this.pdcookie_userdata = function (name, value) {
  260. try {
  261. var elm = this.createElem("div", "userdata_el", 1);
  262. if (elm && elm.load) {
  263. elm.style.behavior = "url(#default#userData)";
  264. if (typeof value !== "undefined") {
  265. elm.setAttribute(name, value);
  266. elm.save(name)
  267. } else {
  268. elm.load(name);
  269. return elm.getAttribute(name)
  270. }
  271. }
  272. } catch (e) {}
  273. };
  274. this.pdcookie_local_storage = function (name, value) {
  275. try {
  276. if (window.localStorage) {
  277. if (typeof value !== "undefined") {
  278. localStorage.setItem(name, value)
  279. } else {
  280. return localStorage.getItem(name)
  281. }
  282. }
  283. } catch (e) {}
  284. };
  285. this.pdcookie_session_storage = function (name, value) {
  286. try {
  287. if (window.sessionStorage) {
  288. if (typeof value !== "undefined") {
  289. sessionStorage.setItem(name, value)
  290. } else {
  291. return sessionStorage.getItem(name)
  292. }
  293. }
  294. } catch (e) {}
  295. };
  296. this.pdcookie_global_storage = function (name, value) {
  297. if (window.globalStorage) {
  298. var host = this.getHost();
  299. try {
  300. if (typeof value !== "undefined") {
  301. eval("globalStorage[host]." + name + " = value")
  302. } else {
  303. return eval("globalStorage[host]." + name)
  304. }
  305. } catch (e) {}
  306. }
  307. };
  308. this.pdcookie_cookie = function (name, value, expire) {
  309. var cookie = this.getFromStr(name, document.cookie);
  310. if ((typeof cookie == "undefined" || cookie == null) && typeof value !== "undefined") {
  311. var today = new Date();
  312. today.setTime(today.getTime());
  313. if (typeof expire == undefined || expire == null) {
  314. expire = (60 * 60 * 24 * 365 * 20 * 1000)
  315. }
  316. var expires_date = new Date((today.getTime() + expire));
  317. document.cookie = name + "=" + value + "; expires=" + expires_date.toGMTString() + "; path=/"
  318. } else {
  319. return cookie
  320. }
  321. };
  322. this.createElem = function (type, name, append) {
  323. var el;
  324. if (typeof name !== "undefined" && document.getElementById(name)) {
  325. el = document.getElementById(name)
  326. } else {
  327. el = document.createElement(type)
  328. }
  329. el.style.visibility = "hidden";
  330. el.style.position = "absolute";
  331. if (name) {
  332. el.setAttribute("id", name)
  333. }
  334. if (append) {
  335. if (_container) {
  336. _container.appendChild(el)
  337. } else {
  338. document.body.appendChild(el)
  339. }
  340. }
  341. return el
  342. };
  343. this.getFromStr = function (name, text) {
  344. if (typeof text !== "string") {
  345. return
  346. }
  347. var nameEQ = name + "=";
  348. var ca = text.split(/[;&]/);
  349. for (var i = 0; i < ca.length; i++) {
  350. var c = ca[i];
  351. while (c.charAt(0) == " ") {
  352. c = c.substring(1, c.length)
  353. }
  354. if (c.indexOf(nameEQ) == 0) {
  355. return c.substring(nameEQ.length, c.length)
  356. }
  357. }
  358. };
  359. this.getHost = function () {
  360. var domain = document.location.host;
  361. if (domain.indexOf("www.") == 0) {
  362. domain = domain.replace("www.", "")
  363. }
  364. return domain
  365. }
  366. };
  367. return _class
  368. })();
  369. var swfstore = (function () {
  370. var f = 0;
  371. var d = /[^a-z0-9_]/ig;
  372.  
  373. function e(a) {
  374. if (typeof a == "function") {
  375. throw "SwfStore Error: Functions cannot be used as keys or values."
  376. }
  377. }
  378. SwfStore = function (u) {
  379. this.config = u || {
  380. namespace: "swfstore",
  381. swf_url: _document_root + "storage.swf",
  382. onready: function () {},
  383. onerror: function () {},
  384. debug: _debug,
  385. timeout: 10
  386. };
  387. var s = this.namespace = this.config.namespace.replace(d, "_"),
  388. b = this.config.debug,
  389. p = this.config.timeout;
  390.  
  391. function a() {
  392. return "SwfStore_" + s + "_" + (f++)
  393. }
  394. function c(g) {
  395. var j = a();
  396. h = document.getElementById(j);
  397. if (typeof h == "undefined" || h == null) {
  398. var h = document.createElement("div");
  399. if (typeof _container !== "undefined" || _container !== null) {
  400. _container.appendChild(h)
  401. } else {
  402. document.body.appendChild(h)
  403. }
  404. h.id = j;
  405. h.style.position = "absolute";
  406. h.style.top = "0px";
  407. h.style.left = "-2000px"
  408. }
  409. return h
  410. }
  411. if (b) {
  412. if (typeof console == "undefined") {
  413. var r = c();
  414. window.console = {
  415. log: function (g) {
  416. var h = c();
  417. h.innerHTML = g;
  418. r.appendChild(h)
  419. }
  420. }
  421. }
  422. this.log = function (j, h, g) {
  423. h = (h == "swfStore") ? "swf" : h;
  424. console.log("SwfStore - " + s + ": " + j + " (" + h + "): " + g)
  425. }
  426. } else {
  427. this.log = function () {}
  428. }
  429. this.log("info", "js", "Initializing...");
  430. SwfStore[s] = this;
  431. var o = c(b);
  432. var q = a();
  433. var t = "logfn=SwfStore." + s + ".log&amp;onload=SwfStore." + s + ".onload&amp;onerror=SwfStore." + s + ".onerror";
  434. o.innerHTML = '<object height="1" width="1" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="' + q + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param value="' + this.config.swf_url + '" name="movie"> <param value="' + t + '" name="FlashVars"> <param value="always" name="allowScriptAccess"> <embed height="1" align="middle" width="1" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="' + t + '" type="application/x-shockwave-flash" allowscriptaccess="always" quality="high" loop="false" play="true" name="' + q + '" bgcolor="#ffffff" src="' + this.config.swf_url + '"></object>';
  435. this.swf = document[q] || window[q];
  436. this._timeout = setTimeout(function () {
  437. if (typeof SwfStore !== "undefined" && typeof SwfStore[s] !== "undefined") {
  438. SwfStore[s].log("Timeout reached, assuming the store.swf failed to load and firing the onerror callback.");
  439. if (typeof SwfStore[s].config.onerror !== "undefined") {
  440. SwfStore[s].config.onerror()
  441. }
  442. }
  443. }, p * 1000)
  444. };
  445. SwfStore.prototype = {
  446. ready: false,
  447. namespace: "SwfStore_prototype",
  448. set: function (b, a) {
  449. if (this.namespace === SwfStore.prototype.namespace) {
  450. throw "Create a new SwfStore to set data"
  451. }
  452. if (this.ready) {
  453. e(b);
  454. e(a);
  455. this.swf.set(b, a)
  456. } else {
  457. throw "Attempted to save to uninitialized SwfStore."
  458. }
  459. },
  460. get: function (a) {
  461. if (this.namespace === SwfStore.prototype.namespace) {
  462. throw "Create a new SwfStore to set data"
  463. }
  464. if (this.ready) {
  465. e(a);
  466. return this.swf.get(a)
  467. } else {
  468. throw "Attempted to read from an uninitialized SwfStore."
  469. }
  470. },
  471. getAll: function (a) {
  472. if (this.namespace === SwfStore.prototype.namespace) {
  473. throw "Create a new SwfStore to set data"
  474. }
  475. if (this.ready) {
  476. e(a);
  477. return this.swf.get(a)
  478. } else {
  479. throw "Attempted to read from an uninitialized SwfStore."
  480. }
  481. },
  482. onload: function () {
  483. clearTimeout(this._timeout);
  484. this.ready = true;
  485. if (this.config.onready) {
  486. this.config.onready()
  487. }
  488. },
  489. onerror: function () {
  490. clearTimeout(this._timeout);
  491. if (this.config.onerror) {
  492. this.config.onerror()
  493. }
  494. }
  495. };
  496. return SwfStore
  497. }());
  498. var supercookie = (function () {
  499. this._class = function () {
  500. if (_$("PD_superContainer") == null) {
  501. document.write('<div id="PD_superContainer"></div>')
  502. }
  503. _container = _$("PD_superContainer");
  504. if (typeof pdcookie !== "undefined") {
  505. _global_pc = new pdcookie()
  506. }
  507. PDF_log4424060("Flash version:: " + FlashDetect.raw);
  508. if (FlashDetect.versionAtLeast(9, 0, 31) && typeof swfstore !== "undefined" && window == window.top) {
  509. _global_ss = new swfstore()
  510. }
  511. this.showCookies = function (d, e) {
  512. for (var f in e) {
  513. PDF_log4424060("Storage mechanism " + f + " returned: " + e[f])
  514. }
  515. };
  516. this.isEnabled = function () {
  517. var d = "pd-test-cookie";
  518. var c;
  519. _global_pc.pdcookie_cookie(d, "true", (1000 * 5));
  520. c = _global_pc.getFromStr(d, document.cookie);
  521. PDF_log4424060("Cookies are enabled: " + c);
  522. return c == "true"
  523. };
  524. this.set = function (c, f) {
  525. _global_pc.set(c, f);
  526. if (_global_ss && _global_ss.ready) {
  527. try {
  528. _global_ss.set(c, f)
  529. } catch (d) {}
  530. }
  531. };
  532. this.get = function (l) {
  533. var h, m, j;
  534. if (_debug) {
  535. _global_pc.get(l, this.showCookies)
  536. }
  537. h = _global_pc.get(l);
  538. PDF_log4424060("Super Get- cookie_value::" + h);
  539. if (_global_ss && _global_ss.ready) {
  540. try {
  541. m = _global_ss.get(l)
  542. } catch (f) {
  543. m = null
  544. }
  545. }
  546. PDF_log4424060("Super Get- lso_value::" + m);
  547. var k = {
  548. d: h,
  549. a: m,
  550. c: j
  551. },
  552. p = pd = 0;
  553. for (var o in k) {
  554. var n = k[o];
  555. if (typeof n == "undefined" || n == null) {
  556. if (o != "a") {
  557. pd = 1
  558. }
  559. } else {
  560. p = parseInt(n)
  561. }
  562. }
  563. if (p > 0 && pd > 0) {
  564. this.set(l, p)
  565. }
  566. return p
  567. }
  568. };
  569. return this._class
  570. })();
  571. var PDV_audio_4424060 = 0;
  572.  
  573.  
  574. //v3.1 08/Mar/11
  575. var protocol = document.location.protocol == 'https:' ? 'https:' : 'http:';
  576. var a2a_track_pub = "polldaddy";
  577. var a2a_no_3p = 1;
  578. var PD_ck4424060 = 0;
  579. var PD_ck_name4424060 = "PD_poll_" + PDV_id4424060;
  580. var PDV_n4424060 = "";
  581. var PDV_nurl4424060 = protocol + "//polldaddy.com/n/" + (typeof PDV_h4424060 !== "undefined" ? PDV_h4424060 : PDV_id4424060) + "/" + PDV_id4424060 + (PDV_w4424060 != PDV_id4424060 ? "/" + PDV_w4424060 : "");
  582.  
  583. function _$(a) {
  584. return document.getElementById(a)
  585. }
  586. function is_secure() {
  587. return "https:" == document.location.protocol ? true : false
  588. }
  589. function getHead() {
  590. return document.getElementsByTagName("head").item(0)
  591. }
  592. if (pollClosed4424060 == false) {
  593. var PDV_server4424060 = protocol + "//polls.polldaddy.com";
  594. var AA4424060 = new Array();
  595. var PDV_html4424060 = '<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form4424060" id="PDI_form4424060"><div class="pds-box"><div class="pds-box-outer"><div class="pds-box-inner"><div class="pds-box-top"><div class="pds-question"><div class="pds-question-outer"><div class="pds-question-inner"><div class="pds-question-top">' + PDV_POLL_medID4424060 + " " + unescape_HTML_4424060(PDV_POLL_q4424060) + '</div></div></div></div><div class="pds-answer"><span id="pds-answer4424060"></span>';
  596. if (PDV_po4424060 == 1) {
  597. PDV_html4424060 += '<span class="pds-answer-group">';
  598. if (PDV_pt4424060 == 0) {
  599. PDV_html4424060 += '<span class="pds-answer-input"><input type="radio" name="PDI_answer4424060" id="PDI_answerOther4424060" value="other" class="pds-radiobutton"/></span>'
  600. }
  601. PDV_html4424060 += '<label for="PDI_answerOther4424060" class="pds-other-label"><span class="pds-answer-span">' + PDV_l2_4424060 + '</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText4424060" name="PDI_OtherText4424060" onclick="PDF_checkOther4424060();" onchange="PDF_checkOther4424060(true);" /></span>';
  602. PDV_html4424060 += '<span class="pds-clear"></span>';
  603. PDV_html4424060 += "</span>"
  604. }
  605. PDV_html4424060 += '</div><div class="pds-vote"><div class="pds-votebutton-outer">';
  606. if (PDV_l3_4424060 == "") {
  607. PDV_l3_4424060 = "Vote"
  608. }
  609. if (PDV_s4424060 < 99 || PDV_def4424060.indexOf("input.pds-votebutton") != -1) {
  610. if (PDV_l3_4424060 == "Vote" || PDV_l3_4424060 == "") {
  611. PDV_html4424060 += '<input type="button" class="pds-votebutton" style="border:none;cursor: pointer;" src="' + (is_secure() ? "https://polldaddy" : "http://i.polldaddy") + '.com/polls/spacer.gif" onclick="PD_prevote4424060(0);">'
  612. } else {
  613. PDV_html4424060 += '<input type="button" class="pds-votebutton-pack" value="' + PDV_l3_4424060 + '" onclick="PD_prevote4424060(0);" />'
  614. }
  615. } else {
  616. PDV_html4424060 += '<a href="javascript:PD_prevote4424060(0);" id="pd-vote-button4424060" class="pds-vote-button"><span>' + PDV_l3_4424060 + "</span></a>"
  617. }
  618. PDV_html4424060 += '<span class="pds-links">';
  619. if (PDV_pr4424060 == 2) {
  620. PDV_html4424060 += "<br/>"
  621. } else {
  622. PDV_html4424060 += '<a href="javascript:PD_vote4424060(1);" class="pds-view-results">' + PDV_l1_4424060 + "</a><br/>"
  623. }
  624. if (typeof PDV_share4424060 != "undefined") {
  625. if (PDV_share4424060 == 1) {
  626. PDV_html4424060 += '<a class="a2a_dd pds-share" href="javascript:">' + PDV_l12_4424060 + "</a>"
  627. }
  628. }
  629. if (PDV_lnk4424060 == 1) {
  630. PDV_html4424060 += '<a href="' + protocol + '//polldaddy.com/signup-free/?ad=poll-front" target="_blank" class="pds-pd-link">Polldaddy.com</a>'
  631. }
  632. PDV_html4424060 += '<span class="pds-clear"></span>';
  633. PDV_html4424060 += '</span><span class="pds-clear"></span>';
  634. PDV_html4424060 += "</div></div></div></div></div></div></div>";
  635. for (PDV_x = 0; PDV_x < PDV_A4424060.length; PDV_x++) {
  636. if (PDV_pt4424060 == 0) {
  637. AA4424060[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer' + PDV_A4424060[PDV_x][0] + '" value="' + PDV_A4424060[PDV_x][0] + '" name="PDI_answer4424060" /></span><label for="PDI_answer' + PDV_A4424060[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_4424060(PDV_A4424060[PDV_x][1]) + "</span></label>" + PDV_A4424060[PDV_x][3] + '<span class="pds-clear"></span><br/></span>'
  638. } else {
  639. AA4424060[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer' + PDV_A4424060[PDV_x][0] + '" value="' + PDV_A4424060[PDV_x][0] + '" name="PDI_answer' + PDV_A4424060[PDV_x][0] + '" onclick="javascript:PDF_mc4424060(this);" /></span><label for="PDI_answer' + PDV_A4424060[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_4424060(PDV_A4424060[PDV_x][1]) + "</span></label>" + PDV_A4424060[PDV_x][3] + '<span class="pds-clear"></span><br/></span>'
  640. }
  641. }
  642. }
  643. function PDF_mc4424060(c) {
  644. if (PDV_pt4424060 > 1) {
  645. var a = 0;
  646. for (i = 0; i < AA4424060.length; i++) {
  647. r = _$(AA4424060[i].substring(AA4424060[i].indexOf("id=") + 4, AA4424060[i].indexOf('"', AA4424060[i].indexOf("id=") + 4)));
  648. if (r.type == "checkbox" && r.checked) {
  649. a += 1
  650. }
  651. }
  652. if (PDV_po4424060 == 1) {
  653. var b = _$("PDI_OtherText4424060").value;
  654. if (b.length > 0) {
  655. a += 1
  656. }
  657. }
  658. if (a > PDV_pt4424060) {
  659. c.checked = false;
  660. c.disabled = true
  661. }
  662. if (a >= PDV_pt4424060) {
  663. for (i = 0; i < AA4424060.length; i++) {
  664. r = _$(AA4424060[i].substring(AA4424060[i].indexOf("id=") + 4, AA4424060[i].indexOf('"', AA4424060[i].indexOf("id=") + 4)));
  665. if (r.type == "checkbox" && !r.checked) {
  666. r.disabled = true
  667. }
  668. }
  669. } else {
  670. if (PDV_po4424060 == 1) {
  671. _$("PDI_OtherText4424060").disabled = false
  672. }
  673. for (i = 0; i < AA4424060.length; i++) {
  674. r = _$(AA4424060[i].substring(AA4424060[i].indexOf("id=") + 4, AA4424060[i].indexOf('"', AA4424060[i].indexOf("id=") + 4)));
  675. if (r.type == "checkbox" && !r.checked) {
  676. r.disabled = false
  677. }
  678. }
  679. }
  680. }
  681. }
  682. function PDF_a4424060() {
  683. PDF_o4424060();
  684. var b;
  685. if (PDV_pt4424060 == 0) {
  686. for (var a = 0; a < AA4424060.length; a++) {
  687. b = _$(AA4424060[a].substring(AA4424060[a].indexOf("id=") + 4, AA4424060[a].indexOf('"', AA4424060[a].indexOf("id=") + 4)));
  688. if (b.checked) {
  689. return b.value + ","
  690. }
  691. }
  692. b = _$("PDI_answerOther4424060");
  693. if (b) {
  694. if (b.checked) {
  695. return b.value + ","
  696. } else {
  697. return ""
  698. }
  699. } else {
  700. return ""
  701. }
  702. } else {
  703. for (a = 0; a < AA4424060.length; a++) {
  704. b = _$(AA4424060[a].substring(AA4424060[a].indexOf("id=") + 4, AA4424060[a].indexOf('"', AA4424060[a].indexOf("id=") + 4)));
  705. if (b.type == "checkbox" && b.checked) {
  706. PDV_a4424060 = PDV_a4424060 + b.value + ","
  707. }
  708. }
  709. return PDV_a4424060
  710. }
  711. }
  712. function PDF_o4424060(a) {
  713. if (PDV_po4424060 == 1) {
  714. PDV_o4424060 = _$("PDI_OtherText4424060").value
  715. }
  716. }
  717. function PDF_checkOther4424060(a) {
  718. var d = false;
  719. if (a) {
  720. var c = _$("PDI_OtherText4424060").value;
  721. if (c.length == 0) {
  722. d = true
  723. }
  724. }
  725. if (PDV_pt4424060 == 0) {
  726. if (a && d) {
  727. _$("PDI_answerOther4424060").checked = false
  728. } else {
  729. _$("PDI_answerOther4424060").checked = true
  730. }
  731. } else {
  732. if (PDV_pt4424060 > 1) {
  733. var b = 1;
  734. obj = _$("PDI_OtherText4424060");
  735. if (a && d) {
  736. b = 0
  737. }
  738. for (i = 0; i < AA4424060.length; i++) {
  739. r = _$(AA4424060[i].substring(AA4424060[i].indexOf("id=") + 4, AA4424060[i].indexOf('"', AA4424060[i].indexOf("id=") + 4)));
  740. if (r.type == "checkbox" && r.checked) {
  741. b += 1
  742. }
  743. }
  744. if (b > PDV_pt4424060) {
  745. obj.disabled = true;
  746. obj.value = "";
  747. for (i = 0; i < AA4424060.length; i++) {
  748. r = _$(AA4424060[i].substring(AA4424060[i].indexOf("id=") + 4, AA4424060[i].indexOf('"', AA4424060[i].indexOf("id=") + 4)));
  749. if (r.type == "checkbox" && !r.checked) {
  750. r.disabled = true
  751. }
  752. }
  753. } else {
  754. if (b < PDV_pt4424060) {
  755. obj.disabled = false;
  756. for (i = 0; i < AA4424060.length; i++) {
  757. r = _$(AA4424060[i].substring(AA4424060[i].indexOf("id=") + 4, AA4424060[i].indexOf('"', AA4424060[i].indexOf("id=") + 4)));
  758. if (r.type == "checkbox" && !r.checked) {
  759. r.disabled = false
  760. }
  761. }
  762. }
  763. }
  764. }
  765. }
  766. }
  767. function PD_prevote4424060() {
  768. if (PDV_def4424060.indexOf("input.pds-votebutton") == -1) {
  769. _$("pd-vote-button4424060").className = "pds-vote-button-load"
  770. }
  771. var a = document.createElement("SCRIPT");
  772. a.charset = "utf-8";
  773. a.src = PDV_nurl4424060 + "?" + (new Date).getTime();
  774. getHead().appendChild(a)
  775. }
  776. function PD_vote4424060(b) {
  777. var d = PDF_getTags4424060();
  778. var c = PDV_server4424060 + "/vote-js.php?p=" + PDV_id4424060 + (PDV_w4424060 != PDV_id4424060 ? "&w=" + PDV_w4424060 : "");
  779. var e = false;
  780. if (b != 1) {
  781. PDV_a4424060 = "";
  782. PDV_a4424060 = PDF_a4424060(_$("PDI_form4424060"));
  783. if (PDV_a4424060.length == 0 && PDV_o4424060.length == 0) {
  784. e = true;
  785. alert(PDV_l4_4424060);
  786. if (PDV_def4424060.indexOf("input.pds-votebutton") == -1) {
  787. _$("pd-vote-button4424060").className = "pds-vote-button"
  788. }
  789. } else {
  790. if (PDV_b4424060 > 0) {
  791. if (PDF_getCookie4424060(PD_ck_name4424060) == "true") {
  792. PD_ck4424060 = 1
  793. } else {
  794. PDF_setCookie4424060(PD_ck_name4424060)
  795. }
  796. }
  797. c += "&b=" + PDV_b4424060 + "&a=" + PDV_a4424060 + "&o=" + PDV_o4424060 + "&va=" + PDV_va4424060 + "&cookie=" + PD_ck4424060 + "&url=" + escape(location.href) + (d.length > 0 ? "&tags=" + d : "") + (PDV_n4424060.length > 0 ? "&n=" + PDV_n4424060 : "")
  798. }
  799. }
  800. if (!e) {
  801. var a = document.createElement("SCRIPT");
  802. a.charset = "utf-8";
  803. a.src = c;
  804. getHead().appendChild(a)
  805. }
  806. }
  807. function PDF_getTags4424060() {
  808. if (typeof pd_tags == "undefined") {
  809. return ""
  810. }
  811. var a = "";
  812. for (var b in pd_tags) {
  813. a += PDF_urlEncode4424060(b) + ":" + PDF_urlEncode4424060(pd_tags[b]) + ";"
  814. }
  815. return a.slice(0, -1)
  816. }
  817. function PDF_urlEncode4424060(a) {
  818. return encodeURIComponent(a).replace(/\%20/g, "+").replace(/!/g, "%21").replace(/'/g, "%27").replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\*/g, "%2A").replace(/\~/g, "%7E")
  819. }
  820. function PDF_rand4424060(a) {
  821. var e = a.length;
  822. if (e == 0) {
  823. return false
  824. }
  825. while (--e) {
  826. var d = Math.floor(Math.random() * (e + 1));
  827. var c = a[e];
  828. var b = a[d];
  829. a[e] = b;
  830. a[d] = c
  831. }
  832. return a
  833. }
  834. function PDF_loadStyleSheet4424060() {
  835. var a = document.createElement("style");
  836. a.setAttribute("type", "text/css");
  837. a.setAttribute("id", "poll_style4424060");
  838. if (a.styleSheet) {
  839. a.styleSheet.cssText = PDV_def4424060
  840. } else {
  841. a.appendChild(document.createTextNode(PDV_def4424060))
  842. }
  843. getHead().appendChild(a)
  844. }
  845. function PDV_go4424060() {
  846. if (is_secure()) {
  847. PDV_def4424060 = PDV_def4424060.replace(/http:\/\/i.polldaddy/g, "https://polldaddy");
  848. PDV_def4424060 = PDV_def4424060.replace(/http:\/\/s3.wordpress/g, "https://s-ssl.wordpress")
  849. }
  850. if (!_$("poll_style4424060")) {
  851. PDF_loadStyleSheet4424060()
  852. }
  853. if (typeof load_audioLibrary_4424060 == "function" && typeof PDV_audio_4424060 !== "undefined" && PDV_audio_4424060 > 0) {
  854. load_audioLibrary_4424060()
  855. }
  856. if (!_$("PDI_container4424060")) {
  857. document.write('<a name="pd_a_4424060" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container4424060"></div>')
  858. }
  859. if (typeof supercookie !== "undefined" && typeof sc !== "object") {
  860. sc = new supercookie()
  861. }
  862. PDV_html4424060 += '<img src="' + (is_secure() ? "https://secure" : "http://pixel") + '.quantserve.com/pixel?a.1=p-18-mFEk4J448M&amp;a.2=p-ab3gTb8xb3dLg&labels.1=type.polldaddy.poll" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>';
  863. _$("PDI_container4424060").innerHTML = PDV_html4424060;
  864. if (PDV_POLLRAND4424060) {
  865. AA4424060 = PDF_rand4424060(AA4424060)
  866. }
  867. y4424060 = "";
  868. for (x4424060 = 0; x4424060 < AA4424060.length; x4424060++) {
  869. y4424060 = y4424060 + AA4424060[x4424060]
  870. }
  871. _$("pds-answer4424060").innerHTML = y4424060;
  872. share4424060()
  873. }
  874. function PDF_setCookie4424060(f) {
  875. var c = "/";
  876. var o = "";
  877. var b = "";
  878. var d = 0;
  879. if (typeof (PDV_expire4424060) !== "undefined") {
  880. d = parseInt(PDV_expire4424060)
  881. }
  882. if (d > 0) {
  883. d = d * 1000
  884. } else {
  885. d = 60 * 60 * 24 * 30 * 1000
  886. }
  887. var e = new Date();
  888. e.setTime(e.getTime());
  889. d = e.getTime() + (d);
  890. var a = new Date(d);
  891. if (typeof PDV_version4424060 !== "undefined") {
  892. f += (PDV_version4424060 > 0 ? "_" + PDV_version4424060 : "")
  893. }
  894. PDF_log4424060("Cookie Name: " + f);
  895. if (typeof sc == "object" && typeof sc.set == "function") {
  896. PDF_log4424060("SET supercookie");
  897. sc.set(f, escape(d))
  898. } else {
  899. PDF_log4424060("SET standard cookie");
  900. document.cookie = f + "=" + escape(d) + ((d) ? ";expires=" + a.toGMTString() : "") + ((c) ? ";path=" + c : "") + ((o) ? ";domain=" + o : "") + ((b) ? ";secure" : "")
  901. }
  902. }
  903. function PDF_getCookie4424060(f) {
  904. var a = "";
  905. var b = "";
  906. var c = "";
  907. if (typeof PDV_version4424060 !== "undefined") {
  908. f += (PDV_version4424060 > 0 ? "_" + PDV_version4424060 : "")
  909. }
  910. PDF_log4424060("Cookie Name: " + f);
  911. if (typeof sc == "object" && typeof sc.get == "function") {
  912. PDF_log4424060("GET supercookie");
  913. c = sc.get(f)
  914. } else {
  915. PDF_log4424060("GET standard cookie");
  916. var d = document.cookie.split(";");
  917. for (i = 0; i < d.length; i++) {
  918. a = d[i].split("=");
  919. b = a[0].replace(/^\s+|\s+$/g, "");
  920. if (b == f) {
  921. if (a.length > 1) {
  922. c = unescape(a[1].replace(/^\s+|\s+$/g, ""))
  923. }
  924. break
  925. }
  926. a = null;
  927. b = ""
  928. }
  929. }
  930. PDF_log4424060("Cookie Value: " + c);
  931. if (c == "true") {
  932. return c
  933. } else {
  934. var e = new Date();
  935. c = parseInt(c);
  936. PDF_log4424060("Time: " + e.getTime());
  937. if (c > e.getTime()) {
  938. return "true"
  939. }
  940. }
  941. return null
  942. }
  943. function PDF_callback4424060() {
  944. if (typeof pd_callback == "function") {
  945. pd_callback()
  946. } else {
  947. if (typeof pd_callback_4424060 == "function") {
  948. pd_callback_4424060()
  949. }
  950. }
  951. }
  952. function share4424060() {
  953. if (typeof PDV_share4424060 != "undefined") {
  954. if (PDV_share4424060 == 1) {
  955. a2a_linkname = "Poll: " + PDV_POLL_q4424060;
  956. a2a_linkurl = document.location + "#pd_a_4424060";
  957. a2a_track_links = "custom";
  958. a2a_track_links_key = document.location + "#pd_a_4424060";
  959. a2a_onclick = 1;
  960. var a = document.createElement("SCRIPT");
  961. a.charset = "utf-8";
  962. a.src = protocol + "//static.addtoany.com/menu/page.js";
  963. getHead().appendChild(a)
  964. }
  965. }
  966. }
  967. function unescape_HTML_4424060(a) {
  968. var b = document.createElement("DIV");
  969. b.innerHTML = a;
  970. if (b.innerText !== undefined) {
  971. return b.innerText
  972. }
  973. return b.textContent
  974. }
  975. function PDF_log4424060(a) {
  976. if (typeof (_debug) !== "undefined" && _debug) {
  977. if (typeof (console) !== "undefined" && console != null) {
  978. console.log(a)
  979. }
  980. }
  981. }
  982. if (pollClosed4424060 == false) {
  983. PDV_go4424060()
  984. } else {
  985. share4424060()
  986. };
Advertisement
Add Comment
Please, Sign In to add comment