  function load_home()



  { 



		parent.frames['hidden'].location.href = 'home.html';



  }







  function load_history()



  { 



		parent.frames['hidden'].location.href = 'history.html';



  }



  function load_projects()



  { 



		parent.frames['hidden'].location.href = "projects.php";



  }	



  function load_photography()



  { 



		parent.frames['hidden'].location.href = "photography.php";



  }	


	function load_cars()


  { 



		parent.frames['hidden'].location.href = 'cars.php';



  }
  

	function load_services()



  { 



		parent.frames['hidden'].location.href = 'services.html';



  }

	

  function load_resources()



  { 



		parent.frames['hidden'].location.href = "resources.html";



  }		



	function load_team()



  { 



		parent.frames['hidden'].location.href = "team.php";



  }		

	

	function hide_content()



	{



	    var a_content = document.getElementById("content");



			var a_footer = document.getElementById("footer");



			a_content.style.visibility = "hidden";



			a_footer.style.visibility = "hidden"; 



	}



	function show_content()



	{



	    var a_content = document.getElementById("content");



			var a_footer = document.getElementById("footer");



			a_content.style.visibility = "visible";



			a_footer.style.visibility = "visible"; 



	}



	







  function toggle(item_id)



  {



      ul = "ul_" + item_id;



      img = "img_" + item_id;



      ulElement = document.getElementById(ul);



      imgElement = document.getElementById(img);



      if (ulElement)



      {



          if (ulElement.className == 'closed')



  		    {



              ulElement.className = "open";



							close_all_others(item_id);



          }



					else



  		    {



              ulElement.className = "closed";



          }



       }



  }







	function close_all_others(item_id)



	{



	    for( var i = 1; i <= 4; i++ )



			{



			    if( ("item" + i) != item_id )



					{



              ul = "ul_item" + i;



              ulElement = document.getElementById(ul);



              ulElement.className = "closed";



			    }



			}



	}



	



	function blank_out()



	{



			this.location.href = "blank.php";	



	}



	



  function swap_contents()



	{



	    var a = parent.frames['main'].document.getElementById("content");



	    var b = window.document.getElementById("hiddendiv");



			if(!a)

			{

			    setTimeout("swap_contents()", 100);

			}

			else

			{

	     		a.innerHTML = b.innerHTML;

			}

	}



	



  function swap_images()



	{



	    var a = parent.frames['main'].document.getElementById("theimage");



	    var b = window.document.getElementById("hiddendiv");



	    a.innerHTML = b.innerHTML;



	}







  function done()



  {



      var randimg = window.document.getElementById("randomimage");



			if( randimg != null )



			{



		       randimg.style.visibility = "visible";



			}



      swap_contents();



  }



