/**	@start - Functions to take care of node based pagination	*/
var current_page = 0;
function navigation_showhide(id)
{
	alert(id);
	var current_page = id
	var paginate_div_id = "#paginate-div-" + id;
	$(".paginate-div").hide("slow");
	$(paginate_div_id).show("slow");
	return false;
	
}

function show_next()
{
	var max_count = document.getElementById("max_div_count").value;
	var id;
	if(current_page >= max_count)
		return false;
	else
	{
		current_page++;
		var paginate_div_id = "#paginate-div-" + current_page;
		$(".paginate-div").hide("slow");
		$(paginate_div_id).show("slow");
		return false;
	}	
}
function show_prev()
{
	//var max_count = document.getElementById("max_div_count").value;
	var id;
	if(current_page == 0)
		return false;
	else
	{
		current_page--;
		var paginate_div_id = "#paginate-div-" + current_page;
		$(".paginate-div").hide("slow");
		$(paginate_div_id).show("slow");
		return false;
	}	
}
/** @end */

/**	@start - Functions to deal with font size of content	*/
var min_size = 8,reset_size = 12,max_size = 18,current_size = 12;
$(document).ready(function() {
	$(".font-resizer a:nth-child(1)").click(function(){if(current_size > min_size ){current_size--;$('.font-resizer a').removeClass('selected');$(this).addClass('selected');$("#entry-block-text p").css("font-size",current_size);}return false;}); 
	$(".font-resizer a:nth-child(2)").click(function(){current_size = reset_size;$('.font-resizer a').removeClass('selected');$(this).addClass('selected');$("#entry-block-text p").css("font-size",reset_size);return false;}); 
	$(".font-resizer a:nth-child(3)").click(function(){if(current_size < max_size ){current_size++;$('.font-resizer a').removeClass('selected');$(this).addClass('selected');$("#entry-block-text p").css("font-size",current_size);}return false;});
}); 
/** @end */




/**
 * Press Releases validation
 */
function validatePressRelease()
{
	var keys = $("#keys").val();
	if(keys.length < 3)
	{	
		alert("Your keyword should contain atleast 3 characters");
		return false;
	}	
}


function toggleDetails(div_to_show)
{
	$(".content-data").hide();
	$('#' + div_to_show).show();
}



