$.ajaxSetup({
cache: false
});

$(document).ready(function() {
touchScreen = 0;
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/Android/i))) {
deviceWidth = $(window).width();
deviceHeight = $(window).height();
getViewport = document.querySelector('meta[name=viewport]');
if (deviceWidth < 980) {
getViewport.setAttribute('content', 'width=980;');
} else {
getViewport.setAttribute('content', 'width=' + deviceWidth + ';');
}
touchScreen = 1;
}
$('img#logo').imagesLoaded(function() {
$(this).unbind('load')
.animate({opacity: 0.0}, 0)
.show()
.animate({opacity: 1.0}, {duration: 1000, easing: 'jswing'});
$('p')
.animate({opacity: 0.0}, 0)
.show()
.delay(1000)
.animate({opacity: 1.0}, {duration: 1000, easing: 'jswing'});
});
$('a#email-link').append('showroom@albrightnyc.com');
});

function deactivateLink(i) {
$(i).bind('click.deactivateLink', function(event) {
event.preventDefault();
})
.css({cursor: 'default'});
}

function activateLink(i) {
$(i).unbind('.deactivateLink')
.css({cursor: 'pointer'});
}

//

function sendEmail() {
window.location.href = 'mailto:showroom@albrightnyc.com';
}
