﻿// JScript File
// Scripts for hoverPanel control implementation
function ShowImage(event,file)
{       
    imageHoverPanel.startCallback(event,"file=" + file,null,null);    
}

function HideImage()
{    
    imageHoverPanel.fadeout();
}

function OnError(Result)
{
    alert("*** Error:\r\n\r\n" + Result.message);
}

function ShowUploader(event,url)
{       
    // *** Assign the URL to the context object
    fileUploadPanel.serverUrl = url;
    fileUploadPanel.startCallback(event);
}

function UploaderComplete()
{        
    document.location = 'default.aspx?projectID=<%= Me.ProjectID %>';
}

function ShowVideoPopup(event,assetId)
{       
    // *** Assign the URL to the context object   
    videoHoverPanel.startCallback(event,"assetId=" + assetId,null,null);    
}

function ShowVideoPopup(event,fileName)
{       
    // *** Assign the URL to the context object   
    videoHoverPanel.startCallback(event,"fileName=" + fileName,null,null);    
}

function ShowAssetVideoPopup(event,fileName)
{       
    // *** Assign the URL to the context object   
    assetVideoHoverPanel.startCallback(event,"fileName=" + fileName,null,null);    
}

function HideVideoPopup()
{    
    videoHoverPanel.fadeout();
}

function ShowClientPopup(event)
{       
    // *** Assign the URL to the context object   
    clientHoverPanel.startCallback(event,null,null,null);    
}