function popUpWindow(sUrl,sName,iWidth,iHeight,stitle,starget)
{var scrw=screen.width;var scrh=screen.height;var top=(scrh-iHeight)/2;var left=(scrw-iWidth)/2;var stitle;var starget;var sParam='resizable=yes,width='+iWidth+',height='+iHeight+'top='+top+',left='+left+',scrollbars=yes';tr=window.open(sUrl,sName,sParam);tr.document.write("<html><head><title>"+stitle+"</title></head>")
tr.document.write("<body><img src='../upload/images/teammanager-3/screens/"+starget+"'></body></html>");tr.document.close();}
function popUp(sUrl,sName,iWidth,iHeight,stitle,starget)
{var scrw=100;var scrh=100;var top=(scrh-iHeight)/2;var left=(scrw-iWidth)/2;var stitle;var starget;var sParam='resizable=yes,width='+iWidth+',height='+iHeight+'top='+top+',left='+left+',scrollbars=yes';tr=window.open(sUrl,sName,sParam);tr.document.write("<html><head><title>"+stitle+"</title><script language='JavaScript' type='text/javascript'>");tr.document.write("var x=window;");tr.document.write("function resizewinto()");tr.document.write("{");tr.document.write("var mydiv = document.getElementById('mydiv');");tr.document.write("var curr_width = mydiv.offsetWidth +30;");tr.document.write("var curr_height = mydiv.offsetHeight + 50;");tr.document.write("x.resizeTo(curr_width,curr_height);");tr.document.write("};");tr.document.write("</script></head>")
tr.document.write("<body onload='resizewinto();'><div style='position:absolute;left:0px;top:0px;background:white;' id='mydiv'><img src='"+starget+"' onclick='window.close()'></div></body></html>");tr.document.close();}
function popmap(url){newwindow=window.open(url,'name','height=330,width=550');if(window.focus){newwindow.focus()}
return false;}
function showpresentation(w,h,target,addL,title)
{var player=PfxO("topplayerNoindex");var billboardTitle=PfxO("billboardTitle");billboardTitle.innerHTML=title;var nmbr=w-2*addL;var nmbr1=h;var tleft=(document.body.offsetWidth-nmbr)/2;var ttop=(document.body.offsetHeight-nmbr1)/2;player.style.width=w+"px";player.style.height=Number(h)+30+"px";player.style.left=tleft+"px";player.style.top=ttop+"px";player.style.display="block";var so=new SWFObject(target,"mymovie",w,h,"6","#545454");so.addParam("wmode","transparent");so.write("flashcontent");}
function inittopplayer()
{var player=PfxO("topplayer");if(player)
{var strn=player.style.width;var nmbr=Number(strn.substring(0,strn.length-2));var strn1=player.style.height;var nmbr1=Number(strn1.substring(0,strn1.length-2));var tleft=document.body.offsetWidth/2-nmbr/2;var ttop=document.body.offsetHeight/2-nmbr1/2;player.style.left=tleft+"px";player.style.top=ttop-110+"px";player.style.display="block";}}
function closeplayer()
{var player=PfxO("topplayer");player.style.display="none";}
function closeplayerBoard()
{var player=PfxO("topplayerNoindex");player.style.display="none";}
