Cufon.replace('#navigation li a', { hover: true }); Cufon.replace('.din, #content.base h1, #sidebar .button, #content-wide h1, #content-wide h2'); jQuery.noConflict(); function form_input_classes(){ jQuery('input[type="text"]').addClass('text'); jQuery('input[type="password"]').addClass('text'); jQuery('input[type="checkbox"]').addClass('checkbox'); jQuery('input[type="radio"]').addClass('radiobutton'); jQuery('input[type="submit"]').addClass('submit'); jQuery('input[type="image"]').addClass('buttonImage'); } function form_labelize(){ jQuery(".labelize input:text").clearingInput(); jQuery(".labelize textarea").clearingInput();} function flash_counter(){ jQuery('#counter').flash( { src: '/page/-/wrapper/flash/counter.swf', width: 366, height: 78, wmode: 'transparent' }, { expressInstall: true, version: 8 } ); } function side_nav(){ var path = location.pathname.substring(1); jQuery('#leftNav a[href$="' + path + '"]').parent().addClass('item-active'); // check path as typed exactly jQuery('#leftNav a[href$="' + path + '/"]').parent().addClass('item-active'); // check path with an extra trailing slash added jQuery('#leftNav a[href$="' + path + '"]').parent().parent().addClass('nav-active'); // check path as typed exactly jQuery('#leftNav a[href$="' + path + '/"]').parent().parent().addClass('nav-active'); // check path with an extra trailing slash added jQuery('#leftNav a[href$="' + path + '"]').parent().parent().parent().addClass('topnav-active'); // check path as typed exactly jQuery('#leftNav a[href$="' + path + '/"]').parent().parent().parent().addClass('topnav-active'); // check path with an extra trailing slash added } function assign_fitted() { jQuery('.clickable').fitted(); jQuery('#ugc #videos .ugc_image').fitted(); } function make_captions() { jQuery('img.caption').jcaption({ copyAlignmentToClass: true, copyFloatToClass: true }); } jQuery(document).ready(function() { form_input_classes(); form_labelize(); side_nav(); flash_counter(); assign_fitted(); make_captions(); video_overlay(); });