function saveSlidePosition()
{ document.cookie = 'izobitSlideshow=' + currentSlide; }

function restoreSlidePosition()
{
	var search = "izobitSlideshow=";

  if( document.cookie.length > 0 )
  {
		offset = document.cookie.indexOf( search );
    if( offset != -1 )
    {
			offset += search.length;
			end			= document.cookie.indexOf( ";", offset );

			if( end == -1 )
			{ end = document.cookie.length; }
                
      return parseInt( unescape( document.cookie.substring( offset, end ) ) );
		}
	}
}

function bigImage( path, width, height )
{
	left		= ( screen.width - width ) / 2;
 	top			= ( screen.height - height ) / 2;
	options = 'height=' + height + ',width=' + width + ',top=' + top + ',left=' + left + 'resizable=0';
	
	window.open( path, "", options );
}