var sWidth_Streamlogics = (screen.width) ? screen.width : 1024; 
var sHeight_Streamlogics = (screen.height) ? screen.height : 768; 

function openWin_Streamlogics(eventid,lang, aWidth, aHeight) {  
	var pTop; var pLeft;  
	pLeft = (sWidth_Streamlogics - aWidth) / 2;   
	pTop = ((sHeight_Streamlogics - aHeight) / 2 ) - 40;   
	
	if (pTop < 0) 
		pTop = 0; 
	if (pLeft < 0) 
		pLeft = 0; 

	var aWindow_Streamlogics=window.open("http://webcast.streamlogics.com/audience/bypass_lobby.asp?eventid=" + eventid + "&lang=" + lang + "&screenW=" + sWidth_Streamlogics + "&screenH=" + sHeight_Streamlogics,"thewindow","width="+aWidth+",height="+aHeight+",top="+pTop+",left="+pLeft+",toolbar=no,location=no,statusbar=no,menubar=no,resizable=yes;scrollbars=yes");   

	if (aWindow_Streamlogics) 
		aWindow_Streamlogics.focus(); 
} 

function openWinConf_Streamlogics(eventid,lang, aWidth, aHeight) {  
	var pTop; var pLeft;  
	pLeft = (sWidth_Streamlogics - aWidth) / 2;   
	pTop = ((sHeight_Streamlogics - aHeight) / 2 ) - 40;   

	if (pTop < 0) 
		pTop = 0; 

	if (pLeft < 0) 
		pLeft = 0; 

	var aWindow_Streamlogics=window.open("http://webcast.streamlogics.com/audience/bypass_lobby.asp?eventid=" + eventid + "&lang=" + lang + "&selectedConferenceCall=1" + "&screenW=" + sWidth_Streamlogics + "&screenH=" + sHeight_Streamlogics,"thewindow","width="+aWidth+",height="+aHeight+",top="+pTop+",left="+pLeft+",toolbar=0,location=0,statusbar=0,menubar=0,resizable=1;scrollbars=1");   

	if (aWindow_Streamlogics) 
		aWindow_Streamlogics.focus(); 
} 