/******************************************

Fichero:		/lib/js/functions.js
Fecha:			26-09-2005
Autor:			Korvus

Copyright (c) Vivace Multimedia
http://www.vivacemultimedia.com

******************************************/

function showDayInfo( nDay )
{
 if( !document.body.onmousemove )
  return( false );
	
 var oLayer = document.getElementById( "dayInfo" + nDay );
 
 oLayer.style.display = "block";  
 oLayer.style.left = document.mouse()[ "pageX" ] + "px";
 oLayer.style.top = document.mouse()[ "pageY" ] + "px";
 
 if( parseInt( oLayer.style.left ) + parseInt( oLayer.style.width ) > document.body.offsetWidth )
  oLayer.style.left = ( parseInt( oLayer.style.left ) - parseInt( oLayer.style.width ) ) + "px";
}

function hideDayInfo( nDay )
{ document.getElementById( "dayInfo" + nDay ).style.display = "none"; }

/**
 * Muestra una notícia en vista ampliada
 * @function viewExtendedNew
 * @param nNewID ( int )
 */

function viewExtendedNew( nNewID )
{ window.open( "modules/noticias/ver.php?idNoticia=" + nNewID, "ppViewExtendedNews", "width=550px, height=330px" ); }

/**
 * Muestra el fotomatón en vista ampliada
 * @function viewExtendedPhoto
 * @param nRegistryID ( int )
 */

function viewExtendedPhoto( nRegistryID )
{ window.open( "modules/album/ver.php?idRegistro=" + nRegistryID, "ppViewExtendedPhotos", "width=650px, height=450px" ); }







