$(function(){
        $('.slide-out-div').tabSlideOut({
            tabHandle: '.handle',                     //class of the element that will become your tab
            pathToTabImage: 'images/anket_logo.png', //path to the image for the tab //Optionally can be set using css
            imageHeight: '86px',                     //height of tab image           //Optionally can be set using css
            imageWidth: '27px',                       //width of tab image            //Optionally can be set using css
            tabLocation: 'right',                      //side of screen where tab lives, top, right, bottom, or left
            speed: 300,                               //speed of animation
            action: 'click',                          //options: 'click' or 'hover', action to trigger animation
            topPos: '200px',                          //position from the top/ use if tabLocation is left or right
            //leftPos: '20px',                          //position from left/ use if tabLocation is bottom or top
            fixedPosition: false                      //options: true makes it stick(fixed position) on scroll
        });

    });


			
$(function() {
	    $("#slidertext").jCarouselLite({
			visible:1,
			circular:true,
	        btnNext: ".next",
	        btnPrev: ".prev",
			auto: 8000,
			speed: 1000
			
	    });
	});
	
	
	
	
 $(document).ready(function() { 
            
            $('#myForm').ajaxForm(function() {
				console.log("form gönderiliyor.");
				$('.hideSlide').fadeOut("slow");
				$('.hideSlide').css('width','200px');
				$('.hideSlide').html("Katılımınız için teşekkür ederiz.");
                $('.hideSlide').fadeIn("slow");
				
            }); 
        }); 

jQuery(document).ready(function($){
	
	$('.s_pages').click(function(e) {
		var m_link = $(this).attr('href') ;
		m_link = m_link.substr(1); 
		//showProgress();
		$('#menu_bilgi').stop(true, true).fadeOut();
		$('#menu_servisler').stop(true, true).fadeOut();
		$('#menu_iletisim').stop(true, true).fadeOut();
		self.location='s_page.php?#'+m_link ; 
		
	});
	
	var currentTime = new Date();
	var hours = currentTime.getHours();
	var minutes = currentTime.getMinutes();
	var aksam = "";
	var aksam = "19";
	var sabah = "5";
	if(hours >= aksam || hours <= sabah ) {
		$('#main_background').html('<img src="images/bg_gece.jpg" id="main_picture">'); //gece
	} else {
		$('#main_background').html('<img src="images/bg_gunduz.jpg" id="main_picture">'); //gunduz
	}
}); 
