function openWindow(winP,winTitel,winTe)

{ var undefined;


winTitel=winP


  x=(screen.availWidth/2)-(800/2);y=(screen.availHeight/2)-(600/2);
  
  winNw=window.open('','','resizable=0,width=800,height=600,top='+y+',left='+x+'');
            
  with (winNw)
  {
    	focus();
    	document.open();
	document.write('<title>'+winTitel+'</title>');
	document.write('<meta http-equiv="imagetoolbar" content="no">');
	document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no" >')
	document.write('<a href="javascript:self.close()">');
	document.write('<img src="'+winP+'" border="0" alt="'+winTe+'"></a></body>')
	document.close();
  }
}

function winRez(x,y)
{
if (navigator.appName.toLowerCase() == 'microsoft internet explorer')
  {
	
 if ((navigator.userAgent.toLowerCase().indexOf('aol')==-1) && (navigator.userAgent.toLowerCase().indexOf('opera')==-1))
     {winNw.resizeTo(x+12,y+31);}
    
 if (navigator.userAgent.toLowerCase().indexOf('opera')!=-1)
     {winNw.resizeTo(x+12,y+31);}

 if (navigator.userAgent.toLowerCase().indexOf('aol')!=-1)
     {winNw.resizeTo(x+4,y+4);}
  
  }


else
{
	if(navigator.appVersion.substring(0,1) < "5")
		{winNw.resizeTo(x,y);}
	
	else
		{winNw.resizeTo(x+8,y+28);}
}

winx=(screen.availWidth/2)-(x/2);
winy=(screen.availHeight/2)-(y/2);

winNw.moveTo(winx,winy);
}



var win=null;

function popVid(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();
}
