var media="large",mqmedium=1200,mqsmall=780,mqxsmall=600,mqxxsmall=420,mqxxxsmall=240;
function mediaCheck(){Modernizr.mq("(min-width: "+(mqmedium+1)+"px)")?media="large":Modernizr.mq("(min-width: "+(mqsmall+1)+"px) and (max-width: "+mqmedium+"px)")?media="medium":Modernizr.mq("(min-width: "+(mqxsmall+1)+"px) and (max-width: "+mqsmall+"px)")?media="small":Modernizr.mq("(min-width: "+(mqxxsmall+1)+"px) and (max-width: "+mqxsmall+"px)")?media="xsmall":Modernizr.mq("(min-width: "+(mqxxxsmall+1)+"px) and (max-width: "+mqxxsmall+"px)")?media="xxsmall":Modernizr.mq("(min-width: 0px) and (max-width: "+
mqxxxsmall+"px)")&&(media="xxxsmall")}function resppic(){$(".resppic").each(function(){var a="";if("large"==media||"medium"==media)a=$(this).attr("data-dtpic");else if("small"==media||"xsmall"==media)a=$(this).attr("data-tabpic");else if("xxsmall"==media||"xxxsmall"==media)a=$(this).attr("data-mobpic");""!==a&&($(this).hasClass("respbg")?$(this).css("background-image","url("+a+")"):$(this).attr("src",a))})}$(window).resize(function(a){mediaCheck();resppic()});mediaCheck();resppic();
$(".togglenav").on("click",function(){$(".mobmenu").toggleClass("active")});$(".togglelist-control").on("click",function(){$(".togglelist-control , .togglelist").toggleClass("active")});$("#contact-email").on("click",function(){ga("send","event","Email link","Clicked","Contact us page email link clicked")});