
var Domo={};$(document).ready(function(){$('#nav ul.nav li').hover(function(){$(this).children('.dropdown').stop(true,true).fadeIn(200);},function(){$(this).children('.dropdown').stop(true,true).fadeOut(300);});$('.blur').click(function(){if(this.value==this.defaultValue){this.value='';$(this).removeClass("blur");$(this).addClass("focus");}});$('.blur').blur(function(){if(this.value==''){this.value=this.defaultValue;$(this).removeClass("focus");$(this).addClass("blur");}});get_twitter_count();mark_blog_post_as_selected();$('.side_pagination a').live('click',function(){var page=$(this).attr("data-paged");jQuery.ajax({type:'POST',data:{action:'get_recent_posts',paged:page},url:"/blog/wp-admin/admin-ajax.php",success:function(value){jQuery(".overview_block.blog").html(value);mark_blog_post_as_selected();}});return false;});if(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)){$('#footer').css({'display':'none'});}});function get_twitter_count()
{$.getJSON('http://api.twitter.com/1/users/show.json?screen_name=domotalk&callback=?',function(data)
{$("#followers").html(data.followers_count);});}
function mark_blog_post_as_selected()
{$('.overview_block.blog a').each(function(){var url=$(this).attr("href");var current_url=window.location.href;if(url===current_url)
{$(this).parent().addClass("selected");}});}
