﻿

function mycarousel_initCallback(carousel)
{
    jQuery('.crouselRightArrow').bind('click', function() {
        carousel.next();
        return false;

    });

    jQuery('.crouselLeftArrow').bind('click', function() {
        carousel.prev();
        return false;
    });
	
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};


jQuery(document).ready(function(){


	
	$( '.sinanGulerSolbilgi' ).mouseenter(function(){
		$( '.sinanGulerSolbilgi .playerInfoBox' ).fadeIn( 'fast' );
	});
	
	$( '.sinanGulerSolbilgi' ).mouseleave(function(){
		$( '.sinanGulerSolbilgi .playerInfoBox' ).fadeOut( 'fast' );
	});

});

jQuery(document).ready(function() {
    $( '.mainCarousel' ).jcarousel({
        auto: 2,
		scroll: 1,
        wrap: 'last',
        animation: 650, 
        initCallback: mycarousel_initCallback,
		buttonNextHTML: null,
		buttonPrevHTML: null
    });
 
});


$(document).ready(function() { 
        $('#menu-topmenu').superfish({
        animation: {height:'show'},
        		speed		: 'fast'
		}); 
    }); 




$(document).ready(function(){
	$('.headerRight').css('visibility', 'hidden');
	
	$(".macprogrami").click(function(){
		$('.headerRight').css('visibility', 'visible');
		$(".headerRight").css({})
		$(".headerRight").animate({opacity:1})
	
		
	},function(){
	$('.headerRight').css('visibility', 'hidden');
	$(".headerRight").animate({opacity: 0});
	});
	});
	
$(document).ready(function(){
	
	$(".kapat").click(function(){
		$('.headerRight').css('visibility', 'hidden');
		$(".headerRight").css({})
		$(".headerRight").animate({opacity:1})
	
	});
});	
		
    jQuery(function($){
        $("#twitter").tweet({
          avatar_size: 32,
          count: 1,
          username: "sinanguler",
          template: "{text} » {retweet_action}"
        });
      }).bind("loaded", function(){
        $(this).find("a.tweet_action").click(function(ev) {
          window.open(this.href, "Retweet",
                      'menubar=0,resizable=0,width=550,height=420,top=200,left=400');
          ev.preventDefault();
        });
      });
    		
