﻿$(function(){
    $('.slide-out-div').tabSlideOut({
        tabHandle: '.handle',                     //class of the element that will become your tab
        pathToTabImage: '_gfx/contact_tab.gif',   //path to the image for the tab //Optionally can be set using css
        imageHeight: '76px',                      //height of tab image           //Optionally can be set using css
        imageWidth: '36px',                       //width of tab image            //Optionally can be set using css
        tabLocation: 'left',                      //side of screen where tab lives, top, right, bottom, or left
        speed: 300,                               //speed of animation
        action: 'click',                          //options: 'click' or 'hover', action to trigger animation
        topPos: '24px',                           //position from the top/ use if tabLocation is left or right
        leftPos: '60px',                          //position from left/ use if tabLocation is bottom or top
        fixedPosition: true                       //options: true makes it stick(fixed position) on scroll
    }); 
});

$(function(){
    $('.slide-out-div1').tabSlideOut({
        tabHandle: '.handle1',                     //class of the element that will become your tab
        pathToTabImage: '_gfx/logIndTab.gif',   //path to the image for the tab //Optionally can be set using css
        imageHeight: '76px',                      //height of tab image           //Optionally can be set using css
        imageWidth: '36px',                       //width of tab image            //Optionally can be set using css
        tabLocation: 'left',                      //side of screen where tab lives, top, right, bottom, or left
        speed: 300,                               //speed of animation
        action: 'click',                          //options: 'click' or 'hover', action to trigger animation
        topPos: '120px',                           //position from the top/ use if tabLocation is left or right
        leftPos: '60px',                          //position from left/ use if tabLocation is bottom or top
        fixedPosition: true                       //options: true makes it stick(fixed position) on scroll
    }); 
});


var minWidth = 1020;
$(document).ready(function() {    
});

   $(".slide-out-div img a").focus(function() {
        this.blur();
    });
    
// Kontrollere om tab-knappen skal vises, hvilket sker hvis opløsningen er mere en 1024 i bredden
    function resolutionCheck() {
    if ($("body").width() < minWidth) {
        document.getElementById("outerWrapper").style.paddingLeft = 40;
        document.getElementById("outerWrapper").style.width = 945;
    }
};

