F.showSelect=function(b,o){
if(!F.ie)return;
var l=(o||document).getElementsByTagName("SELECT");
for(var i=0;i<l.length;i++)l[i].style.display=(b?"":"none")};
F.pop=function(fh){
	var	w=document.body.clientWidth,
	h=document.body.clientHeight,
	m=document.getElementById("mask"),
	p=document.getElementById("pop"),
	q=document.getElementById("close"),
	t=q.parentNode;
	F.showSelect(false);
	F.showSelect(true,p);
	q.onclick=F.unpop;
	t.onmousedown=function(e){
		var x=F.ie?event.x:e.clientX,y=F.ie?event.y:e.clientY,o=F.ie?document:window;
		t.x=x-parseInt(p.style.left.replace("px",""));
		t.y=y-parseInt(p.style.top.replace("px",""));
		if(F.ie)t.setCapture();else window.captureEvents(Event.MOUSEMOVE);
		o.onmousemove=function(){
		var x=F.ie?event.x:e.clientX,y=F.ie?event.y:e.clientY;
		p.style.left=x-t.x+"px";
		p.style.top=y-t.y+"px";
		}
	};
	t.onmouseup=function(){
		if(F.ie){t.releaseCapture();document.onmousemove=null}
		else {window.releaseEvents(Event.MOUSEMOVE);window.onmousemove=null}
	};
	h=screen.height-220;
	if(h<screen.height)h=screen.height;
	m.style.height=h+"px";
	m.style.width=(w<screen.width?screen.width:w)+"px";
	m.style.display=p.style.display="block";
	function f(){
		p.style.left=((document.documentElement.scrollLeft||document.body.scrollLeft)+(w-p.offsetWidth)/2)+"px";
		if(fh) p.style.top= fh+"px";
		else
		{
			p.style.top=((document.documentElement.offsetHeight)/2)+"px";
		}
		//p.style.top=(((F.ie?(document.documentElement.scrollLeft||document.body.scrollLeft)+h:600)-p.offsetHeight)/2)+"px";
	}
	f();
	if(F.ie)window.onscroll=f
};
F.unpop=function(){
	var m=document.getElementById("mask"),p=document.getElementById("pop");
	if(m)m.style.display="none";
	if(p)p.style.display="none";
	if(F.ie)window.onscroll=null;
	F.showSelect(true)
};
