function boxAlpha (){
	var s=$("#moduleframe").css("display");
	if (s=='none'){
		var FW=document.body.scrollWidth;
		var FH=document.body.scrollHeight;
		var SH=window.screen.height;
		FH=FH<SH?SH:FH;
		$("#alphadiv").height(FH).width(FW);
		$('#moduleframe').show();
		$('#moduleframe iframe').css({position:"absolute",left:"0px",top:"0px"}).height(FH).width(FW);
	}
	else{$('#moduleframe').hide()}
}

function draglayer(){
	var och=$("#drag").height();
	var ocw=$("#drag").width();

	var bsl = document.documentElement.scrollLeft || document.documentElement.scrollLeft;
	var bst = document.documentElement.scrollTop || document.documentElement.scrollTop;
	var bcw = document.documentElement.clientWidth || document.documentElement.clientWidth;
	var bch = document.documentElement.clientHeight || document.documentElement.clientHeight;

	var osl = bsl + Math.floor( ( bcw - ocw ) / 2 );
	osl = Math.max( bsl , osl );
	var ost = bst + Math.floor( ( bch - och ) / 2 );
	ost = Math.max( bst , ost );

	$("#drag").css({"top":ost,"left":osl,"width":ocw}).show();
	var theHandle = document.getElementById("drag_h");
	var theRoot   = document.getElementById("drag");
	Drag.init(theHandle, theRoot);

}
