$(document).ready(function() {
	$('#HomepageCycle').cycle({
	    fx:     'scrollLeft', 
	    speed:  500, 
	    timeout: 0, 
	    pager: '#HomepageButtons',
	    pagerEvent: 'mouseover',
	    pagerAnchorBuilder: function(idx, slide) {
	        return '#HomepageButtons div:eq(' + (idx) + ') a';
	    },
	    allowPagerClickBubble: true,
	    sync: true,
	    updateActivePagerLink: function(pager, idx, cls) {
	    	$('#HomepageButtons a')
	    		.removeClass(cls)
	    		.eq(idx)
	    		.addClass(cls);
	    }
	});
	$('#SlideCycle').cycle({
	    fx:     'scrollLeft', 
	    timeout: $("#slidetimeout").val(), 
	    speed:  500,
	    containerResize: false
	});
	
	$('.content_frame a.highlight')
		.wrap("<span class='link'></span>")
		.before("&gt; ");
	
	$('div.field')
		.css("clear", "both")
		.append("<div class='clear' style='line-height:0.01 em'>&nbsp;</div>");

    $('form ul').each(function() {
    if (!isNaN($(this).text().replace(/[\s\n\r]/gi, "")) && ($(this).text().replace(/[^\d]/gi, "") != "")) {
$(this).addClass('inline');
}    
});
});

