/**
 *  RyShellCMS Default Theme Javascript file.
 * 
 *  To alter for other themes change the changeContent and changeNews functions 
 *  to suit your needs.
 *  
 */

//-----------------------------------------------------------------------------
// Front End Functions
//-----------------------------------------------------------------------------

function themeLoad()
{
  return 0;
}

function themeResize()
{
  return 0;
}

function themeUnload()
{
  return 0;
}

/**
 *  Create popup window.
 * 
 *  @param string Url to open in window.
 *  @param string Name of the new window.
 *  @param integer Width of the new window.
 *  @param integer Height of the new window.
 *
 */
function popWindow( szUrl, szName, iW, iH )
{
  window.open( szUrl, szName, "scrollbars=no,status=no,width="+iW+",height="+iH );
}

/**
 *  Change the content area of the site.
 * 
 *  @param string Url for the content.
 *
 */
function changeContent( szUrl )
{
  document.location = "index.php?url="+szUrl;
}

/**
 *  Change the news article.
 *  
 *  @param string Url of the news article.
 *
 */
function changeNews( szUrl )
{
  document.location = "index.php?news="+szUrl;
}

//-----------------------------------------------------------------------------
// Back End Functions
//-----------------------------------------------------------------------------

function changeOptions( szMainUrl, szOptUrl )
{
  main.location = szMainUrl;
  opt.location = szOptUrl
}


