var height = $(window).height(),
width = $(window).width();
if (height > 600 && width > 1900) {
$('.....').animate({
param1: value1,
param2: value2},
speed, function() {
});
} else {
$('.....').animate({
param1: value1,
param2: value2},
speed, function() {
});
};
$('.....').animate