﻿(function($) {$(document).ready(function(){
	$(function () {
	
		$('#htmlslider').anythingSlider({

            easing: "easeInOutExpo",               

            autoPlay: true,                 

            startStopped: false,            

            delay: 6000,                    

            animationTime: 800,             

            hashTags: false,                

            buildNavigation: true,          

            pauseOnHover: true,             

            navigationFormatter: null       

    });

    

    $('#flashslider').anythingSlider({

        easing: "easeInOutExpo",               

        autoPlay: true,                 

        startStopped: false,            

        delay: 6000,                    

        animationTime: 800,             

        hashTags: false,                

        buildNavigation: true,          

        pauseOnHover: true,             

        navigationFormatter: null       

});

				
	});
	
    $('#sepetim p.kaldir_parent').click(
		function(){
			$(this).parent().parent().remove();
	}
	);
    
	$('#baseform a.delete').click(
		function(){
			$(this).parent().parent().remove();
	}
	
	);
	$('#action-list li a.head').click(function(){$('#action-list li ul').toggle()});
	$('#action-list li ul').mouseleave(function(){$(this).toggle()});
	$('ul.services li ul.sub li').mouseenter(function(){$(this).addClass('over'); $(this).child('a').addClass('over')});
	$('ul.services li ul.sub li').mouseleave(function(){$(this).removeClass('over')});
		
	$('#nav li.head').mouseenter(
		function() {
			$(this).addClass("selected");
		  }
		);

	$('#nav li.head').mouseleave(
		function() {
			$(this).removeClass("selected");
		  }
		);

	$('ul.featurelist li a').click(
		function() {
			$("ul.featurelist li .hiddenfield").removeClass("block");
			$(this).next().addClass("block");
			return false
		  }
		);

<!-- required for Türk Telekom Global Footer -->
		$('a#ttlogo').click(
		function() {
			/**$("#ttfooterpopup").toggle();
			$(this).toggleClass("hover");**/
			return false
		  });
<!-- required for Türk Telekom Global Footer -->


<!-- checkbox management -->



	var checkboxes = $('.checkboxgroup input[type=checkbox]');
	var toggleAddOn = function(e) {
			if ($(e.target).attr('checked') === true) {
				$(this).parents('li').children('.table_addon_wrapper').show()
			} else {
				$(this).parents('li').children('.table_addon_wrapper').hide()
			}
	}
	$(function() {


		$('.table_addon_wrapper').hide();
		checkboxes.change(toggleAddOn)
		$.each(checkboxes, function(k, v){
			if ($(v).attr('checked') === true) {
				$(this).parents('li').children('.table_addon_wrapper').show()
			}
		})
    });

});})(jQuery);

