var sf;	// Search field

function changeFontsize(el, type, url)
{
  $('fontSize').getElements('a').each(function(el1){
    if (el1.hasClass('active'))
    {
      el1.removeClass('active');
    }
  });

  el.addClass('active');
  $('csslink').href= url+'/style'+type+'.css';

  var myRequest = new Request({method: 'get', url: 'index.php?a=2&xtfra=ajax&fontsize='+type});
  myRequest.send('');
}

function setInput(mode, el, input)
{
  if (mode == 'focus')
  {
    el.value = '';
  }
  else
  {
    if (el.value == '')
    {
      el.value = input;
    }
  }
}

function init(){
	sf = document.getElementById( 'searchInput' );
	return false;
}

/* Search field interaction */

function searchFocus(){
	sf.style.fontStyle = 'normal';
	sf.style.color = '#555555';
	if( sf.value == 'Zoeken binnen de website' ) sf.value = '';
	return false;
}

function searchBlur(){
	if( sf.value == '' ){
		sf.style.fontStyle = 'italic';
		sf.style.color = '#CACACA';
		sf.value = 'Zoeken binnen de website';
	}
	return false;
}