var density_statEffect = null; var density_photosetEffect = null; function density_init() { //remember the screen's width setCookie('manifestdensity_screen_width',screen.width,'Tue, 10 Feb 2015 08:37:05 -0500'); // playtagger replacement jQuery('a').each(function(i){ var href = jQuery(this).attr('href'); if(href) { if(href.match(/\.mp3$/i)) { jQuery(this).jmp3({ 'filepath' : href, 'backcolor': '000000', 'forecolor': 'ffffff', 'autoplay' : 'true' }); // google analytics integration if(typeof(urchinTracker)=='function') { jQuery(this).click(function(){ urchinTracker('/jmp3/'+href); }); } } } }); } function toggleBlogroll() { jQuery('ul#blogroll-highlighted').slideToggle('slow'); jQuery('ul#blogroll-complete').slideToggle('slow'); } function toggleArchives() { jQuery('ul#archives-highlighted').slideToggle('slow'); jQuery('ul#archives-complete').slideToggle('slow'); } function setCookie (name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + (expires ? "; expires=" + expires : "") + (path ? "; path=" + path : "") + (domain ? "; domain=" + domain : "") + (secure ? "secure" : ""); document.cookie = curCookie; } function getCookie (name) { var prefix = name + '='; var c = document.cookie; var nullstring = ''; var cookieStartIndex = c.indexOf(prefix); if (cookieStartIndex == -1) return nullstring; var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length); if (cookieEndIndex == -1) cookieEndIndex = c.length; return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex)); } function deleteCookie (name, path, domain) { if (getCookie(name)) document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } jQuery.noConflict(); jQuery(function(){ density_init(); });