function InfoBar() {
			Get('InfoBar').style.top='0px';
			w = parseInt(findPosLeft(Get('Holder')) + 8);
			
			Get('InfoBar').style.left = w;
			var startX =w;
			/*
			document.title = w;
			if (Get('MainHolder').offsetWidth > 110000) {
			w = parseInt(findPosLeft(Get('Holder'))) + 960 + 'px';
				Get('SkyBanner').style.position= 'absolute';
				Get('SkyBanner').style.left= w;
				Get('SkyBanner').style.top='176px'
			} else {
				Get('SkyBanner').style.display= 'none';
			}
			*/
			//InfoBoxDown();
		}
		function InfoBoxDown() {
     	//Effect.Pulsate('InfoBar', { pulses: 3, duration: 1 });
			Effect.BlindDown('InfoBar');
			Effect.Appear('InfoBar');
			
		}
		function Get(id) {
			return document.getElementById(id);
		}
		function InfoBarNotify(w) {
			pulse = 2;
			dur = 1;
			if (w == "Once") {
				pulse = 1;	
				dur= 0.5;
			}
			Effect.Pulsate(Get('InfoBar'), { pulses: pulse, duration: dur });
			if (w == 'Permanent') {
				window.setTimeout("InfoBarNotify('Permanent')",20000);
			}
		}
		function InfoWindowPosition() {
			SyncMousePosition();	
			oTooltipBox = document.getElementById('InfoWindow');
			oTooltipBox.className='InfoWindowDisplay';
			baseoffsettop = MouseY;
			baseoffsetleft = MouseX;
			oTooltipBox.style.display='inline';
			oTooltipBox.style.position='absolute';
			oTooltipBox.style.left = baseoffsetleft +10+ 'px';
			oTooltipBox.style.top = baseoffsettop +10+ 'px';
			
		}
		
		function IWinPosition(Element,OffsetLeft,OffsetTop) {
			

			if (!OffsetLeft) OffsetLeft = 0;
			if (!OffsetTop) OffsetTop = 0;
			
			oTooltipBox = document.getElementById('InfoWindow');
			oTooltipBox.className='InfoWindowDisplay';
			oTooltipBox.style.display='inline';
			oTooltipBox.style.position='absolute';
			
			var objectWidth = oTooltipBox.offsetWidth;
			
			var Left = parseInt(findPosLeft(Get(Element))) + parseInt(OffsetLeft);
			var Top = parseInt(findPosTop(Get(Element))) + parseInt(OffsetTop);
			
			
			oTooltipBox.style.left = Left +'px';
			oTooltipBox.style.top = Top + 'px';
				
				   
		}
		
		function InfoBoxReload() {
				
		}
		
	var mybox;
	var oTooltipBox ;
	var userInfoStatus ;


	function InfoWindowClose() {
		Get('InfoWindow').className='Hide';	
		Get('InfoWindow').style.display='none';
	}
	function ChangeUrl(u) {
		location.href= u;		
	}
	function SetMessageRead(id) {
		SendRequest('message','SetMessageRead','ID='+ id);
	}
	function SendPrivateMessage(To) {
		SendRequest('message','SendPrivateMessage','To='+ To + '&Message=' + Get('IMessage').value);
		
	}