/* HTML5 SHIV */
document.createElement("header");
document.createElement("nav");
document.createElement("section");
document.createElement("article");
document.createElement("aside");
document.createElement("time");
document.createElement("footer");

Cufon('.module h4', {hover: true});
Cufon('.blog_entry h4');
Cufon('#PrimaryColumn01 h5');
Cufon('#Subscribe h2');
Cufon('#Wallpapers h2');

$(function () {
    // Open Mixpod player in new window
    $('.pop_player').popupWindow({
        height: 349,
        width: 620,
        top: 50,
        left: 50,
        location: 0,
        menubar: 0,
        toolbar: 0
    });

    // Clear default text
    $('#Subscribe .text').focus(function () {
        if ($(this).val() == $(this).attr("title")) {
            $(this).val("");
        }
    }).blur(function () {
        if ($(this).val() == "") {
            $(this).val($(this).attr("title"));
        }
    });

    // Open rel="external" links in new window
    $('a[rel=external]').click(function () {
        window.open($(this).attr('href'));
        return false;
    });

    $('.wallpaper_thumbs li.thumb:nth-child(3n)').addClass('margin_fix');

});

