 var $j = jQuery.noConflict();

function loadItems(type,startVar,stopVar){
		
		switch(type){
			case "tours" : var url = "cgi-bin/siteEventsSideAjax.pl"; var container = "tourBoxSmall"; break;
			case "guides" :var url = "cgi-bin/siteGuidesSideAjax.pl"; var container = "tourSmallguide"; if($j(".aboutBoxSmall").size() == 1){ container="aboutBoxSmall" }; break;
			case "news" : var url = "cgi-bin/siteNewsHeadlineAjax.pl"; var container = "newsBoxSmall"; break;
			case "calendar" : var url = "cgi-bin/siteEventsSide1Ajax.pl"; var container = "tourItBoxSmall"; break;
		
		}
		
		$j.get(url,{start: startVar, stop: stopVar},function(data){
			
			
			$j("." + container).html(data);
			
			
		});
		
	
	
	
}//function

var pauseStatus = "pause";

function pauseCallBack(eventObj){

$j('#slideShow').cycle(pauseStatus);
if(pauseStatus == "pause"){
	
	pauseStatus = "resume";
	
}//if
else {
	pauseStatus = "pause";
}//else
	
}//function

function activateSlideShow(){
	

if($j("#slideShow img:eq(1)").attr("src") == undefined){

$j('#slideShow').cycle({
	fx: 'fade',
	timeout:0,
	speed: 500
	
});	

	
}	
else {
	
$j('#slideShow').cycle({
	fx: 'fade',
	timeout:2000,
	speed: 500,
	next: '#nextImg',
	prev: '#prevImg'
});	
	
$j("#pausePlay").click(pauseCallBack);	
	
}//else

	
	
	
}//function

