jQuery(function($) {
var showdiv = $(".showdiv"),
showbox = $(".showbox"),
zhezhao = $("#zhezhao"),
doc = $(document),
win = $(window);
showdiv.click(function() {
var box = 300;
var th = win.scrollTop() + win.height() / 1.6 - box;
var h = document.body.clientHeight;
var rw = win.width() / 2 - box;
showbox.animate({
top: th,
opacity: 'show',
width: 600,
height: 340,
right: rw
}, 500);
zhezhao.css({
display: "block",
height: doc.height()
});
return false;
});
$(".showbox .close,#zhezhao").click(function() {
showbox.animate({
top: 0,
opacity: 'hide',
width: 0,
height: 0,
right: 0
}, 500);
zhezhao.hide();
});
});