jQuery(document).ready(function() { jQuery(".labelize input:text").clearingInput(); }); Cufon.replace('.frank-book', {hover: true, fontFamily: 'ITC Franklin Gothic Book'})('.frank-demi', {hover: true, fontFamily: 'ITC Franklin Gothic Demi'})('.synchro', {hover: true, fontFamily: 'Synchro LET'})('.amplitude', {hover: true, fontFamily: 'Amplitude-Light'}); function side_nav(){ // Hide all subnavigation jQuery('#section-nav ul ul').hide(); var path = location.pathname; if (path == '/') { jQuery('#section-nav a[href$="' + location + '"]').parent().addClass('nav_active'); // check path as typed exactly jQuery('#section-nav a[href$="' + location + '/"]').parent().addClass('nav_active'); // check path with an extra trailing slash added } else { jQuery('#section-nav a[href$="' + path + '"]').parent().addClass('nav_active'); // check path as typed exactly jQuery('#section-nav a[href$="' + path + '/"]').parent().addClass('nav_active'); // check path with an extra trailing slash added } // show all parent sibling jQuery('#section-nav li.nav_active').parent().show(); // show child jQuery('#section-nav li.nav_active').children('ul').show(); var here = jQuery('#section-nav li.nav_active a:first').addClass('current-page'); } jQuery(function($j) {side_nav();}); var collapsible = []; function toggleCollapsible(id) { if (collapsible[id] !== 'on') { document.getElementById(id).style.display = 'block'; collapsible[id] = 'on'; } else { document.getElementById(id).style.display = 'none'; collapsible[id] = 'off'; } } function track(link, category, action) { try { var pageTracker = _gat._getTracker("UA-4208897-5"); pageTracker._setDomainName(".sundance.org"); pageTracker._trackEvent(category, action); setTimeout('document.location = "' + link.href + '"', 100) }catch(err){}}