/*Copyright Andrew Lyczak.All rights reserved.No HTML pages or Javascript may be reproduced without permission*/
var UTF8=0,UAGNT=navigator.userAgent.toLowerCase(),UAPV=navigator.appVersion.toLowerCase(),IS_MAC=/macintosh/.test(UAGNT),IS_FFOX=/firefox/.test(UAGNT),IS_SAFARI=/safari/.test(UAGNT),IS_SAFARI3=(IS_SAFARI&&((parseFloat(UAGNT.substr(UAGNT.indexOf("applewebkit/")+12)))>522)),IS_POOR_SAFARI=IS_SAFARI&&!IS_SAFARI3,iem=/msie\s*(\d+)/.exec(UAPV),IS_IE=iem?1:0,IE7UP=(iem&&(parseInt(iem[1])>6)),LCLH=/localhost/.test(document.URL),GZOK=LCLH?0:IS_FFOX||IE7UP||IS_SAFARI3,CDNOK=0;function isStr(A){return(typeof (A)==typeof ("S"))}function docWrite(A){map(isStr(A)?[A]:A,function(B){document.write(B)})}function cdns(C){if(!CDNOK&&!C||LCLH){return"/s"}var B="http://",D="thatquiz.net/s",A=new Date().getTimezoneOffset()/60;if(A<-5){return B+"au."+D}if(A<2){return B+"www."+D}if(A>5){return B+D}return"/s"}function jsFile(A,B){return("/tq/"+A+(B?"":(GZOK?"-z":"")+".js"))}function jsSrc(A,B){return"<script src='"+(B?"":cdns())+jsFile(A,B)+"' type='text/javascript'><\/script>"}function jsLd(A,C,B){if(!A){A="lib54/biglib"}if(B&&(IS_SAFARI3||IS_FFOX)){hdJs(jsFile(A,C),!C)}else{docWrite(jsSrc(A,C))}}function cssLd(A){docWrite("<link rel='stylesheet' href='"+cdns()+"/tq/"+(A||"css54/thatquiz")+(GZOK?"-z":"")+".css' type='text/css'>")}function elId(A){return document.getElementById(A)}function focusById(B){var A=elId(B);A.select();A.focus();return A}function trim(A){return(A.replace(/^\s+|\s+$/g,""))}function getKeyCode(A){return(window.event?window.event.keyCode:(A.which?A.which:null))}function getSourceNode(A){if(!A){A=window.event}return(A.target?A.target:A.srcElement)}function secstr(){return(new Date().getTime().toString(32))}function filter(C,E){if(E&&C.filter){return C.filter(E)}var D,B=C.length,A=[];if(!E){E=function(F){return F}}for(D=0;D<B;D++){if(E(C[D])){A.push(C[D])}}return A}function map(A,E,G,B){var H=G?function(I){return(E.apply(G,[I].concat(B?B:[])))}:E,F,D=A.length,C=new Array(D);if(A.map&&(H.length==1)){return A.map(H)}for(F=0;F<D;F++){C[F]=H(A[F])}return C}function setCookie(B,A){document.cookie=B+"="+A;return A}function getRawCookie(F){var D,A,B=F+"=",E=/\w/,C=document;if(C.cookie.length>0){D=C.cookie.indexOf(B);while((D>0)&&(E.test(C.cookie.charAt(D-1)))){D=C.cookie.indexOf(B,D+1)}if(D!=-1){D+=B.length;A=C.cookie.indexOf(";",D);if(A==-1){A=C.cookie.length}return(C.cookie.substring(D,A))}}return""}function getCookie(B){var A=getRawCookie(B).replace(/\+/g,"%20");return(UTF8?decodeURIComponent(A):unescape(A))}function deleteCookie(B){var A=(new Date((new Date()).getTime()-48*60*60*1000)).toGMTString();document.cookie=(B.split("=").shift())+"=null; expires="+A}function deleteAllCookies(){map(document.cookie.split(";"),deleteCookie)}function showMessage(){var A=getCookie("MESSAGE");if(A){alert(A);deleteCookie("MESSAGE")}}function superEsc(C){var B={"*":"%2A","@":"%40","-":"%2D",_:"%5F","+":"%2B",".":"%2E","/":"%2F"},A=function(D){return((D.charCodeAt(0)>127)?(UTF8?encodeURIComponent(D):D):(B[D]||escape(D)))};return(C.replace(/[^A-Za-z0-9]/g,A))}function hdJs(A,D){var C=elId("head"),B=document.createElement("script");B.type="text/javascript";B.src=(D?cdns():"")+A;C.appendChild(B)}function nSpin(B,A){return(A?B.replace(/\d/g,function(C){return(String((parseInt(C)+A)%10))}):B)}function isValidBrowser(){var A=UAPV.indexOf("msie");if(window.opera||/playstation|konqueror/.test(UAGNT)||nSpin("12",2)!="34"){return 0}if(IS_SAFARI){return(parseFloat(UAGNT.substr(UAGNT.indexOf("applewebkit/")+12))>312.7)}if(IS_IE){return(parseInt(UAPV.substring(A+5,UAPV.indexOf(";",A)))>=6)}return 1}if(cdns(1)!="/s"){docWrite("<script src='"+cdns(1)+"/tq/lib54/cdntest.js?"+secstr().substr(0,5)+"' type='text/javascript'><\/script>")};