$(document).ready(function() {

	$('a[rel*=ext]').click( function() { window.open(this.href); return false; });
	
	$('a[rel*=int]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
		var $target = $(this.hash);
		$target = $target.length && $target
		|| $('[name=' + this.hash.slice(1) +']');
		if ($target.length) {
		var targetOffset = $target.offset().top;
		$('html,body').animate({scrollTop: targetOffset}, 1000);
		return false;
		}
		}
	});
	
	$('#tabs').tabs();
	   
    $("#gallery ul").PikaChoose({
		showCaption: false,
		carousel:true,
		transition: [3]
	});
	
	//Twitter Footer
	$("ul.twitter div").tweet({
        username: "microminder",
        join_text: "auto",
        avatar_size: false,
        count: 1,
        retweets: false,
        auto_join_text_default: "",
        auto_join_text_ed: "",
        auto_join_text_ing: "",
        auto_join_text_reply: "",
        auto_join_text_url: "",
        loading_text: "loading tweets&hellip;",
        template: "{text}{time}"
    });
    
    $("#breadcrumbs li").last().find('a').addClass('active');
    
});
