﻿var flKey = '0c87785680a2aad7df076352ce240a03';

$.urlParam = function(name) {
    var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
    if (!results) { return 0; }
    return results[1] || 0;
}

$(document).ready(function() {

    var currPagetitle = document.title
    var hiddenPageTitle = $('#pageTitle').val();
    $(this).attr("title", currPagetitle + " " + hiddenPageTitle);

    var navSelected = $('#selectedCat').val();
    $('#mainNav' + navSelected).css('color', '#F3F3F3');

    $('h1#heading').click(
    function() {
        window.location = "/";
    return false;
    });



});

$(document).ready(function() {
    $("ul.youtubeLinks").ytplaylist({
        addThumbs: true,
        autoPlay: false,
        playerWidth: '430',
        playerHeight: '323',
        thumbSize: 'large',
        showInline: true
    });
});
