function mail(u, s, d, img)
{
var l="ilto";
	if (img == "txt")
		{document.write("<a"+" href="+"ma"+l+":"+u+"&#64;"+s+ "." +d+">"+u+"&#64;"+s+ "." +d+"</a>");}
	else
		{document.write("<a"+" id=\"ico_m\" href="+"ma"+l+":"+u+"&#64;"+s+ "." +d+">"+"<img src=\"/img/spacer.gif\" alt=\"E-mail\" /></a>");}
}

function show(arg)
{
if (document.getElementById(arg).style.display == "none")
	{
	document.getElementById(arg).style.display = "block";
	}
else
	{
	document.getElementById(arg).style.display = "none";
	}
}

function unfold(arg)
{
setTimeout(function(){document.getElementById("sub"+arg).style.display = "block"}, 200);
setTimeout(function(){document.getElementById(arg).style.display = "none"}, 200);
setTimeout(function(){document.getElementById("sub"+arg).style.display = "none"}, 5000);
setTimeout(function(){document.getElementById(arg).style.display = "inline"}, 5000);
}

function fold(arg)
{
document.getElementById("sub"+arg).style.display = "none";
document.getElementById(arg).style.display = "inline";
}

function txt_over(arg)
{document.getElementById("txt_"+arg).className='hover';}

function txt_out(arg)
{document.getElementById("txt_"+arg).className='';}

function tn_over(arg)
{document.getElementById(arg).className='img hover';}

function tn_out(arg)
{document.getElementById(arg).className='img';}


function getWindowHeight() { 
         var windowHeight = 0; 
         if (typeof(window.innerHeight) == 'number') { 
            windowHeight = window.innerHeight; 
         } 
         else { 
            if (document.documentElement && document.documentElement.clientHeight) { 
               windowHeight = document.documentElement.clientHeight; 
            } 
            else { 
               if (document.body && document.body.clientHeight) { 
                  windowHeight = document.body.clientHeight; 
               } 
            } 
         } 
         return windowHeight; 
      } 
      function setFooter() { 
         if (document.getElementById) { 
            var windowHeight = getWindowHeight(); 
            if (windowHeight > 0) { 
               var not_footerHeight = document.getElementById('not_footer').offsetHeight; 
               var footerElement = document.getElementById('footer'); 
               var footerHeight  = footerElement.offsetHeight; 
               if (windowHeight - (not_footerHeight + footerHeight) >= 0) { 
                  footerElement.style.position = 'relative'; 
                  footerElement.style.top = (windowHeight - (not_footerHeight + footerHeight)) + 'px'; 
               } 
               else { 
                  footerElement.style.position = 'relative'; 
               } 
            } 
         } 
      } 
      window.onload = function() { 
         setFooter(); 
      } 
      window.onresize = function() { 
         setFooter(); 
      }