$(document).bind('contentReady',function(event,content){Cufon.replace('.spotlight .description p',{fontFamily:'Myriad Pro'});Cufon.replace('.spotlight .ui-tabs-nav li a',{fontFamily:'Myriad Pro'});content.find('.ui-tabs').tabs();content.find('.spotlight a').click(function(event){if(typeof(event.pageX)!='undefined'){clearInterval(autoScroller);}})
content.find('.scroll-pane').jScrollPane({showArrows:true,verticalDragMinHeight:17,verticalDragMaxHeight:17,horizontalDragMinWidth:17,horizontalDragMaxWidth:17});content.find('select.custom').sSelect({ddMaxHeight:'300px'});content.find('.language-panel select.custom').change(function(){content.find('.language-panel .selected-option').text('Change Language');});content.find('.language-panel .selected-option').text('Change Language');content.find('table.commodities tr td:last-child').css({'padding-right':'0'});content.find('.panel .header .filter-panel:last-child').css({'margin-right':'0'});content.find(".help-button").live('mouseover',function(){var rel=$(this).attr("rel");if(rel){if($(this).parent().find('.tool-tip').length){$(this).parent().find('.tool-tip').html("");}else{$(this).parent().append("<span class='tool-tip'></span>");}
$(this).parent().find('.tool-tip').html(rel).show();}}).live('mouseout',function(){$(this).parent().find('.tool-tip').html("").hide();});content.find('#DecibelCMS_User_loginForm input[name="DecibelCMS_User_username"]').hint('Email Address');content.find('#DecibelCMS_User_loginForm input[name="DecibelCMS_User_password"]').hint('Password');});function showPopup(popupId){$.fancybox({'content':$('#'+popupId).html(),'modal':true,'overlayColor':'#000000','overlayOpacity':0.55,'overlayShow':true,'hideOnOverlayClick':false,'padding':0});}
var autoScroller;$(document).ready(function(){autoScroller=setInterval(function(){if($('.spotlight .ui-tabs-selected').next().length){$('.spotlight .ui-tabs-selected').next().find('a').click();}else{$('.spotlight a').first().click();}},9000);});
