//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 * @package Starweb Webshop System
 * @version See version-file
 * @copyright Copyright (c) 2000 - 2010, Ehandelslogik AB
 * 
 * @author Ehandelslogik AB, org.no 556696-9019  (Starweb)
 *  Country: Sweden
 *  Homepage: www.starweb.se
 *  E-mail: support@starweb.se
 * 
 * License:
 * This program is not "free" software and restrictions apply!
 * This file as well as all other files containing the code to our software may ONLY be used and/or redistributed with written permission from us.
 * You'll find information regarding our conditions and pricing on our homepage. Contact us immediately if any of these conditions are not clear.
 */
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 * @name Function: Redirect To Index Frameset
 * @access public
 */
if(top == self)
{
   if((location.href.indexOf("~") == -1) && (location.href.indexOf("starwebshop.se") == -1))
   { top.location.href = '/Shop/Index.php'; }
   else
   {
      // Get: Settings
      var aUrlLocation = location.href.split('/');
      var sUrl         = "";
      
      for(var i=0; i<=3; i++)
      { sUrl += aUrlLocation[i] + '/'; }
      
      top.location.href = sUrl;
   }
}
