window.moveTo(0,0);
if (document.all) { 
	window.resizeTo(screen.availWidth,screen.availHeight);
}else if (document.layers||document.getElementById) {
	if (window.outerHeight){ 
		window.outerHeight = screen.availHeight;
		window.outerWidth = screen.availWidth;
	}
}

function openBlackBox2(id,flag)
{
	var id = $(id);
	if (id.style.display == "block")
	{
		oFloating = DisplayFloating('join',true,'#000',30);
		oFloating.onmousedown = function()
		{
			DisplayFloating('join',false);
			id.style.display = "none";
			id.innerHTML = "";
		}
		Event.observe(document,'keypress',id);
	} else {
		DisplayFloating('join',false);
		Event.stopObserving(document,'keypress',id);
	}
}
function DisplayFloating(id, bShow, strColor, intOpacity)
{      
	 var intOpacity = intOpacity ? intOpacity : 20 ;
	 var intVal = bShow ? intOpacity : 0 ;
	 var strColor = strColor ? strColor : '#5e5e5e' ;
	 
	 var oBody = ( document.compatMode && document.compatMode!="BackCompat" ) ? document.documentElement : document.body  ;
	 if ( bShow == null || bShow == true )
	 {
			DisplayFloating(id, false) ;
			// set styles
			var oStyle = {
				 opacity: (intVal / 100), 
				 filter: 'alpha(opacity=' +intVal + ')',
				 position: 'absolute',
				 backgroundColor: strColor,
				 top: 0,
				 left: 0,
				 zIndex: 1000,
				 width: oBody.scrollWidth + 'px',
				 height: ( oBody.scrollHeight > oBody.clientHeight ? oBody.scrollHeight : oBody.clientHeight  ) + 'px',
				 textAlign: 'center'
			};
			
			// creates DIV Element
			var divBack = document.createElement('div') ;
			divBack.setAttribute('id', id) ;
			document.getElementsByTagName("body")[0].appendChild(divBack) ;
			
			Element.setStyle( divBack, oStyle ) ;
			
			return divBack;
	 } 
	 else
	 {
			try
			{
				Element.remove(id) ;
			} 
			catch(e) 
			{}
			return null ;
	 }
}

