function f2f_Popup(){
var _1=this;
var _2=null;
var _3=null;
var _4=null;
var _5=null;
var _6=null;
var _7=false;
var _8=null;
var _9=true;
this.loadPopup=function(_a,_b,_c,_d,_e,_f){
var _10;
var _11=(_d!=undefined&&_d!=null)?_d:true;
_8=_e;
if(_f!=undefined&&_f!=null){
_9=_f;
}
if(_b){
if(_11){
if(_4==null){
_4=new StarRequest(_b,_11);
}
_10=_4;
}else{
if(_2==null){
_2=new StarRequest(_b,_11);
}
_10=_2;
}
}else{
if(_11){
if(_5==null){
_5=new StarRequest(_b,_11);
}
_10=_5;
}else{
if(_3==null){
_3=new StarRequest(_b,_11);
}
_10=_3;
}
}
_10.ondone=_12;
_10.getURL(_a,_c);
};
this.unloadPopup=function(_13){
if(_7){
$("#overlay_content").hide("fast",function(){
_14();
if(_13){
_13();
}
});
}
};
this.clearCache=function(){
if(_2!=null){
_2.clearCache();
}
if(_4!=null){
_4.clearCache();
}
};
this.centerPopup=function(_15){
if(!_7){
return false;
}
var _16=document.getElementById("overlay_content");
_16.style.left=Math.floor((document.body.offsetWidth-_16.offsetWidth)/2)+"px";
if(!_15){
if(f2f.utils().isIE()){
var _17=f2f.utils().getIEVersion()<8?f2f.utils().getScrollXY():[0,0];
var _18=f2f.utils().getViewportSize();
_16.style.top=Math.floor(_17[1]+(_18[1]-_16.offsetHeight)/2)+"px";
}else{
_16.style.top=Math.floor((window.innerHeight-_16.offsetHeight)/2)+"px";
}
}else{
var y=Math.floor(f2f.utils().getCoords(_15)[1]-(_16.offsetHeight/2));
if(y<0){
y=10;
}
_16.style.top=y+"px";
}
};
function _12(_19){
_6=_19;
if(!_7){
_1a();
_1b();
}else{
$("#overlay_content").hide("fast",_1c);
}
};
function _1a(){
if(!_9){
return;
}
var _1d=f2f.utils().getPageSize();
var _1e=document.createElement("div");
_1e.setAttribute("id","overlay_mask");
_1e.style.width=_1d[0]+"px";
_1e.style.height=_1d[1]+"px";
document.body.appendChild(_1e);
};
function _1f(){
if(!_9){
return;
}
var o=document.getElementById("overlay_mask");
o.parentNode.removeChild(o);
};
function _1c(){
var _20=document.getElementById("overlay_content");
_20.parentNode.removeChild(_20);
_1b();
};
function _1b(){
if(f2f.utils().isIE()&&!_7){
if(f2f.utils().getIEVersion()<7){
_21("none");
}
}
_7=true;
var _22=document.createElement("div");
_22.setAttribute("id","overlay_content");
document.body.appendChild(_22);
f2f.utils().updateElementContent(_22,_6);
_1.centerPopup(_8);
_23();
try{
f2f.modules().facebook().parseDomElement(_22);
}
catch(e){
}
};
function _23(){
_6=null;
};
function _21(_24){
var sel=document.getElementsByTagName("select");
for(var i=0;i<sel.length;i++){
var o=sel[i];
if((o.type=="select-multiple"||o.type=="select-one")&&o.style){
o.style.display=_24;
}
}
};
function _14(){
var o=document.getElementById("overlay_content");
o.parentNode.removeChild(o);
_1f();
if(f2f.utils().isIE()){
if(f2f.utils().getIEVersion()<7){
_21("");
}
}
_7=false;
_9=true;
};
function _25(){
f2f.utils().addStyle("#overlay_mask {position: absolute;left:0px;top:0px;width:100%;height:100%;z-index:100;background-color:#000000;filter:alpha(opacity=50);-moz-opacity:0.5;opacity:.50;}");
f2f.utils().addStyle("#overlay_content {position: absolute;left: 50%;top: 50%;z-index: 101;}");
f2f.utils().addStyle("#overlay_content[id] {position:fixed;}");
};
_25();
};


