function getCookie(a){var b=document.cookie.indexOf(a+"="),c=b+a.length+1;if(!b&&a!=document.cookie.substring(0,a.length))return null;if(b==-1)return null;a=document.cookie.indexOf(";",c);if(a==-1)a=document.cookie.length;return unescape(document.cookie.substring(c,a))}
function setCookie(a,b,c,f,i,j){var d=new Date;d.setTime(d.getTime());if(c)c=c*1E3*60*60*24;d=new Date(d.getTime()+c);document.cookie=a+"="+escape(b)+(c?";expires="+d.toGMTString():"")+(f?";path="+f:"")+(i?";domain="+i:"")+(j?";secure":"")}function showhideText(){var a=document.getElementById("layer9_h");a.style.display=a.style.display=="none"?"block":"none"}
function array_rand(a,b){var c=[],f=b||1,i=function(d,e){for(var g=false,h=0;h<d.length;){if(d[h]===e){g=true;break}h++}return g};if(a instanceof Array&&f<=a.length)for(;;){var j=Math.floor(Math.random()*a.length);if(c.length===f)break;i(c,j)||c.push(j)}else c=null;return f==1?c.join():c}
function count(a,b){var c,f=0;if(a===null)return 0;else if(a.constructor!==Array&&a.constructor!==Object)return 1;if(b==="COUNT_RECURSIVE")b=1;if(b!=1)b=0;for(c in a){f++;if(b==1&&a[c]&&(a[c].constructor===Array||a[c].constructor===Object))f+=this.count(a[c],1)}return f}
function max(){var a,b,c=0,f=0;a=arguments;b=a.length;var i=function(d){if(d instanceof Array)return d;else{var e=[];for(var g in d)e.push(d[g]);return e}},j=function(d,e){var g=0,h=0,k=0;h=g=0;if(d===e)return 0;else if(typeof d=="object")if(typeof e=="object"){d=i(d);e=i(e);h=d.length;g=e.length;if(g>h)return 1;else if(g<h)return-1;else{g=0;for(h=h;g<h;++g){k=j(d[g],e[g]);if(k==1)return 1;else if(k==-1)return-1}return 0}}else return-1;else return typeof e=="object"?1:isNaN(e)&&!isNaN(d)?d==0?0:d<
0?1:-1:isNaN(d)&&!isNaN(e)?e==0?0:e>0?1:-1:e==d?0:e>d?1:-1};if(b===0)throw Error("At least one value should be passed to max()");else if(b===1){if(typeof a[0]==="object")a=i(a[0]);else throw Error("Wrong parameter count for max()");if(a.length===0)throw Error("Array must contain at least one element for max()");}else a=a;b=a[0];c=1;for(f=a.length;c<f;++c)if(j(b,a[c])==1)b=a[c];return b}
function min(){var a,b,c=0,f=0;a=arguments;b=a.length;var i=function(d){if(d instanceof Array)return d;else{var e=[];for(var g in d)e.push(d[g]);return e}},j=function(d,e){var g=0,h=0,k=0;h=g=0;if(d===e)return 0;else if(typeof d=="object")if(typeof e=="object"){d=i(d);e=i(e);h=d.length;g=e.length;if(g>h)return 1;else if(g<h)return-1;else{g=0;for(h=h;g<h;++g){k=j(d[g],e[g]);if(k==1)return 1;else if(k==-1)return-1}return 0}}else return-1;else return typeof e=="object"?1:isNaN(e)&&!isNaN(d)?d==0?0:d<
0?1:-1:isNaN(d)&&!isNaN(e)?e==0?0:e>0?1:-1:e==d?0:e>d?1:-1};if(b===0)throw Error("At least one value should be passed to min()");else if(b===1){if(typeof a[0]==="object")a=i(a[0]);else throw Error("Wrong parameter count for min()");if(a.length===0)throw Error("Array must contain at least one element for min()");}else a=a;b=a[0];c=1;for(f=a.length;c<f;++c)if(j(b,a[c])==-1)b=a[c];return b}
function mt_rand(a,b){var c=arguments.length;if(c===0){a=0;b=2147483647}else if(c===1)throw Error("Warning: mt_rand() expects exactly 2 parameters, 1 given");return Math.floor(Math.random()*(b-a+1))+a}function str_rot13(a){return(a+"").replace(/[A-Za-z]/g,function(b){return String.fromCharCode((((b=b.charCodeAt(0))&223)-52)%26+(b&32)+65)})}
function str_shuffle(a){if(a==undefined)throw"Wrong parameter count for str_shuffle()";for(var b="",c=0;a.length;){c=Math.floor(Math.random()*(a.length-1+1));b+=a.charAt(c);a=a.substring(0,c)+a.substr(c+1)}return b}function substr(a,b,c){a+="";var f=a.length;if(b<0)b+=f;f=typeof c==="undefined"?f:c<0?c+f:c+b;return b>=a.length||b<0||b>f?false:a.slice(b,f)}
function shuffle(a){var b=[],c="",f=0,i=false,j=[];for(c in a)if(a.hasOwnProperty){b.push(a[c]);i&&delete a[c]}b.sort(function(){return 0.5-Math.random()});this.php_js=this.php_js||{};this.php_js.ini=this.php_js.ini||{};j=(i=this.php_js.ini["phpjs.strictForIn"]&&this.php_js.ini["phpjs.strictForIn"].local_value)?a:j;for(f=0;f<b.length;f++)j[f]=b[f];return i?true:j}
function mt_rand(a,b){var c=arguments.length;if(c===0){a=0;b=2147483647}else if(c===1)throw Error("Warning: mt_rand() expects exactly 2 parameters, 1 given");return Math.floor(Math.random()*(b-a+1))+a}function rawurlencode(a){a=(a+"").toString();return encodeURIComponent(a).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")};