//a11147b6113e3fe95180f480e0e28a72
function URLEncode(A){return url_encode(A)}function url_encode(G){var C="";var A=0;G=G.toString();var F=/(^[a-zA-Z0-9_.]*)/;while(A<G.length){var D=G.substr(A).match(F);if(D!=null&&D.length>1&&D[1]!=""){C+=D[1];A+=D[1].length}else{if(G.charAt(A)==" "){C+="+"}else{var B=G.charCodeAt(A);var E=B.toString(16);C+="%"+E.toUpperCase()}A++}}return C}function URLDecode(A){return url_decode(A)}function url_decode(E){var D=E;var A,C;var B=/(%.{2})/;while((match=D.match(B))!=null&&match.length>1&&match[1]!=""){A=parseInt(match[1].substr(1),16);C=String.fromCharCode(A);D=D.replace(match[1],C)}return D}function strip_accents(D){var C=[/[\u2019]/g,/[\u201C-\u201D]/g,/[\xC0-\xC2]/g,/[\xE0-\xE2]/g,/[\xC8-\xCA]/g,/[\xE8-\xEB]/g,/[\xCC-\xCE]/g,/[\xEC-\xEE]/g,/[\xD2-\xD4]/g,/[\xF2-\xF6]/g,/[\xD9-\xDB]/g,/[\xF9-\xFC]/g,/[\xD1]/g,/[\xF1]/g,/[\xC7]/g,/[\xE7]/g,/[\xDF]/g];var A=["'",'"',"A","a","E","e","I","i","O","o","U","u","N","n","C","c","ss"];for(var B=0;B<C.length;B++){D=D.replace(C[B],A[B])}return D}function build_url_code(B){var C=trim(B.toLowerCase());C=C.replace(/\s+/g,"-");C=C.replace(/['"]/g,"");var A={"&":"-and-","%":"-percent-","$":"-dollar-","@":"-at-","₤":"-pound-","£":"-pound-","€":"-euro-","ß":"ss","æ":"ae","Æ":"ae","œ":"oe","Œ":"oe"};for(substr in A){C=C.replace(substr,A[substr])}C=strip_accents(C);C=C.replace(/[^a-z0-9\-]/g,"-",C);C=C.replace(/[\-]+/g,"-");C=C.replace(/^\-/,"");C=C.replace(/\-$/,"");return C}function trim(A){return A.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1")}function prepare_search(A){return trim(url_encode(strip_accents(A).toLowerCase().replace(/[#,']/,"").replace(/[\/\-]/g," ")))}function doc_prepare_search(A){return trim(url_encode(strip_accents(A.replace(/[!\?@#\+\$\^\*\(\)\[\]\{\}":;,]/g,"").replace(/['\/\-]/," "))))}function set_cookie(B,H,G,E){var F=new Date();var C=new Date();if(G==null){G=1}if(E==null){E=".snooth.com"}C.setTime(F.getTime()+3600000*G);var D=[];var A={path:"/",domain:E};if(G>0){A.expires=C.toGMTString()}for(i in A){D.push(i+"="+A[i])}var I=B+"="+H+";"+D.join(";");document.cookie=I}var grayed_out=0;var zIndexGrayOutDefault=50;function grayOut(A,N){var N=N||{};var M=N.zindex||zIndexGrayOutDefault;var F=N.opacity||70;var E=(F/100);var O=N.bgcolor||"#000000";var G=document.getElementById("darkenScreenObject");var L=N.breakfree||false;var H=N.interactive||false;var K=N.cursor||"";if(N.clear){O="";E=0}if(!G){var D=document.getElementsByTagName("body")[0];var B=document.createElement("div");B.style.position="absolute";B.style.top="0px";B.style.left="0px";B.style.overflow="hidden";B.style.display="none";B.id="darkenScreenObject";D.appendChild(B);G=document.getElementById("darkenScreenObject")}if(A){if(document.body&&(document.body.scrollWidth||document.body.scrollHeight)){var I=document.body.scrollWidth+"px";var C=(document.body.scrollHeight+200)+"px"}else{if(document.body.offsetWidth){var I=document.body.offsetWidth+"px";var C=(document.body.offsetHeight+200)+"px"}else{var I="100%";var C="100%"}}G.style.opacity=E;G.style.MozOpacity=E;G.style.filter="alpha(opacity="+F+")";G.style.zIndex=M;G.style.backgroundColor=O;G.style.width=I;G.style.height=C;G.style.display="block";G.style.cursor=K;window.grayed_out=1}else{window.grayed_out=0;G.style.display="none"}if(!(!L)){if(typeof ($type)=="function"){var J=$("darkenScreenObject");J.addEvent("click",function(){$("darkenScreenObject").style.display="none";if($type($(L))=="element"){$(L).style.display="none"}});if($type(L)=="element"&&!H){$(L).addEvent("click",function(){$("darkenScreenObject").style.display="none";L.style.display="none"})}}}}function glass_screen(A){grayOut(A,{clear:1,cursor:"wait"})}function getScrollHeightGO(){var B=0,A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageYOffset;B=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop;B=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop;B=document.documentElement.scrollLeft}}}return A}function addCommas(B){B+="";x=B.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var A=/(\d+)(\d{3})/;while(A.test(x1)){x1=x1.replace(A,"$1,$2")}return x1+x2};