function show(id, url, w, h) {
	if ( id != null && document.getElementById(id) ) {
		// document.getElementById(id).src = url;
		// window.content_id.location.replace(url);
		window.frames[id].location.replace(url);
		document.getElementById(id).style.visibility = "visible";
		var openedDimensions = { width: { to: w }, height: { to: h } };
		var anim = new YAHOO.util.Anim(id, openedDimensions, 0.5, YAHOO.util.Easing.easeOut);
		anim.animate();
	}
}

function hide(id){
	if ( id != null && document.getElementById(id) ) {
		var closedDimensions = { width: { to: 0 }, height: { to: 0 } };
		var anim = new YAHOO.util.Anim(id, closedDimensions, 0.5, YAHOO.util.Easing.easeOut);
		anim.animate();
		// document.getElementById(id).src = "";
		window.frames[id].location.replace("blank.html");
		document.getElementById(id).style.visibility = "hidden";
	}
}

function setPos(id,links,oben) {
	lay = document.getElementById(id);
	lay.style.position = 'absolute';
	lay.style.left = links + 'px';
	lay.style.top = oben + 'px';
}

function swapDepth(id,depth) {
	lay = document.getElementById(id);
	lay.style.position = 'absolute';
	lay.style.zIndex = depth;
}

