var $j = jQuery.noConflict();
$j(function () {

$j(document).ready(function(){
//$j(".thumb img").fadeTo("slow", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads

$j(".thumb img").hover(function(){
$j(this).fadeTo("slow", 0.6); // This should set the opacity to 100% on hover
},function(){
$j(this).fadeTo("slow", 1.0); // This should set the opacity back to 60% on mouseout
});

$j("#post-content").find('img').each(function() {
	if(($j(this)).closest('div[id^=attachment]').length == 1) {
		$j(this).parents('div').eq(0).remove();
	} else {
		if(($j(this)).parent().is('a')) {
			$j(this).parent().parent().is('p') ? $j(this).parents('p').remove() : $j(this).parent().remove();
		} else {
			$j(this).parent('p').remove();
		}
	}
});
});

$j('#slideshow').serialScroll({
		items:'li',
		prev:'a.previous',
		next:'a.next',
		offset:-10, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:0, //as we are centering it, start at the 2nd
		duration:1200,
		force:true,
		stop:true,
               	lock:false,
		cycle:true, 
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: true //click on the images to scroll to them

	});

        $j('#loopedSlider').loopedSlider({
				addPagination: true,
				slidespeed: 500,
                                containerClick: false
                                //autoStart: 5000
			});


});

