////////////////////////////////////////////////

function CPhoto()
{
    this.m_nodePhoto = null;
    this.m_pParent = null;
}

CPhoto.prototype.Initialise = function(node, pParent)
{
    this.m_nodePhoto = node;
    this.m_pParent = pParent;
    return SW_OK;
}

CPhoto.prototype.GetAlbum = function()
{
    return this.m_pParent;
}

CPhoto.prototype.GetID = function()
{
    return this.m_nodePhoto.getAttribute('ID');
}

CPhoto.prototype.GetOffsetX = function()
{
    return parseInt(this.m_nodePhoto.getAttribute('OffsetX'));
}

CPhoto.prototype.GetOffsetY = function()
{
    return parseInt(this.m_nodePhoto.getAttribute('OffsetY'));
}

CPhoto.prototype.GetWidth = function()
{
    return parseInt(this.m_nodePhoto.getAttribute('Width'));
}

CPhoto.prototype.GetHeight = function()
{
    return parseInt(this.m_nodePhoto.getAttribute('Height'));
}

CPhoto.prototype.GetDescription = function()
{
    return this.m_nodePhoto.getAttribute('Description');
}

CPhoto.prototype.GetHref = function()
{
    return this.m_nodePhoto.getAttribute('Href');
}

////////////////////////////////////////////////
