// Version       : 1.1
// Last modified : (R.Aust) 06.09.2003
// Author        : BBDO InterOne Hamburg
// Copyright     : BMW Group 2002-2003

// Unique scripting solutions that are provided for  BMW Group sites are for use exclusively
// within  BMW Group projects.  No other use of these solutions is permitted.

this_url       = location.href;
var yourDomain = "http://www.bmw.lt";

if (this_url.indexOf("/WebSite/") != -1 ) {
  genericpath = this_url.replace( /WebSite.*/, "WebSite" );
  rootpath    = this_url.replace( /WebSite.*/, "WebSite" );
  actualpath  = this_url.substr(0, this_url.lastIndexOf("/")+1);
  if(actualpath.indexOf("?") != -1) {
    actualpath = this_url.substr(0, this_url.lastIndexOf("?"));
    actualpath = actualpath.substr(0, actualpath.lastIndexOf("/")+1);
  }
} 
else {
  genericpath = "";
  rootpath    = "";
  actualpath  = "";
}
