﻿/// <reference path="../jQuery.intellisense.js" />


$(document).ready(function() {

    var colorArr = new Array();
    colorArr[0] = "rod";
    colorArr[1] = "gron";
    colorArr[2] = "brun";
    colorArr[3] = "gul";
    colorArr[4] = "svart";
    colorArr[5] = "orange";
    colorArr[6] = "rosa";
    colorArr[7] = "bla";
    var rndNr = Math.floor(Math.random() * colorArr.length);
    $("#headingColor").addClass(colorArr[rndNr]);

    Cufon.replace($("#menu li a"), { fontFamily: "Titillium_800" });
    Cufon.replace($("h1"), { fontFamily: "Titillium_600" });
    Cufon.replace($("h2"), { fontFamily: "Titillium_600" });
    Cufon.replace($(".puff h1, .puff_w h1"), { fontFamily: "Univers55" });

    //$(".table_info tr:odd").css("background-color", "#f2f2f2");
    $(".table_info tr:odd").addClass("odd");
    $("#menu ul li.level1").hover(
    function() {
        $(this).find("ul").css("display", "block");
        $(this).addClass("hover_bg");
    }
    ,
    function() {
        $(this).find("ul").css("display", "none");
        $(this).removeClass("hover_bg");
    }
    );

});
