function isiPhone(){
    return (
        (navigator.platform.indexOf("iPhone") != -1) ||
        (navigator.platform.indexOf("iPod") != -1)
    );
}

if(isiPhone()){
    //window.location = "mob.example.com";
}


$('a.projectImageThumb').each(function () {
    $(this).click(function () {
        var src = $(this).attr('href');
        if (src != $('img#projectImage').attr('src').replace(/\?(.*)/, '')) {
            //$('img#projectImage').stop().animate({ opacity: '0' }, function () {
            //    $(this).attr('src', src + '?' + Math.floor(Math.random() * (10 * 100)));
            //}).load(function () {
            //    $(this).stop().animate({ opacity: '1' });
            $('img#projectImage').attr('src', src);
            //});
        }
        return false;
    });
});
