function fb_autoPosition(){
	fb = document.getElementById('floatbar');
	wrap = document.getElementById('wrapper');
	dw = document.width;
	if(document.width){
		dw = document.width;
	}else{
		dw = document.body.clientWidth;
	}
	
	if(dw < 1000){
		fb.style.width = wrap.offsetWidth - 12+'px';
		fb.style.marginLeft = wrap.offsetLeft+'px';
		fb.style.marginTop = wrap.offsetTop + wrap.offsetHeight - 275 +'px';
		fb.style.display = '';
		return false;
	}else if(dw <1200){
		wrap.style.marginLeft = '50px';
	}else{
		wrap.style.marginLeft = 'auto';
		wrap.style.marginRight = 'auto';
	}
	fb.style.marginTop = '0px';
	fb.style.marginLeft = wrap.offsetWidth+wrap.offsetLeft+5+'px';
	fb.style.width = dw-(wrap.offsetWidth+wrap.offsetLeft)-5+'px';
	fb.style.display = '';
}


fb_autoPosition();