(function(D){ // bookmark me var el = D.createElement("div"), html = '' + '
' + 'Powered by SodaHead' + '×', sc = D.createElement("script"), st = D.createElement("style"), css = ["#sh-flyout{", "background: #fff;", "border: 2px solid #ccc; border-right: 0; border-radius: 5px 0 0 5px;", "box-shadow: 0 0 3px #000;", "height: 250px; width: 0px; padding: 10px; transition: width 1s;", "position: fixed; bottom: 10px; right: 0px;", "overflow: hidden; vertical-align: middle;", "z-index: 2147483647;", "}", "#sh-flyout > img{", // sites like to screw with img defaults "display: inline-block;", "float: left;", "vertical-align: top;", "}", "#sh-flyout-close{", "font: 12px verdana;", "line-height: 1em;", "position: absolute;", "right: 15px;", "top: 15px;", "}", "#sh-flyout-powered{", "bottom: 15px;", "position: absolute;", "right: 15px;", "}", ".sh-poll{", "display: inline-block;", "margin: 0 !important;", "width: auto !important;", "}", ".sh-poll-inner{", "background: none !important;", "}", ".sh-poll-content{", // 250px - 2px (border) - 20px (margin) "height: 228px;", "line-height: 228px;", "margin: 10px !important;", "width: 278px !important;", "}", ".sh-poll-results{", "width: auto !important;", "}", ".sh-poll-share{", "bottom: 30px;", "font-size: 12px !important;", "margin: 0 !important;", "position: absolute;", "width: 100%;", "}", ".sh-poll-more,", ".sh-callout-chupchik,", ".sh-poll-callout{", "display: none;", "}"].join(""); st.type = "text/css"; if(st.styleSheet) st.styleSheet.cssText = css; else st.appendChild(D.createTextNode(css)); D.getElementsByTagName('head')[0].appendChild(st); el.id = "sh-flyout"; el.innerHTML = html; D.body.appendChild(el); setTimeout(function(){el.style.width = "600px";}, 0); sc.id = "sh-poll-js"; sc.src = "//trending.latimes.com/statics/js/poll/"; D.getElementsByTagName('head')[0].appendChild(sc); D.getElementById("sh-flyout-close").onclick = function(){ el.parentNode.removeChild(el); }; }(document));