﻿function test ()
{
}
function site_popup(uri) {
        w = 512;
        h = 800;        
        x = screen.availWidth/2-w/2;
        y = screen.availHeight/2-h/2;
        
        var popupWindow = window.open(uri,"","scrollbars=yes","width="+w+",height="+h+",left="+x+",top="+y+",screenX="+x+",screenY="+y);
        
        popupWindow.outerWidth = 600;
        popupWindow.outerHeight = 600;
        
      }  			
	    
    	
var act_lvl = new Array();
 
		function swap_menu( span,lvl,act) 
		{
	  
 			displayType = ( document.getElementById( span ).style.display == 'none' ) ? 'block' : 'none';
			act_lvl[lvl] = act;
		 		
		
      			if (act_lvl[1]==0 && act_lvl[2]==0){
				var arr;
 				arr = document.getElementsByTagName('span');
				for(i=0;i<arr.length;i++){
 		     			arr[i].style.display = 'none';  
    				}
			} 		
		
 			document.getElementById( span ).style.display = displayType;
 		
		}
