function init() {
	
}
function initZoom() {
	$("a[rel=zoom]").lightBox();
}
function trace(o,md) {
	var md = md==undefined ? 2 : md;
	var dbg = document.getElementById('debug');
	if(!dbg) return;
	if(typeof(dbg.depth)=="undefined") dbg.depth=0;
	dbg.depth++;
	if(dbg.depth > md) {
		dbg.depth--;
		return "";
	}
	var ps = "            ".substr(0,(dbg.depth-1)*2);
	var s = "";
	var es = "";
	var lt = String.fromCharCode(60);
	if(o==null) o='[null]<br>';
	if(typeof(o) == "object") {
		if(o.length != undefined) s += ps+"[array "+o.length+"]<br>";
		//s += "[object]<br>";
		for(var n in o) {
			try {
				var e = o[n];
				if(typeof(e)=="function") {
					s += ps+"<span style='color:#008'>function "+n+"()</span><br>";
				} else if(typeof(e)=="object") {
					s += ps+n+":<br>"+trace(e,md);
				} else {
					es = e;
					if(n=="innerHTML" || n=="outerHTML" || n=="innerText" || n=="outerText" || n=="textContent") {
						es = "(...)";
					} else {
						s += ps+n+": "+es+"<br>";
					}
				}
			} catch(err) {
				s += ps+n+": n.a.<br>";
			}
		}
	} else {
		es = o.toString();
		s += ps+es;
	}
	dbg.depth--;
	if(dbg.depth < 1) {
		dbg.innerHTML += s+"<br>";
		s = "";
	}
	return s;
}