function getSelected(){if(window.getSelection){return window.getSelection()}else if(document.getSelection){return document.getSelection()}else{var selection=document.selection&&document.selection.createRange();if(selection.text){return selection.text}return false}return false}$(document).ready(function(){$.prettySociable();var url='./?s={term}',selectionImage;$('#content').mouseup(function(e){var selection=getSelected();if(selection&&(selection=new String(selection).replace(/^\s+|\s+$/g,''))){if(!selectionImage){selectionImage=$('<a>').attr({href:url,title:'Click here to know more related this keyword',target:'',id:'selection-image'}).hide();$(document.body).append(selectionImage)}selectionImage.attr('href',url.replace('{term}',encodeURI(selection))).css({top:e.pageY-30,left:e.pageX-13}).fadeIn()}});$(document.body).mousedown(function(){if(selectionImage){selectionImage.fadeOut()}});$.fn.simpleTabs=function(){$(this).find(".tab_content").hide();$(this).find("ul.tabs li:first").addClass("active").show();$(this).find(".tab_content:first").show();$("ul.tabs li").click(function(){$(this).parent().parent().find("ul.tabs li").removeClass("active");$(this).addClass("active");$(this).parent().parent().find(".tab_content").hide();var activeTab=$(this).find("a").attr("href");$(activeTab).slideToggle(500).fadeTo(500,1).siblings("div.tab_content").fadeTo(500,0).slideUp(500);return false})};$("div[class^='simpleTabs']").simpleTabs();$('img.menu_class').click(function(){$('ul.the_menu').slideToggle('medium')});$("ul.the_menu").parent();$("img.menu_class").click(function(){$(this).parent().find("ul.the_menu").slideDown('fast').show();$(this).parent().hover(function(){},function(){$(this).parent().find("ul.the_menu").slideUp('slow');});}).hover(function(){$(this).addClass("linkhover");},function(){$(this).removeClass("linkhover");});(function(){var fadeSpeed=200,fadeTo=0.5,topDistance=30;var topbarME=function(){$('#topbar').fadeTo(fadeSpeed,1)},topbarML=function(){$('#topbar').fadeTo(fadeSpeed,fadeTo)};var inside=false;$(window).scroll(function(){position=$(window).scrollTop();if(position>topDistance&&!inside){topbarML();$('#topbar').bind('mouseenter',topbarME);$('#topbar').bind('mouseleave',topbarML);inside=true}else if(position<topDistance){topbarME();$('#topbar').unbind('mouseenter',topbarME);$('#topbar').unbind('mouseleave',topbarML);inside=false}})})();meerkat({close:'.close-meerkat',dontShow:'.dont-show',animation:'slide',animationSpeed:500,dontShowExpire:0,removeCookie:'.remove-cookie',meerkatPosition:'bottom',height:'105px'})});

<!--
function popup(mylink, retweet)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, retweet, 'width=980,height=400,left=5,top=100,scrollbars=yes');
return false;
}
//-->

//<![CDATA[
$(function(){
$('a[href*=#top]').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname) {
var $target = $(this.hash);
$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
if ($target.length) {
var targetOffset = $target.offset().top;
$('html,body').animate({scrollTop: targetOffset}, 1000);
return false;
}
}
});
});
//]]>