﻿
var x        = -100 ; 
var solid    =  'moveout' ;
var last_do  =  ''  ;
	  
      function move_menu_out(){

         var menu      = document.getElementById("menu");
	      last_do = 'out';
				
	     if(x > -78 && solid != 'moveout'){
				x = x - 10;
				document.getElementById("menu").style.right = x+'px' ;
				
				setTimeout('move_menu_out('+x+')',10);
			}else{
				solid = 'moveout' ;
			}
             	
      }
	  
      function move_menu_in(){
         var menu      = document.getElementById("menu");
	 
	     if(x != 0 && solid != 'movein'){
			  //  alert(x) ;
				x  = x + 10;
				document.getElementById("menu").style.right = x+'px' ;
				 
				setTimeout('move_menu_in()',10);
			}else{
				solid = 'movein' ;
			}
             	
      }
	  
	  function move_menu(el){
		 // alert(last_do);
		  if(el == 'in' && solid == 'moveout' && last_do != 'in'){			 
                  last_do = 'in';			    
				move_menu_in(); 
		  }else if(el == 'out' && solid  == 'movein' && last_do != 'out'){
			    //alert('out mother fucker'); 
			    last_do = 'out';			  
				setTimeout('move_menu_out()',10); 
		  }
		  
	  }
	  
	  
	  function getContent(id){
            var element = document.getElementById(id) ;
		    var area    = document.getElementById('details') ;
    		area.innerHTML   = element.innerHTML ;  		   

		}
	  window.onload = function(){
	//	stop_ie6();
	  }
	  
	  function stop_ie6(){
		 var browser=navigator.appName;
          var b_version=navigator.appVersion;
          var version=parseFloat(b_version);
    		  alert(browser+" = "+ version)
		  
	  }