$("document").ready (function ()
{
	$('select#form_language').change(function()
  {
      if($(this).val() != '')
      {
        var regexp = /^\/([a-z]{2}){0,1}\//i;
        location.href = '/' + $(this).val() + location.pathname.replace(regexp, '/');
      }
  });
  
	$('select#form_tp_international').change(function()
    {
        if($(this).val() != '')
        {
            location.href = $(this).val();
        }
    }
    );
    
});    

$("document").ready(function(){
    	$("form#quicksearch").submit(function() {
    		$('#searchword').attr("readonly", "readonly");
    		//$('#quicksearch_button').replaceWith('<img src="/images/frontend/relatedlinks_load_indicator_small_blue.gif"/>');
    		$('#quicksearch_button').hide(); 
    	});
    });

sfHover = function() {
	if(document.getElementById("navhorizontal") != null)
	{
		var sfEls = document.getElementById("navhorizontal").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}		
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);