// JavaScript Document
jQuery(document).ready(function(){
jQuery("#scrollToComments").click(function(event){event.preventDefault();jQuery("html,body").animate({scrollTop:jQuery("#div-4110365946118883963").offset().top},1000);});
jQuery('#columnlinks').prepend("
Translate This Article
Translation Disclaimer
This translation is not completely accurate as it was automatically generated by a computer.
powered by
");
jQuery.getScript('http://jquery-translate.googlecode.com/files/jquery.translate-1.3.7.min.js', function(){ //when the script is loaded
jQuery.translate(function(){ //when the Google Language API is loaded
jQuery.translate.ui('select', 'option') //generate dropdown
.change(function(){ //when selecting another language
jQuery("#translateBlock").append("");
jQuery("#disclaimer").show();
jQuery('#progressBar').progressbar({ value: 0 });
jQuery('#maincontent,#disclaimer').translate( 'english', jQuery(this).val(), { //translate from english to the selected language
not: '.option, .jq-translate-ui,#source,pre,#demo', //exclude these elements
fromOriginal:true, //always translate from english (even after the page has been translated)
each: function(){
this.progress("#progressBar");
},
complete: function(){
jQuery('.progressBarBlock').fadeOut("slow",function(){jQuery(this).remove();jQuery('#progressBar').progressbar('destroy');});
pageTracker._trackPageview("/translate/"+jQuery(".jq-translate-ui").val()+"/"+document.title+"/");
}
})
})
.val('English') //select English as default
.appendTo('#transDrop'); //insert the dropdown to the page
});
});
});