function removebook(k){
	lastread.remove(k);
	showbook()
}

//是否移动端
function is_mobile() {
    var regex_match = /(nokia|iphone|android|motorola|^mot-|softbank|foma|docomo|kddi|up.browser|up.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte-|longcos|pantech|gionee|^sie-|portalmmm|jigs browser|hiptop|^benq|haier|^lct|operas*mobi|opera*mini|320x320|240x320|176x220)/i;
    var u = navigator.userAgent;
    if (null == u) {
        return true;
    }
    var result = regex_match.exec(u);
    if (null == result) {
        return false
    } else {
        return true
    }
}



$(function(){$widthwindow = $(window).width();if($widthwindow < 750){	$(".list-charts li").width($widthwindow-60);$("#_17mb_ph .author,#_17mb_ph .lastchapter,#_17mb_ph .visit,#_17mb_ph .fullflag").hide(300);$("#_17mb_ph .articlename").width("70%");$("#_17mb_ph .lastupdate").width("30%");$("#bookcon .lastchapter,#booklast").hide(300);	$(".navbar-nav li").css({"display":"block","float":"left"});$(".myinfo,.bookcase").width("50%").height(60);	$("#navbar .bookcase").css("top","0px");$(".dropdown-menu a").css("color","#fff");$("#llastupdate tbody tr:gt(10)").hide(0);}})
$(function(){
    $("#fontset").click(function(){
        if($("#fontshow").is(":hidden"))
            $("#fontshow").show();
        else
            $("#fontshow").hide();
    })
    $(".historytop p").click(function(){
        //alert()
    })
})
var _mobile;
UA = navigator.userAgent.toLowerCase();
url = window.location;
url = url.toString();
if((UA.indexOf('iphone') != -1 || UA.indexOf('mobile') != -1 || UA.indexOf('android') != -1 || UA.indexOf('ipad') != -1 || UA.indexOf('windows ce') != -1 || UA.indexOf('ipod') != -1) && UA.indexOf('ipod') == -1) {
	_mobile = 1 ;$(function(){$("#gundong").hide()});
}
else{
	_mobile = null ;
}

//统计代码,PC+WAP
function _17mb_tj(){
	//请不要在这个地方添加类似 if(!_mobile) 代码
	document.write ('<script type="text/javascript"  src="https://js.users.51.la/16009603.js"></script>');
}
//顶部（PC）
function _17mb_pctop(){
	if(!_mobile)
	document.write("<!--这里填写PC顶部-->");
}
//中部（PC）
function _17mb_pcmiddle(){
	if(!_mobile)
	document.write("<!--这里填写PC中部-->");
}
//底部（PC）
function _17mb_pcbottom(){
	if(!_mobile)
	document.write("<!--这里填写PC底部-->");
}
//对(PC)
function _17mb_pcduilian(){
	if(!_mobile)
	document.write("<!--这里填写PC对联-->");
}
//PC章节页方1
function _17mb_chapter1(){
	if(!_mobile)
	document.write("<!--这里填写PC章节页方形1-->");
}
//PC章节页方2
function _17mb_chapter2(){
	if(!_mobile)
	document.write("<!--这里填写PC章节页方形2-->");
}
//PC章节页方3
function _17mb_chapter3(){
	if(!_mobile)
	document.write("<!--这里填写PC章节页方形3-->");
}
//顶部（WAP）
function _17mb_waptop(){
	if(_mobile)
	document.write("<!--这里填写-->");
}
//中部（WAP）
function __17mb_wapmiddle(){
	if(_mobile)
	document.write("<!--这里填写-->");
}
//底部（WAP）
function _17mb_wapbottom(){
	if(_mobile)
	document.write("<!--这里填写-->");
}