/* Copyright (c) 2005-8, killersudokuonline.com.  All Rights Reserved */
function getArgs(){var B=new Object();var F=location.search.substring(1);var E=F.split(",");for(var C=0;C<E.length;C++){var G=E[C].indexOf("=");if(G==-1){continue}var A=E[C].substring(0,G);var D=E[C].substring(G+1);B[A]=unescape(D)}return B}function dhtmlLoadScript(A){var B=document.createElement("script");B.type="text/javascript";B.src=A;document.getElementsByTagName("head")[0].appendChild(B)}function defineNodeConstants(){if(!window.Node){window.Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11}}}function getById(A){var B;if(document.getElementById){B=document.getElementById(A)}else{if(document.all){B=document.all[A]}else{if(document.layers){B=document.layers[A]}else{alert("Sorry, I can't play on this browser.")}}}return B}function removeAllChildren(A){if(A.hasChildNodes()){var C=A.childNodes;for(var B=C.length-1;B>=0;B--){A.removeChild(C[B])}}}function replaceChildrenWithText(A,B){removeAllChildren(A);A.appendChild(document.createTextNode(B))}function setupForm(B,A){var C=getById("extra");var D=document.createElement("IFRAME");D.style.width="0px";D.style.height="0px";D.style.border="0px";D.name=B;var E=document.createElement("FORM");E.action=A;E.method="post";E.target=B;E.name=(B+"form");C.appendChild(D);C.appendChild(E);return E}function addInput2Form(C,B,A,D){var E=document.createElement("INPUT");E.type=B;E.name=A;E.value=D;C.appendChild(E)}function getCookie(C){var D=document.cookie.indexOf(C+"=");var A=D+C.length+1;if((!D)&&(C!=document.cookie.substring(0,C.length))){return null}if(D==-1){return null}var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length}return unescape(document.cookie.substring(A,B))}function setCookie(C,E,A,H,D,G){var B=new Date();B.setTime(B.getTime());if(A){A=A*1000*60*60*24}var F=new Date(B.getTime()+(A));document.cookie=C+"="+escape(E)+((A)?";expires="+F.toGMTString():"")+((H)?";path="+H:"")+((D)?";domain="+D:"")+((G)?";secure":"")}function deleteCookie(A,C,B){if(getCookie(A)){document.cookie=A+"="+((C)?";path="+C:"")+((B)?";domain="+B:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}function eraseCookie(A,C,B){if(getCookie(A)){document.cookie=A+"="}}
