$(document).ready(function(){
   
    $('#slideshow-c').cycle({
        fx: 'scrollHorz',
        timeout: 3500,
        prev: '#slideshow-h a.prev',
        next: '#slideshow-h a.next',
		stop: '#slideshow-h a.stop'
    });
    
	$('.stop').click(function(){
		if ( $(this).hasClass('active') ) {
			$('#slideshow-c').cycle('resume');
			$(this).removeClass('active');
		} else {
			$('#slideshow-c').cycle('pause');
			$(this).addClass('active');
		}
		return false;
	});
	
	
	
    $('#banner-slider-content').cycle({
        fx: 'scrollHorz',
        prev: '.prev_main',
        next: '.next_main',
        timeout: 5500
    });
    


    $('#slideshow-content').cycle({
        fx: 'scrollHorz',
        timeout: 3500
    });

	
	
	
	$.localScroll();
	
	
	
	var h = $('.box-text-1').height();
	
	if( h < $('.box-text-2').height() )
	{
		h = $('.box-text-2').height()
	}
	
	if( h < $('.box-text-3').height() )
	{
		h = $('.box-text-3').height()
	}
	
	$('.box-text').height(h);
	
	
	
	
			
	var UrlSrc = "free-seo-review/";
	var currentUrl = window.location.toString();
	
	currentUrl = currentUrl.slice(currentUrl.indexOf(UrlSrc));
		      
	if (currentUrl == UrlSrc){
		jQuery('.tools a').addClass("yellow_menu_link_active");
	} 
	else
	{
		jQuery('.tools a').addClass("yellow_menu_link_deactive");
	}      
			 	
	
	
	
	
	
	
});



function show_comments(id)
{
	var v = ($('#comments-'+id).css('display'));
	
	if(v =="none")
	{
		$('#comments-'+id).fadeIn('normal');
	}
	else
	{
		$('#comments-'+id).fadeOut('normal');
	}
}




