/* =========================================================

// Holmbergs.js

// Datum: 2010-02-11
// Firma: AddPro AB
// Author: Erik Fälth

// ========================================================= */

//Rotate image on startpage
$(document).ready(function() {
    $('#image_rotate').innerfade({
        speed: 'slow',
        timeout: $("#timeoutVal").val(),
        type: 'sequence',
        containerheight: '220px'
    });
});

//Set search textbox
$(function() {
    swapValues = [];
    $(".swap_value").each(function(i) {
        swapValues[i] = $(this).val();
        $(this).focus(function() {
            if ($(this).val() == swapValues[i]) {
                $(this).val("");
            }
        }).blur(function() {
            if ($.trim($(this).val()) == "") {
                $(this).val(swapValues[i]);
            }
        });
    });
});

// Change font type
//Cufon.replace('#main-nav a', { fontFamily: 'frutiger-light' });
//Cufon.replace('.quick-link a', { fontFamily: 'frutiger-light' });

