<!--
/*!
 **************************************************
 * Copyright 2010 - Danny Carmical
 * http://luckykind.com
 **************************************************/

var $j = jQuery.noConflict();


$j(document).ready(function() {
	
	var lightBoxImages = $j('a.lightbox');
	var lightBoxVideos = $j('a.lightbox-video');
	
	$j.each(lightBoxImages,function(){
		$j(this).hover(
			function(){
				$j(this).children().stop().animate({
					opacity:0.2
				},500);
			},
			function(){
				$j(this).children().stop().animate({
					opacity:1
				},500);				
			}
		);
	});

	lightBoxImages.colorbox({
		maxWidth: '95%',
		maxHeight:'95%'
	});
	
	$j.each(lightBoxVideos,function(){

		$j(this).hover(
			function(){
				$j(this).children().stop().animate({
					opacity:0.2
				},500);
			},
			function(){
				$j(this).children().stop().animate({
					opacity:1
				},500);				
			}
		);

		
		var videoID = '#' + $j(this).attr('id').substr(5);
		$j(this).colorbox({
			inline:true,
			href: videoID,
			maxWidth: '95%',
			maxHeight:'95%'
		});

	});
	
	$j('.post-img-large').prepend('<div class="overlay-large"></div>');	
});
-->	
