var $j = jQuery.noConflict();
$j(document).ready(function() {
							
<!-- Add border 0  -->					
$j('.box ul li:last-child').addClass("no-border");
$j('.wrap div.post_entry:last, .wrap div.portfolio_gallery_holder:last').addClass("no-border");

$j('ul.menu li:last-child').addClass("no-back"); $j('ul.menu li ul li:last-child').removeClass("no-back");

$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");
});


$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;
   }
  }
});



<!-- Add margin 0 (added on 10.02.2011) -->
$j(".footer div.box:nth-child(4n), .sidebar .widget_flickr li:nth-child(4n), .footer .widget_flickr li:nth-child(4n), #nav li:nth-child(4n) .team-holder, .sidebar .social:nth-child(5n), .footer .social:nth-child(5n), .wrap div.portfolio_box:nth-child(3n), .wrap .second-row div.box:nth-child(2n), .left-content div.services-box:nth-child(2n), .first-row .box:nth-child(3n)").addClass("no_margin");


<!-- Div clear after boxes (added on 10.02.2011) -->
$j('div.first-row .box:nth-child(3n)').after('<div class="clear"></div>');
$j('div.home_widgets .box:nth-child(3n)').after('<div class="clear"></div>');
$j('div.wrap .footer .box:nth-child(4n)').after('<div class="clear"></div>');
$j('div.second-row .box:nth-child(2n)').after('<div class="clear"></div>');
$j('.left-content .services-box:nth-child(2n)').after('<div class="clear"></div>');

<!--prettyPhoto -->
$j("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});

<!--Menu -->
$j(document).ready(function() {	$j("ul.menu").superfish(); }); 
			
});

// Cufon font
Cufon.replace('h1, h2, h3, h4, h5, h6', {hover: true});


