﻿// Example header text. Can be configured in the options.


$(document).ready(function () {
    $('.sidebar').tabSlideOut({
        tabHandle: '.handle',                     //class of the element that will become your tab
        pathToTabImage: '/css/lustjakt/images/links-tab.png', //path to the image for the tab //Optionally can be set using css
        imageHeight: '2000px',                     //height of tab image           //Optionally can be set using css
        imageWidth: '39px',                       //width of tab image            //Optionally can be set using css
        tabLocation: 'right',                      //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: '0px',                          //position from the top/ use if tabLocation is left or right
        fixedPosition: true                      //options: true makes it stick(fixed position) on scroll
    });
});


//$(document).ready(function () {

//    $("#searchQuery").watermark("Sök på webbplatsen");
//    $("#searchQuery").keypress(function (event) {
//        if (event.keyCode == 13) {
//            var query = $("#searchQuery").val();
//            $(location).attr('href', '/sokresultat?s=' + query);
//        }
//    });

//});

//function htmlDecode(value) {
//    return $('<div/>').html(value).text();
//}


