// execute your scripts when the DOM is ready. this is mostly a good habit
$(document).ready(function() {

	$(function() {

		// initialize scrollable
		$(".scrollable").scrollable({	
			keyboard: true,
			interval:2000,
			circular:true
		}).autoscroll({
			autopause:false,
			interval:5000
		}).navigator();
		
		
		$("img[rel]").overlay({
      mask:'#000000',
      top: 'center'
      });
	});
	
	$("#twitter").getTwitter({
		userName: "unimotive",
		numTweets: 5,
		loaderText: "Laden...",
		slideIn: false,
		slideDuration: 750,
		showHeading: false,
		headingText: "Laatste Tweets",
		showProfileLink: true,
		showTimestamp: true
	});
	
  $("ul.tabs").tabs("div.panes > div");

  $("div#showSubHolder").hover(function(){
    $("div#showSub").fadeIn(300);
  }, function(){
    $("div#showSub").fadeOut(200);
  });

});

  function fbs_click() {
    u=location.href;
    t=document.title;
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&amp;t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
    return false;}

