onload = function() {
	var so = new SWFObject("/gfx/wobble.swf", "flashLeft", "50", "100%", "6.0.40", "#E8DAB9");
	so.addParam("scale", "noscale");
	so.addParam("quality", "high");
	so.addParam("menu", "false");
	so.addParam("flashvars", "r=0");
	so.write("borderLeft");

	var so = new SWFObject("/gfx/wobble.swf", "flashRight", "50", "100%", "6.0.40", "#E8DAB9");
	so.addParam("scale", "noscale");
	so.addParam("quality", "high");
	so.addParam("menu", "false");
	so.addParam("flashvars", "r=1");
	so.write("borderRight");

	if (navigator.appName.indexOf("Microsoft") != -1) {
		onresize = function() {
			if (document.getElementById && document.documentElement) {
				var th = document.getElementById("site").offsetHeight;
				var ih = document.documentElement.clientHeight;
				var h = (ih > th) ? ih : th;
				document.getElementById("borderLeft").style.height = document.getElementById("borderRight").style.height = h;
				if (document.getElementById("flashLeft")) document.getElementById("flashLeft").style.height = h;
				if (document.getElementById("flashRight")) document.getElementById("flashRight").style.height = h;
			}
		};
		onresize();
	}
};

function setStatus(str) {
	if (str != "" && str != "null") window.status = str;
	else window.status = "";
}

function wobble(on) {
	if (document.getElementById) {
		if (document.getElementById("flashLeft") && document.getElementById("flashRight")) {
			if (on) {
				document.getElementById("flashLeft").TGotoLabel("/", "on");
				document.getElementById("flashRight").TGotoLabel("/", "on");
			}
			else {
				document.getElementById("flashLeft").TGotoLabel("/", "off");
				document.getElementById("flashRight").TGotoLabel("/", "off");
			}
		}
	}
}

