var $j = jQuery.noConflict();
$j(document).ready(function() {

$j(".portfolio_box img, .portfolio_box_slide img, .related_posts_box img, .sidebar img, .post_entry.blog img").hover(function()
{ $j(this).animate({opacity: .7,left: '0px'}, "300"); }, function(){ $j(this).animate({opacity: 1,left: '0px'}, "300"); });


//Hide (Collapse) the toggle containers on load
$j(".toggle_container").hide(); 
//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
$j("h2.trigger").click(function(){$j(this).toggleClass("active").next().slideToggle("slow");});

<!-- Go to top -->
$j('a[href*=#]').click(function() {
 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
 && location.hostname == this.hostname) {
   var $jtarget = $j(this.hash);
   $jtarget = $jtarget.length && $jtarget
   || $j('[name=' + this.hash.slice(1) +']');
   if ($jtarget.length) {
  var targetOffset = $jtarget.offset().top;
  $j('html,body')
  .animate({scrollTop: targetOffset}, 900);
    return false;
   }
  }
});

<!--prettyPhoto -->
$j("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});

<!--Menu -->
$j("ul.menu").superfish();
			
});

// Cufon font
Cufon.replace('h1, h2, h3, h4, h5, h6', {hover: true});


