function cargarPath(path) {
	  if ( window.parent.opener && ! window.parent.opener.closed){
		window.parent.opener.location.href = path;
		window.parent.opener.focus();
	  }
	  else{
	  	window.location.href = path;
	  }
}


function abrirEnOpener(url) 
 {
   if (window.opener && !window.opener.closed)
   {
 	  window.opener.location.href = url;
 	  window.opener.focus();
   }
   else if (parent.opener && !parent.opener.closed)
   {
 	  parent.opener.location.href = url;
 	  parent.opener.focus();
   }
   else
   {
 	  smOpenerWin = window.open(url,'sm_opener');
 	  smOpenerWin.focus();
   }
 }
 
 
 var win;
 function abrirMicrosite(url) 
 {
 	var name=''
 	var width=795;
 	var height;
 	(screen.width<=800)?height=330:height=550;
 	var LeftP = (screen.width) ? (screen.width-width)/2 : 0;
 	var TopP=0;
 	settings="fullscreen=no,toolbar=yes,location=yes,directories=no,"+
 	"status=no,menubar=no,scrollbars=yes,"+
 	"resizable=no,width="+width+",height="+height+",left="+LeftP+",top="+TopP+"";
 	if(win)win.close();
 	window.focus();
 	win=window.open(url,name,settings); 
 }
 
 
 function abrirPopup(url)
 {
 	var width = 538;
 	var height = 350;
 	var left = 10;
 	var top = 10;
 	var name = "Privacidad";
 
 	var settings = "width="+width+",height="+height+",left="+left+",top="+top+",scrollbars=yes";
 
 	window.open(url,name,settings);
 }

 
 function fotosTour(url)
 {
 	var width = 300;
 	var height = 230;
 	var left = (screen.width) ? (screen.width-width)/2 : 0;
 	var top = 150;
 	var name = "";
 
 	settings="width="+width+",height="+height+",left="+left+",top="+top+", fullscreen=no,toolbar=no,location=no,directories=no,"+
 	"status=no,menubar=no,scrollbars=no,"+
 	"resizable=no";
 
 	window.open(url,name,settings);
 }

 
var win;
function microsite(url) {
var name=''
var width=795;
var height=500;
var LeftP = (screen.width) ? (screen.width-width)/2 : 0;
var TopP=0;
settings="fullscreen=no,toolbar=yes,location=yes,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=no,width="+width+",height="+height+",left="+LeftP+",top="+TopP+"";
if(win)win.close();
window.focus();
win=window.open(url,name,settings); 
}




