/*
   Splash Screen Redirect
   Version 1.0
   December 13, 2010

   Will Bontrager
   http://www.willmaster.com/
   Copyright 2010 Bontrager Connection, LLC

   Bontrager Connection, LLC grants you 
   a royalty free license to use or modify 
   this software provided this notice appears 
   on all copies. This software is provided 
   "AS IS," without a warranty of any kind.
*/

 ///////////////////////////
// Customization section //

// Specify the URL of the page with the splash screen.

var SplashURL = "http://www.billyjoeconor.com/welcome.php";


// Specify the cookie name. The same name needs to be 
//   specified in the JavaScript of the splash screen 
//   page.

var CookieName = "SplashCookie";


// How many days shall the cookie last? (After the cookie 
//   expires, splash screen page may be displayed again.)
//   Use 0 (zero) to specify a volitile cookie that expires 
//   when the browser is exited. Decimal number is okay. Default was 1.5
var CookieDays = 0;


 // End of customization section. //
///////////////////////////////////
if(!document.cookie.length || document.cookie.indexOf(CookieName)<0) { 
CookieDays = parseFloat(CookieDays);
var exp = '';
if(CookieDays>0) {
   var now = new Date();
   now.setTime(now.getTime()+parseInt(CookieDays*24*60*60*1000));
   exp = '; expires='+now.toGMTString();
   }
document.cookie = CookieName+"="+document.URL+"; path=/"+exp;
if(document.cookie.indexOf(CookieName)>=0) { location.href = SplashURL; }
}
