﻿/// <reference path="jquery-1.6.1-vsdoc.js" />
/// <reference path="jquery.pinify.js" />
/// <reference path="jquery-ui.js" />

$(function () {
    $('head').pinify({
        applicationName: 'Developer Smackdown',
        toolTip: 'Developer Smackdown',
        navColor: '#d9531f',
        startUrl: '/',

        tasks: [
            {
                'name': 'The Archives',
                'action': '/archives'
            },
            {
                'name': 'On Twitter',
                'action': 'http://twitter.com/DevSmackdown'
            },
            {
                'name': 'Clark Sell',
                'action': 'http://ClarkSell.info'
            },
            {
                'name': 'Mark Nichols',
                'action': 'http://MarkNic.net'
            }
        ]
    });

    $('#pinChadContainer').pinify('pinTeaser', {
        type: 'brandedTopHat',
        pinText: 'Unlock the hidden powers of this site with a click and a drag.',
        secondaryText: 'Drag the icon to your taskbar.',
        addStartLink: false,
        style: {
            backgroundImage: 'Content/images/branding_bar_custom_bg.png',
            closeButtonImage: 'Content/images/toolbar-bg.png'
        }
    });

//    if ($.ie9ify.isPinned()) {
//        $.getJSON('Gallery/List', function (data) {
//            var itemList = [];

//            $.each(data, function (key, val) {
//                var item = {
//                    'name': data[key].name,
//                    'url': 'Gallery/View/' + data[key].id,
//                    'icon': '/Content/Images/icon-gallery.ico'
//                };

//                itemList.push(item);
//            });

//            $.ie9ify.addJumpList({
//                title: 'Photo Galleries',
//                items: itemList
//            });
//        });
        
});
