function messRateOk(c,d){if(true){messOk=new StringBuffer();messOk.append('<div class="modalMessage" style="text-align: center; width: 250px;">');messOk.append('<p style="background-color: white; font-size: 14px; height: 150px;padding-top:25px;">');messOk.append(d);messOk.append("</p>");messOk.append("</div>");return messOk}}function createModalBackground(f){if(!f){f="modalBackground"}var g=document.getElementById(f);if(!g){g=document.createElement("div");g.className=f;g.setAttribute("id",f);var e=document.getElementsByTagName("body")[0];e.appendChild(g);if(f=="modalBackground"){e.style.height="100%";var a=10000;var d=50;var c=0.5;var b="#000000";g.style.overflow="hidden";g.style.display="none";g.style.height="100%";g.InnerText=" ";g.style.opacity=c;g.style.MozOpacity=c;g.style.filter="alpha(opacity="+d+")";g.style.zIndex=a;g.style.backgroundColor=b;g.style.display="none"}}return g}function CreateModalContainer(f,d,j,a){var c=document.getElementById("modalContainer_"+f);if(!c){c=document.createElement("div");c.className="modalContainer";c.setAttribute("id","modalContainer_"+f);if(d){var i=document.createElement("div");i.className="modalTop";i.setAttribute("id","modalTop_"+f);var g=document.createElement("span");g.appendChild(document.createTextNode(d));i.appendChild(g);if(j||a){var e=document.createElement("div");e.className="modalButtonCloseMe";e.setAttribute("id","modalButton_"+f+"_close_me");if(j){var b=document.createElement("span");b.appendChild(document.createTextNode(j));e.appendChild(b)}if(a){var k=document.createElement("img");k.src=a;e.appendChild(k)}i.appendChild(e)}c.appendChild(i)}var h=document.createElement("div");h.className="modalBody";h.setAttribute("id","modalBody_"+f);c.appendChild(h);var l=document.getElementsByTagName("body")[0];l.appendChild(c)}return c}function revealModal(j,f,k,i){var s=document.getElementById("modalBackground");if(!s){s=createModalBackground()}var o=j.id;var a=document.getElementById("modalContainer_"+o);if(!a){a=CreateModalContainer(o,f,k,i);if(j){var g=document.getElementById("modalBody_"+o);if(g){g.innerHTML="";var h=document.createElement("div");if(j.css){h.className=j.css}var p;if(j.node){var d,l;d=j.node;if(typeof j.node=="string"){d=document.getElementById(j.node)}if(d){l=d.innerHTML;if(j.button){var r;if(typeof j.button=="string"){r=document.getElementById(j.button)}else{r=j.button}if(r){p=r.onclick}}var q=l;try{d.parentNode.removeChild(d)}catch(m){}h.setAttribute("id",d.id);h.innerHTML=l}}else{if(j.txt){h.setAttribute("id",j.id);h.innerHTML=j.txt}else{if(j.span){var n=document.createElement("span");n.appendChild(document.createTextNode(j.span));h.appendChild(n)}}}g.appendChild(h);if(j.button&&p){var r;if(typeof j.button=="string"){r=document.getElementById(j.button)}else{r=j.button}if(typeof p=="function"){r.onclick=p}}}}}var d=a;if(document.getElementById("modalButton_"+o+"_close_me")){d=document.getElementById("modalButton_"+o+"_close_me")}else{if(document.getElementById("modalTop_"+o)){d=document.getElementById("modalTop_"+o)}}if(typeof j.close=="function"){var p=j.close;if(typeof p=="function"){d.onclick=function(){p({caller:j.caller})}}}else{var c=(j.node)?0:1;if(o=="text"){a.style.background="none";a.style.border="none";setTimeout(function(){hideModal(o,c)},1600)}else{d.onclick=function(){hideModal(o,c)}}}a.style.display="block";a.style.visibility="visible";if(navigator.userAgent.indexOf("; MSIE 6.0;")>-1){a.style.top=document.documentElement.scrollTop+a.offsetHeight}s.style.display="block";s.style.visibility="visible";if(navigator.userAgent.indexOf("; MSIE 6.0;")>-1){var b=document.getElementById("login_form_iframe_"+o);if(b){b.style.left=document.documentElement.scrollLeft;b.style.top=document.documentElement.scrollTop;b.style.width=document.body.clientWidth;b.style.height=document.body.clientHeight;b.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";b.style.zIndex="1000";b.style.display="block"}}document.documentElement.style.overflow="hidden"}function hideModal(c,b){if(!b){b=0}var g=document.getElementById("modalBackground");if(g){g.style.display="none";g.style.visibility="hidden"}var a=document.getElementById("modalContainer_"+c);if(a){a.style.display="none";a.style.visibility="hidden"}if(navigator.userAgent.indexOf("; MSIE 6.0;")>-1){var d=document.getElementById("login_form_iframe_"+c);if(d){d.style.display="none"}}document.documentElement.style.overflow="auto";if(b==1){try{a.parentNode.removeChild(a)}catch(f){}}}function ShowReasonUnsubContainer(){var b=document.getElementById("modalBackground");if(!b){b=createModalBackground()}b.style.display="block";b.style.visibility="visible";var c=document.getElementById("modalreasoncontainer");c.style.display="block";c.style.visibility="visible";var a=document.getElementsByTagName("body")[0];a.appendChild(c);getEltById("dt_now").innerHTML=getDateNow();getEltById("dt_end").innerHTML=player_realenddate_unsub}function HideReasonUnsubContainer(){var b=document.getElementById("modalBackground");if(!b){b=createModalBackground()}b.style.display="none";b.style.visibility="hidden";var a=document.getElementById("modalreasoncontainer");a.style.display="none";a.style.visibility="hidden"}function ShowPrettyOpacity(){var a=document.getElementById("prettyOver");if(!a){a=createModalBackground("prettyOver")}a.style.display="block";a.style.visibility="visible";var b=getEltById("PageMyProfile");b.appendChild(a)}function HidePrettyOpacity(){var a=document.getElementById("prettyOver");a.style.display="none";a.style.visibility="hidden";var b=document.getElementsByTagName("body")[0];b.appendChild(a)}function HideReallyModal(a){var c=document.getElementById(a);var b=document.getElementById("modalBackground");if(b){b.style.display="none";b.style.visibility="hidden"}c.style.display="none";c.style.visibility="hidden"};
