function newWindow() {
	 
	 var popUpPix = new Array({l:"../images/ofertas/canister_295_454.jpg",w:295,h:454}, 
	 						  {l:"../images/ofertas/transporte_525_400.jpg",w:525,h:400});
	
	 luckyNumber = Math.floor(Math.random() * 10);
	
	if (luckyNumber <= 5)
		luckyNumber = 0;
	else 
		luckyNumber = 1;

	
	var w = popUpPix[luckyNumber].w;
	var h = popUpPix[luckyNumber].h;
	var myname = 'Oferta';
	var features = 'status=yes,resizable=no'
	
	if(screen.width){
    var winl = (screen.width-w)/2;
    var wint = (screen.height-h)/2;
    }else{winl = 0;wint =0;}
    if (winl < 0) winl = 0;
    if (wint < 0) wint = 0;
    var settings = 'height=' + h + ',';
    settings += 'width=' + w + ',';
    settings += 'top=' + wint + ',';
    settings += 'left=' + winl + ',';
    settings += features;
  
    win = window.open(popUpPix[luckyNumber].l,myname,settings);
	t = setTimeout("win.close()",20000); 
}

function products(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2003 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// leave in page for way to customize layout of tooltip 
// and avoid errors if onmouseovers/outs before page completely loaded
function doTooltip(e, msg) {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.show(e, msg);
}

function hideTip() {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.hide();
}
	
