$(document).ready(function () {
//News
    $('#js-news').ticker({
            fadeInSpeed: 1000,
            displayType: 'fade',
            pauseOnItems: 2000
    });

		$('#slider').anythingSlider({
//			theme : 'metallic',
			expand       : true,
			autoPlay     : true,
			autoPlayLocked: true,
			stopAtEnd : false,
			delay   : 5000,
			animationTime : 300,
		});

//Menu correction   
    $('#access li:last').css('padding-right', '0');
    $('#access li:first').css('background', 'none');

/*Home Box*/
$('.widget-area .widget .post:last').css('margin-right', '0');

/*Breadcrumbs*/
$('.jBreadCrumbAink ul li:last').css('background', 'none' );

	$.fx.speeds._default = 1000;
	$(function() {
		$( "#dialog" ).dialog({
			autoOpen: false,
			modal: true,
			show: "blind",
			hide: "explode",
			closeOnEscape: true,
			resizable: false
		});

		$( "#dialog" ).click(function(){
			$( "#dialog" ).dialog( "close" );
		});		
		
		$( "#opener" ).click(function() {
			$( "#dialog" ).dialog( "open" );
			return false;
		});
	});

});
