

function large_pic_changer(picinfo)
{

if (body_load == "true")
{
	if (button_state == "ready")
		{
			document.getElementById(border_old).style.borderColor = "#c3c3c3";
			document.getElementById(picinfo.id).style.borderColor = "darkblue";
			border_old = picinfo.id;
		}
	

	if (!document.getElementById("tom"))
		{
			
          document.getElementById("large_pic").innerHTML=("<br /><br /><br />LOADING...");   

					
	
	
 
if (window.ActiveXObject) {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

  }
  else if (window.XMLHttpRequest) {
    xmlHttp = new XMLHttpRequest();

  }
	

	
		
			xmlHttp.open("GET", "large_pic.php?pic=" + picinfo.id, true);
 

  
 
 xmlHttp.send(null);
			
if (window.ActiveXObject){			
checkstate_1();	
	}	
		
	

 
 xmlHttp.onreadystatechange=function checkstate_1()
							{
							
								if (xmlHttp.readyState==4) 
								{
								var text=xmlHttp.responseText;
											
											     	document.getElementById("large_pic").innerHTML=(text);    
											
								
								      
								
											
											
								}
							}

							
							
							
							
							
		}	

}

if (document.getElementById("tom"))
	{
	
	
		
		if (button_state == "ready")
{		
	
				
				if (dir == 1)
					{
					button_state = "notready"
					/*   alert ("sending 1" + picinfo.id);    */
					window.document.tom.SetVariable("pic_load", picinfo.id + ".jpg");
						/*      window.document.tom.SetVariable("dir", 1);     */
						window.document.tom.GotoFrame(3);
						window.document.tom.Play(); 
						dir = 2;
						return;
					}
		
				if (dir == 2)
					{
					button_state = "notready"
					/*     alert ("sending 2" + picinfo.id);    */
						window.document.tom.SetVariable("pic_load", picinfo.id + ".jpg");
						/*       window.document.tom.SetVariable("dir", 2);    */
						window.document.tom.GotoFrame(8);
						window.document.tom.Play();
						dir = 1;
						return;
					}
	
}


			
			
	}
			

	}  // end of LARGE_PIC_CHANGER






function ajax_gallery()
{

document.getElementById("content").innerHTML=("Gallery loading ...");







					
							
		

	
	
 
 if (window.ActiveXObject) {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

  }
  else if (window.XMLHttpRequest) {
    xmlHttp = new XMLHttpRequest();

  }
	

	
			
			xmlHttp.open("GET", "inc/php/js_gallery_display.php",true);
 

  
 
 xmlHttp.send(null);
			

if (window.ActiveXObject){			
checkstate_2();	
	}

 
 xmlHttp.onreadystatechange=function checkstate_2()
							{
							
								if (xmlHttp.readyState==4) 
								{
								var text=xmlHttp.responseText;
											
											document.getElementById("content").innerHTML=(text);
											
											
										
								}
							}
							
 
 
 
} 
						
											


	




	
	






	
    
    












