var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {var pageTracker = _gat._getTracker("UA-6797531-31");pageTracker._trackPageview();} catch(err) {}

//DEL _________________________________________

$(document).ready(function() {
	
	$('div.del').hover(function() {
	  $('ul', this).addClass('show');
	}, function() {
	  $('ul', this).removeClass('show');
	});

});

//DIVERSE

$(document).ready(function() {	
	$("a .size-thumbnail").hover(function(){
	$(this).stop().animate({
			opacity: "0.75",
		}, 350);
	}, function(){
		$(this).stop().animate({
			opacity: "1"
		}, 350);
	});
});

//SLIDER _________________________________________
	
	$(document).ready(function() {
		$(".paging").show();
		$(".paging a:first").addClass("active");

		var imageWidth = $(".window").width();
		var imageSum = $(".image_reel img").size();
		var imageReelWidth = imageWidth * imageSum;
	
		$(".image_reel").css({'width' : imageReelWidth});
	
		rotate = function(){	
			var triggerID = $active.attr("rel") - 1;
			var image_reelPosition = triggerID * imageWidth;

			$(".paging a").removeClass('active');
			$active.addClass('active');
		
			$(".image_reel").animate({ 
				left: -image_reelPosition
			}, 500 );
		
		}; 

		rotateSwitch = function(){		
			play = setInterval(function(){
				$active = $('.paging a.active').next();
				if ( $active.length === 0) {
					$active = $('.paging a:first');
				}
				rotate();
			}, 9000);
		};
	
		rotateSwitch();
	
		$(".image_reel a").hover(function() {
			clearInterval(play);
		}, function() {
			rotateSwitch();
		});	
	
		$(".paging a").click(function() {	
			$active = $(this);
			
			clearInterval(play);
			rotateSwitch();
			rotate();
			return false;
		});
	
	});

//CAPTIFY _________________________________________

	$(function(){
	$('img.captify').captify({
		speedOver: 'fast',
		speedOut: 'fast',
		hideDelay: 100,	
		animation: 'slide',		
		prefix: '',		
		opacity: '0.8',					
		className: 'caption-bottom',	
		position: 'bottom',
		spanWidth: '100%'
	}); 
	});
