

// COM BLOG - SHOW LOADING GIF

if (document.getElementById("com-blog")) { 
	$('#com-blog .ajax-load').show();
}


// COM SLIDESHOW

$(function(){
	if (document.getElementById("com-slideshow")) { 		
				
				$('#slideshow-list li.slide-nav').hover(function(){
				
					$('#slideshow-list li.slide-nav').removeClass("active");
					
					$(this).addClass("active");
					
					var rel = $(this).attr("rel"); /*  establishes relationship between navigation and images*/
					if (rel == 'image1') {
						$('.pics').stop().animate({
							'marginLeft': 0
						}); /* .stop() stops animation buildup in the queue */
					}
					
					if (rel == 'image2') {
						$('.pics').stop().animate({
							'marginLeft': -480
						});
					}
					
					if (rel == 'image3') {
						$('.pics').stop().animate({
							'marginLeft': -960
						});
					}
					
				}, function(){ /* this is the mouse-off function, not used now... but kept just in case */
				});	
	}

});


// COM VIDEO SCROLLER

$(function() {

	if (document.getElementById("com-video-scroller")) { 
		$("#com-video-scroller .scrollable").scrollable({size:5, clickable: false});
	}

});
