$(document).ready(function() {
    $('.slide_1').cycle({
    			containerResize: false,
				fx: 'fade',
				cssFirst: {
						width: 225,
						height: 330,
						opacity: 1
				},
				cssBefore: {  
				        width: 225,
				        height: 330,
				        opacity: 0
				    }, 
				cssAfter: {  
				        width: 225,
				        height: 330,
				        opacity: 1
				    },
				animIn:  { 
				        width: 225,
				        height: 330,
				        opacity: 1
				    }, 
				animOut: {  
				        width: 225,
				        height: 330,
				        opacity: 0
				    },				
				next:   '#next',
				speedIn: 200,
				speedOut: 600,
				timeout:   0,
				random: 1,
				sync: false,
				pause:	1
				
	});
    $('.slide_2').cycle({
				fx: 'fade',
				cssFirst: {
						zIndex: 999,
						top:0, 
						left:0,
						opacity: 1
				},
				cssBefore: {  
				        zIndex: 999,
				        top:0, 
				        left:0,
				        opacity: 0
				    }, 
				cssAfter: {  
				        zIndex: 999,
				        top:0, 
				        left:0,
				        opacity: 1
				    },
				animIn:  { 
				        zIndex: 999,
				        top:0, 
				        left:0,
				        opacity: 1
				    }, 
				animOut: {  
				        zIndex: 999,
				        top:0, 
				        left:0,
				        opacity: 0
				    },	
				next:   '#next',
				speedIn: 300,
				speedOut: 100,
				sync: false,
				timeout:   0,
				pause:	1,
				random: 1
	});
    $('.slide_3').cycle({
				fx: 'fade',
				next:   '#next',
				speedIn: 750,
				speedOut: 300,
				sync: false,
				timeout:   0,
				pause:	1,
				random: 1
				
	});
	
	
	$(".nav_ballong").click(function(e){
			e.preventDefault();
			var DennaUrl = $(this).data('name');
			
			$('#ryska_posten_content').stop(true,true).fadeOut("200");
			$('#ryska_posten_content').stop(true,true).html('');
			$('#ryska_posten_content').load(this.href +" #target", function(){  
			
				$('#ryska_posten_content').stop(true,true).fadeIn("300");
				$("#sub_menu").stop(true,true).fadeIn("fast");	
				$("#swed").stop(true,true).hide();
				$("#english").stop(true,true).fadeIn("fast");
				$(".back").animate({width:"89",left:"44"},450);
				if(DennaUrl == "event") { 
					$.getScript('js/event.js');
				} 
			
			});
			
	});
	
});
