///////////////////////////////////////////////////////////////////////////////////////
/*
//If page is loaded from another site then redirect to our site!
ok_urls = new Array();
ok_urls[1] = "http://www.sacramentolocomotiveworks.com";
//ok_urls[2] = "http://www.sacramentolocomotiveworks.com/.html";

// Enter all the possible web addresses that your site's frameset
// page can be accessed online, such as with and without the 'www'

function reportError(msg, url, line)
{
if (url == window.location.href) 
  {
  msg = "\nBandwidth Theft Alert!\n\n" +
  "This site is illegally stealing bandwidth\n" +
  "from our site, WWW.SACRAMENTOLOCOMOTIVEWORKS.COM.\n\n" +
  "We will now load the content page\n" +
  "from our server so you may view it.\n\n" +
  "Thanks for your patience!";
  alert(msg);

  top.location.href = ok_urls[1] + "?" + window.location.href;
//  top.location.href = ok_urls[1];
  return true;
  }
}

window.onerror = reportError;

url_found = 0;
for (var i = 1; i <= ok_urls.length && !url_found; i++) 
  {
  url_found = (parent.location.href.indexOf(ok_urls[i]) == -1);
  }
if (!url_found || (window == top))
{
top.location.href = ok_urls[1] + "?" + window.location.href;
//top.location.href = ok_urls[1];
}
*/
////////////////////////////////////////////////////////////////////////////////////

//If page is loaded in frames then break out!
if (window != top)
{
alert("This site is illegally stealing our bandwidth! You will now be redirected to the" +
  " Sacramento Locomotive Works site.....");
top.location.href = location.href;
}

////////////////////////////////////////////////////////////////////////////////////

//Protect email addresses from email searching robots!
var userSLW1 = "erik";
var userSLW2 = "chris";
var userSLW3 = "rory";
var userSLW4 = "jtackett";
var userSLW5 = "george";
var userSLW6 = "kyle";
var userSLW7 = "paul";
var userSLW8 = "ShastaRoute";

var siteName1 = "sacramentolocomotiveworks.com";
var siteName2 = "yahoo.com";
var siteName3 = "mstsgmo.com";
var siteName4 = "rowies-rail-photos.com";
///////////////////////////////////////////////////////////////////////////////////
