screen and (max-width: 480px){ table[class=templateContainer],table[id=templateColumns],table[class=templateColumn]{ max-width:600px !important; width:100% !important; }} @media only screen and (max-width: 480px){ h1{ font-size:24px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ h2{ font-size:20px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ h3{ font-size:18px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ h4{ font-size:16px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ table[class=mcnBoxedTextContentContainer] td[class=mcnTextContent],td[class=mcnBoxedTextContentContainer] td[class=mcnTextContent] p{ font-size:18px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ table[id=templatePreheader]{ display:block !important; }} @media only screen and (max-width: 480px){ td[class=preheaderContainer] td[class=mcnTextContent],td[class=preheaderContainer] td[class=mcnTextContent] p{ font-size:14px !important; line-height:115% !important; }} @media only screen and (max-width: 480px){ td[class=headerContainer] td[class=mcnTextContent],td[class=headerContainer] td[class=mcnTextContent] p{ font-size:18px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ td[class=leftColumnContainer] td[class=mcnTextContent],td[class=leftColumnContainer] td[class=mcnTextContent] p{ font-size:18px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ td[class=rightColumnContainer] td[class=mcnTextContent],td[class=rightColumnContainer] td[class=mcnTextContent] p{ font-size:18px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ td[class=bodyContainer] td[class=mcnTextContent],td[class=bodyContainer] td[class=mcnTextContent] p{ font-size:18px !important; line-height:125% !important; }} @media only screen and (max-width: 480px){ td[class=footerContainer] td[class=mcnTextContent],td[class=footerContainer] td[class=mcnTextContent] p{ font-size:14px !important; line-height:115% !important; }} @media only screen and (max-width: 480px){ td[class=footerContainer] a[class=utilityLink]{ display:block !important; }} var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var _gaq = _gaq || []; _gaq.push(["_setAccount", "UA-329148-88"]); _gaq.push(["_setDomainName", ".campaign-archive.com"]); _gaq.push(["_trackPageview"]); _gaq.push(["_setAllowLinker", true]); } catch(err) {console.log(err);} $(document).ready(function() { ZeroClipboard.setDefaults({ moviePath: "//downloads.mailchimp.com/ZeroClipboard.07.13.swf", trustedDomains: ['us3.campaign-archive1.com']}); var clip = new ZeroClipboard( $('#copyURL') ); clip.setHandCursor(true); clip.on('complete', function(client, args) {alert('Copied "'+args.text+'" to your clipboard.');}); clip.on('mouseover', function (client) { $('#copyURL').addClass('hover'); }); clip.on('mouseout', function (client) { $('#copyURL').removeClass('hover'); }); $('li.more > a').click(function(){ var toToggle = $($(this).attr('href')); if(toToggle.is(':visible')){ toToggle.slideUp('fast'); $(this).removeClass('is-active'); if ($('#awesomebar').find('.is-active').length < 1){ $('#awesomebar').removeClass('sub-active'); } } else { toToggle.slideDown('fast'); $(this).addClass('is-active'); $('#awesomebar').addClass('sub-active'); } return false; }); }); function updateFacebookCommentsCount(num) { $('#campaign-fb-comments-btn span').fadeOut().html(num).fadeIn(); } function incrementFacebookLikeCount() { var current = parseInt($('#campaign-fb-like-btn span').html()); $('#campaign-fb-like-btn span').fadeOut().html(++current).fadeIn(); } function getUrlParams(str) { var vars = {}, hash; if (!str) return vars; var hashes = str.slice(str.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars[hash[0]] = hash[1]; } return vars; } function setupSocialSharingStuffs() { var numSocialElems = $('a[rel=socialproxy]').length; var numSocialInitialized = 0; var urlParams = getUrlParams(window.document.location.href); var paramsToCopy = {'e':true, 'eo':true}; $('a[rel=socialproxy]').each(function() { var href = $(this).attr('href'); var newHref = decodeURIComponent(href.match(/socialproxy=(.*)/)[1]); // for facebook insanity to work well, it needs to all be run against just campaign-archive newHref = newHref.replace(/campaign-archive(\d)/gi, 'campaign-archive'); var newHrefParams = getUrlParams(newHref); for(var param in urlParams) { if ((param in paramsToCopy) && !(param in newHrefParams)) { newHref += '&' + param + '=' + urlParams[param]; } } $(this).attr('href', newHref); if (href.indexOf('facebook-comment') !== -1) { $(this).fancyZoom({"zoom_id": "social-proxy", "width":620, "height":450, "iframe_height": 450}); } else { $(this).fancyZoom({"zoom_id": "social-proxy", "width":500, "height":200, "iframe_height": 500}); } numSocialInitialized++; }); } if (window.top!=window.self){ $(function() { var iframeOffset = $("#archive", window.parent.document).offset(); $("a").each(function () { var link = $(this); var href = link.attr("href"); if (href && href[0] == "#") { var name = href.substring(1); $(this).click(function () { var nameElement = $("[name='" + name + "']"); var idElement = $("#" + name); var element = null; if (nameElement.length > 0) { element = nameElement; } else if (idElement.length > 0) { element = idElement; } if