﻿$(document).ready(function () {

    if ($(".news").length) {
        $.jGFeed('http://pxtech.blogspot.com/rss.xml',
        function (feeds) {
            // Check for errors
            if (!feeds) {
                // there was an error
                return null;
            }

            for (var i = 0; i < feeds.entries.length; i++) {
                var entry = feeds.entries[i];
                var date = new Date(entry.publishedDate);

                $(".news").append("<p><a href='" + entry.link + "' class='title' target='_blank'>" + entry.title + "</a><br/><span class='date'>" + dateFormat(date, "dddd, mmmm dS") + "</span></p>");
            }
        }, 6);
    }

    //ipad and iphone fix
    if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
        $("#menu li").click(function () {
            //we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
            //strange
        });
    }





});
