function expand()
{
       var NS = (navigator.appName=='Netscape')?true:false; 
	   
       nWidth = (NS)?window.innerWidth:document.body.offsetWidth; 
       nHeight = (NS)?window.innerHeight:document.body.offsetHeight; 
       nWidth = document.images[0].width - nWidth; 
       nHeight = document.images[0].height - nHeight; 
       window.resizeBy(nWidth, nHeight);
	   
	   if (!NS) 
	   {
		   
		   window.resizeTo(document.images[0].width+6,document.images[0].height+28+55+180) ;
	   }
	   else
	   {
		   
		   window.resizeTo(document.images[0].width+6,document.images[0].height+28+40+190) ;
	   }
	   self.focus(); 
}

function fitWindow() 
{ 
       var NS = (navigator.appName=='Netscape')?true:false; 
	   
	   nWidth = (NS)?window.innerWidth:document.body.offsetWidth; 
       nHeight = (NS)?window.innerHeight:document.body.offsetHeight; 
       nWidth = document.images[0].width - nWidth; 
       nHeight = document.images[0].height - nHeight; 
       window.resizeBy(nWidth, nHeight);
	   
	   if (!NS) window.resizeTo(document.images[0].width+10,document.images[0].height+28) ;
       self.focus(); 
}

function fitWindow2() 
{ 
       var NS = (navigator.appName=='Netscape')?true:false; 
	   
	   nWidth = (NS)?window.innerWidth:document.body.offsetWidth; 
       nHeight = (NS)?window.innerHeight:document.body.offsetHeight; 
       nWidth = document.images[0].width - nWidth; 
       nHeight = document.images[0].height - nHeight; 
       window.resizeBy(nWidth, nHeight);
	   
	   if (!NS) 
	   {
		   
		   window.resizeTo(document.images[0].width+10,document.images[0].height+28+55+28) ;
	   }
	   else
	   {
		   
		   window.resizeTo(document.images[0].width+6,document.images[0].height+28+40+31) ;
	   }
	   self.focus(); 
}

function addImage(id)
{
  window.document.form.szText.value = 
  window.document.form.szText.value + '{image:'+id+'}';   
}


function openwin(url,title,desc,photo)
{
	
	picWindow = window.open('http://www.embryonal.net/build1002/window.php?url='+url+'&title='+title+'&desc='+desc+'&photo='+photo,'','top = 150,left = 100 ,width=200,height=200,status=no,toolbar=no,menubar=no,location=no');
	picWindow.focus() ;
	
	
	
}

function outline(id)
{
 	if(document.getElementById(id).style.display == 'none')
 	{
  	 	document.getElementById(id).style.display = 'inline';
 	}
 	else
 	{
  		document.getElementById(id).style.display = 'none';
 	}
}

function setVisible(layerid) 
{
	
	if (document.all) //ie
	{
		document.all[layerid].style.visibility='visible';
	}
	else if(document.layers) //ns
	{
		layers[layerid].visibility = 'show';
	}
	else if(document.getElementById && !document.all) //mozilla 
	{
		document.getElementById(layerid).style.visibility = 'visible';
  	}
}

function setHidden(layerid)
{ 
	if (document.all) //ie
	{
		document.all[layerid].style.visibility = 'hidden';
	}
	else if(document.layers) //ns
	{
		layers[layerid].visibility = 'hide';
	}
	else if(document.getElementById && !document.all) //mozilla
	{
		document.getElementById(layerid).style.visibility = 'hidden';
  	}
}
   
