$(document).ready(function() {

	// nivo slider
	$('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
        animSpeed:500, //Slide transition speed
        pauseTime:6000,
        startSlide:0, //Set starting Slide (0 index)
        controlNav:false, //1,2,3...
        captionOpacity: 1
   	});

	$('#partners .carousel ul').carouFredSel({
		prev: '#carousel-prev',
		next: '#carousel-next',
		scroll: {
    		duration: 1000
  		},
		circular: true,
		infinite: true,
		auto: true
	});
	
	// add classes to certain elements (for styling)
	$('div.summary p:last-child').addClass('last-child');
	$('.archive.blog article:last-of-type').addClass('last-of-type');
	$('.archive.blog article:nth-of-type(3n+2)').addClass('alt one');
	$('.archive.blog article:nth-of-type(3n+3)').addClass('alt two');
	$('.archive.entrepreneurs article:last-of-type').addClass('last-of-type');
	$('.archive.entrepreneurs article:nth-of-type(3n+2)').addClass('alt one');
	$('.archive.entrepreneurs article:nth-of-type(3n+3)').addClass('alt two');
	$('.archive.people article:last-of-type').addClass('last-of-type');
	$('.archive.people article:nth-of-type(3n+2)').addClass('alt one');
	$('.archive.people article:nth-of-type(3n+3)').addClass('alt two');
	$('.archive.jobs article:last-of-type').addClass('last-of-type');
	$('.archive.jobs article:nth-of-type(3n+2)').addClass('alt one');
	$('.archive.jobs article:nth-of-type(3n+3)').addClass('alt two');
	$('.archive.search-results article:last-of-type').addClass('last-of-type');
	$('.archive.search-results article:nth-of-type(3n+2)').addClass('alt one');
	$('.archive.search-results article:nth-of-type(3n+3)').addClass('alt two');
	$('.archive.blog .tags li:last-child').addClass('last-child');
	





	
	// add classes to form elements (for better ux)
	$("form#comment-form input").click(function () {
      $(this).addClass("clicked");
    });
    $("form#comment-form textarea").click(function () {
      $(this).addClass("clicked");
    });
    $(".contact-form form input").click(function () {
      $(this).addClass("clicked");
    });
    $(".contact-form form select").click(function () {
      $(this).addClass("clicked");
    });
    $(".contact-form form textarea").click(function () {
      $(this).addClass("clicked");
    });
    



	
	// make whole block (box) 'clickable'
	$(".click-box").click(function(){
     window.location=$(this).find("a").attr("href");
     return false;
	});


	$.easy.forms();
	$.easy.rotate();
	$.easy.navigation();
	$.easy.tooltip();
	$.easy.showhide();	
	

	//anti-skype	
	window.setTimeout(function() {
			$('.skype_pnh_container').html('');
			$('.skype_pnh_print_container').removeClass('skype_pnh_print_container');
		}, 800);
	


});
