//Muestra la foto grande
function AmpliarFoto (urlFotoGrande, width, height){

var winwidth=eval(width)+20;

if (winwidth<468)

	winwidth=468+20;

var winheight=eval(height)+60;



width=eval(width);

height=eval(height);



var myWindow=window.open("/lib/vent_fotos.shtml?url="+urlFotoGrande+"&w="+width+"&h="+height, "myWindow","width="+winwidth+",height="+winheight+", menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=yes,scroll=auto,resizable=yes");



}

////////////////////////////////////////////////////////
//  Repite una animacion en flash

function RepetirAnimacionFlash(){

}

////////////////////////////////////////////////////////
function EnviarAmigo (urlFoto,urlDocumento) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/fotos/';
}
var date = new Date();
var seconds = date.getSeconds();
var myWindow2=window.open("/lib/enviar.shtml?urlFoto="+urlFoto+"&urlDoc="+urlDocumento,seconds,"width=468,height=548, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
}

////////////////////////////////////////////////////////
function AbrirVentana (urlFoto,urlDocumento,urlWallpaper) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/fotos/';
}
var date = new Date();
var seconds = date.getSeconds();    
var myWindow2=window.open("/elbus/mp3/ventanawallpapers.shtml?urlFoto="+urlFoto+"&urlDoc="+urlDocumento+"&urlWall="+urlWallpaper,seconds,"width=510,height=274, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
} 
 
////////////////////////////////////////////////////////
function AbrirVentanaWallpapers (urlFoto,urlDocumento,urlWallpaper) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/fotos/';
}
var date = new Date();
var seconds = date.getSeconds();    
var myWindow2=window.open("/navidad/ventanawallpapers.shtml?urlFoto="+urlFoto+"&urlDoc="+urlDocumento+"&urlWall="+urlWallpaper,seconds,"width=510,height=274, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
} 
 
////////////////////////////////////////////////////////
function AbrirVentanaWallpapersGH (urlFoto,urlDocumento,urlWallpaper) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/granhermano/';
}
var date = new Date();
var seconds = date.getSeconds();    
var myWindow2=window.open("/granhermano/wallpapers/ventanawallpapers.shtml?urlFoto="+urlFoto+"&urlDoc="+urlDocumento+"&urlWall="+urlWallpaper,seconds,"width=510,height=274, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
} 

////////////////////////////////////////////////////////
function AbrirVentanaCalendarioGH (urlFoto,urlDocumento,urlWallpaper) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/granhermano/';
}
var date = new Date();
var seconds = date.getSeconds();    
var myWindow2=window.open("/granhermano/calendario/ventanacalendario.shtml?urlFoto="+urlFoto+"&urlDoc="+urlDocumento+"&urlWall="+urlWallpaper,seconds,"width=510,height=274, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
} 

////////////////////////////////////////////////////////

function AbrirVentanaSalvapantallas(Programa,urlDocumento,Dibuix,Pie) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/fotos/';
}
var date = new Date();
var seconds = date.getSeconds();    
var myWindow2=window.open("/elbus/mp3/ventanasalvapantallas.shtml?Programa="+Programa+"&urlDoc="+urlDocumento+"&Dibuix="+Dibuix+"&Pie="+escape(Pie),seconds,"width=510,height=274, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
}
  
////////////////////////////////////////////////////////
function AbrirVentanaSalvapantallasGH(Programa,urlDocumento,Dibuix,Pie) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/granhermano/';
}
escape(Pie);
var date = new Date();
var seconds = date.getSeconds();    
var myWindow2=window.open("/granhermano/salvapantallas/ventanasalvapantallas.shtml?Programa="+Programa+"&urlDoc="+urlDocumento+"&Dibuix="+Dibuix+"&Pie="+Pie,seconds,"width=510,height=274, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
}

////////////////////////////////////////////////////////
function AbrirVentanaSalvapantallasNavidad(Programa,urlDocumento,Dibuix,Pie) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/fotos/';
}
var date = new Date();
var seconds = date.getSeconds();    
var myWindow2=window.open("/navidad/ventanasalvapantallas.shtml?Programa="+Programa+"&urlDoc="+urlDocumento+"&Dibuix="+Dibuix+"&Pie="+escape(Pie),seconds,"width=510,height=274, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
}

////////////////////////////////////////////////////////
function EnviarAmigoMultiple (urlFoto1,urlFoto2,urlFoto3,urlFoto4,urlDocumento) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/fotos/';
}
var date = new Date(); 
var seconds = date.getSeconds();
var myWindow2=window.open("/lib/enviar_multiple.html?urlFoto1="+urlFoto1+"&urlFoto2="+urlFoto2+"&urlFoto3="+urlFoto3+"&urlFoto4="+urlFoto4+"&urlDoc="+urlDocumento,seconds,"width=374,height=560, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
}

///////////////////////////////////////////////////////
function ImprimirFotos (urlFoto1,urlFoto2,urlFoto3,urlFoto4,urlDocumento,Pie1,Pie2,Pie3,Pie4) {
if (urlDocumento==null){ 
urlDocumento='http://www.portalmix.com/fotos/';
}
var date = new Date(); 
var seconds = date.getSeconds();
var myWindow2=window.open("/lib/imprimir.html?urlFoto1="+urlFoto1+"&urlFoto2="+urlFoto2+"&urlFoto3="+urlFoto3+"&urlFoto4="+urlFoto4+"&urlDoc="+urlDocumento+"&Pie1"+Pie1+"&Pie2"+Pie2+"&Pie3"+Pie3+"&Pie4"+Pie4,seconds,"width=425,height=615,menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
}


///////////////////////////////////////////////////////



//Marca como favorito 8solo IE)

function marcarFavoritoIE (theURL,theName,alertMsg) { //v3.0.3

var agt = navigator.userAgent.toLowerCase(); 

var is_win   = ((agt.indexOf("win")!= -1) || (agt.indexOf("16bit")!= -1));

var is_win95 = ((agt.indexOf("win95")!= -1) || (agt.indexOf("windows 95")!= -1));

var is_win16 = ((agt.indexOf("win16")!= -1) || (agt.indexOf("16bit")!= -1) || (agt.indexOf("windows 3.1")!= -1) || (agt.indexOf("windows 16-bit")!= -1) );

var is_win31 = ((agt.indexOf("windows 3.1")!= -1) || (agt.indexOf("win16")!= -1) || (agt.indexOf("windows 16-bit")!= -1));

var is_win98 = ((agt.indexOf("win98")!= -1) || (agt.indexOf("windows 98")!= -1));

var is_winnt = ((agt.indexOf("winnt")!= -1) || (agt.indexOf("windows nt")!= -1));

var is_win32 = (is_win95 || is_winnt || is_win98 || (agt.indexOf("win32")!= -1) || (agt.indexOf("32bit")!= -1));



var is_Mac = (agt.indexOf("mac") != -1);



	if (document.all && (is_win32)) { //IE solo

		window.external.AddFavorite(theURL,theName);

		} 

	else { // el resto

		alert(alertMsg); 

		}

}

function EnviarAmigo2 (urlFoto,urlDocumento) {
if (urlDocumento==null){
urlDocumento='http://www.portalmix.com/fotos/';
}
var date = new Date();
var seconds = date.getSeconds();
var myWindow2=window.open("/lib/enviar2.shtml?urlFoto="+urlFoto+"&urlDoc="+urlDocumento,seconds,"width=468,height=548, menubar=no,locationbar=no,toolbar=no,status=no,scrollbars=no,scroll=no,resizable=no,marginwidth=0,marginheigth=0");
}

