$(document).ready(function(){ $('#main').fadeIn(400,'swing').css('display','block'); $('a').click( function(e){ if( e.which == 1 ) { e.preventDefault(); var url = $(this).attr('href'); $('body,html').animate({scrollTop:1,scrollLeft:0},300,'swing',function(){ $('#main').fadeOut(400,'swing',function(){ document.location.href = url; }); }); } }); }); /*gplus*/ window.___gcfg = {lang: 'en-GB'}; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); /*mobile scroll 1 pixel*/ window.addEventListener('load', function(e) { setTimeout(function() { window.scrollTo(0, 1); }, 1); }, false); /*Analytics*/ var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-8114486-1']); _gaq.push(['_setDomainName', '.gif83.net']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
