changeUi();
function changeUi(){
var imgpatch = sogouExplorer.extension.getURL('images/a.png');
var style = document.createElement("link");
style.href = sogouExplorer.extension.getURL('style.css');
style.rel = "stylesheet";
style.type = "text/css";
document.getElementsByTagName("head").item(0).appendChild(style);
var scriptelement=document.createElement("script");
scriptelement.type="text/javascript";
if(typeof(jQuery)=="undefined"){
alert('jquery bucunzai');
var jquerypatch = sogouExplorer.extension.getURL('jquery-1.4.1.min.js');
scriptelement.src=jquerypatch;
document.getElementsByTagName("head").item(0).appendChild(scriptelement);
}
var ht=document.createElement("div");
ht.innerHTML="<div class='sougougo'><a class='sougoutop' title='返回顶部'/><a class='sougoucenter' title='自动翻页'/><a class='sougoubottom' title='返回底部'/></div>";
document.getElementsByTagName("body").item(0).appendChild(ht);
$(".sougoutop").click(function(){
$("html, body").animate({scrollTop: 0},220);
});
$(".sougoubottom").bind("click",function(){
$("html, body").animate({scrollTop: $(document).height()},220);
});
$(".sougoucenter").click(function(){
var d = $(document).scrollTop()+$(window).height();
$("html, body").animate({scrollTop: d},220);
});
$(window).bind("scroll",function(){
var d = $(document).scrollTop(),
e = $(window).height();
d>1?$(".sougougo").show("slow") : $(".sougougo").hide("slow");
});
}