
Cufon.replace('h1,h2,h3,h4,h5,h6,.ModulHeaderTD, .ColumnHeader b, #pageName, .pageName_wImage, #submenu_header span,#logo a',{ fontFamily: 'frutiger'});

Cufon.replace('#logo a',{ fontFamily: 'frutigerbold'});


$('document').ready(function(){
	fontSize("#zoom", "#content, #mainmenu, #submenu", 10, 12, 15);
	
	$(".videoesittely").colorbox({iframe:true, innerWidth:780, innerHeight:465, scrolling:false});

	
	  $("#other_sites").hover(
                 function() {

            jQuery.browser.version = jQuery.browser.msie &&
            parseInt(jQuery.browser.version) == 6 &&
            window["XMLHttpRequest"] ?
            "7.0" :
            jQuery.browser.version;
            if(jQuery.browser.version == "7.0") $("#other_sites").removeClass("sfhover");

            $(this).addClass("sfhover");

            },
            function() {$(this).removeClass("sfhover")}
                    );
     



	//$('.newslistlink').textOverflow();
	
	
	$("#ao_sites").click(function(){
	
		$("#sites").slideToggle('fast');
		   
		$(this).toggleClass("ao_sites_active"); return false;
	});
	
	$("#print").click(function(){
	
	 window.print();

	});	
	
	
		

$(".content_wrapper_home #frmHaku").attr("action", "/?Deptid=16322")



    /* Find all friendly UL's */
    $('ul.SearchableSelect').each(function()
    {
      /* Hide list element */
      $(this).css("display", "none");
    
      /* Create new ID for the select, use existent Id of UL but add the _Select prefix */
      var ElementId = $(this).attr("id") + "_Select";
      
      /* Create new Select-element */
      $(this).after("<select id='" + ElementId + "' class='SearchableSelect'></select>");
      
      /* Loop-through list and add children to select */
      $(this).find("li").each(function()
      {
        /* Setup values */
        var Anchor = $(this).find("a").eq(0), Value = (Anchor.length > 0 ? $(Anchor).attr("href") : '');
        var SelectedElement = ($(this).hasClass("SelectedItem") ? ' selected' : '');
        
        /* Add child to select */
        $("#"+ElementId).append("<option value='"+Value+"'"+SelectedElement+">"+$(this).html()+"</option>");
      });
    });
    
    /* Hook selects */
    $("select.SearchableSelect").change(function()
    {
      if(this.value.length > 0) window.location.href = this.value;
    });







});
