<!--
// Open a window of the desired size in the centre of the screen.
function openWindow(target_file, width, height, hasScrollBars) {
	   // ADD NAME FIELD and make sure it get's focus!!!
	   var theWidth = width;
	   var theHeight = height;
	   var scrollBars = "scrollbars";
	   if (hasScrollBars == false) scrollBars = "scrollbars=0";
	   if ((theWidth == "")||(theWidth == null)) theWidth = 740;
	   if ((theHeight == "")||(theHeight == null)) theHeight = 750;
	   var theLeft = (screen.availWidth - theWidth)/2;
	   var theTop = (screen.availHeight - theHeight)/2;
	   var popupWin = window.open(target_file, '_' + Math.round(Math.random() * 1000000), 'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+',height='+theHeight);
}
//-->

<!--
// Open a window of the desired size in the centre of the screen.
function openLSWindowTandR(year, wkno, lang, tabno, eventid, ref_file, width, height, hasScrollBars) {
	// ADD NAME FIELD and make sure it get's focus!!!
	var theWidth = width;
	var theHeight = height;
	var scrollBars = "scrollbars";
	if (hasScrollBars == false) scrollBars = "scrollbars=0";
	if ((theWidth == "")||(theWidth == null)) theWidth =500;
	if ((theHeight == "")||(theHeight == null)) theHeight =750;
	var theLeft = (screen.availWidth - theWidth)/2;
	var theTop = (screen.availHeight - theHeight)/2;
	var strCheckRef = escape(ref_file);

	var lsURL = "http://www.protennislive.com/frameset.asp?year="+year+"&wkno="+wkno+"&lang="+lang+"&tabno="+tabno+"&eventid="+eventid+"&ref="+strCheckRef;
	var popupWin = window.open(lsURL, '_' + Math.round(Math.random() * 1000000),'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+', height='+theHeight);
}
//-->


// Open a window of the desired size in the centre of the screen.
function openLSWindowTandR_n(year, wkno, lang, tabno, eventid, ref_file, width, height, hasScrollBars) {
	// ADD NAME FIELD and make sure it get's focus!!!
	var theWidth = width;
	var theHeight = height;
	var scrollBars = "scrollbars";
	if (hasScrollBars == false) scrollBars = "scrollbars=0";
	if ((theWidth == "")||(theWidth == null)) theWidth =500;
	if ((theHeight == "")||(theHeight == null)) theHeight =750;
	var theLeft = (screen.availWidth - theWidth)/2;
	var theTop = (screen.availHeight - theHeight)/2;

	var lsURL = "http%3A//www.protennislive.com/frameset_n.asp%3Fyear%3D"+year+"%26wkno%3D"+wkno+"%26lang%3D"+lang+"%26tabno%3D"+tabno+"%26eventid%3D"+eventid;
	var openUrl = "http://secure-us.imrworldwide.com/cgi-bin/b?cg=0&ci=us-atp&tu="+lsURL+"&rp="+ref_file;
	var popupWin = window.open(openUrl, '_' + Math.round(Math.random() * 1000000),'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+', height='+theHeight);
}

// -->
		
<!--
// Open Enet Updated Scores Window
function OpenENetPulsePopWindow() {
   theWindow = window.open("http://atplive.enetpulse.com/v2/", "eNetPulse", 'menubar=no,width=717,height=442,scrollbars=no,resizable=no' );
}

// -->
		
		
<!--
// Dreamweaver Rollover Image Preload Script
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


<!--
//new ypSlideOutMenu("number menu", "slide position", left, top, width, height)
  var yPosition = 84; //xluce antes 100
	new ypSlideOutMenu("menu1", "down", 20, yPosition, 145, 750),
	new ypSlideOutMenu("menu2", "down", 166, yPosition, 500, 420),
	new ypSlideOutMenu("menu3", "down", 302, yPosition, 246, 545),
	new ypSlideOutMenu("menu4", "down", 376, yPosition, 280, 505),
	new ypSlideOutMenu("menu5", "down", 466, yPosition, 460, 360),
	new ypSlideOutMenu("menu6", "down", 623, yPosition, 246, 505),
	new ypSlideOutMenu("menu7", "down", 579, yPosition, 246, 220)
//-->
