$(window).on('load, resize', function mobileViewUpdate() { var viewportWidth = $(window).width(); if ($(window).width() < 500) { $('.galimg').removeClass('6u').addClass('12u'); $(function() { $('#moderna, #integra, #integramatt, #avola, #solent, #solentgl, #image, #vivo, #vivomatt, #metro, #cologne, #lucent, #lucentmatt, #lucentbes, #flaxley, #apollo, #caton, #pendle, #haddington, #cambridge, #kinder, #vivomattbesp, #grantham, #linear, #newmarket, #newmarketbes, #ascot, #abbey').dotdotdot({ after: 'a.readmore' }); }); $(function(){ $('#modernard').click(function() { $('#moderna').animate({height: '100%'}, 1500 ); $('#moderna').trigger('destroy'); $('#modernard').hide(); }); }); $(function(){ $('#integrard').click(function() { $('#integra').animate({height: '100%'}, 1500 ); $('#integra').trigger('destroy'); $('#integrard').hide(); }); }); $(function(){ $('#avolard').click(function() { $('#avola').animate({height: '100%'}, 1500 ); $('#avola').trigger('destroy'); $('#avolard').hide(); }); }); $(function(){ $('#solentrd').click(function() { $('#solent').animate({height: '100%'}, 1500 ); $('#solent').trigger('destroy'); $('#solentrd').hide(); }); }); $(function(){ $('#imagerd').click(function() { $('#image').animate({height: '100%'}, 1500 ); $('#image').trigger('destroy'); $('#imagerd').hide(); }); }); $(function(){ $('#vivord').click(function() { $('#vivo').animate({height: '100%'}, 1500 ); $('#vivo').trigger('destroy'); $('#vivord').hide(); }); }); $(function(){ $('#metrord').click(function() { $('#metro').animate({height: '100%'}, 1500 ); $('#metro').trigger('destroy'); $('#metrord').hide(); }); }); $(function(){ $('#colognerd').click(function() { $('#cologne').animate({height: '100%'}, 1500 ); $('#cologne').trigger('destroy'); $('#colognerd').hide(); }); }); $(function(){ $('#lucentrd').click(function() { $('#lucent').animate({height: '100%'}, 1500 ); $('#lucent').trigger('destroy'); $('#lucentrd').hide(); }); }); $(function(){ $('#flaxleyrd').click(function() { $('#flaxley').animate({height: '100%'}, 1500 ); $('#flaxley').trigger('destroy'); $('#flaxleyrd').hide(); }); }); $(function(){ $('#apollord').click(function() { $('#apollo').animate({height: '100%'}, 1500 ); $('#apollo').trigger('destroy'); $('#apollord').hide(); }); }); $(function(){ $('#catonrd').click(function() { $('#caton').animate({height: '100%'}, 1500 ); $('#caton').trigger('destroy'); $('#catonrd').hide(); }); }); $(function(){ $('#pendlerd').click(function() { $('#pendle').animate({height: '100%'}, 1500 ); $('#pendle').trigger('destroy'); $('#pendlerd').hide(); }); }); $(function(){ $('#haddington').click(function() { $('#haddington').animate({height: '100%'}, 1500 ); $('#haddington').trigger('destroy'); $('#haddingtonrd').hide(); }); }); $(function(){ $('#cambridgerd').click(function() { $('#cambridge').animate({height: '100%'}, 1500 ); $('#cambridge').trigger('destroy'); $('#cambridgerd').hide(); }); }); $(function(){ $('#kinderrd').click(function() { $('#kinder').animate({height: '100%'}, 1500 ); $('#kinder').trigger('destroy'); $('#kinderrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); $(function(){ $('#integramattrd').click(function() { $('#integramatt').animate({height: '100%'}, 1500 ); $('#integramatt').trigger('destroy'); $('#integramattrd').hide(); }); }); $(function(){ $('#vivomattrd').click(function() { $('#vivomatt').animate({height: '100%'}, 1500 ); $('#vivomatt').trigger('destroy'); $('#vivomattrd').hide(); }); }); $(function(){ $('#vivomattbesp').click(function() { $('#vivomattbesp').animate({height: '100%'}, 1500 ); $('#vivomattbesp').trigger('destroy'); $('#vivomattbesprd').hide(); }); }); $(function(){ $('#lucentmattrd').click(function() { $('#lucentmatt').animate({height: '100%'}, 1500 ); $('#lucentmatt').trigger('destroy'); $('#lucentmattrd').hide(); }); }); $(function(){ $('#lucentbesrd').click(function() { $('#lucentbes').animate({height: '100%'}, 1500 ); $('#lucentbes').trigger('destroy'); $('#lucentbesrd').hide(); }); }); $(function(){ $('#solentglrd').click(function() { $('#solentgl').animate({height: '100%'}, 1500 ); $('#solentgl').trigger('destroy'); $('#solentglrd').hide(); }); }); $(function(){ $('#granthamrd').click(function() { $('#grantham').animate({height: '100%'}, 1500 ); $('#grantham').trigger('destroy'); $('#granthamrd').hide(); }); }); $(function(){ $('#linearrd').click(function() { $('#linear').animate({height: '100%'}, 1500 ); $('#linear').trigger('destroy'); $('#linearrd').hide(); }); }); $(function(){ $('#newmarketrd').click(function() { $('#newmarket').animate({height: '100%'}, 1500 ); $('#newmarket').trigger('destroy'); $('#newmarketrd').hide(); }); }); $(function(){ $('#newmarketbesrd').click(function() { $('#newmarketbes').animate({height: '100%'}, 1500 ); $('#newmarketbes').trigger('destroy'); $('#newmarketbesrd').hide(); }); }); $(function(){ $('#ascotrd').click(function() { $('#ascot').animate({height: '100%'}, 1500 ); $('#ascot').trigger('destroy'); $('#ascotrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); } else if ($(window).width() < 1000) { $('.galimg').removeClass('4u').addClass("6u"); $('.nlla').css('max-width','65px'); $(function() { $('#moderna, #integra, #integramatt, #avola, #solent, #solentgl, #image, #vivo, #vivomatt, #metro, #cologne, #lucent, #lucentmatt, #lucentbes, #flaxley, #apollo, #caton, #pendle, #haddington, #cambridge, #kinder, #vivomattbesp, #grantham, #linear, #newmarket, #newmarketbes, #ascot, #abbey').dotdotdot({ after: 'a.readmore' }); }); $(function(){ $('#modernard').click(function() { $('#moderna').animate({height: '100%'}, 1500 ); $('#moderna').trigger('destroy'); $('#modernard').hide(); }); }); $(function(){ $('#integrard').click(function() { $('#integra').animate({height: '100%'}, 1500 ); $('#integra').trigger('destroy'); $('#integrard').hide(); }); }); $(function(){ $('#avolard').click(function() { $('#avola').animate({height: '100%'}, 1500 ); $('#avola').trigger('destroy'); $('#avolard').hide(); }); }); $(function(){ $('#solentrd').click(function() { $('#solent').animate({height: '100%'}, 1500 ); $('#solent').trigger('destroy'); $('#solentrd').hide(); }); }); $(function(){ $('#imagerd').click(function() { $('#image').animate({height: '100%'}, 1500 ); $('#image').trigger('destroy'); $('#imagerd').hide(); }); }); $(function(){ $('#vivord').click(function() { $('#vivo').animate({height: '100%'}, 1500 ); $('#vivo').trigger('destroy'); $('#vivord').hide(); }); }); $(function(){ $('#metrord').click(function() { $('#metro').animate({height: '100%'}, 1500 ); $('#metro').trigger('destroy'); $('#metrord').hide(); }); }); $(function(){ $('#colognerd').click(function() { $('#cologne').animate({height: '100%'}, 1500 ); $('#cologne').trigger('destroy'); $('#colognerd').hide(); }); }); $(function(){ $('#lucentrd').click(function() { $('#lucent').animate({height: '100%'}, 1500 ); $('#lucent').trigger('destroy'); $('#lucentrd').hide(); }); }); $(function(){ $('#flaxleyrd').click(function() { $('#flaxley').animate({height: '100%'}, 1500 ); $('#flaxley').trigger('destroy'); $('#flaxleyrd').hide(); }); }); $(function(){ $('#apollord').click(function() { $('#apollo').animate({height: '100%'}, 1500 ); $('#apollo').trigger('destroy'); $('#apollord').hide(); }); }); $(function(){ $('#catonrd').click(function() { $('#caton').animate({height: '100%'}, 1500 ); $('#caton').trigger('destroy'); $('#catonrd').hide(); }); }); $(function(){ $('#pendlerd').click(function() { $('#pendle').animate({height: '100%'}, 1500 ); $('#pendle').trigger('destroy'); $('#pendlerd').hide(); }); }); $(function(){ $('#haddington').click(function() { $('#haddington').animate({height: '100%'}, 1500 ); $('#haddington').trigger('destroy'); $('#haddingtonrd').hide(); }); }); $(function(){ $('#cambridgerd').click(function() { $('#cambridge').animate({height: '100%'}, 1500 ); $('#cambridge').trigger('destroy'); $('#cambridgerd').hide(); }); }); $(function(){ $('#kinderrd').click(function() { $('#kinder').animate({height: '100%'}, 1500 ); $('#kinder').trigger('destroy'); $('#kinderrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); $(function(){ $('#integramattrd').click(function() { $('#integramatt').animate({height: '100%'}, 1500 ); $('#integramatt').trigger('destroy'); $('#integramattrd').hide(); }); }); $(function(){ $('#vivomattrd').click(function() { $('#vivomatt').animate({height: '100%'}, 1500 ); $('#vivomatt').trigger('destroy'); $('#vivomattrd').hide(); }); }); $(function(){ $('#vivomattbesp').click(function() { $('#vivomattbesp').animate({height: '100%'}, 1500 ); $('#vivomattbesp').trigger('destroy'); $('#vivomattbesprd').hide(); }); }); $(function(){ $('#lucentmattrd').click(function() { $('#lucentmatt').animate({height: '100%'}, 1500 ); $('#lucentmatt').trigger('destroy'); $('#lucentmattrd').hide(); }); }); $(function(){ $('#lucentbesrd').click(function() { $('#lucentbes').animate({height: '100%'}, 1500 ); $('#lucentbes').trigger('destroy'); $('#lucentbesrd').hide(); }); }); $(function(){ $('#solentglrd').click(function() { $('#solentgl').animate({height: '100%'}, 1500 ); $('#solentgl').trigger('destroy'); $('#solentglrd').hide(); }); }); $(function(){ $('#granthamrd').click(function() { $('#grantham').animate({height: '100%'}, 1500 ); $('#grantham').trigger('destroy'); $('#granthamrd').hide(); }); }); $(function(){ $('#linearrd').click(function() { $('#linear').animate({height: '100%'}, 1500 ); $('#linear').trigger('destroy'); $('#linearrd').hide(); }); }); $(function(){ $('#newmarketrd').click(function() { $('#newmarket').animate({height: '100%'}, 1500 ); $('#newmarket').trigger('destroy'); $('#newmarketrd').hide(); }); }); $(function(){ $('#newmarketbesrd').click(function() { $('#newmarketbes').animate({height: '100%'}, 1500 ); $('#newmarketbes').trigger('destroy'); $('#newmarketbesrd').hide(); }); }); $(function(){ $('#ascotrd').click(function() { $('#ascot').animate({height: '100%'}, 1500 ); $('#ascot').trigger('destroy'); $('#ascotrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); $('.divdiv3').hide(); $('.divdiv2').show(); } else { $('.galimg').removeClass('6u').removeClass("12u"); $('.galimg').addClass("4u"); $('.divdiv3').show(); $('.divdiv2').hide(); $('.nlla').css('max-width','85px'); $(function() { $('#moderna, #integra, #integramatt, #avola, #solent, #solentgl, #image, #vivo, #vivomatt, #metro, #cologne, #lucent, #lucentmatt, #lucentbes, #flaxley, #apollo, #caton, #pendle, #haddington, #cambridge, #kinder, #vivomattbesp, #grantham, #linear, #newmarket, #newmarketbes, #ascot, #abbey').dotdotdot({ after: 'a.readmore' }); }); $(function(){ $('#modernard').click(function() { $('#moderna').animate({height: '100%'}, 1500 ); $('#moderna').trigger('destroy'); $('#modernard').hide(); }); }); $(function(){ $('#integrard').click(function() { $('#integra').animate({height: '100%'}, 1500 ); $('#integra').trigger('destroy'); $('#integrard').hide(); }); }); $(function(){ $('#avolard').click(function() { $('#avola').animate({height: '100%'}, 1500 ); $('#avola').trigger('destroy'); $('#avolard').hide(); }); }); $(function(){ $('#solentrd').click(function() { $('#solent').animate({height: '100%'}, 1500 ); $('#solent').trigger('destroy'); $('#solentrd').hide(); }); }); $(function(){ $('#imagerd').click(function() { $('#image').animate({height: '100%'}, 1500 ); $('#image').trigger('destroy'); $('#imagerd').hide(); }); }); $(function(){ $('#vivord').click(function() { $('#vivo').animate({height: '100%'}, 1500 ); $('#vivo').trigger('destroy'); $('#vivord').hide(); }); }); $(function(){ $('#metrord').click(function() { $('#metro').animate({height: '100%'}, 1500 ); $('#metro').trigger('destroy'); $('#metrord').hide(); }); }); $(function(){ $('#colognerd').click(function() { $('#cologne').animate({height: '100%'}, 1500 ); $('#cologne').trigger('destroy'); $('#colognerd').hide(); }); }); $(function(){ $('#lucentrd').click(function() { $('#lucent').animate({height: '100%'}, 1500 ); $('#lucent').trigger('destroy'); $('#lucentrd').hide(); }); }); $(function(){ $('#flaxleyrd').click(function() { $('#flaxley').animate({height: '100%'}, 1500 ); $('#flaxley').trigger('destroy'); $('#flaxleyrd').hide(); }); }); $(function(){ $('#apollord').click(function() { $('#apollo').animate({height: '100%'}, 1500 ); $('#apollo').trigger('destroy'); $('#apollord').hide(); }); }); $(function(){ $('#catonrd').click(function() { $('#caton').animate({height: '100%'}, 1500 ); $('#caton').trigger('destroy'); $('#catonrd').hide(); }); }); $(function(){ $('#pendlerd').click(function() { $('#pendle').animate({height: '100%'}, 1500 ); $('#pendle').trigger('destroy'); $('#pendlerd').hide(); }); }); $(function(){ $('#haddington').click(function() { $('#haddington').animate({height: '100%'}, 1500 ); $('#haddington').trigger('destroy'); $('#haddingtonrd').hide(); }); }); $(function(){ $('#cambridgerd').click(function() { $('#cambridge').animate({height: '100%'}, 1500 ); $('#cambridge').trigger('destroy'); $('#cambridgerd').hide(); }); }); $(function(){ $('#kinderrd').click(function() { $('#kinder').animate({height: '100%'}, 1500 ); $('#kinder').trigger('destroy'); $('#kinderrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); $(function(){ $('#integramattrd').click(function() { $('#integramatt').animate({height: '100%'}, 1500 ); $('#integramatt').trigger('destroy'); $('#integramattrd').hide(); }); }); $(function(){ $('#vivomattrd').click(function() { $('#vivomatt').animate({height: '100%'}, 1500 ); $('#vivomatt').trigger('destroy'); $('#vivomattrd').hide(); }); }); $(function(){ $('#vivomattbesp').click(function() { $('#vivomattbesp').animate({height: '100%'}, 1500 ); $('#vivomattbesp').trigger('destroy'); $('#vivomattbesprd').hide(); }); }); $(function(){ $('#lucentmattrd').click(function() { $('#lucentmatt').animate({height: '100%'}, 1500 ); $('#lucentmatt').trigger('destroy'); $('#lucentmattrd').hide(); }); }); $(function(){ $('#lucentbesrd').click(function() { $('#lucentbes').animate({height: '100%'}, 1500 ); $('#lucentbes').trigger('destroy'); $('#lucentbesrd').hide(); }); }); $(function(){ $('#solentglrd').click(function() { $('#solentgl').animate({height: '100%'}, 1500 ); $('#solentgl').trigger('destroy'); $('#solentglrd').hide(); }); }); $(function(){ $('#granthamrd').click(function() { $('#grantham').animate({height: '100%'}, 1500 ); $('#grantham').trigger('destroy'); $('#granthamrd').hide(); }); }); $(function(){ $('#linearrd').click(function() { $('#linear').animate({height: '100%'}, 1500 ); $('#linear').trigger('destroy'); $('#linearrd').hide(); }); }); $(function(){ $('#newmarketrd').click(function() { $('#newmarket').animate({height: '100%'}, 1500 ); $('#newmarket').trigger('destroy'); $('#newmarketrd').hide(); }); }); $(function(){ $('#newmarketbesrd').click(function() { $('#newmarketbes').animate({height: '100%'}, 1500 ); $('#newmarketbes').trigger('destroy'); $('#newmarketbesrd').hide(); }); }); $(function(){ $('#ascotrd').click(function() { $('#ascot').animate({height: '100%'}, 1500 ); $('#ascot').trigger('destroy'); $('#ascotrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); } }); $(document).ready(function() { function checkWidth() { if ($(window).width() < 500) { $('.galimg').removeClass('4u').addClass("12u"); $(function() { $('#moderna, #integra, #integramatt, #avola, #solent, #solentgl, #image, #vivo, #vivomatt, #metro, #cologne, #lucent, #lucentmatt, #lucentbes, #flaxley, #apollo, #caton, #pendle, #haddington, #cambridge, #kinder, #vivomattbesp, #grantham, #linear, #newmarket, #newmarketbes, #ascot, #abbey').dotdotdot({ after: 'a.readmore' }); }); $(function(){ $('#modernard').click(function() { $('#moderna').animate({height: '100%'}, 1500 ); $('#moderna').trigger('destroy'); $('#modernard').hide(); }); }); $(function(){ $('#integrard').click(function() { $('#integra').animate({height: '100%'}, 1500 ); $('#integra').trigger('destroy'); $('#integrard').hide(); }); }); $(function(){ $('#avolard').click(function() { $('#avola').animate({height: '100%'}, 1500 ); $('#avola').trigger('destroy'); $('#avolard').hide(); }); }); $(function(){ $('#solentrd').click(function() { $('#solent').animate({height: '100%'}, 1500 ); $('#solent').trigger('destroy'); $('#solentrd').hide(); }); }); $(function(){ $('#imagerd').click(function() { $('#image').animate({height: '100%'}, 1500 ); $('#image').trigger('destroy'); $('#imagerd').hide(); }); }); $(function(){ $('#vivord').click(function() { $('#vivo').animate({height: '100%'}, 1500 ); $('#vivo').trigger('destroy'); $('#vivord').hide(); }); }); $(function(){ $('#metrord').click(function() { $('#metro').animate({height: '100%'}, 1500 ); $('#metro').trigger('destroy'); $('#metrord').hide(); }); }); $(function(){ $('#colognerd').click(function() { $('#cologne').animate({height: '100%'}, 1500 ); $('#cologne').trigger('destroy'); $('#colognerd').hide(); }); }); $(function(){ $('#lucentrd').click(function() { $('#lucent').animate({height: '100%'}, 1500 ); $('#lucent').trigger('destroy'); $('#lucentrd').hide(); }); }); $(function(){ $('#flaxleyrd').click(function() { $('#flaxley').animate({height: '100%'}, 1500 ); $('#flaxley').trigger('destroy'); $('#flaxleyrd').hide(); }); }); $(function(){ $('#apollord').click(function() { $('#apollo').animate({height: '100%'}, 1500 ); $('#apollo').trigger('destroy'); $('#apollord').hide(); }); }); $(function(){ $('#catonrd').click(function() { $('#caton').animate({height: '100%'}, 1500 ); $('#caton').trigger('destroy'); $('#catonrd').hide(); }); }); $(function(){ $('#pendlerd').click(function() { $('#pendle').animate({height: '100%'}, 1500 ); $('#pendle').trigger('destroy'); $('#pendlerd').hide(); }); }); $(function(){ $('#haddington').click(function() { $('#haddington').animate({height: '100%'}, 1500 ); $('#haddington').trigger('destroy'); $('#haddingtonrd').hide(); }); }); $(function(){ $('#cambridgerd').click(function() { $('#cambridge').animate({height: '100%'}, 1500 ); $('#cambridge').trigger('destroy'); $('#cambridgerd').hide(); }); }); $(function(){ $('#kinderrd').click(function() { $('#kinder').animate({height: '100%'}, 1500 ); $('#kinder').trigger('destroy'); $('#kinderrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); $(function(){ $('#integramattrd').click(function() { $('#integramatt').animate({height: '100%'}, 1500 ); $('#integramatt').trigger('destroy'); $('#integramattrd').hide(); }); }); $(function(){ $('#vivomattrd').click(function() { $('#vivomatt').animate({height: '100%'}, 1500 ); $('#vivomatt').trigger('destroy'); $('#vivomattrd').hide(); }); }); $(function(){ $('#vivomattbesp').click(function() { $('#vivomattbesp').animate({height: '100%'}, 1500 ); $('#vivomattbesp').trigger('destroy'); $('#vivomattbesprd').hide(); }); }); $(function(){ $('#lucentmattrd').click(function() { $('#lucentmatt').animate({height: '100%'}, 1500 ); $('#lucentmatt').trigger('destroy'); $('#lucentmattrd').hide(); }); }); $(function(){ $('#lucentbesrd').click(function() { $('#lucentbes').animate({height: '100%'}, 1500 ); $('#lucentbes').trigger('destroy'); $('#lucentbesrd').hide(); }); }); $(function(){ $('#solentglrd').click(function() { $('#solentgl').animate({height: '100%'}, 1500 ); $('#solentgl').trigger('destroy'); $('#solentglrd').hide(); }); }); $(function(){ $('#granthamrd').click(function() { $('#grantham').animate({height: '100%'}, 1500 ); $('#grantham').trigger('destroy'); $('#granthamrd').hide(); }); }); $(function(){ $('#linearrd').click(function() { $('#linear').animate({height: '100%'}, 1500 ); $('#linear').trigger('destroy'); $('#linearrd').hide(); }); }); $(function(){ $('#newmarketrd').click(function() { $('#newmarket').animate({height: '100%'}, 1500 ); $('#newmarket').trigger('destroy'); $('#newmarketrd').hide(); }); }); $(function(){ $('#newmarketbesrd').click(function() { $('#newmarketbes').animate({height: '100%'}, 1500 ); $('#newmarketbes').trigger('destroy'); $('#newmarketbesrd').hide(); }); }); $(function(){ $('#ascotrd').click(function() { $('#ascot').animate({height: '100%'}, 1500 ); $('#ascot').trigger('destroy'); $('#ascotrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); } else if ($(window).width() < 1000) { $('.galimg').removeClass('4u').addClass("6u"); $('.nlla').css('max-width','65px'); $(function() { $('#moderna, #integra, #integramatt, #avola, #solent, #solentgl, #image, #vivo, #vivomatt, #metro, #cologne, #lucent, #lucentmatt, #lucentbes, #flaxley, #apollo, #caton, #pendle, #haddington, #cambridge, #kinder, #vivomattbesp, #grantham, #linear, #newmarket, #newmarketbes, #ascot, #abbey').dotdotdot({ after: 'a.readmore' }); }); $(function(){ $('#modernard').click(function() { $('#moderna').animate({height: '100%'}, 1500 ); $('#moderna').trigger('destroy'); $('#modernard').hide(); }); }); $(function(){ $('#integrard').click(function() { $('#integra').animate({height: '100%'}, 1500 ); $('#integra').trigger('destroy'); $('#integrard').hide(); }); }); $(function(){ $('#avolard').click(function() { $('#avola').animate({height: '100%'}, 1500 ); $('#avola').trigger('destroy'); $('#avolard').hide(); }); }); $(function(){ $('#solentrd').click(function() { $('#solent').animate({height: '100%'}, 1500 ); $('#solent').trigger('destroy'); $('#solentrd').hide(); }); }); $(function(){ $('#imagerd').click(function() { $('#image').animate({height: '100%'}, 1500 ); $('#image').trigger('destroy'); $('#imagerd').hide(); }); }); $(function(){ $('#vivord').click(function() { $('#vivo').animate({height: '100%'}, 1500 ); $('#vivo').trigger('destroy'); $('#vivord').hide(); }); }); $(function(){ $('#metrord').click(function() { $('#metro').animate({height: '100%'}, 1500 ); $('#metro').trigger('destroy'); $('#metrord').hide(); }); }); $(function(){ $('#colognerd').click(function() { $('#cologne').animate({height: '100%'}, 1500 ); $('#cologne').trigger('destroy'); $('#colognerd').hide(); }); }); $(function(){ $('#lucentrd').click(function() { $('#lucent').animate({height: '100%'}, 1500 ); $('#lucent').trigger('destroy'); $('#lucentrd').hide(); }); }); $(function(){ $('#flaxleyrd').click(function() { $('#flaxley').animate({height: '100%'}, 1500 ); $('#flaxley').trigger('destroy'); $('#flaxleyrd').hide(); }); }); $(function(){ $('#apollord').click(function() { $('#apollo').animate({height: '100%'}, 1500 ); $('#apollo').trigger('destroy'); $('#apollord').hide(); }); }); $(function(){ $('#catonrd').click(function() { $('#caton').animate({height: '100%'}, 1500 ); $('#caton').trigger('destroy'); $('#catonrd').hide(); }); }); $(function(){ $('#pendlerd').click(function() { $('#pendle').animate({height: '100%'}, 1500 ); $('#pendle').trigger('destroy'); $('#pendlerd').hide(); }); }); $(function(){ $('#haddington').click(function() { $('#haddington').animate({height: '100%'}, 1500 ); $('#haddington').trigger('destroy'); $('#haddingtonrd').hide(); }); }); $(function(){ $('#cambridgerd').click(function() { $('#cambridge').animate({height: '100%'}, 1500 ); $('#cambridge').trigger('destroy'); $('#cambridgerd').hide(); }); }); $(function(){ $('#kinderrd').click(function() { $('#kinder').animate({height: '100%'}, 1500 ); $('#kinder').trigger('destroy'); $('#kinderrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); $(function(){ $('#integramattrd').click(function() { $('#integramatt').animate({height: '100%'}, 1500 ); $('#integramatt').trigger('destroy'); $('#integramattrd').hide(); }); }); $(function(){ $('#vivomattrd').click(function() { $('#vivomatt').animate({height: '100%'}, 1500 ); $('#vivomatt').trigger('destroy'); $('#vivomattrd').hide(); }); }); $(function(){ $('#vivomattbesp').click(function() { $('#vivomattbesp').animate({height: '100%'}, 1500 ); $('#vivomattbesp').trigger('destroy'); $('#vivomattbesprd').hide(); }); }); $(function(){ $('#lucentmattrd').click(function() { $('#lucentmatt').animate({height: '100%'}, 1500 ); $('#lucentmatt').trigger('destroy'); $('#lucentmattrd').hide(); }); }); $(function(){ $('#lucentbesrd').click(function() { $('#lucentbes').animate({height: '100%'}, 1500 ); $('#lucentbes').trigger('destroy'); $('#lucentbesrd').hide(); }); }); $(function(){ $('#solentglrd').click(function() { $('#solentgl').animate({height: '100%'}, 1500 ); $('#solentgl').trigger('destroy'); $('#solentglrd').hide(); }); }); $(function(){ $('#granthamrd').click(function() { $('#grantham').animate({height: '100%'}, 1500 ); $('#grantham').trigger('destroy'); $('#granthamrd').hide(); }); }); $(function(){ $('#linearrd').click(function() { $('#linear').animate({height: '100%'}, 1500 ); $('#linear').trigger('destroy'); $('#linearrd').hide(); }); }); $(function(){ $('#newmarketrd').click(function() { $('#newmarket').animate({height: '100%'}, 1500 ); $('#newmarket').trigger('destroy'); $('#newmarketrd').hide(); }); }); $(function(){ $('#newmarketbesrd').click(function() { $('#newmarketbes').animate({height: '100%'}, 1500 ); $('#newmarketbes').trigger('destroy'); $('#newmarketbesrd').hide(); }); }); $(function(){ $('#ascotrd').click(function() { $('#ascot').animate({height: '100%'}, 1500 ); $('#ascot').trigger('destroy'); $('#ascotrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); $('.divdiv3').hide(); $('.divdiv2').show(); } else { $('.galimg').removeClass('6u').removeClass("12u"); $('.galimg').addClass("4u"); $('.divdiv3').show(); $('.divdiv2').hide(); $('.nlla').css('max-width','85px'); $(function() { $('#moderna, #integra, #integramatt, #avola, #solent, #solentgl, #image, #vivo, #vivomatt, #metro, #cologne, #lucent, #lucentmatt, #lucentbes, #flaxley, #apollo, #caton, #pendle, #haddington, #cambridge, #kinder, #vivomattbesp, #grantham, #linear, #newmarket, #newmarketbes, #ascot, #abbey').dotdotdot({ after: 'a.readmore' }); }); $(function(){ $('#modernard').click(function() { $('#moderna').animate({height: '100%'}, 1500 ); $('#moderna').trigger('destroy'); $('#modernard').hide(); }); }); $(function(){ $('#integrard').click(function() { $('#integra').animate({height: '100%'}, 1500 ); $('#integra').trigger('destroy'); $('#integrard').hide(); }); }); $(function(){ $('#avolard').click(function() { $('#avola').animate({height: '100%'}, 1500 ); $('#avola').trigger('destroy'); $('#avolard').hide(); }); }); $(function(){ $('#solentrd').click(function() { $('#solent').animate({height: '100%'}, 1500 ); $('#solent').trigger('destroy'); $('#solentrd').hide(); }); }); $(function(){ $('#imagerd').click(function() { $('#image').animate({height: '100%'}, 1500 ); $('#image').trigger('destroy'); $('#imagerd').hide(); }); }); $(function(){ $('#vivord').click(function() { $('#vivo').animate({height: '100%'}, 1500 ); $('#vivo').trigger('destroy'); $('#vivord').hide(); }); }); $(function(){ $('#metrord').click(function() { $('#metro').animate({height: '100%'}, 1500 ); $('#metro').trigger('destroy'); $('#metrord').hide(); }); }); $(function(){ $('#colognerd').click(function() { $('#cologne').animate({height: '100%'}, 1500 ); $('#cologne').trigger('destroy'); $('#colognerd').hide(); }); }); $(function(){ $('#lucentrd').click(function() { $('#lucent').animate({height: '100%'}, 1500 ); $('#lucent').trigger('destroy'); $('#lucentrd').hide(); }); }); $(function(){ $('#flaxleyrd').click(function() { $('#flaxley').animate({height: '100%'}, 1500 ); $('#flaxley').trigger('destroy'); $('#flaxleyrd').hide(); }); }); $(function(){ $('#apollord').click(function() { $('#apollo').animate({height: '100%'}, 1500 ); $('#apollo').trigger('destroy'); $('#apollord').hide(); }); }); $(function(){ $('#catonrd').click(function() { $('#caton').animate({height: '100%'}, 1500 ); $('#caton').trigger('destroy'); $('#catonrd').hide(); }); }); $(function(){ $('#pendlerd').click(function() { $('#pendle').animate({height: '100%'}, 1500 ); $('#pendle').trigger('destroy'); $('#pendlerd').hide(); }); }); $(function(){ $('#haddington').click(function() { $('#haddington').animate({height: '100%'}, 1500 ); $('#haddington').trigger('destroy'); $('#haddingtonrd').hide(); }); }); $(function(){ $('#cambridgerd').click(function() { $('#cambridge').animate({height: '100%'}, 1500 ); $('#cambridge').trigger('destroy'); $('#cambridgerd').hide(); }); }); $(function(){ $('#kinderrd').click(function() { $('#kinder').animate({height: '100%'}, 1500 ); $('#kinder').trigger('destroy'); $('#kinderrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); $(function(){ $('#integramattrd').click(function() { $('#integramatt').animate({height: '100%'}, 1500 ); $('#integramatt').trigger('destroy'); $('#integramattrd').hide(); }); }); $(function(){ $('#vivomattrd').click(function() { $('#vivomatt').animate({height: '100%'}, 1500 ); $('#vivomatt').trigger('destroy'); $('#vivomattrd').hide(); }); }); $(function(){ $('#vivomattbesp').click(function() { $('#vivomattbesp').animate({height: '100%'}, 1500 ); $('#vivomattbesp').trigger('destroy'); $('#vivomattbesprd').hide(); }); }); $(function(){ $('#lucentmattrd').click(function() { $('#lucentmatt').animate({height: '100%'}, 1500 ); $('#lucentmatt').trigger('destroy'); $('#lucentmattrd').hide(); }); }); $(function(){ $('#lucentbesrd').click(function() { $('#lucentbes').animate({height: '100%'}, 1500 ); $('#lucentbes').trigger('destroy'); $('#lucentbesrd').hide(); }); }); $(function(){ $('#solentglrd').click(function() { $('#solentgl').animate({height: '100%'}, 1500 ); $('#solentgl').trigger('destroy'); $('#solentglrd').hide(); }); }); $(function(){ $('#granthamrd').click(function() { $('#grantham').animate({height: '100%'}, 1500 ); $('#grantham').trigger('destroy'); $('#granthamrd').hide(); }); }); $(function(){ $('#linearrd').click(function() { $('#linear').animate({height: '100%'}, 1500 ); $('#linear').trigger('destroy'); $('#linearrd').hide(); }); }); $(function(){ $('#newmarketrd').click(function() { $('#newmarket').animate({height: '100%'}, 1500 ); $('#newmarket').trigger('destroy'); $('#newmarketrd').hide(); }); }); $(function(){ $('#newmarketbesrd').click(function() { $('#newmarketbes').animate({height: '100%'}, 1500 ); $('#newmarketbes').trigger('destroy'); $('#newmarketbesrd').hide(); }); }); $(function(){ $('#ascotrd').click(function() { $('#ascot').animate({height: '100%'}, 1500 ); $('#ascot').trigger('destroy'); $('#ascotrd').hide(); }); }); $(function(){ $('#abbeyrd').click(function() { $('#abbey').animate({height: '100%'}, 1500 ); $('#abbey').trigger('destroy'); $('#abbeyrd').hide(); }); }); } } $(window).load(checkWidth); });