function startwin(obj, url)
{
  obj.href='javascript://';
  window.open(url, 'newwin', 'width=780,height=600,status=0,toolbar=0,menubar=0,scrollbars1,location=0,resizable=0');
}

function fullscreen()
{
    obj = document.getElementById('player');
    if (navigator.appName.indexOf("Microsoft") != -1)
    {       
        obj.width = document.documentElement.clientWidth + 'px'; 
        obj.height = (document.documentElement.clientHeight - 24) + 'px'; 
    }       
    else    
    {       
        obj.width = (document.documentElement.clientWidth - 20) + 'px'; 
        obj.height = (document.documentElement.clientHeight - 27) + 'px'; 
    }
}

function addToFavoriate(title, url)
{
  if (window.sidebar)
  {
    window.sidebar.addPanel(title, url, '');
  }
  else if (window.external)
  {
    window.external.AddFavorite(url, title);
  }
  else
  {
    alert('sorry, can not add to bookmark.');
  }
}
