// JavaScript Custome Functions

// show Detailed News
function showDetailedNews(News_ID)
{
	URL = "news-detail.html/"+ News_ID +"/";
	
	window.location = URL;
}

// show Detailed Services
function showServiceDetails(Service_ID)
{
	URL = "service-details.html/"+ Service_ID +"/";
	
	window.location = URL;
}

// show Ranch Details
function showRanchDetails(Ranch_ID)
{
	URL = "ranch-details.html/"+ Ranch_ID +"/";
	
	window.location = URL;
}

// show Deer Category Details
function showCategoryDetails(deer_category_name)
{
	URL = deer_category_name +"-details.html";
	
	window.location = URL;
}

// function to go to Package Details page....
function go2ContactUs(pkg_ID)
{
	URL = "pkg-details.html/"+ pkg_ID +"/";
	
	window.location = URL;
}

// show Link Details
function showLinkDetails(link_ID)
{
	URL = "link-details.html/"+ link_ID +"/";
	
	window.location = URL;
}

// show Our-Deer Page
function showOurDeerPage()
{
	URL = "our-deer.html";
	
	window.location = URL;
}

// show Ranches Page
function showRanchesPage()
{
	URL = "ranches.html";
	
	window.location = URL;
}

// show Hunting-Packages Page
function showHuntPkgsPage()
{
	URL = "hunt-pkgs.html";
	
	window.location = URL;
}

// function to regenerate Captcha code...
function refreshCaptcha(fullURL)
{
	var url = "process-captcha.html";
	var pars='';
	
	imgPath = fullURL + "/images/indicator.gif";
	
	$('show-captcha').innerHTML='<img src="'+ imgPath +'" align="center">';	
	var myAjax = new Ajax.Request(
	url,
	{
		method: 'get',
		parameters: pars,
		onComplete: refreshSuccess
	});
}

function refreshSuccess(originalRequest)
{
   var responseTextTrim=trim(originalRequest.responseText);
							   
	if($('show-captcha')) 
		$('show-captcha').innerHTML = responseTextTrim;
	
}


// show Deer Image Archive...
function showArchiveGallery(deerId, yr,fullURL)
{
	URL = fullURL +"/archive-image-gallery-"+ deerId +".html/"+ yr +"/";
	
	window.location = URL;
}

// show Detailed content...
function showDetailedContent(cmsID, option, fullURL)
{
	pg = fullURL +"/"+ option +"-content-details.html";
	URL = pg;
	
	window.location = URL;
}


// function for News-Listings...
function showNewsListings(fullURL)
{
	pg = fullURL +"/news.html";
	
	window.location = pg;
}

// function to show all Existing Testimonials...
function showTestimonials(fullURL)
{
	URL = fullURL +"/testimonials.html";
	
	window.location = URL;
}


// function to show Detailed Testimonial...
function showDetailedTestimonial(testimonial_ID)
{
	URL = "testimonial-detail.html/"+ testimonial_ID +"/";
	
	window.location = URL;
}
