$(document).ready(function () {

$("span#logo_hover").css("opacity","0");

$("span#logo_hover").hover(function () {
	$(this).stop().animate({
			opacity: 1
		}, 'slow');
	},
	function () {
		$(this).stop().animate({
			opacity: 0
		}, 'slow');
});

$(function() {
   		 $('#showcase').cycle({
       		 fx:     'fade',
       		 speed:  'fast',
				 speed: 2000,
        	    timeout: 5000,
        		 pager:  '#nav',
				 pause: 1,
        		 pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#nav li:eq(' + (idx) + ') a';
        		}
    		});
			$('.div-fader').cycle({
       		 fx:     'fade',
       		 speed:  2000,
        	    timeout: 5000,
				 pause: 1
    		});
			
			
		});

$(".crpg").click(
		function()
		{
			$('#dropdown1').toggle(400);
		}).toggle(function() { $('li', this).show(400); }, function() { $('li', this).hide(400); 
	});		
		
$(".mmorpg").click(
		function()
		{
			$('#dropdown2').toggle(400);
		}).toggle(function() { $('li', this).show(400); }, function() { $('li', this).hide(400); 
	});	

$(".literatura").click(
		function()
		{
			$('#dropdown3').toggle(400);
		}).toggle(function() { $('li', this).show(400); }, function() { $('li', this).hide(400); 
	});	
	
$(".lore").click(
		function()
		{
			$('#dropdown4').toggle(400);
		}).toggle(function() { $('li', this).show(400); }, function() { $('li', this).hide(400); 
	});							

$(".fanart").click(
		function()
		{
			$('#dropdown5').toggle(400);
		}).toggle(function() { $('li', this).show(400); }, function() { $('li', this).hide(400); 
	});
	
$(".konwenty").click(
		function()
		{
			$('#dropdown6').toggle(400);
		}).toggle(function() { $('li', this).show(400); }, function() { $('li', this).hide(400); 
	});    
	
 $(".empoleca").cycle({ 
    fx:    'fade', 
    speed:  2000,
    timeout: 4000,
	 pause: 1 
 });
 
 $(".buttons").cycle({ 
    fx:    'scrollUp', 
    speed:  2000,
    timeout: 8000,
	 pause: 1 
 });
 
 $(".partners").cycle({ 
    fx:    'scrollUp', 
    speed:  2000,
    timeout: 8000,
	 pause: 1 
 });
 
});

function raise(id){
	document.getElementById(id).style.display = (document.getElementById(id).style.display == "none") ? "block" : "none";	
}