function xdebug(){var d=new Date().getTime();var b=0,c=arguments.length,a=["[DEBUG at ",(new Date().getTime()-d)," ] : "];for(;b<c;b++){a.push(arguments[b])}if(window.console!==undefined&&typeof window.console.log=="function"){console.log.apply(console,a)}else{}}function var_dump(g,d,j,b){var a="";var c,h,l="";if(!b){b=1}for(var f=0;f<b;f++){l+="   "}if(typeof(g)!="object"){c=g;if(typeof(g)=="string"){if(d=="html"){c=c.replace(/&/g,"&amp;");c=c.replace(/>/g,"&gt;");c=c.replace(/</g,"&lt;")}c=c.replace(/\"/g,'"');c='"'+c+'"'}if(typeof(g)=="function"&&d){c=new String(c).replace(/\n/g,"\n"+l);if(d=="html"){c=c.replace(/&/g,"&amp;");c=c.replace(/>/g,"&gt;");c=c.replace(/</g,"&lt;")}}if(typeof(g)=="undefined"){c="undefined"}if(d=="html"){if(typeof(c)!="string"){c=new String(c)}c=c.replace(/ /g,"&nbsp;").replace(/\n/g,"<br>")}return c}for(var m in g){if(j&&(b>j)){c="*RECURSION*"}else{try{c=var_dump(g[m],d,j,b+1)}catch(k){continue}}h=var_dump(m,d,j,b+1);a+=h+":"+c+",";if(d){a+="\n"+l}}if(d){a="{\n"+l+a.substr(0,a.length-(2+(b*3)))+"\n"+l.substr(0,l.length-3)+"}"}else{a="{"+a.substr(0,a.length-1)+"}"}if(d=="html"){a=a.replace(/ /g,"&nbsp;").replace(/\n/g,"<br>")}return a};