jQuery( document ).ready( function(){
	
	jQuery( '#wpml_credit_footer' ).hide();
} );

function homeSliderList(){

	jQuery( '.slider-holder .pane-content ul' ).addClass( 'list-links' );
}

function homeBottomBlocksClasses(){
	
	ind = 1;
	
	jQuery( '.grid-holder .grid' ).each( function(){
		
		jQuery( this ).addClass( 'grid-' + ind );
		ind++;
	} );
}

function contactBottomBlocksClasses(){

	ind = 2;
	
	jQuery( '.grid-holder .grid' ).each( function(){
		
		if( !jQuery( this ).hasClass( 'grid-4' ) ){
			jQuery( this ).addClass( 'grid-' + ind );
			ind++;
		} else {
		
			jQuery( this ).children( '.grid-content' ).children( 'ul' ).addClass( 'list-links' );
		}
	} );
}

function grid4Arrow( htmlTags ){
	
	jQuery( '.grid-4' ).children( '.grid-content' ).children( 'ul' ).append( htmlTags );
}

function newsSideBlocksClasses(){
	
	ind = 2;
	
	jQuery( '.right-grids .grid' ).each( function(){
		
		if( !jQuery( this ).hasClass( 'grid-4' ) ){
			jQuery( this ).addClass( 'grid-' + ind );
			ind++;
		} else {
		
			jQuery( this ).children( '.grid-content' ).children( 'ul' ).addClass( 'list-links' );
		}
	} );
}

function projectSideBlocksClasses(){
	
	ind = 3;
	
	jQuery( '.right-holder .grid' ).each( function(){
		
		if( !jQuery( this ).hasClass( 'grid-4' ) ){
			jQuery( this ).addClass( 'grid-' + ind );
			ind--;
		} else {
		
			jQuery( this ).children( '.grid-content' ).children( 'ul' ).addClass( 'list-links' );
		}
	} );
}

function addingClassesToPrevNextLinks(){
	
	jQuery( '.post-nav a' ).each( function(){
		
		if( jQuery( this ).text() == 'Next page' )     jQuery( this ).addClass( 'next-link' ); 
		if( jQuery( this ).text() == 'Previous page' ) jQuery( this ).addClass( 'prev-link' ); 
	} );
}




