	var isIE  = false;
	var isNS4 = false;
	var isNS6 = false;
    var functionPointer;

	if( document.layers ) isNS4 = true;
	if( !document.all && document.getElementById ) isNS6 = true;
	if( document.all) isIE = true;

	function returnNumber( szTop ){
      var szReturn = 0;
      if( szTop.indexOf( 'px' ) > 0 )
      	szReturn = szTop.substr( 0, szTop.indexOf( 'px' ) ) ;
      else
         szReturn = szTop
      return parseInt( szReturn );
   }
	function stopScrolling(){
      clearTimeout( functionPointer );
   }
	function scrollUp( pas ){
      var iPas = 2
      if( typeof( pas ) != 'undefined' )
        iPas = pas
      if( iPas == 18 )
      	iPas = 40
	  if( isNS4 )
		document.layers["MyScroll"].document.layers["Content"].top -= iPas;
      else{
      		if ( isIE ){
      			//alert( document.all.MyScroll.scrollHeight + ' ' + ( document.all.Content.scrollHeight + returnNumber( document.getElementById("Content").style.top ) ) )
      			if( document.all.MyScroll.scrollHeight - 80 < ( document.all.Content.scrollHeight + returnNumber( document.getElementById("Content").style.top ) ) )
      			document.getElementById("Content").style.top = returnNumber( document.getElementById("Content").style.top ) - iPas;
      		}
      		else
				document.getElementById("Content").style.top = returnNumber( document.getElementById("Content").style.top ) - iPas;
		}
      functionPointer = setTimeout( "scrollUp(" + iPas + ")", 1 )
		return true
   }
	function scrollDown( pas ){
      var iPas = 2;
      if( typeof( pas ) != 'undefined' )
         iPas = pas
      if( iPas == 18 )
      	iPas = 40

		if( isNS4 ){
         if( document.layers["MyScroll"].document.layers["Content"].top < 0)
			document.layers["MyScroll"].document.layers["Content"].top += iPas;
      }
      else{
         if( returnNumber( document.getElementById("Content").style.top ) < 0 )
				document.getElementById("Content").style.top = returnNumber( document.getElementById("Content").style.top ) + iPas;

      }
      functionPointer = setTimeout( "scrollDown(" + iPas + ")", 1 )
		return true
   }


	function doOnResize1(){
		if( isIE ){
		  document.getElementById("Content").style.top = -1;
          if ( document.all.MyScroll.scrollHeight - 70 > document.all.Content.scrollHeight ){
          	topTopScroll.style.display = 'none';
          	topBottomScroll.style.display = 'none';
          	bottomTopScroll.style.display = 'none';
          	bottomBottomScroll.style.display = 'none';
          }
          else{
          	topTopScroll.style.display = '';
          	topBottomScroll.style.display = '';
          	bottomTopScroll.style.display = '';
          	bottomBottomScroll.style.display = '';
          }
          var obj = document.all.MyScroll;
          var szHeight = ( document.body.clientHeight - 150 ) + 'px'
          obj.style.clip = 'rect(0px 10000px ' + szHeight + ' 0px)';
          obj = document.all.bottomMenu;
          obj.style.top = document.body.clientHeight - 30;
      }
      if( isNS6 ){
         document.getElementById("MyScroll").style.clip = 'rect(0px 10000px ' + ( window.innerHeight - 97 ) + 'px 0px)'
         obj = document.getElementById("bottomMenu");
         obj.style.top = window.innerHeight - 30;
		 
		 document.getElementById("HotButtons").style.width = window.innerWidth + 'px';
		 
      }
	}
	
	function MyKeyDownIE(Code)	{
     alert( Code )
	  switch (Code){
	       case 33: scrollUp( 50 ); break;
	       case 34: scrollDown( 50 ); break;
	       case 40: scrollUp( ); break;
	       case 38: scrollDown( ); break;
	    }
      stopScrolling()
	}
	function KeyDown(e){
      if( isIE)
	    MyKeyDownIE(event.keyCode)
	}
	
		function returnNumber( szTop ){
		  var szReturn = 0;
		  if( szTop.indexOf( 'px' ) > 0 )
			szReturn = szTop.substr( 0, szTop.indexOf( 'px' ) ) ;
		  else
			 szReturn = szTop
		  return parseInt( szReturn );
		}
		function doOnTopTopScrollOver(){
			totalcount=0;
			UnHight();
			totalcount=100;
			MM_nbGroup('over',
				'topTopScroll',
				'../CommonImages/hotImages/TopTopScroll.gif',
				'../CommonImages/hotImages/TopTopScroll.gif',
				1);
			return document.MM_returnValue;
		}
		function doOnTopBottomScrollOver(){
			totalcount=0;
			UnHight();
			totalcount=100;
			MM_nbGroup('over',
				'topBottomScroll',
				'../CommonImages/hotImages/TopBottomScroll.gif',
				'../CommonImages/hotImages/TopBottomScroll.gif',
				1);
			return document.MM_returnValue;
		}

		function doOnBottomTopScrollOver(){
			totalcount=0;
			UnHight();
			totalcount=100;
			MM_nbGroup('over',
				'bottomTopScroll',
				'../CommonImages/hotImages/bottomTopScroll.gif',
				'../CommonImages/hotImages/bottomTopScroll.gif',
				1);
			return document.MM_returnValue;
		}

		function doOnBottomBottomScrollOver(){
			totalcount=0;
			UnHight();
			totalcount=100;
			MM_nbGroup('over',
				'bottomBottomScroll',
				'../CommonImages/hotImages/bottomBottomScroll.gif',
				'../CommonImages/hotImages/bottomBottomScroll.gif',
				1);
			return document.MM_returnValue;
		}

		function doOnResize(){
			var objMenu = null;
			var pas = 0;
			if( isIE )
				pas = document.body.clientWidth/4 + 1;
			if ( isNS6)
				pas = window.innerWidth/4 + 1;
			objMenu = eval( 'document.getElementById("MenuOurCompany")' );
			objMenu.style.left = 2 + 'px';

			objMenu = eval( 'document.getElementById("MenuRelations")' );
			objMenu.style.left = (2 + 237)+ 'px';

			objMenu = eval( 'document.getElementById("MenuOurPeople")' );
			objMenu.style.left = (2+ 237)+ 'px';

			objMenu = eval( 'document.getElementById("MenuEngagement")' );
			objMenu.style.left = (2+ 382)+ 'px';


			objMenu = eval( 'document.getElementById("MenuASERT")' );
			objMenu.style.left = 1 * pas + 'px';

			objMenu = eval( 'document.getElementById("MenuPhases")' );
			objMenu.style.left = (1 * pas + 161)+ 'px';

			objMenu = eval( 'document.getElementById("MenuHome")' );
			objMenu.style.left = (3 * pas) + 'px';;


			objMenu = eval( 'document.getElementById("MenuServices")' );
			objMenu.style.left = (2 * pas);
			if( isIE ){
				if( returnNumber( objMenu.style.left ) + 336 > document.body.clientWidth )
					objMenu.style.left = document.body.clientWidth - 336;
			}
			if ( isNS6)
				pas = window.innerWidth/4 + 1;
			pas = returnNumber( objMenu.style.left );

			objMenu = eval( 'document.getElementById("MenuInterimAssignments")' );
			objMenu.style.left = pas + 150;

			objMenu = eval( 'document.getElementById("MenuSituation")' );
			objMenu.style.left = pas + 150;
			doOnResize1();

		}
		window.onresize = doOnResize

		function doOnHomeOver(){
			if( eval( 'document.getElementById("HotHome")' ) != null ){
				totalcount=0;
				UnHight();
				totalcount=100;
				clearTimeout( pointerHideMenu );
				clearTimeout( pointerUnHight );
				objButtonName = 'buttomHome';
			
				eval( 'document.getElementById("MenuHome")' ).style.visibility='visible';

				eval( 'document.getElementById("HotButtons")' ).style.zIndex = 20;
				eval( 'document.getElementById("HotOurApprochButton")' ).style.visibility='hidden';
				eval( 'document.getElementById("HotOurServices")' ).style.visibility='hidden';
				eval( 'document.getElementById("HotHome")' ).style.visibility='visible';
				eval( 'document.getElementById("HotOurCompany")' ).style.visibility='hidden';
			}
		}
		function doOnCompanyOver(){
			if( eval( 'document.getElementById("HotHome")' ) != null ){
				totalcount=0;
				UnHight();
				totalcount=100;
				clearTimeout( pointerHideMenu );
				clearTimeout( pointerUnHight );
				objButtonName='buttomCompany';
				eval( 'document.getElementById("MenuOurCompany")' ).style.visibility='visible';
				eval( 'document.getElementById("HotButtons")' ).style.zIndex = 20;
				eval( 'document.getElementById("HotOurCompany")' ).style.visibility='visible';
				eval( 'document.getElementById("HotOurApprochButton")' ).style.visibility='hidden';
				eval( 'document.getElementById("HotOurServices")' ).style.visibility='hidden';
				eval( 'document.getElementById("HotHome")' ).style.visibility='hidden';
			}
		}

		function doOnServicesOver(){
			if( eval( 'document.getElementById("HotHome")' ) != null ){			
				totalcount=0;
				UnHight();
				totalcount=100;
				clearTimeout( pointerHideMenu );
				clearTimeout( pointerUnHight );
				objButtonName = 'buttomServices';
				MM_displayStatusMsg('Our Services');
				eval( 'document.getElementById("MenuServices")' ).style.visibility='visible';
				eval( 'document.getElementById("HotButtons")' ).style.zIndex = 20;
				eval( 'document.getElementById("HotOurApprochButton")' ).style.visibility='hidden';
				eval( 'document.getElementById("HotOurServices")' ).style.visibility='visible';
				eval( 'document.getElementById("HotHome")' ).style.visibility='hidden';
				eval( 'document.getElementById("HotOurCompany")' ).style.visibility='hidden';
			}
		}
		function doOnApproachOver(){
			if( eval( 'document.getElementById("HotHome")' ) != null ){
				totalcount=0;
				UnHight();
				totalcount=100;
				clearTimeout( pointerHideMenu );
				clearTimeout( pointerUnHight );
				objButtonName='buttomApproach';
				MM_displayStatusMsg('Our Approach');
				eval( 'document.getElementById("MenuASERT")' ).style.visibility='visible';
				eval( 'document.getElementById("HotButtons")' ).style.zIndex = 20;
				eval( 'document.getElementById("HotOurApprochButton")' ).style.visibility='visible';
				eval( 'document.getElementById("HotOurServices")' ).style.visibility='hidden';
				eval( 'document.getElementById("HotHome")' ).style.visibility='hidden';
				eval( 'document.getElementById("HotOurCompany")' ).style.visibility='hidden';
			}
		}
		function doOnMouseOut(){
			MM_nbGroup('out');
			if( isNS6 ){
				doOnResize();
			}
		}
		function doOnLoad(){
			  MM_preloadImages(
			  '../CommonImages/hotImages/TopTopScroll.gif',
			  '../CommonImages/hotImages/TopBottomScroll.gif',
			  '../CommonImages/hotImages/bottomTopScroll.gif',
			  '../CommonImages/hotImages/bottomBottomScroll.gif')
		}

