<script type="text/javascript" language="javascript">
(function () {
function a() {
var a = d.scrollTop(),
b = f.innerHeight();
var rightWidth= (window.document.body.offsetWidth-960)/2;
if(window.document.body.offsetWidth<960)
{
return;
}
//alert(rightWidth+'px');
g.removeAttr('style'),
b > i && (i > j ? a + j > h + i ? a + j > h + b ? g.css({
position: 'absolute',
bottom: '0px',
right:'0px'
}) : g.css({
position: 'fixed',
bottom: '0px',
right:rightWidth+'px'
}) : g.css({
position: 'static'
}) : a > h ? a + i > h + b ? g.css({
position: 'absolute',
bottom: '10px'
}) : g.css({
position: 'fixed',
top: '0px'
}) : g.css({
position: 'static'
}))
}
var b = navigator.userAgent;
if (!(b.indexOf('MSIE 6') > 0)) {
var c = $(window),
d = $(document),
e = $('.main'),
f = e.find('.cont'),
g = e.find('.sideRight'),
h = f.offset().top,
i = g.height(),
j = c.height();
e.css('position', 'relative'),
c.on({
scroll: a,
resize: function () {
j = c.height(),
a()
}
}),
a()
}
}());
//(function(){alert(1);}());
</script>
(function () {
function a() {
var a = d.scrollTop(),
b = f.innerHeight();
var rightWidth= (window.document.body.offsetWidth-960)/2;
if(window.document.body.offsetWidth<960)
{
return;
}
//alert(rightWidth+'px');
g.removeAttr('style'),
b > i && (i > j ? a + j > h + i ? a + j > h + b ? g.css({
position: 'absolute',
bottom: '0px',
right:'0px'
}) : g.css({
position: 'fixed',
bottom: '0px',
right:rightWidth+'px'
}) : g.css({
position: 'static'
}) : a > h ? a + i > h + b ? g.css({
position: 'absolute',
bottom: '10px'
}) : g.css({
position: 'fixed',
top: '0px'
}) : g.css({
position: 'static'
}))
}
var b = navigator.userAgent;
if (!(b.indexOf('MSIE 6') > 0)) {
var c = $(window),
d = $(document),
e = $('.main'),
f = e.find('.cont'),
g = e.find('.sideRight'),
h = f.offset().top,
i = g.height(),
j = c.height();
e.css('position', 'relative'),
c.on({
scroll: a,
resize: function () {
j = c.height(),
a()
}
}),
a()
}
}());
//(function(){alert(1);}());
</script>