       function set(id, lang)
       {

                if (id != '<? echo $current_page ?>')
		{
                        document.getElementById(id+'_bot').style.background='#b1a58b';
			document.getElementById(id+'_img').src='/images/'+ id + '_'+lang+'_in.jpg';
		}
       }

       function unset(id, lang)
       {
                if (id != '<? echo $current_page ?>')
		{
                        document.getElementById(id+'_bot').style.background='#f0eeea'
			document.getElementById(id+'_img').src='/images/'+ id + '_'+lang+'_out.jpg';

		}
       }

       function set_current(id, lang)
       {
                if (id != '')
                {

                        document.getElementById(id + '_bot').style.background = '#000000';
                        document.getElementById(id + '_img').src = '/images/' + id + '_'+lang+'_in.jpg';
                }
        }

        function redir(url)
        {
                window.location.href=url;
        }

	function finder(show)
	{
		if(show==true)
		{
			finder1(false)
			document.getElementById('Layer1').style.visibility='visible'
			document.getElementById('search').focus()
		}
		else
		{
			document.getElementById('Layer1').style.visibility='hidden'
		}
	}

	function finder1(show)
	{
		if(show==true)
		{	
			finder(false)
			document.getElementById('Layer2').style.visibility='visible'
			document.getElementById('usermail').focus()
		}
		else
		{
			document.getElementById('Layer2').style.visibility='hidden'
		}
	}

	function enter_submit(code, lang)
	{
		if (code == 13)
		location.href='search.php?lang='+lang+'&search='+document.getElementById('search').value;
	}

	function enter_submit2(code, lang)
	{
		if (code == 13)
			location.href='subscribe.php?lang='+lang+'&usermail='+document.getElementById('usermail').value;
	}
