$(document).ready(function(){$(window).load(function(){$("#preloader").fadeOut("normal",function(){$(this).remove()})});$("#to-top").hide();$(function(){$(window).scroll(function(){if($(this).scrollTop()>100){$("#to-top").fadeIn()}else{$("#to-top").fadeOut()}});$("#to-top").click(function(){$("body,html").animate({scrollTop:0},800);return false})});$.getJSON("http://twitter.com/statuses/user_timeline.json?screen_name=simonmisra&count=8&callback=?",function(a){$.each(a,function(b,c){ct=c.text;ct=ct.replace(/http:\/\/\S+/g,'<a href="$&" target="_blank">$&</a>');ct=ct.replace(/\s(@)(\w+)/g,' @<a href="http://twitter.com/$2" target="_blank">$2</a>');ct=ct.replace(/\s(#)(\w+)/g,' #<a href="http://search.twitter.com/search?q=%23$2" target="_blank">$2</a>');$("#tweets").append('<div class="tweet">'+ct+"</div>")})});$("#tooltip a").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:20});$(".about a").toggle(function(){$("#about").animate({opacity:"1",height:"toggle"},600);$(this).parent().addClass("active")},function(){$("#about").animate({opacity:"0",height:"toggle"},600);$(this).parent().removeClass("active")})


	$(".instagram").instagram({
    hash: 'simonmisra',
    clientId: '15f7d1a91c1f40f8a748fd134752feb3'
    });
});
