// JavaScript Document
function YPanel_place() {
	var w, h;
			
	if(!window.innerWidth) {
			//strict mode
		if(!(document.documentElement.clientWidth == 0)) {
			w = document.documentElement.clientWidth;
			h = document.documentElement.clientHeight;
			st = document.documentElement.scrollTop;
		} else {
			//quirks mode
			w = document.body.clientWidth;
			h = document.body.clientHeight;
			st = document.body.scrollTop;
		}
	} else {
		//w3c	
		w = window.innerWidth;
		h = window.innerHeight;
		st = document.documentElement.scrollTop;
	}
	
	//alert(p.ref);
	//alert(document.body.scrollTop + " - " + document.body.clientTop);
 
	if(p.pos == "BR") {				
		p.ref.style.top = (h - p.ref.offsetHeight + st - 20) + "px";
		p.ref.style.right = "20px";
	}
}
