
var Move_Flag=0;
var Pause=80;
var Timer_num=null;
var Roll_num=null;
var Menu_Recoder = 'RPC';
var Layer_List=new Array();

RPC = "<img src='../blank.gif' width=1 height=1 border=0>";

Picture_Top = "<center><table ><tr><td>"; 
Picture_Buttom = "</td></tr></table></center>";

Cal_Picture = Picture_Top + "<img boder='0' src='home/pictures/Calculation_big_j.jpg'>" + Picture_Buttom;   
Geoff_Picture = Picture_Top + "<img boder='0' src='home/pictures/Goeff_2.jpg'>" + Picture_Buttom;   
David_prise_Picture=Picture_Top + "<img boder='0' src='home/pictures/David_prise.jpg'>" + Picture_Buttom;
David_prise_Baby_Picture=Picture_Top + "<img boder='0' src='home/pictures/David_Baby.jpg'>" + Picture_Buttom;


if (document.getElementById) 
{
	visible = 'visible'; 
	hidden = 'hidden'; 
}

function Create_Layer(name, left, top, width, height, visible, Image) 
{
  	var z_index=Layer_List.length + 100; 
	var layer;
      Layer_List[z_index]=name; 
	 if (document.getElementById)
		{ 
			document.writeln('<div id="'+name+'"style="position:absolute; overflow:none; left:'+left+'px; top:'+top+'px; width:'+width+'px; height:'+height+'px;'+' visibility:'+(visible ? 'visible;' : 'hidden;')+' z-index:' + z_index + ' "" background-color=white>'); 
			document.writeln(Image);
			document.writeln('</div>');
	} 
	Make_Layer(name, 0, 0, width, height);
    
}

function Make_Layer(name, clipleft1, cliptop, clipright, clipbottom)
{
    var layer = Get_Layer(name); 
   	var clipleft = clipleft1;
	if (document.getElementById) 
		layer.clip = 'rect(' + cliptop + ' ' + clipright + ' ' + clipbottom + ' ' + clipleft +')';
}

function M_Over(name)
{
//alert("1111111111");
	var Menu=0;
      clearTimeout(Roll_num);
	if ( document.getElementById) 
	{ 
//		alert("2222");
		clearTimeout(Timer_num); 
		Move_Flag=1; 
      	Menu= Get_Layer(name); 
	if (!Menu) 
		return; 
	Menu_Recoder.visibility = hidden; 
	Menu.visibility = visible; 
	Menu_Recoder = Menu; 
	} 
	return true;
}

function Get_Layer(name)
{
//	alert("3333");
	if (document.getElementById)
	{
//		alert("44444");
		layer=eval('document.getElementById("'+name+'").style');
//	   alert("444-555");
	   return(layer);
//	   alert("55555");
	}
	else 
		return(null);
} 

function Hide_Menu(name)
{
	var Menu=0; 
	Menu= Get_Layer(name); 
	if (!Menu) 
		return; 
	Menu.visibility = hidden; 
	Menu_Recoder = Menu;
}

function M_Out(name)
{
	if ( document.getElementById) 
		{ 
			clearTimeout(Timer_num); 
			var Out = "Hide_Menu('"+name+"')"; 
			Move_Flag=0; 
			Timer_num=setTimeout(Out,Pause); 
		}
} 

Create_Layer('RPC', 0, 0, 1, 1, 0, RPC); //left, top, width, height
Create_Layer('Cal_Picture' ,150, 40, 516, 352, 0, Cal_Picture);
Create_Layer('Geoff_Picture' ,150, 40, 516, 352, 0, Geoff_Picture);
Create_Layer('David_prise_Picture' ,120, 40, 516, 352, 0, David_prise_Picture);
Create_Layer('David_prise_Baby_Picture' ,120, 40, 516, 352, 0, David_prise_Baby_Picture);



