﻿// ---------------------------------------------------------------------
// Description:		SendVideo
//					Provides operation to open the SendVideo form.
//
// Autor:			Robin Saberi
// Date:			04.10.2005
// 
// (c) by team ModulAcht. All rights reserved
// ---------------------------------------------------------------------

// ---------------------------------------------------------------------
// Open form
// ---------------------------------------------------------------------
var Reload = 
{
    initialize : function()
    {
    },
    
    CheckExtension : function(argRootUrl)
    {
      var clip_and_id = "";
      var array = window.location.href.split('/');  
      for(var i=0; i<array.length; i++)
      {
        var value = array[i];
        if(value.search(/clip-/) != -1)
        {
            clip_and_id = value;
        }
      }
      if(clip_and_id.length != 0)
      {
        var temp = clip_and_id.split('-');                
        var url = argRootUrl + "/reload/clipid-" + temp[1];        
        setTimeout(this._redirect.bind(this, url), 10);                    
      }            
    },
    
    _redirect : function(argUrl)        
    {
        window.location.href = argUrl;
    }
}

























