//jquery
var $j = jQuery.noConflict();

$j(document).ready(function($){				   

	// whorwe
	$j('#whorwe').hide();
	

    $j('#whorwenav>a').click(function() {
									
		$j('#whorwe').slideToggle('slow');
		return false;
	});

	// folio
	$j('#folio>div:gt(0)').hide();
	$j('#folionav li:first').addClass('active');

	jQuery.each(jQuery.browser, function(i) {
  		if($.browser.msie){
     		$j('#folionav li').bind('click', function() {
				$j('li.active').removeClass('active');
				$j(this).addClass('active');
				var target = $('a', this).attr('href');
				$j(target).show().siblings().hide();
				return false;
			});
  		}else{
     		$j('#folionav li').bind('click', function() {
				$j('li.active').removeClass('active');
				$j(this).addClass('active');
				var target = $('a', this).attr('href');
				$j(target).slideDown('1000').siblings().slideUp('1000');
				return false;
			});
	  	}
	});
	// close:folio
	
	// rounded corners
	$j('.post').corners("5px");
	$j('#commentform').corners("5px");
	
	$j('#TB_window').css("border","none");

	
	// close:rounded corners

	// nextgen shadowbox videos
  	$(".ngg-gallery-thumbnail a").each(function (arr){
    	if ($(this).attr("title").substr(0,5)=="Video"){
      		$(this).attr("rel","shadowbox;width=405;height=340");
      		$(this).attr("href",$(this).children("img").attr("title"));
    	}
  	});	

});
// close:jquery
